v-code-diff 1.11.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/index.cjs.js +17 -17
- package/dist/v2/index.es.js +1077 -954
- package/dist/v2/index.umd.js +17 -17
- package/dist/v2.7/index.cjs.js +18 -18
- package/dist/v2.7/index.es.js +1163 -1119
- package/dist/v2.7/index.umd.js +18 -18
- package/dist/v3/index.cjs.js +16 -16
- package/dist/v3/index.es.js +975 -902
- package/dist/v3/index.umd.js +17 -17
- package/package.json +1 -1
- package/src/CodeDiff.vue +47 -0
- package/src/icons/DownArrowIcon.vue +11 -0
- package/src/icons/UpArrowIcon.vue +11 -0
- package/src/split/SplitLine.vue +0 -2
- package/src/style.scss +27 -2
package/dist/v3/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[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #1F2328;--color-diff-blob-addition-fg: #1F2328;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #1f883d;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(31,35,40,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(31,35,40,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(31,35,40,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-scale-black: #1F2328;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#ffffff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { defineComponent as Ae, openBlock as G, createElementBlock as W, createElementVNode as
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view[theme=light]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #1F2328;--color-diff-blob-addition-fg: #1F2328;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #1F2328;--color-diff-blob-deletion-fg: #1F2328;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #656d76;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(31,35,40,.15);--color-diffstat-addition-border: rgba(31,35,40,.15);--color-diffstat-addition-bg: #1f883d;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #1F2328;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #656d76;--color-codemirror-cursor: #1F2328;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #1F2328;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #1f883d;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(31,35,40,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-control-border-color-emphasis: #858F99;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(31,35,40,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: 0 0 0 2px rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(31,35,40,.12), 0 8px 24px rgba(66,74,83,.12);--color-overlay-backdrop: rgba(140,149,159,.2);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(31,35,40,.15);--color-btn-shadow: 0 1px 0 rgba(31,35,40,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(31,35,40,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(31,35,40,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-counter-bg: rgba(31,35,40,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #1f883d;--color-btn-primary-border: rgba(31,35,40,.15);--color-btn-primary-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #1a7f37;--color-btn-primary-hover-border: rgba(31,35,40,.15);--color-btn-primary-selected-bg: hsla(137,66%,28%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(31,35,40,.15);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(0,45,17,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(31,35,40,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(31,35,40,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-counter-bg: #0969da1a;--color-btn-outline-counter-fg: #0550ae;--color-btn-outline-hover-counter-fg: #ffffff;--color-btn-outline-disabled-counter-fg: rgba(9,105,218,.5);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(31,35,40,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(31,35,40,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(31,35,40,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-counter-fg: #a40e26;--color-btn-danger-hover-counter-fg: #ffffff;--color-btn-danger-disabled-counter-fg: rgba(207,34,46,.5);--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #d1242f;--color-switch-track-bg: #eaeef2;--color-switch-track-hover-bg: hsla(210,24%,90%,1);--color-switch-track-active-bg: hsla(210,24%,88%,1);--color-switch-track-disabled-bg: #8c959f;--color-switch-track-fg: #656d76;--color-switch-track-disabled-fg: #ffffff;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: #0969da;--color-switch-track-checked-hover-bg: #0860CA;--color-switch-track-checked-active-bg: #0757BA;--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #ffffff;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #ffffff;--color-switch-knob-disabled-bg: #f6f8fa;--color-switch-knob-border: #858F99;--color-switch-knob-checked-bg: #ffffff;--color-switch-knob-checked-disabled-bg: #f6f8fa;--color-switch-knob-checked-border: #0969da;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-bg: #ffffff;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #8c959f;--color-tree-view-item-chevron-hover-bg: rgba(208,215,222,.32);--color-tree-view-item-directory-fill: #54aeff;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(31,35,40,.15);--color-shadow-small: 0 1px 0 rgba(31,35,40,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #1f883d;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #d1242f;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(31,35,40,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(31,35,40,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-scale-black: #1F2328;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view[theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=light] code.hljs{padding:3px 5px}.code-diff-view[theme=light] .hljs{color:#24292e;background:#ffffff}.code-diff-view[theme=light] .hljs-doctag,.code-diff-view[theme=light] .hljs-keyword,.code-diff-view[theme=light] .hljs-meta .hljs-keyword,.code-diff-view[theme=light] .hljs-template-tag,.code-diff-view[theme=light] .hljs-template-variable,.code-diff-view[theme=light] .hljs-type,.code-diff-view[theme=light] .hljs-variable.language_{color:#d73a49}.code-diff-view[theme=light] .hljs-title,.code-diff-view[theme=light] .hljs-title.class_,.code-diff-view[theme=light] .hljs-title.class_.inherited__,.code-diff-view[theme=light] .hljs-title.function_{color:#6f42c1}.code-diff-view[theme=light] .hljs-attr,.code-diff-view[theme=light] .hljs-attribute,.code-diff-view[theme=light] .hljs-literal,.code-diff-view[theme=light] .hljs-meta,.code-diff-view[theme=light] .hljs-number,.code-diff-view[theme=light] .hljs-operator,.code-diff-view[theme=light] .hljs-variable,.code-diff-view[theme=light] .hljs-selector-attr,.code-diff-view[theme=light] .hljs-selector-class,.code-diff-view[theme=light] .hljs-selector-id{color:#005cc5}.code-diff-view[theme=light] .hljs-regexp,.code-diff-view[theme=light] .hljs-string,.code-diff-view[theme=light] .hljs-meta .hljs-string{color:#032f62}.code-diff-view[theme=light] .hljs-built_in,.code-diff-view[theme=light] .hljs-symbol{color:#e36209}.code-diff-view[theme=light] .hljs-comment,.code-diff-view[theme=light] .hljs-code,.code-diff-view[theme=light] .hljs-formula{color:#6a737d}.code-diff-view[theme=light] .hljs-name,.code-diff-view[theme=light] .hljs-quote,.code-diff-view[theme=light] .hljs-selector-tag,.code-diff-view[theme=light] .hljs-selector-pseudo{color:#22863a}.code-diff-view[theme=light] .hljs-subst{color:#24292e}.code-diff-view[theme=light] .hljs-section{color:#005cc5;font-weight:700}.code-diff-view[theme=light] .hljs-bullet{color:#735c0f}.code-diff-view[theme=light] .hljs-emphasis{color:#24292e;font-style:italic}.code-diff-view[theme=light] .hljs-strong{color:#24292e;font-weight:700}.code-diff-view[theme=light] .hljs-addition{color:#22863a;background-color:#f0fff4}.code-diff-view[theme=light] .hljs-deletion{color:#b31d28;background-color:#ffeef0}.code-diff-view[theme=dark]{color:var(--fgColor-default, var(--color-fg-default));background-color:var(--bgColor-default, var(--color-canvas-default));--color-canvas-default-transparent: rgba(13,17,23,0);--color-page-header-bg: #0d1117;--color-marketing-icon-primary: #79c0ff;--color-marketing-icon-secondary: #1f6feb;--color-diff-blob-addition-num-text: #e6edf3;--color-diff-blob-addition-fg: #e6edf3;--color-diff-blob-addition-num-bg: rgba(63,185,80,.3);--color-diff-blob-addition-line-bg: rgba(46,160,67,.15);--color-diff-blob-addition-word-bg: rgba(46,160,67,.4);--color-diff-blob-deletion-num-text: #e6edf3;--color-diff-blob-deletion-fg: #e6edf3;--color-diff-blob-deletion-num-bg: rgba(248,81,73,.3);--color-diff-blob-deletion-line-bg: rgba(248,81,73,.1);--color-diff-blob-deletion-word-bg: rgba(248,81,73,.4);--color-diff-blob-hunk-num-bg: rgba(56,139,253,.4);--color-diff-blob-expander-icon: #7d8590;--color-diff-blob-selected-line-highlight-mix-blend-mode: screen;--color-diffstat-deletion-border: rgba(240,246,252,.1);--color-diffstat-addition-border: rgba(240,246,252,.1);--color-diffstat-addition-bg: #3fb950;--color-search-keyword-hl: rgba(210,153,34,.4);--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-codemirror-text: #e6edf3;--color-codemirror-bg: #0d1117;--color-codemirror-gutters-bg: #0d1117;--color-codemirror-guttermarker-text: #0d1117;--color-codemirror-guttermarker-subtle-text: #6e7681;--color-codemirror-linenumber-text: #7d8590;--color-codemirror-cursor: #e6edf3;--color-codemirror-selection-bg: rgba(56,139,253,.4);--color-codemirror-activeline-bg: rgba(110,118,129,.1);--color-codemirror-matchingbracket-text: #e6edf3;--color-codemirror-lines-bg: #0d1117;--color-codemirror-syntax-comment: #8b949e;--color-codemirror-syntax-constant: #79c0ff;--color-codemirror-syntax-entity: #d2a8ff;--color-codemirror-syntax-keyword: #ff7b72;--color-codemirror-syntax-storage: #ff7b72;--color-codemirror-syntax-string: #a5d6ff;--color-codemirror-syntax-support: #79c0ff;--color-codemirror-syntax-variable: #ffa657;--color-checks-bg: #010409;--color-checks-run-border-width: 1px;--color-checks-container-border-width: 1px;--color-checks-text-primary: #e6edf3;--color-checks-text-secondary: #7d8590;--color-checks-text-link: #2f81f7;--color-checks-btn-icon: #7d8590;--color-checks-btn-hover-icon: #e6edf3;--color-checks-btn-hover-bg: rgba(110,118,129,.1);--color-checks-input-text: #7d8590;--color-checks-input-placeholder-text: #6e7681;--color-checks-input-focus-text: #e6edf3;--color-checks-input-bg: #161b22;--color-checks-donut-error: #f85149;--color-checks-donut-pending: #d29922;--color-checks-donut-success: #2ea043;--color-checks-donut-neutral: #8b949e;--color-checks-dropdown-text: #e6edf3;--color-checks-dropdown-bg: #161b22;--color-checks-dropdown-border: #30363d;--color-checks-dropdown-shadow: rgba(1,4,9,.3);--color-checks-dropdown-hover-text: #e6edf3;--color-checks-dropdown-hover-bg: rgba(110,118,129,.1);--color-checks-dropdown-btn-hover-text: #e6edf3;--color-checks-dropdown-btn-hover-bg: rgba(110,118,129,.1);--color-checks-scrollbar-thumb-bg: rgba(110,118,129,.4);--color-checks-header-label-text: #7d8590;--color-checks-header-label-open-text: #e6edf3;--color-checks-header-border: #21262d;--color-checks-header-icon: #7d8590;--color-checks-line-text: #7d8590;--color-checks-line-num-text: #6e7681;--color-checks-line-timestamp-text: #6e7681;--color-checks-line-hover-bg: rgba(110,118,129,.1);--color-checks-line-selected-bg: rgba(56,139,253,.1);--color-checks-line-selected-num-text: #2f81f7;--color-checks-line-dt-fm-text: #ffffff;--color-checks-line-dt-fm-bg: #9e6a03;--color-checks-gate-bg: rgba(187,128,9,.15);--color-checks-gate-text: #7d8590;--color-checks-gate-waiting-text: #d29922;--color-checks-step-header-open-bg: #161b22;--color-checks-step-error-text: #f85149;--color-checks-step-warning-text: #d29922;--color-checks-logline-text: #7d8590;--color-checks-logline-num-text: #6e7681;--color-checks-logline-debug-text: #a371f7;--color-checks-logline-error-text: #7d8590;--color-checks-logline-error-num-text: #6e7681;--color-checks-logline-error-bg: rgba(248,81,73,.1);--color-checks-logline-warning-text: #7d8590;--color-checks-logline-warning-num-text: #d29922;--color-checks-logline-warning-bg: rgba(187,128,9,.15);--color-checks-logline-command-text: #2f81f7;--color-checks-logline-section-text: #3fb950;--color-checks-ansi-black: #0d1117;--color-checks-ansi-black-bright: #161b22;--color-checks-ansi-white: #b1bac4;--color-checks-ansi-white-bright: #b1bac4;--color-checks-ansi-gray: #6e7681;--color-checks-ansi-red: #ff7b72;--color-checks-ansi-red-bright: #ffa198;--color-checks-ansi-green: #3fb950;--color-checks-ansi-green-bright: #56d364;--color-checks-ansi-yellow: #d29922;--color-checks-ansi-yellow-bright: #e3b341;--color-checks-ansi-blue: #58a6ff;--color-checks-ansi-blue-bright: #79c0ff;--color-checks-ansi-magenta: #bc8cff;--color-checks-ansi-magenta-bright: #d2a8ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #0d1117;--color-project-sidebar-bg: #161b22;--color-project-gradient-in: #161b22;--color-project-gradient-out: rgba(22,27,34,0);--color-mktg-btn-bg: #f6f8fa;--color-mktg-btn-shadow-outline: rgb(255 255 255 / 25%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(255 255 255 / 25%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 4px 7px rgba(0, 0, 0, .15), 0 100px 80px rgba(255, 255, 255, .02), 0 42px 33px rgba(255, 255, 255, .024), 0 22px 18px rgba(255, 255, 255, .028), 0 12px 10px rgba(255, 255, 255, .034), 0 7px 5px rgba(255, 255, 255, .04), 0 3px 2px rgba(255, 255, 255, .07);--color-mktg-btn-shadow-hover-muted: rgb(255 255 255) 0 0 0 2px inset;--color-control-border-color-emphasis: #606771;--color-avatar-bg: rgba(255,255,255,.1);--color-avatar-border: rgba(240,246,252,.1);--color-avatar-stack-fade: #30363d;--color-avatar-stack-fade-more: #21262d;--color-avatar-child-shadow: 0 0 0 2px #0d1117;--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: #484f58;--color-select-menu-tap-highlight: rgba(48,54,61,.5);--color-select-menu-tap-focus-bg: #0c2d6b;--color-overlay-shadow: 0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,.85);--color-overlay-backdrop: rgba(22,27,34,.4);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #161b22;--color-header-divider: #8b949e;--color-header-logo: #f0f6fc;--color-header-search-bg: #0d1117;--color-header-search-border: #30363d;--color-sidenav-selected-bg: #21262d;--color-menu-bg-active: #161b22;--color-input-disabled-bg: rgba(110,118,129,0);--color-timeline-badge-bg: #21262d;--color-ansi-black: #484f58;--color-ansi-black-bright: #6e7681;--color-ansi-white: #b1bac4;--color-ansi-white-bright: #ffffff;--color-ansi-gray: #6e7681;--color-ansi-red: #ff7b72;--color-ansi-red-bright: #ffa198;--color-ansi-green: #3fb950;--color-ansi-green-bright: #56d364;--color-ansi-yellow: #d29922;--color-ansi-yellow-bright: #e3b341;--color-ansi-blue: #58a6ff;--color-ansi-blue-bright: #79c0ff;--color-ansi-magenta: #bc8cff;--color-ansi-magenta-bright: #d2a8ff;--color-ansi-cyan: #39c5cf;--color-ansi-cyan-bright: #56d4dd;--color-btn-text: #c9d1d9;--color-btn-bg: #21262d;--color-btn-border: rgba(240,246,252,.1);--color-btn-shadow: 0 0 transparent;--color-btn-inset-shadow: 0 0 transparent;--color-btn-hover-bg: #30363d;--color-btn-hover-border: #8b949e;--color-btn-active-bg: hsla(212,12%,18%,1);--color-btn-active-border: #6e7681;--color-btn-selected-bg: #161b22;--color-btn-counter-bg: #30363d;--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #238636;--color-btn-primary-border: rgba(240,246,252,.1);--color-btn-primary-shadow: 0 0 transparent;--color-btn-primary-inset-shadow: 0 0 transparent;--color-btn-primary-hover-bg: #2ea043;--color-btn-primary-hover-border: rgba(240,246,252,.1);--color-btn-primary-selected-bg: #238636;--color-btn-primary-selected-shadow: 0 0 transparent;--color-btn-primary-disabled-text: rgba(255,255,255,.5);--color-btn-primary-disabled-bg: rgba(35,134,54,.6);--color-btn-primary-disabled-border: rgba(240,246,252,.1);--color-btn-primary-icon: #ffffff;--color-btn-primary-counter-bg: rgba(4,38,15,.2);--color-btn-outline-text: #388bfd;--color-btn-outline-hover-text: #58a6ff;--color-btn-outline-hover-bg: #30363d;--color-btn-outline-hover-border: rgba(240,246,252,.1);--color-btn-outline-hover-shadow: 0 1px 0 rgba(1,4,9,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(5,29,77,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: #0d419d;--color-btn-outline-selected-border: rgba(240,246,252,.1);--color-btn-outline-selected-shadow: 0 0 transparent;--color-btn-outline-disabled-text: rgba(88,166,255,.5);--color-btn-outline-disabled-bg: #0d1117;--color-btn-outline-disabled-counter-bg: rgba(31,111,235,.05);--color-btn-outline-counter-bg: rgba(5,29,77,.2);--color-btn-outline-hover-counter-fg: #58a6ff;--color-btn-outline-disabled-counter-fg: rgba(47,129,247,.5);--color-btn-outline-counter-fg: #388bfd;--color-btn-danger-text: #f85149;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #da3633;--color-btn-danger-hover-border: #f85149;--color-btn-danger-hover-shadow: 0 0 transparent;--color-btn-danger-hover-inset-shadow: 0 0 transparent;--color-btn-danger-hover-icon: #ffffff;--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: #b62324;--color-btn-danger-selected-border: #ff7b72;--color-btn-danger-selected-shadow: 0 0 transparent;--color-btn-danger-disabled-text: rgba(248,81,73,.5);--color-btn-danger-disabled-bg: #0d1117;--color-btn-danger-disabled-counter-bg: rgba(218,54,51,.05);--color-btn-danger-counter-bg: rgba(73,2,2,.2);--color-btn-danger-icon: #f85149;--color-btn-danger-counter-fg: #f85149;--color-btn-danger-disabled-counter-fg: rgba(248,81,73,.5);--color-btn-danger-hover-counter-fg: #ffffff;--color-underlinenav-icon: #6e7681;--color-underlinenav-border-hover: rgba(110,118,129,.4);--color-action-list-item-inline-divider: rgba(48,54,61,.48);--color-action-list-item-default-hover-bg: rgba(177,186,196,.12);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(177,186,196,.2);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(177,186,196,.08);--color-action-list-item-danger-hover-bg: rgba(248,81,73,.16);--color-action-list-item-danger-active-bg: rgba(248,81,73,.24);--color-action-list-item-danger-hover-text: #ff7b72;--color-switch-track-bg: rgba(110,118,129,.1);--color-switch-track-hover-bg: hsla(215,8%,72%,.1);--color-switch-track-active-bg: rgba(110,118,129,.4);--color-switch-track-disabled-bg: #21262d;--color-switch-track-fg: #7d8590;--color-switch-track-disabled-fg: #010409;--color-switch-track-border: rgba(0,0,0,0);--color-switch-track-checked-bg: rgba(31,111,235,.35);--color-switch-track-checked-hover-bg: rgba(31,111,235,.5);--color-switch-track-checked-active-bg: rgba(31,111,235,.65);--color-switch-track-checked-fg: #ffffff;--color-switch-track-checked-disabled-fg: #010409;--color-switch-track-checked-border: rgba(0,0,0,0);--color-switch-knob-bg: #0d1117;--color-switch-knob-border: #606771;--color-switch-knob-disabled-bg: #161b22;--color-switch-knob-checked-bg: #0d1117;--color-switch-knob-checked-disabled-bg: #161b22;--color-switch-knob-checked-border: rgba(31,111,235,.35);--color-segmented-control-bg: rgba(110,118,129,.1);--color-segmented-control-button-bg: #0d1117;--color-segmented-control-button-hover-bg: #30363d;--color-segmented-control-button-active-bg: #21262d;--color-segmented-control-button-selected-border: #6e7681;--color-tree-view-item-chevron-hover-bg: rgba(177,186,196,.12);--color-tree-view-item-directory-fill: #7d8590;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #0d1117;--color-canvas-overlay: #161b22;--color-canvas-inset: #010409;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-border-subtle: rgba(240,246,252,.1);--color-shadow-small: 0 0 transparent;--color-shadow-medium: 0 3px 6px #010409;--color-shadow-large: 0 8px 24px #010409;--color-shadow-extra-large: 0 12px 48px #010409;--color-neutral-emphasis-plus: #6e7681;--color-neutral-emphasis: #6e7681;--color-neutral-muted: rgba(110,118,129,.4);--color-neutral-subtle: rgba(110,118,129,.1);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-accent-muted: rgba(56,139,253,.4);--color-accent-subtle: rgba(56,139,253,.1);--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-success-muted: rgba(46,160,67,.4);--color-success-subtle: rgba(46,160,67,.15);--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-attention-muted: rgba(187,128,9,.4);--color-attention-subtle: rgba(187,128,9,.15);--color-severe-fg: #db6d28;--color-severe-emphasis: #bd561d;--color-severe-muted: rgba(219,109,40,.4);--color-severe-subtle: rgba(219,109,40,.1);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-danger-muted: rgba(248,81,73,.4);--color-danger-subtle: rgba(248,81,73,.1);--color-open-fg: #3fb950;--color-open-emphasis: #238636;--color-open-muted: rgba(46,160,67,.4);--color-open-subtle: rgba(46,160,67,.15);--color-closed-fg: #f85149;--color-closed-emphasis: #da3633;--color-closed-muted: rgba(248,81,73,.4);--color-closed-subtle: rgba(248,81,73,.15);--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-done-muted: rgba(163,113,247,.4);--color-done-subtle: rgba(163,113,247,.1);--color-sponsors-fg: #db61a2;--color-sponsors-emphasis: #bf4b8a;--color-sponsors-muted: rgba(219,97,162,.4);--color-sponsors-subtle: rgba(219,97,162,.1);--color-primer-fg-disabled: #484f58;--color-primer-canvas-backdrop: rgba(1,4,9,.8);--color-primer-canvas-sticky: rgba(13,17,23,.95);--color-primer-border-active: #f78166;--color-primer-border-contrast: rgba(255,255,255,.2);--color-primer-shadow-highlight: 0 0 transparent;--color-primer-shadow-inset: 0 0 transparent;--color-scale-black: #010409;--color-scale-white: #ffffff;--color-scale-gray-0: #f0f6fc;--color-scale-gray-1: #c9d1d9;--color-scale-gray-2: #b1bac4;--color-scale-gray-3: #8b949e;--color-scale-gray-4: #6e7681;--color-scale-gray-5: #484f58;--color-scale-gray-6: #30363d;--color-scale-gray-7: #21262d;--color-scale-gray-8: #161b22;--color-scale-gray-9: #0d1117;--color-scale-blue-0: #cae8ff;--color-scale-blue-1: #a5d6ff;--color-scale-blue-2: #79c0ff;--color-scale-blue-3: #58a6ff;--color-scale-blue-4: #388bfd;--color-scale-blue-5: #1f6feb;--color-scale-blue-6: #1158c7;--color-scale-blue-7: #0d419d;--color-scale-blue-8: #0c2d6b;--color-scale-blue-9: #051d4d;--color-scale-green-0: #aff5b4;--color-scale-green-1: #7ee787;--color-scale-green-2: #56d364;--color-scale-green-3: #3fb950;--color-scale-green-4: #2ea043;--color-scale-green-5: #238636;--color-scale-green-6: #196c2e;--color-scale-green-7: #0f5323;--color-scale-green-8: #033a16;--color-scale-green-9: #04260f;--color-scale-yellow-0: #f8e3a1;--color-scale-yellow-1: #f2cc60;--color-scale-yellow-2: #e3b341;--color-scale-yellow-3: #d29922;--color-scale-yellow-4: #bb8009;--color-scale-yellow-5: #9e6a03;--color-scale-yellow-6: #845306;--color-scale-yellow-7: #693e00;--color-scale-yellow-8: #4b2900;--color-scale-yellow-9: #341a00;--color-scale-orange-0: #ffdfb6;--color-scale-orange-1: #ffc680;--color-scale-orange-2: #ffa657;--color-scale-orange-3: #f0883e;--color-scale-orange-4: #db6d28;--color-scale-orange-5: #bd561d;--color-scale-orange-6: #9b4215;--color-scale-orange-7: #762d0a;--color-scale-orange-8: #5a1e02;--color-scale-orange-9: #3d1300;--color-scale-red-0: #ffdcd7;--color-scale-red-1: #ffc1ba;--color-scale-red-2: #ffa198;--color-scale-red-3: #ff7b72;--color-scale-red-4: #f85149;--color-scale-red-5: #da3633;--color-scale-red-6: #b62324;--color-scale-red-7: #8e1519;--color-scale-red-8: #67060c;--color-scale-red-9: #490202;--color-scale-purple-0: #eddeff;--color-scale-purple-1: #e2c5ff;--color-scale-purple-2: #d2a8ff;--color-scale-purple-3: #bc8cff;--color-scale-purple-4: #a371f7;--color-scale-purple-5: #8957e5;--color-scale-purple-6: #6e40c9;--color-scale-purple-7: #553098;--color-scale-purple-8: #3c1e70;--color-scale-purple-9: #271052;--color-scale-pink-0: #ffdaec;--color-scale-pink-1: #ffbedd;--color-scale-pink-2: #ff9bce;--color-scale-pink-3: #f778ba;--color-scale-pink-4: #db61a2;--color-scale-pink-5: #bf4b8a;--color-scale-pink-6: #9e3670;--color-scale-pink-7: #7d2457;--color-scale-pink-8: #5e103e;--color-scale-pink-9: #42062a;--color-scale-coral-0: #ffddd2;--color-scale-coral-1: #ffc2b2;--color-scale-coral-2: #ffa28b;--color-scale-coral-3: #f78166;--color-scale-coral-4: #ea6045;--color-scale-coral-5: #cf462d;--color-scale-coral-6: #ac3220;--color-scale-coral-7: #872012;--color-scale-coral-8: #640d04;--color-scale-coral-9: #460701}.code-diff-view[theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}.code-diff-view[theme=dark] code.hljs{padding:3px 5px}.code-diff-view[theme=dark] .hljs{color:#c9d1d9;background:#0d1117}.code-diff-view[theme=dark] .hljs-doctag,.code-diff-view[theme=dark] .hljs-keyword,.code-diff-view[theme=dark] .hljs-meta .hljs-keyword,.code-diff-view[theme=dark] .hljs-template-tag,.code-diff-view[theme=dark] .hljs-template-variable,.code-diff-view[theme=dark] .hljs-type,.code-diff-view[theme=dark] .hljs-variable.language_{color:#ff7b72}.code-diff-view[theme=dark] .hljs-title,.code-diff-view[theme=dark] .hljs-title.class_,.code-diff-view[theme=dark] .hljs-title.class_.inherited__,.code-diff-view[theme=dark] .hljs-title.function_{color:#d2a8ff}.code-diff-view[theme=dark] .hljs-attr,.code-diff-view[theme=dark] .hljs-attribute,.code-diff-view[theme=dark] .hljs-literal,.code-diff-view[theme=dark] .hljs-meta,.code-diff-view[theme=dark] .hljs-number,.code-diff-view[theme=dark] .hljs-operator,.code-diff-view[theme=dark] .hljs-variable,.code-diff-view[theme=dark] .hljs-selector-attr,.code-diff-view[theme=dark] .hljs-selector-class,.code-diff-view[theme=dark] .hljs-selector-id{color:#79c0ff}.code-diff-view[theme=dark] .hljs-regexp,.code-diff-view[theme=dark] .hljs-string,.code-diff-view[theme=dark] .hljs-meta .hljs-string{color:#a5d6ff}.code-diff-view[theme=dark] .hljs-built_in,.code-diff-view[theme=dark] .hljs-symbol{color:#ffa657}.code-diff-view[theme=dark] .hljs-comment,.code-diff-view[theme=dark] .hljs-code,.code-diff-view[theme=dark] .hljs-formula{color:#8b949e}.code-diff-view[theme=dark] .hljs-name,.code-diff-view[theme=dark] .hljs-quote,.code-diff-view[theme=dark] .hljs-selector-tag,.code-diff-view[theme=dark] .hljs-selector-pseudo{color:#7ee787}.code-diff-view[theme=dark] .hljs-subst{color:#c9d1d9}.code-diff-view[theme=dark] .hljs-section{color:#1f6feb;font-weight:700}.code-diff-view[theme=dark] .hljs-bullet{color:#f2cc60}.code-diff-view[theme=dark] .hljs-emphasis{color:#c9d1d9;font-style:italic}.code-diff-view[theme=dark] .hljs-strong{color:#c9d1d9;font-weight:700}.code-diff-view[theme=dark] .hljs-addition{color:#aff5b4;background-color:#033a16}.code-diff-view[theme=dark] .hljs-deletion{color:#ffdcd7;background-color:#67060c}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static;box-sizing:border-box}.code-diff-view .file-header{position:sticky;top:0;z-index:1;background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .info-left{color:var(--color-fg-default)}.code-diff-view .file-header .file-info .info-right{display:flex;justify-content:space-between;align-items:center;width:50%}.code-diff-view .file-header .file-info .diff-stat{display:inline-flex;align-items:center;gap:8px}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-ignored{color:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar{margin-left:auto;margin-right:1rem}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button{background-color:transparent;color:var(--color-fg-subtle);border:none}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button svg{fill:var(--color-fg-subtle)}.code-diff-view .file-header .file-info .diff-commandbar .command-item-button:hover{background-color:var(--color-btn-outline-hover-border)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .current-diff{border:1px solid var(--color-border-muted)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .file-diff-split .no-select{user-select:none}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { defineComponent as Ae, openBlock as G, createElementBlock as W, createElementVNode as B, normalizeClass as me, unref as F, toDisplayString as ee, createCommentVNode as ve, Fragment as pe, renderList as Ke, createBlock as Ie, computed as Ee, ref as nn, watch as Wn, normalizeStyle as Qn, createVNode as De, renderSlot as tn } from "vue";
|
|
3
3
|
function ae() {
|
|
4
4
|
}
|
|
5
5
|
ae.prototype = {
|
|
@@ -13,8 +13,8 @@ ae.prototype = {
|
|
|
13
13
|
}, 0), !0) : p;
|
|
14
14
|
}
|
|
15
15
|
r = this.castInput(r), l = this.castInput(l), r = this.removeEmpty(this.tokenize(r)), l = this.removeEmpty(this.tokenize(l));
|
|
16
|
-
var i = l.length, s = r.length,
|
|
17
|
-
f.maxEditLength && (
|
|
16
|
+
var i = l.length, s = r.length, a = 1, o = i + s;
|
|
17
|
+
f.maxEditLength && (o = Math.min(o, f.maxEditLength));
|
|
18
18
|
var c = [{
|
|
19
19
|
newPos: -1,
|
|
20
20
|
components: []
|
|
@@ -24,8 +24,8 @@ ae.prototype = {
|
|
|
24
24
|
value: this.join(l),
|
|
25
25
|
count: l.length
|
|
26
26
|
}]);
|
|
27
|
-
function
|
|
28
|
-
for (var p = -1 *
|
|
27
|
+
function d() {
|
|
28
|
+
for (var p = -1 * a; p <= a; p += 2) {
|
|
29
29
|
var _ = void 0, E = c[p - 1], m = c[p + 1], v = (m ? m.newPos : 0) - p;
|
|
30
30
|
E && (c[p - 1] = void 0);
|
|
31
31
|
var A = E && E.newPos + 1 < i, D = m && 0 <= v && v < s;
|
|
@@ -33,25 +33,25 @@ ae.prototype = {
|
|
|
33
33
|
c[p] = void 0;
|
|
34
34
|
continue;
|
|
35
35
|
}
|
|
36
|
-
if (!A || D && E.newPos < m.newPos ? (_ =
|
|
37
|
-
return t(
|
|
36
|
+
if (!A || D && E.newPos < m.newPos ? (_ = Yn(m), n.pushComponent(_.components, void 0, !0)) : (_ = E, _.newPos++, n.pushComponent(_.components, !0, void 0)), v = n.extractCommon(_, l, r, p), _.newPos + 1 >= i && v + 1 >= s)
|
|
37
|
+
return t(Zn(n, _.components, l, r, n.useLongestToken));
|
|
38
38
|
c[p] = _;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
a++;
|
|
41
41
|
}
|
|
42
42
|
if (g)
|
|
43
43
|
(function p() {
|
|
44
44
|
setTimeout(function() {
|
|
45
|
-
if (
|
|
45
|
+
if (a > o)
|
|
46
46
|
return g();
|
|
47
|
-
|
|
47
|
+
d() || p();
|
|
48
48
|
}, 0);
|
|
49
49
|
})();
|
|
50
50
|
else
|
|
51
|
-
for (;
|
|
52
|
-
var
|
|
53
|
-
if (
|
|
54
|
-
return
|
|
51
|
+
for (; a <= o; ) {
|
|
52
|
+
var h = d();
|
|
53
|
+
if (h)
|
|
54
|
+
return h;
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
pushComponent: function(r, l, f) {
|
|
@@ -67,10 +67,10 @@ ae.prototype = {
|
|
|
67
67
|
});
|
|
68
68
|
},
|
|
69
69
|
extractCommon: function(r, l, f, g) {
|
|
70
|
-
for (var n = l.length, t = f.length, i = r.newPos, s = i - g,
|
|
71
|
-
i++, s++,
|
|
72
|
-
return
|
|
73
|
-
count:
|
|
70
|
+
for (var n = l.length, t = f.length, i = r.newPos, s = i - g, a = 0; i + 1 < n && s + 1 < t && this.equals(l[i + 1], f[s + 1]); )
|
|
71
|
+
i++, s++, a++;
|
|
72
|
+
return a && r.components.push({
|
|
73
|
+
count: a
|
|
74
74
|
}), r.newPos = i, s;
|
|
75
75
|
},
|
|
76
76
|
equals: function(r, l) {
|
|
@@ -91,40 +91,40 @@ ae.prototype = {
|
|
|
91
91
|
return r.join("");
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
function
|
|
94
|
+
function Zn(e, r, l, f, g) {
|
|
95
95
|
for (var n = 0, t = r.length, i = 0, s = 0; n < t; n++) {
|
|
96
|
-
var
|
|
97
|
-
if (
|
|
98
|
-
if (
|
|
96
|
+
var a = r[n];
|
|
97
|
+
if (a.removed) {
|
|
98
|
+
if (a.value = e.join(f.slice(s, s + a.count)), s += a.count, n && r[n - 1].added) {
|
|
99
99
|
var c = r[n - 1];
|
|
100
100
|
r[n - 1] = r[n], r[n] = c;
|
|
101
101
|
}
|
|
102
102
|
} else {
|
|
103
|
-
if (!
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
var p = f[s +
|
|
107
|
-
return p.length >
|
|
108
|
-
}),
|
|
103
|
+
if (!a.added && g) {
|
|
104
|
+
var o = l.slice(i, i + a.count);
|
|
105
|
+
o = o.map(function(d, h) {
|
|
106
|
+
var p = f[s + h];
|
|
107
|
+
return p.length > d.length ? p : d;
|
|
108
|
+
}), a.value = e.join(o);
|
|
109
109
|
} else
|
|
110
|
-
|
|
111
|
-
i +=
|
|
110
|
+
a.value = e.join(l.slice(i, i + a.count));
|
|
111
|
+
i += a.count, a.added || (s += a.count);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
var u = r[t - 1];
|
|
115
115
|
return t > 1 && typeof u.value == "string" && (u.added || u.removed) && e.equals("", u.value) && (r[t - 2].value += u.value, r.pop()), r;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Yn(e) {
|
|
118
118
|
return {
|
|
119
119
|
newPos: e.newPos,
|
|
120
120
|
components: e.components.slice(0)
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
var
|
|
124
|
-
function
|
|
125
|
-
return
|
|
123
|
+
var Xn = new ae();
|
|
124
|
+
function Vn(e, r, l) {
|
|
125
|
+
return Xn.diff(e, r, l);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function jn(e, r) {
|
|
128
128
|
if (typeof e == "function")
|
|
129
129
|
r.callback = e;
|
|
130
130
|
else if (e)
|
|
@@ -132,22 +132,22 @@ function Zn(e, r) {
|
|
|
132
132
|
e.hasOwnProperty(l) && (r[l] = e[l]);
|
|
133
133
|
return r;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
|
|
137
|
-
return this.options.ignoreCase && (e = e.toLowerCase(), r = r.toLowerCase()), e === r || this.options.ignoreWhitespace && !
|
|
135
|
+
var rn = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, sn = /\S/, We = new ae();
|
|
136
|
+
We.equals = function(e, r) {
|
|
137
|
+
return this.options.ignoreCase && (e = e.toLowerCase(), r = r.toLowerCase()), e === r || this.options.ignoreWhitespace && !sn.test(e) && !sn.test(r);
|
|
138
138
|
};
|
|
139
|
-
|
|
139
|
+
We.tokenize = function(e) {
|
|
140
140
|
for (var r = e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), l = 0; l < r.length - 1; l++)
|
|
141
|
-
!r[l + 1] && r[l + 2] &&
|
|
141
|
+
!r[l + 1] && r[l + 2] && rn.test(r[l]) && rn.test(r[l + 2]) && (r[l] += r[l + 2], r.splice(l + 1, 2), l--);
|
|
142
142
|
return r;
|
|
143
143
|
};
|
|
144
|
-
function
|
|
145
|
-
return l =
|
|
144
|
+
function qn(e, r, l) {
|
|
145
|
+
return l = jn(l, {
|
|
146
146
|
ignoreWhitespace: !0
|
|
147
|
-
}),
|
|
147
|
+
}), We.diff(e, r, l);
|
|
148
148
|
}
|
|
149
|
-
var
|
|
150
|
-
|
|
149
|
+
var bn = new ae();
|
|
150
|
+
bn.tokenize = function(e) {
|
|
151
151
|
var r = [], l = e.split(/(\n|\r\n)/);
|
|
152
152
|
l[l.length - 1] || l.pop();
|
|
153
153
|
for (var f = 0; f < l.length; f++) {
|
|
@@ -156,69 +156,69 @@ hn.tokenize = function(e) {
|
|
|
156
156
|
}
|
|
157
157
|
return r;
|
|
158
158
|
};
|
|
159
|
-
var
|
|
160
|
-
|
|
159
|
+
var Jn = new ae();
|
|
160
|
+
Jn.tokenize = function(e) {
|
|
161
161
|
return e.split(/(\S.+?[.!?])(?=\s+|$)/);
|
|
162
162
|
};
|
|
163
|
-
var
|
|
164
|
-
|
|
163
|
+
var et = new ae();
|
|
164
|
+
et.tokenize = function(e) {
|
|
165
165
|
return e.split(/([{}:;,]|\s+)/);
|
|
166
166
|
};
|
|
167
|
-
function
|
|
167
|
+
function Ce(e) {
|
|
168
168
|
"@babel/helpers - typeof";
|
|
169
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
169
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ce = function(r) {
|
|
170
170
|
return typeof r;
|
|
171
|
-
} :
|
|
171
|
+
} : Ce = function(r) {
|
|
172
172
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
173
|
-
},
|
|
173
|
+
}, Ce(e);
|
|
174
174
|
}
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
var nt = Object.prototype.toString, we = new ae();
|
|
176
|
+
we.useLongestToken = !0;
|
|
177
|
+
we.tokenize = bn.tokenize;
|
|
178
|
+
we.castInput = function(e) {
|
|
179
179
|
var r = this.options, l = r.undefinedReplacement, f = r.stringifyReplacer, g = f === void 0 ? function(n, t) {
|
|
180
180
|
return typeof t == "undefined" ? l : t;
|
|
181
181
|
} : f;
|
|
182
|
-
return typeof e == "string" ? e : JSON.stringify(
|
|
182
|
+
return typeof e == "string" ? e : JSON.stringify(xe(e, null, null, g), g, " ");
|
|
183
183
|
};
|
|
184
|
-
|
|
185
|
-
return ae.prototype.equals.call(
|
|
184
|
+
we.equals = function(e, r) {
|
|
185
|
+
return ae.prototype.equals.call(we, e.replace(/,([\r\n])/g, "$1"), r.replace(/,([\r\n])/g, "$1"));
|
|
186
186
|
};
|
|
187
|
-
function
|
|
187
|
+
function xe(e, r, l, f, g) {
|
|
188
188
|
r = r || [], l = l || [], f && (e = f(g, e));
|
|
189
189
|
var n;
|
|
190
190
|
for (n = 0; n < r.length; n += 1)
|
|
191
191
|
if (r[n] === e)
|
|
192
192
|
return l[n];
|
|
193
193
|
var t;
|
|
194
|
-
if (
|
|
194
|
+
if (nt.call(e) === "[object Array]") {
|
|
195
195
|
for (r.push(e), t = new Array(e.length), l.push(t), n = 0; n < e.length; n += 1)
|
|
196
|
-
t[n] =
|
|
196
|
+
t[n] = xe(e[n], r, l, f, g);
|
|
197
197
|
return r.pop(), l.pop(), t;
|
|
198
198
|
}
|
|
199
|
-
if (e && e.toJSON && (e = e.toJSON()),
|
|
199
|
+
if (e && e.toJSON && (e = e.toJSON()), Ce(e) === "object" && e !== null) {
|
|
200
200
|
r.push(e), t = {}, l.push(t);
|
|
201
201
|
var i = [], s;
|
|
202
202
|
for (s in e)
|
|
203
203
|
e.hasOwnProperty(s) && i.push(s);
|
|
204
204
|
for (i.sort(), n = 0; n < i.length; n += 1)
|
|
205
|
-
s = i[n], t[s] =
|
|
205
|
+
s = i[n], t[s] = xe(e[s], r, l, f, s);
|
|
206
206
|
r.pop(), l.pop();
|
|
207
207
|
} else
|
|
208
208
|
t = e;
|
|
209
209
|
return t;
|
|
210
210
|
}
|
|
211
|
-
var
|
|
212
|
-
|
|
211
|
+
var Ge = new ae();
|
|
212
|
+
Ge.tokenize = function(e) {
|
|
213
213
|
return e.slice();
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
Ge.join = Ge.removeEmpty = function(e) {
|
|
216
216
|
return e;
|
|
217
217
|
};
|
|
218
|
-
function
|
|
218
|
+
function tt(e) {
|
|
219
219
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var En = { exports: {} };
|
|
222
222
|
(function(e) {
|
|
223
223
|
var r = function() {
|
|
224
224
|
this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
|
|
@@ -227,42 +227,42 @@ var dn = { exports: {} };
|
|
|
227
227
|
return [n, t];
|
|
228
228
|
}, r.prototype.diff_main = function(n, t, i, s) {
|
|
229
229
|
typeof s == "undefined" && (this.Diff_Timeout <= 0 ? s = Number.MAX_VALUE : s = (/* @__PURE__ */ new Date()).getTime() + this.Diff_Timeout * 1e3);
|
|
230
|
-
var
|
|
230
|
+
var a = s;
|
|
231
231
|
if (n == null || t == null)
|
|
232
232
|
throw new Error("Null input. (diff_main)");
|
|
233
233
|
if (n == t)
|
|
234
234
|
return n ? [new r.Diff(g, n)] : [];
|
|
235
235
|
typeof i == "undefined" && (i = !0);
|
|
236
|
-
var
|
|
236
|
+
var o = i, c = this.diff_commonPrefix(n, t), u = n.substring(0, c);
|
|
237
237
|
n = n.substring(c), t = t.substring(c), c = this.diff_commonSuffix(n, t);
|
|
238
|
-
var
|
|
238
|
+
var d = n.substring(n.length - c);
|
|
239
239
|
n = n.substring(0, n.length - c), t = t.substring(0, t.length - c);
|
|
240
|
-
var
|
|
241
|
-
return u &&
|
|
240
|
+
var h = this.diff_compute_(n, t, o, a);
|
|
241
|
+
return u && h.unshift(new r.Diff(g, u)), d && h.push(new r.Diff(g, d)), this.diff_cleanupMerge(h), h;
|
|
242
242
|
}, r.prototype.diff_compute_ = function(n, t, i, s) {
|
|
243
|
-
var
|
|
243
|
+
var a;
|
|
244
244
|
if (!n)
|
|
245
245
|
return [new r.Diff(f, t)];
|
|
246
246
|
if (!t)
|
|
247
247
|
return [new r.Diff(l, n)];
|
|
248
|
-
var
|
|
248
|
+
var o = n.length > t.length ? n : t, c = n.length > t.length ? t : n, u = o.indexOf(c);
|
|
249
249
|
if (u != -1)
|
|
250
|
-
return
|
|
251
|
-
new r.Diff(f,
|
|
250
|
+
return a = [
|
|
251
|
+
new r.Diff(f, o.substring(0, u)),
|
|
252
252
|
new r.Diff(g, c),
|
|
253
253
|
new r.Diff(
|
|
254
254
|
f,
|
|
255
|
-
|
|
255
|
+
o.substring(u + c.length)
|
|
256
256
|
)
|
|
257
|
-
], n.length > t.length && (
|
|
257
|
+
], n.length > t.length && (a[0][0] = a[2][0] = l), a;
|
|
258
258
|
if (c.length == 1)
|
|
259
259
|
return [
|
|
260
260
|
new r.Diff(l, n),
|
|
261
261
|
new r.Diff(f, t)
|
|
262
262
|
];
|
|
263
|
-
var
|
|
264
|
-
if (
|
|
265
|
-
var
|
|
263
|
+
var d = this.diff_halfMatch_(n, t);
|
|
264
|
+
if (d) {
|
|
265
|
+
var h = d[0], p = d[1], _ = d[2], E = d[3], m = d[4], v = this.diff_main(h, _, i, s), A = this.diff_main(p, E, i, s);
|
|
266
266
|
return v.concat(
|
|
267
267
|
[new r.Diff(g, m)],
|
|
268
268
|
A
|
|
@@ -272,69 +272,69 @@ var dn = { exports: {} };
|
|
|
272
272
|
}, r.prototype.diff_lineMode_ = function(n, t, i) {
|
|
273
273
|
var s = this.diff_linesToChars_(n, t);
|
|
274
274
|
n = s.chars1, t = s.chars2;
|
|
275
|
-
var
|
|
276
|
-
this.diff_charsToLines_(
|
|
277
|
-
for (var c = 0, u = 0,
|
|
278
|
-
switch (
|
|
275
|
+
var a = s.lineArray, o = this.diff_main(n, t, !1, i);
|
|
276
|
+
this.diff_charsToLines_(o, a), this.diff_cleanupSemantic(o), o.push(new r.Diff(g, ""));
|
|
277
|
+
for (var c = 0, u = 0, d = 0, h = "", p = ""; c < o.length; ) {
|
|
278
|
+
switch (o[c][0]) {
|
|
279
279
|
case f:
|
|
280
|
-
|
|
280
|
+
d++, p += o[c][1];
|
|
281
281
|
break;
|
|
282
282
|
case l:
|
|
283
|
-
u++,
|
|
283
|
+
u++, h += o[c][1];
|
|
284
284
|
break;
|
|
285
285
|
case g:
|
|
286
|
-
if (u >= 1 &&
|
|
287
|
-
|
|
288
|
-
c - u -
|
|
289
|
-
u +
|
|
290
|
-
), c = c - u -
|
|
291
|
-
for (var _ = this.diff_main(
|
|
292
|
-
|
|
286
|
+
if (u >= 1 && d >= 1) {
|
|
287
|
+
o.splice(
|
|
288
|
+
c - u - d,
|
|
289
|
+
u + d
|
|
290
|
+
), c = c - u - d;
|
|
291
|
+
for (var _ = this.diff_main(h, p, !1, i), E = _.length - 1; E >= 0; E--)
|
|
292
|
+
o.splice(c, 0, _[E]);
|
|
293
293
|
c = c + _.length;
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
d = 0, u = 0, h = "", p = "";
|
|
296
296
|
break;
|
|
297
297
|
}
|
|
298
298
|
c++;
|
|
299
299
|
}
|
|
300
|
-
return
|
|
300
|
+
return o.pop(), o;
|
|
301
301
|
}, r.prototype.diff_bisect_ = function(n, t, i) {
|
|
302
|
-
for (var s = n.length,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
for (var _ = s -
|
|
302
|
+
for (var s = n.length, a = t.length, o = Math.ceil((s + a) / 2), c = o, u = 2 * o, d = new Array(u), h = new Array(u), p = 0; p < u; p++)
|
|
303
|
+
d[p] = -1, h[p] = -1;
|
|
304
|
+
d[c + 1] = 0, h[c + 1] = 0;
|
|
305
|
+
for (var _ = s - a, E = _ % 2 != 0, m = 0, v = 0, A = 0, D = 0, S = 0; S < o && !((/* @__PURE__ */ new Date()).getTime() > i); S++) {
|
|
306
306
|
for (var M = -S + m; M <= S - v; M += 2) {
|
|
307
307
|
var R = c + M, L;
|
|
308
|
-
M == -S || M != S &&
|
|
309
|
-
for (var I = L - M; L < s && I <
|
|
308
|
+
M == -S || M != S && d[R - 1] < d[R + 1] ? L = d[R + 1] : L = d[R - 1] + 1;
|
|
309
|
+
for (var I = L - M; L < s && I < a && n.charAt(L) == t.charAt(I); )
|
|
310
310
|
L++, I++;
|
|
311
|
-
if (
|
|
311
|
+
if (d[R] = L, L > s)
|
|
312
312
|
v += 2;
|
|
313
|
-
else if (I >
|
|
313
|
+
else if (I > a)
|
|
314
314
|
m += 2;
|
|
315
315
|
else if (E) {
|
|
316
|
-
var
|
|
317
|
-
if (
|
|
318
|
-
var
|
|
319
|
-
if (L >=
|
|
316
|
+
var P = c + _ - M;
|
|
317
|
+
if (P >= 0 && P < u && h[P] != -1) {
|
|
318
|
+
var $ = s - h[P];
|
|
319
|
+
if (L >= $)
|
|
320
320
|
return this.diff_bisectSplit_(n, t, L, I, i);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
for (var K = -S + A; K <= S - D; K += 2) {
|
|
325
|
-
var
|
|
326
|
-
K == -S || K != S &&
|
|
327
|
-
for (var Y =
|
|
328
|
-
|
|
329
|
-
if (
|
|
325
|
+
var P = c + K, $;
|
|
326
|
+
K == -S || K != S && h[P - 1] < h[P + 1] ? $ = h[P + 1] : $ = h[P - 1] + 1;
|
|
327
|
+
for (var Y = $ - K; $ < s && Y < a && n.charAt(s - $ - 1) == t.charAt(a - Y - 1); )
|
|
328
|
+
$++, Y++;
|
|
329
|
+
if (h[P] = $, $ > s)
|
|
330
330
|
D += 2;
|
|
331
|
-
else if (Y >
|
|
331
|
+
else if (Y > a)
|
|
332
332
|
A += 2;
|
|
333
333
|
else if (!E) {
|
|
334
334
|
var R = c + _ - K;
|
|
335
|
-
if (R >= 0 && R < u &&
|
|
336
|
-
var L =
|
|
337
|
-
if (
|
|
335
|
+
if (R >= 0 && R < u && d[R] != -1) {
|
|
336
|
+
var L = d[R], I = c + L - R;
|
|
337
|
+
if ($ = s - $, L >= $)
|
|
338
338
|
return this.diff_bisectSplit_(n, t, L, I, i);
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -344,56 +344,56 @@ var dn = { exports: {} };
|
|
|
344
344
|
new r.Diff(l, n),
|
|
345
345
|
new r.Diff(f, t)
|
|
346
346
|
];
|
|
347
|
-
}, r.prototype.diff_bisectSplit_ = function(n, t, i, s,
|
|
348
|
-
var
|
|
349
|
-
return
|
|
347
|
+
}, r.prototype.diff_bisectSplit_ = function(n, t, i, s, a) {
|
|
348
|
+
var o = n.substring(0, i), c = t.substring(0, s), u = n.substring(i), d = t.substring(s), h = this.diff_main(o, c, !1, a), p = this.diff_main(u, d, !1, a);
|
|
349
|
+
return h.concat(p);
|
|
350
350
|
}, r.prototype.diff_linesToChars_ = function(n, t) {
|
|
351
351
|
var i = [], s = {};
|
|
352
352
|
i[0] = "";
|
|
353
|
-
function
|
|
354
|
-
for (var
|
|
355
|
-
_ =
|
|
356
|
-
`, p), _ == -1 && (_ =
|
|
357
|
-
var m =
|
|
358
|
-
(s.hasOwnProperty ? s.hasOwnProperty(m) : s[m] !== void 0) ?
|
|
353
|
+
function a(d) {
|
|
354
|
+
for (var h = "", p = 0, _ = -1, E = i.length; _ < d.length - 1; ) {
|
|
355
|
+
_ = d.indexOf(`
|
|
356
|
+
`, p), _ == -1 && (_ = d.length - 1);
|
|
357
|
+
var m = d.substring(p, _ + 1);
|
|
358
|
+
(s.hasOwnProperty ? s.hasOwnProperty(m) : s[m] !== void 0) ? h += String.fromCharCode(s[m]) : (E == o && (m = d.substring(p), _ = d.length), h += String.fromCharCode(E), s[m] = E, i[E++] = m), p = _ + 1;
|
|
359
359
|
}
|
|
360
|
-
return
|
|
360
|
+
return h;
|
|
361
361
|
}
|
|
362
|
-
var
|
|
363
|
-
|
|
364
|
-
var u =
|
|
362
|
+
var o = 4e4, c = a(n);
|
|
363
|
+
o = 65535;
|
|
364
|
+
var u = a(t);
|
|
365
365
|
return { chars1: c, chars2: u, lineArray: i };
|
|
366
366
|
}, r.prototype.diff_charsToLines_ = function(n, t) {
|
|
367
367
|
for (var i = 0; i < n.length; i++) {
|
|
368
|
-
for (var s = n[i][1],
|
|
369
|
-
o
|
|
370
|
-
n[i][1] =
|
|
368
|
+
for (var s = n[i][1], a = [], o = 0; o < s.length; o++)
|
|
369
|
+
a[o] = t[s.charCodeAt(o)];
|
|
370
|
+
n[i][1] = a.join("");
|
|
371
371
|
}
|
|
372
372
|
}, r.prototype.diff_commonPrefix = function(n, t) {
|
|
373
373
|
if (!n || !t || n.charAt(0) != t.charAt(0))
|
|
374
374
|
return 0;
|
|
375
|
-
for (var i = 0, s = Math.min(n.length, t.length),
|
|
376
|
-
n.substring(
|
|
377
|
-
return
|
|
375
|
+
for (var i = 0, s = Math.min(n.length, t.length), a = s, o = 0; i < a; )
|
|
376
|
+
n.substring(o, a) == t.substring(o, a) ? (i = a, o = i) : s = a, a = Math.floor((s - i) / 2 + i);
|
|
377
|
+
return a;
|
|
378
378
|
}, r.prototype.diff_commonSuffix = function(n, t) {
|
|
379
379
|
if (!n || !t || n.charAt(n.length - 1) != t.charAt(t.length - 1))
|
|
380
380
|
return 0;
|
|
381
|
-
for (var i = 0, s = Math.min(n.length, t.length),
|
|
382
|
-
n.substring(n.length -
|
|
383
|
-
return
|
|
381
|
+
for (var i = 0, s = Math.min(n.length, t.length), a = s, o = 0; i < a; )
|
|
382
|
+
n.substring(n.length - a, n.length - o) == t.substring(t.length - a, t.length - o) ? (i = a, o = i) : s = a, a = Math.floor((s - i) / 2 + i);
|
|
383
|
+
return a;
|
|
384
384
|
}, r.prototype.diff_commonOverlap_ = function(n, t) {
|
|
385
385
|
var i = n.length, s = t.length;
|
|
386
386
|
if (i == 0 || s == 0)
|
|
387
387
|
return 0;
|
|
388
388
|
i > s ? n = n.substring(i - s) : i < s && (t = t.substring(0, i));
|
|
389
|
-
var
|
|
389
|
+
var a = Math.min(i, s);
|
|
390
390
|
if (n == t)
|
|
391
|
-
return
|
|
392
|
-
for (var
|
|
393
|
-
var u = n.substring(
|
|
394
|
-
if (
|
|
395
|
-
return
|
|
396
|
-
c +=
|
|
391
|
+
return a;
|
|
392
|
+
for (var o = 0, c = 1; ; ) {
|
|
393
|
+
var u = n.substring(a - c), d = t.indexOf(u);
|
|
394
|
+
if (d == -1)
|
|
395
|
+
return o;
|
|
396
|
+
c += d, (d == 0 || n.substring(a - c) == t.substring(0, c)) && (o = c, c++);
|
|
397
397
|
}
|
|
398
398
|
}, r.prototype.diff_halfMatch_ = function(n, t) {
|
|
399
399
|
if (this.Diff_Timeout <= 0)
|
|
@@ -401,119 +401,119 @@ var dn = { exports: {} };
|
|
|
401
401
|
var i = n.length > t.length ? n : t, s = n.length > t.length ? t : n;
|
|
402
402
|
if (i.length < 4 || s.length * 2 < i.length)
|
|
403
403
|
return null;
|
|
404
|
-
var
|
|
405
|
-
function
|
|
406
|
-
for (var S = v.substring(D, D + Math.floor(v.length / 4)), M = -1, R = "", L, I,
|
|
407
|
-
var K =
|
|
404
|
+
var a = this;
|
|
405
|
+
function o(v, A, D) {
|
|
406
|
+
for (var S = v.substring(D, D + Math.floor(v.length / 4)), M = -1, R = "", L, I, P, $; (M = A.indexOf(S, M + 1)) != -1; ) {
|
|
407
|
+
var K = a.diff_commonPrefix(
|
|
408
408
|
v.substring(D),
|
|
409
409
|
A.substring(M)
|
|
410
|
-
), Y =
|
|
410
|
+
), Y = a.diff_commonSuffix(
|
|
411
411
|
v.substring(0, D),
|
|
412
412
|
A.substring(0, M)
|
|
413
413
|
);
|
|
414
|
-
R.length < Y + K && (R = A.substring(M - Y, M) + A.substring(M, M + K), L = v.substring(0, D - Y), I = v.substring(D + K),
|
|
414
|
+
R.length < Y + K && (R = A.substring(M - Y, M) + A.substring(M, M + K), L = v.substring(0, D - Y), I = v.substring(D + K), P = A.substring(0, M - Y), $ = A.substring(M + K));
|
|
415
415
|
}
|
|
416
416
|
return R.length * 2 >= v.length ? [
|
|
417
417
|
L,
|
|
418
418
|
I,
|
|
419
|
+
P,
|
|
419
420
|
$,
|
|
420
|
-
B,
|
|
421
421
|
R
|
|
422
422
|
] : null;
|
|
423
423
|
}
|
|
424
|
-
var c =
|
|
424
|
+
var c = o(
|
|
425
425
|
i,
|
|
426
426
|
s,
|
|
427
427
|
Math.ceil(i.length / 4)
|
|
428
|
-
), u =
|
|
428
|
+
), u = o(
|
|
429
429
|
i,
|
|
430
430
|
s,
|
|
431
431
|
Math.ceil(i.length / 2)
|
|
432
|
-
),
|
|
432
|
+
), d;
|
|
433
433
|
if (!c && !u)
|
|
434
434
|
return null;
|
|
435
|
-
u ? c ?
|
|
436
|
-
var
|
|
437
|
-
n.length > t.length ? (
|
|
438
|
-
var m =
|
|
439
|
-
return [
|
|
435
|
+
u ? c ? d = c[4].length > u[4].length ? c : u : d = u : d = c;
|
|
436
|
+
var h, p, _, E;
|
|
437
|
+
n.length > t.length ? (h = d[0], p = d[1], _ = d[2], E = d[3]) : (_ = d[0], E = d[1], h = d[2], p = d[3]);
|
|
438
|
+
var m = d[4];
|
|
439
|
+
return [h, p, _, E, m];
|
|
440
440
|
}, r.prototype.diff_cleanupSemantic = function(n) {
|
|
441
|
-
for (var t = !1, i = [], s = 0,
|
|
442
|
-
n[
|
|
443
|
-
|
|
444
|
-
|
|
441
|
+
for (var t = !1, i = [], s = 0, a = null, o = 0, c = 0, u = 0, d = 0, h = 0; o < n.length; )
|
|
442
|
+
n[o][0] == g ? (i[s++] = o, c = d, u = h, d = 0, h = 0, a = n[o][1]) : (n[o][0] == f ? d += n[o][1].length : h += n[o][1].length, a && a.length <= Math.max(c, u) && a.length <= Math.max(
|
|
443
|
+
d,
|
|
444
|
+
h
|
|
445
445
|
) && (n.splice(
|
|
446
446
|
i[s - 1],
|
|
447
447
|
0,
|
|
448
|
-
new r.Diff(l,
|
|
449
|
-
), n[i[s - 1] + 1][0] = f, s--, s--,
|
|
450
|
-
for (t && this.diff_cleanupMerge(n), this.diff_cleanupSemanticLossless(n),
|
|
451
|
-
if (n[
|
|
452
|
-
var p = n[
|
|
453
|
-
E >= m ? (E >= p.length / 2 || E >= _.length / 2) && (n.splice(
|
|
448
|
+
new r.Diff(l, a)
|
|
449
|
+
), n[i[s - 1] + 1][0] = f, s--, s--, o = s > 0 ? i[s - 1] : -1, c = 0, u = 0, d = 0, h = 0, a = null, t = !0)), o++;
|
|
450
|
+
for (t && this.diff_cleanupMerge(n), this.diff_cleanupSemanticLossless(n), o = 1; o < n.length; ) {
|
|
451
|
+
if (n[o - 1][0] == l && n[o][0] == f) {
|
|
452
|
+
var p = n[o - 1][1], _ = n[o][1], E = this.diff_commonOverlap_(p, _), m = this.diff_commonOverlap_(_, p);
|
|
453
|
+
E >= m ? (E >= p.length / 2 || E >= _.length / 2) && (n.splice(o, 0, new r.Diff(
|
|
454
454
|
g,
|
|
455
455
|
_.substring(0, E)
|
|
456
|
-
)), n[
|
|
456
|
+
)), n[o - 1][1] = p.substring(0, p.length - E), n[o + 1][1] = _.substring(E), o++) : (m >= p.length / 2 || m >= _.length / 2) && (n.splice(o, 0, new r.Diff(
|
|
457
457
|
g,
|
|
458
458
|
p.substring(0, m)
|
|
459
|
-
)), n[
|
|
459
|
+
)), n[o - 1][0] = f, n[o - 1][1] = _.substring(0, _.length - m), n[o + 1][0] = l, n[o + 1][1] = p.substring(m), o++), o++;
|
|
460
460
|
}
|
|
461
|
-
|
|
461
|
+
o++;
|
|
462
462
|
}
|
|
463
463
|
}, r.prototype.diff_cleanupSemanticLossless = function(n) {
|
|
464
464
|
function t(m, v) {
|
|
465
465
|
if (!m || !v)
|
|
466
466
|
return 6;
|
|
467
|
-
var A = m.charAt(m.length - 1), D = v.charAt(0), S = A.match(r.nonAlphaNumericRegex_), M = D.match(r.nonAlphaNumericRegex_), R = S && A.match(r.whitespaceRegex_), L = M && D.match(r.whitespaceRegex_), I = R && A.match(r.linebreakRegex_),
|
|
468
|
-
return
|
|
467
|
+
var A = m.charAt(m.length - 1), D = v.charAt(0), S = A.match(r.nonAlphaNumericRegex_), M = D.match(r.nonAlphaNumericRegex_), R = S && A.match(r.whitespaceRegex_), L = M && D.match(r.whitespaceRegex_), I = R && A.match(r.linebreakRegex_), P = L && D.match(r.linebreakRegex_), $ = I && m.match(r.blanklineEndRegex_), K = P && v.match(r.blanklineStartRegex_);
|
|
468
|
+
return $ || K ? 5 : I || P ? 4 : S && !R && L ? 3 : R || L ? 2 : S || M ? 1 : 0;
|
|
469
469
|
}
|
|
470
470
|
for (var i = 1; i < n.length - 1; ) {
|
|
471
471
|
if (n[i - 1][0] == g && n[i + 1][0] == g) {
|
|
472
|
-
var s = n[i - 1][1],
|
|
472
|
+
var s = n[i - 1][1], a = n[i][1], o = n[i + 1][1], c = this.diff_commonSuffix(s, a);
|
|
473
473
|
if (c) {
|
|
474
|
-
var u =
|
|
475
|
-
s = s.substring(0, s.length - c),
|
|
474
|
+
var u = a.substring(a.length - c);
|
|
475
|
+
s = s.substring(0, s.length - c), a = u + a.substring(0, a.length - c), o = u + o;
|
|
476
476
|
}
|
|
477
|
-
for (var
|
|
478
|
-
s +=
|
|
479
|
-
var E = t(s,
|
|
480
|
-
E >= _ && (_ = E,
|
|
477
|
+
for (var d = s, h = a, p = o, _ = t(s, a) + t(a, o); a.charAt(0) === o.charAt(0); ) {
|
|
478
|
+
s += a.charAt(0), a = a.substring(1) + o.charAt(0), o = o.substring(1);
|
|
479
|
+
var E = t(s, a) + t(a, o);
|
|
480
|
+
E >= _ && (_ = E, d = s, h = a, p = o);
|
|
481
481
|
}
|
|
482
|
-
n[i - 1][1] !=
|
|
482
|
+
n[i - 1][1] != d && (d ? n[i - 1][1] = d : (n.splice(i - 1, 1), i--), n[i][1] = h, p ? n[i + 1][1] = p : (n.splice(i + 1, 1), i--));
|
|
483
483
|
}
|
|
484
484
|
i++;
|
|
485
485
|
}
|
|
486
486
|
}, r.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/, r.whitespaceRegex_ = /\s/, r.linebreakRegex_ = /[\r\n]/, r.blanklineEndRegex_ = /\n\r?\n$/, r.blanklineStartRegex_ = /^\r?\n\r?\n/, r.prototype.diff_cleanupEfficiency = function(n) {
|
|
487
|
-
for (var t = !1, i = [], s = 0,
|
|
488
|
-
n[
|
|
487
|
+
for (var t = !1, i = [], s = 0, a = null, o = 0, c = !1, u = !1, d = !1, h = !1; o < n.length; )
|
|
488
|
+
n[o][0] == g ? (n[o][1].length < this.Diff_EditCost && (d || h) ? (i[s++] = o, c = d, u = h, a = n[o][1]) : (s = 0, a = null), d = h = !1) : (n[o][0] == l ? h = !0 : d = !0, a && (c && u && d && h || a.length < this.Diff_EditCost / 2 && c + u + d + h == 3) && (n.splice(
|
|
489
489
|
i[s - 1],
|
|
490
490
|
0,
|
|
491
|
-
new r.Diff(l,
|
|
492
|
-
), n[i[s - 1] + 1][0] = f, s--,
|
|
491
|
+
new r.Diff(l, a)
|
|
492
|
+
), n[i[s - 1] + 1][0] = f, s--, a = null, c && u ? (d = h = !0, s = 0) : (s--, o = s > 0 ? i[s - 1] : -1, d = h = !1), t = !0)), o++;
|
|
493
493
|
t && this.diff_cleanupMerge(n);
|
|
494
494
|
}, r.prototype.diff_cleanupMerge = function(n) {
|
|
495
495
|
n.push(new r.Diff(g, ""));
|
|
496
|
-
for (var t = 0, i = 0, s = 0,
|
|
496
|
+
for (var t = 0, i = 0, s = 0, a = "", o = "", c; t < n.length; )
|
|
497
497
|
switch (n[t][0]) {
|
|
498
498
|
case f:
|
|
499
|
-
s++,
|
|
499
|
+
s++, o += n[t][1], t++;
|
|
500
500
|
break;
|
|
501
501
|
case l:
|
|
502
|
-
i++,
|
|
502
|
+
i++, a += n[t][1], t++;
|
|
503
503
|
break;
|
|
504
504
|
case g:
|
|
505
|
-
i + s > 1 ? (i !== 0 && s !== 0 && (c = this.diff_commonPrefix(
|
|
505
|
+
i + s > 1 ? (i !== 0 && s !== 0 && (c = this.diff_commonPrefix(o, a), c !== 0 && (t - i - s > 0 && n[t - i - s - 1][0] == g ? n[t - i - s - 1][1] += o.substring(0, c) : (n.splice(0, 0, new r.Diff(
|
|
506
506
|
g,
|
|
507
|
-
|
|
508
|
-
)), t++),
|
|
507
|
+
o.substring(0, c)
|
|
508
|
+
)), t++), o = o.substring(c), a = a.substring(c)), c = this.diff_commonSuffix(o, a), c !== 0 && (n[t][1] = o.substring(o.length - c) + n[t][1], o = o.substring(0, o.length - c), a = a.substring(0, a.length - c))), t -= i + s, n.splice(t, i + s), a.length && (n.splice(
|
|
509
509
|
t,
|
|
510
510
|
0,
|
|
511
|
-
new r.Diff(l,
|
|
512
|
-
), t++),
|
|
511
|
+
new r.Diff(l, a)
|
|
512
|
+
), t++), o.length && (n.splice(
|
|
513
513
|
t,
|
|
514
514
|
0,
|
|
515
|
-
new r.Diff(f,
|
|
516
|
-
), t++), t++) : t !== 0 && n[t - 1][0] == g ? (n[t - 1][1] += n[t][1], n.splice(t, 1)) : t++, s = 0, i = 0,
|
|
515
|
+
new r.Diff(f, o)
|
|
516
|
+
), t++), t++) : t !== 0 && n[t - 1][0] == g ? (n[t - 1][1] += n[t][1], n.splice(t, 1)) : t++, s = 0, i = 0, a = "", o = "";
|
|
517
517
|
break;
|
|
518
518
|
}
|
|
519
519
|
n[n.length - 1][1] === "" && n.pop();
|
|
@@ -522,22 +522,22 @@ var dn = { exports: {} };
|
|
|
522
522
|
n[t - 1][0] == g && n[t + 1][0] == g && (n[t][1].substring(n[t][1].length - n[t - 1][1].length) == n[t - 1][1] ? (n[t][1] = n[t - 1][1] + n[t][1].substring(0, n[t][1].length - n[t - 1][1].length), n[t + 1][1] = n[t - 1][1] + n[t + 1][1], n.splice(t - 1, 1), u = !0) : n[t][1].substring(0, n[t + 1][1].length) == n[t + 1][1] && (n[t - 1][1] += n[t + 1][1], n[t][1] = n[t][1].substring(n[t + 1][1].length) + n[t + 1][1], n.splice(t + 1, 1), u = !0)), t++;
|
|
523
523
|
u && this.diff_cleanupMerge(n);
|
|
524
524
|
}, r.prototype.diff_xIndex = function(n, t) {
|
|
525
|
-
var i = 0, s = 0,
|
|
525
|
+
var i = 0, s = 0, a = 0, o = 0, c;
|
|
526
526
|
for (c = 0; c < n.length && (n[c][0] !== f && (i += n[c][1].length), n[c][0] !== l && (s += n[c][1].length), !(i > t)); c++)
|
|
527
|
-
|
|
528
|
-
return n.length != c && n[c][0] === l ?
|
|
527
|
+
a = i, o = s;
|
|
528
|
+
return n.length != c && n[c][0] === l ? o : o + (t - a);
|
|
529
529
|
}, r.prototype.diff_prettyHtml = function(n) {
|
|
530
|
-
for (var t = [], i = /&/g, s = /</g,
|
|
531
|
-
var u = n[c][0],
|
|
530
|
+
for (var t = [], i = /&/g, s = /</g, a = />/g, o = /\n/g, c = 0; c < n.length; c++) {
|
|
531
|
+
var u = n[c][0], d = n[c][1], h = d.replace(i, "&").replace(s, "<").replace(a, ">").replace(o, "¶<br>");
|
|
532
532
|
switch (u) {
|
|
533
533
|
case f:
|
|
534
|
-
t[c] = '<ins style="background:#e6ffe6;">' +
|
|
534
|
+
t[c] = '<ins style="background:#e6ffe6;">' + h + "</ins>";
|
|
535
535
|
break;
|
|
536
536
|
case l:
|
|
537
|
-
t[c] = '<del style="background:#ffe6e6;">' +
|
|
537
|
+
t[c] = '<del style="background:#ffe6e6;">' + h + "</del>";
|
|
538
538
|
break;
|
|
539
539
|
case g:
|
|
540
|
-
t[c] = "<span>" +
|
|
540
|
+
t[c] = "<span>" + h + "</span>";
|
|
541
541
|
break;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -551,9 +551,9 @@ var dn = { exports: {} };
|
|
|
551
551
|
n[i][0] !== l && (t[i] = n[i][1]);
|
|
552
552
|
return t.join("");
|
|
553
553
|
}, r.prototype.diff_levenshtein = function(n) {
|
|
554
|
-
for (var t = 0, i = 0, s = 0,
|
|
555
|
-
var
|
|
556
|
-
switch (
|
|
554
|
+
for (var t = 0, i = 0, s = 0, a = 0; a < n.length; a++) {
|
|
555
|
+
var o = n[a][0], c = n[a][1];
|
|
556
|
+
switch (o) {
|
|
557
557
|
case f:
|
|
558
558
|
i += c.length;
|
|
559
559
|
break;
|
|
@@ -581,9 +581,9 @@ var dn = { exports: {} };
|
|
|
581
581
|
}
|
|
582
582
|
return t.join(" ").replace(/%20/g, " ");
|
|
583
583
|
}, r.prototype.diff_fromDelta = function(n, t) {
|
|
584
|
-
for (var i = [], s = 0,
|
|
585
|
-
var u =
|
|
586
|
-
switch (
|
|
584
|
+
for (var i = [], s = 0, a = 0, o = t.split(/\t/g), c = 0; c < o.length; c++) {
|
|
585
|
+
var u = o[c].substring(1);
|
|
586
|
+
switch (o[c].charAt(0)) {
|
|
587
587
|
case "+":
|
|
588
588
|
try {
|
|
589
589
|
i[s++] = new r.Diff(f, decodeURI(u));
|
|
@@ -593,19 +593,19 @@ var dn = { exports: {} };
|
|
|
593
593
|
break;
|
|
594
594
|
case "-":
|
|
595
595
|
case "=":
|
|
596
|
-
var
|
|
597
|
-
if (isNaN(
|
|
596
|
+
var d = parseInt(u, 10);
|
|
597
|
+
if (isNaN(d) || d < 0)
|
|
598
598
|
throw new Error("Invalid number in diff_fromDelta: " + u);
|
|
599
|
-
var
|
|
600
|
-
|
|
599
|
+
var h = n.substring(a, a += d);
|
|
600
|
+
o[c].charAt(0) == "=" ? i[s++] = new r.Diff(g, h) : i[s++] = new r.Diff(l, h);
|
|
601
601
|
break;
|
|
602
602
|
default:
|
|
603
|
-
if (
|
|
604
|
-
throw new Error("Invalid diff operation in diff_fromDelta: " +
|
|
603
|
+
if (o[c])
|
|
604
|
+
throw new Error("Invalid diff operation in diff_fromDelta: " + o[c]);
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
throw new Error("Delta length (" +
|
|
607
|
+
if (a != n.length)
|
|
608
|
+
throw new Error("Delta length (" + a + ") does not equal source text length (" + n.length + ").");
|
|
609
609
|
return i;
|
|
610
610
|
}, r.prototype.match_main = function(n, t, i) {
|
|
611
611
|
if (n == null || t == null || i == null)
|
|
@@ -614,25 +614,25 @@ var dn = { exports: {} };
|
|
|
614
614
|
}, r.prototype.match_bitap_ = function(n, t, i) {
|
|
615
615
|
if (t.length > this.Match_MaxBits)
|
|
616
616
|
throw new Error("Pattern too long for this browser.");
|
|
617
|
-
var s = this.match_alphabet_(t),
|
|
618
|
-
function
|
|
619
|
-
var
|
|
620
|
-
return
|
|
617
|
+
var s = this.match_alphabet_(t), a = this;
|
|
618
|
+
function o(L, I) {
|
|
619
|
+
var P = L / t.length, $ = Math.abs(i - I);
|
|
620
|
+
return a.Match_Distance ? P + $ / a.Match_Distance : $ ? 1 : P;
|
|
621
621
|
}
|
|
622
622
|
var c = this.Match_Threshold, u = n.indexOf(t, i);
|
|
623
|
-
u != -1 && (c = Math.min(
|
|
624
|
-
var
|
|
623
|
+
u != -1 && (c = Math.min(o(0, u), c), u = n.lastIndexOf(t, i + t.length), u != -1 && (c = Math.min(o(0, u), c)));
|
|
624
|
+
var d = 1 << t.length - 1;
|
|
625
625
|
u = -1;
|
|
626
|
-
for (var
|
|
627
|
-
for (
|
|
628
|
-
|
|
626
|
+
for (var h, p, _ = t.length + n.length, E, m = 0; m < t.length; m++) {
|
|
627
|
+
for (h = 0, p = _; h < p; )
|
|
628
|
+
o(m, i + p) <= c ? h = p : _ = p, p = Math.floor((_ - h) / 2 + h);
|
|
629
629
|
_ = p;
|
|
630
630
|
var v = Math.max(1, i - p + 1), A = Math.min(i + p, n.length) + t.length, D = Array(A + 2);
|
|
631
631
|
D[A + 1] = (1 << m) - 1;
|
|
632
632
|
for (var S = A; S >= v; S--) {
|
|
633
633
|
var M = s[n.charAt(S - 1)];
|
|
634
|
-
if (m === 0 ? D[S] = (D[S + 1] << 1 | 1) & M : D[S] = (D[S + 1] << 1 | 1) & M | ((E[S + 1] | E[S]) << 1 | 1) | E[S + 1], D[S] &
|
|
635
|
-
var R =
|
|
634
|
+
if (m === 0 ? D[S] = (D[S + 1] << 1 | 1) & M : D[S] = (D[S + 1] << 1 | 1) & M | ((E[S + 1] | E[S]) << 1 | 1) | E[S + 1], D[S] & d) {
|
|
635
|
+
var R = o(m, S - 1);
|
|
636
636
|
if (R <= c)
|
|
637
637
|
if (c = R, u = S - 1, u > i)
|
|
638
638
|
v = Math.max(1, 2 * i - u);
|
|
@@ -640,7 +640,7 @@ var dn = { exports: {} };
|
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
if (
|
|
643
|
+
if (o(m + 1, i) > c)
|
|
644
644
|
break;
|
|
645
645
|
E = D;
|
|
646
646
|
}
|
|
@@ -661,62 +661,62 @@ var dn = { exports: {} };
|
|
|
661
661
|
n.start2 + n.length1 + s
|
|
662
662
|
);
|
|
663
663
|
s += this.Patch_Margin;
|
|
664
|
-
var
|
|
665
|
-
|
|
666
|
-
var
|
|
664
|
+
var a = t.substring(n.start2 - s, n.start2);
|
|
665
|
+
a && n.diffs.unshift(new r.Diff(g, a));
|
|
666
|
+
var o = t.substring(
|
|
667
667
|
n.start2 + n.length1,
|
|
668
668
|
n.start2 + n.length1 + s
|
|
669
669
|
);
|
|
670
|
-
|
|
670
|
+
o && n.diffs.push(new r.Diff(g, o)), n.start1 -= a.length, n.start2 -= a.length, n.length1 += a.length + o.length, n.length2 += a.length + o.length;
|
|
671
671
|
}
|
|
672
672
|
}, r.prototype.patch_make = function(n, t, i) {
|
|
673
|
-
var s,
|
|
673
|
+
var s, a;
|
|
674
674
|
if (typeof n == "string" && typeof t == "string" && typeof i == "undefined")
|
|
675
675
|
s = /** @type {string} */
|
|
676
|
-
n,
|
|
676
|
+
n, a = this.diff_main(
|
|
677
677
|
s,
|
|
678
678
|
/** @type {string} */
|
|
679
679
|
t,
|
|
680
680
|
!0
|
|
681
|
-
),
|
|
681
|
+
), a.length > 2 && (this.diff_cleanupSemantic(a), this.diff_cleanupEfficiency(a));
|
|
682
682
|
else if (n && typeof n == "object" && typeof t == "undefined" && typeof i == "undefined")
|
|
683
|
-
|
|
684
|
-
n, s = this.diff_text1(
|
|
683
|
+
a = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
684
|
+
n, s = this.diff_text1(a);
|
|
685
685
|
else if (typeof n == "string" && t && typeof t == "object" && typeof i == "undefined")
|
|
686
686
|
s = /** @type {string} */
|
|
687
|
-
n,
|
|
687
|
+
n, a = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
688
688
|
t;
|
|
689
689
|
else if (typeof n == "string" && typeof t == "string" && i && typeof i == "object")
|
|
690
690
|
s = /** @type {string} */
|
|
691
|
-
n,
|
|
691
|
+
n, a = /** @type {!Array.<!diff_match_patch.Diff>} */
|
|
692
692
|
i;
|
|
693
693
|
else
|
|
694
694
|
throw new Error("Unknown call format to patch_make.");
|
|
695
|
-
if (
|
|
695
|
+
if (a.length === 0)
|
|
696
696
|
return [];
|
|
697
|
-
for (var
|
|
698
|
-
var m =
|
|
699
|
-
switch (!u && m !== g && (c.start1 =
|
|
697
|
+
for (var o = [], c = new r.patch_obj(), u = 0, d = 0, h = 0, p = s, _ = s, E = 0; E < a.length; E++) {
|
|
698
|
+
var m = a[E][0], v = a[E][1];
|
|
699
|
+
switch (!u && m !== g && (c.start1 = d, c.start2 = h), m) {
|
|
700
700
|
case f:
|
|
701
|
-
c.diffs[u++] =
|
|
701
|
+
c.diffs[u++] = a[E], c.length2 += v.length, _ = _.substring(0, h) + v + _.substring(h);
|
|
702
702
|
break;
|
|
703
703
|
case l:
|
|
704
|
-
c.length1 += v.length, c.diffs[u++] =
|
|
704
|
+
c.length1 += v.length, c.diffs[u++] = a[E], _ = _.substring(0, h) + _.substring(h + v.length);
|
|
705
705
|
break;
|
|
706
706
|
case g:
|
|
707
|
-
v.length <= 2 * this.Patch_Margin && u &&
|
|
707
|
+
v.length <= 2 * this.Patch_Margin && u && a.length != E + 1 ? (c.diffs[u++] = a[E], c.length1 += v.length, c.length2 += v.length) : v.length >= 2 * this.Patch_Margin && u && (this.patch_addContext_(c, p), o.push(c), c = new r.patch_obj(), u = 0, p = _, d = h);
|
|
708
708
|
break;
|
|
709
709
|
}
|
|
710
|
-
m !== f && (
|
|
710
|
+
m !== f && (d += v.length), m !== l && (h += v.length);
|
|
711
711
|
}
|
|
712
|
-
return u && (this.patch_addContext_(c, p),
|
|
712
|
+
return u && (this.patch_addContext_(c, p), o.push(c)), o;
|
|
713
713
|
}, r.prototype.patch_deepCopy = function(n) {
|
|
714
714
|
for (var t = [], i = 0; i < n.length; i++) {
|
|
715
|
-
var s = n[i],
|
|
716
|
-
|
|
717
|
-
for (var
|
|
718
|
-
|
|
719
|
-
|
|
715
|
+
var s = n[i], a = new r.patch_obj();
|
|
716
|
+
a.diffs = [];
|
|
717
|
+
for (var o = 0; o < s.diffs.length; o++)
|
|
718
|
+
a.diffs[o] = new r.Diff(s.diffs[o][0], s.diffs[o][1]);
|
|
719
|
+
a.start1 = s.start1, a.start2 = s.start2, a.length1 = s.length1, a.length2 = s.length2, t[i] = a;
|
|
720
720
|
}
|
|
721
721
|
return t;
|
|
722
722
|
}, r.prototype.patch_apply = function(n, t) {
|
|
@@ -725,32 +725,32 @@ var dn = { exports: {} };
|
|
|
725
725
|
n = this.patch_deepCopy(n);
|
|
726
726
|
var i = this.patch_addPadding(n);
|
|
727
727
|
t = i + t + i, this.patch_splitMax(n);
|
|
728
|
-
for (var s = 0,
|
|
729
|
-
var c = n[
|
|
730
|
-
if (u.length > this.Match_MaxBits ? (
|
|
728
|
+
for (var s = 0, a = [], o = 0; o < n.length; o++) {
|
|
729
|
+
var c = n[o].start2 + s, u = this.diff_text1(n[o].diffs), d, h = -1;
|
|
730
|
+
if (u.length > this.Match_MaxBits ? (d = this.match_main(
|
|
731
731
|
t,
|
|
732
732
|
u.substring(0, this.Match_MaxBits),
|
|
733
733
|
c
|
|
734
|
-
),
|
|
734
|
+
), d != -1 && (h = this.match_main(
|
|
735
735
|
t,
|
|
736
736
|
u.substring(u.length - this.Match_MaxBits),
|
|
737
737
|
c + u.length - this.Match_MaxBits
|
|
738
|
-
), (
|
|
739
|
-
o
|
|
738
|
+
), (h == -1 || d >= h) && (d = -1))) : d = this.match_main(t, u, c), d == -1)
|
|
739
|
+
a[o] = !1, s -= n[o].length2 - n[o].length1;
|
|
740
740
|
else {
|
|
741
|
-
o
|
|
741
|
+
a[o] = !0, s = d - c;
|
|
742
742
|
var p;
|
|
743
|
-
if (
|
|
744
|
-
t = t.substring(0,
|
|
743
|
+
if (h == -1 ? p = t.substring(d, d + u.length) : p = t.substring(d, h + this.Match_MaxBits), u == p)
|
|
744
|
+
t = t.substring(0, d) + this.diff_text2(n[o].diffs) + t.substring(d + u.length);
|
|
745
745
|
else {
|
|
746
746
|
var _ = this.diff_main(u, p, !1);
|
|
747
747
|
if (u.length > this.Match_MaxBits && this.diff_levenshtein(_) / u.length > this.Patch_DeleteThreshold)
|
|
748
|
-
o
|
|
748
|
+
a[o] = !1;
|
|
749
749
|
else {
|
|
750
750
|
this.diff_cleanupSemanticLossless(_);
|
|
751
|
-
for (var E = 0, m, v = 0; v < n[
|
|
752
|
-
var A = n[
|
|
753
|
-
A[0] !== g && (m = this.diff_xIndex(_, E)), A[0] === f ? t = t.substring(0,
|
|
751
|
+
for (var E = 0, m, v = 0; v < n[o].diffs.length; v++) {
|
|
752
|
+
var A = n[o].diffs[v];
|
|
753
|
+
A[0] !== g && (m = this.diff_xIndex(_, E)), A[0] === f ? t = t.substring(0, d + m) + A[1] + t.substring(d + m) : A[0] === l && (t = t.substring(0, d + m) + t.substring(d + this.diff_xIndex(
|
|
754
754
|
_,
|
|
755
755
|
E + A[1].length
|
|
756
756
|
))), A[0] !== l && (E += A[1].length);
|
|
@@ -759,24 +759,24 @@ var dn = { exports: {} };
|
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
return t = t.substring(i.length, t.length - i.length), [t,
|
|
762
|
+
return t = t.substring(i.length, t.length - i.length), [t, a];
|
|
763
763
|
}, r.prototype.patch_addPadding = function(n) {
|
|
764
764
|
for (var t = this.Patch_Margin, i = "", s = 1; s <= t; s++)
|
|
765
765
|
i += String.fromCharCode(s);
|
|
766
766
|
for (var s = 0; s < n.length; s++)
|
|
767
767
|
n[s].start1 += t, n[s].start2 += t;
|
|
768
|
-
var
|
|
769
|
-
if (
|
|
770
|
-
|
|
771
|
-
else if (t >
|
|
772
|
-
var c = t -
|
|
773
|
-
|
|
768
|
+
var a = n[0], o = a.diffs;
|
|
769
|
+
if (o.length == 0 || o[0][0] != g)
|
|
770
|
+
o.unshift(new r.Diff(g, i)), a.start1 -= t, a.start2 -= t, a.length1 += t, a.length2 += t;
|
|
771
|
+
else if (t > o[0][1].length) {
|
|
772
|
+
var c = t - o[0][1].length;
|
|
773
|
+
o[0][1] = i.substring(o[0][1].length) + o[0][1], a.start1 -= c, a.start2 -= c, a.length1 += c, a.length2 += c;
|
|
774
774
|
}
|
|
775
|
-
if (
|
|
776
|
-
|
|
777
|
-
else if (t >
|
|
778
|
-
var c = t -
|
|
779
|
-
|
|
775
|
+
if (a = n[n.length - 1], o = a.diffs, o.length == 0 || o[o.length - 1][0] != g)
|
|
776
|
+
o.push(new r.Diff(g, i)), a.length1 += t, a.length2 += t;
|
|
777
|
+
else if (t > o[o.length - 1][1].length) {
|
|
778
|
+
var c = t - o[o.length - 1][1].length;
|
|
779
|
+
o[o.length - 1][1] += i.substring(0, c), a.length1 += c, a.length2 += c;
|
|
780
780
|
}
|
|
781
781
|
return i;
|
|
782
782
|
}, r.prototype.patch_splitMax = function(n) {
|
|
@@ -784,18 +784,18 @@ var dn = { exports: {} };
|
|
|
784
784
|
if (!(n[i].length1 <= t)) {
|
|
785
785
|
var s = n[i];
|
|
786
786
|
n.splice(i--, 1);
|
|
787
|
-
for (var
|
|
788
|
-
var u = new r.patch_obj(),
|
|
789
|
-
for (u.start1 =
|
|
790
|
-
var
|
|
791
|
-
|
|
787
|
+
for (var a = s.start1, o = s.start2, c = ""; s.diffs.length !== 0; ) {
|
|
788
|
+
var u = new r.patch_obj(), d = !0;
|
|
789
|
+
for (u.start1 = a - c.length, u.start2 = o - c.length, c !== "" && (u.length1 = u.length2 = c.length, u.diffs.push(new r.Diff(g, c))); s.diffs.length !== 0 && u.length1 < t - this.Patch_Margin; ) {
|
|
790
|
+
var h = s.diffs[0][0], p = s.diffs[0][1];
|
|
791
|
+
h === f ? (u.length2 += p.length, o += p.length, u.diffs.push(s.diffs.shift()), d = !1) : h === l && u.diffs.length == 1 && u.diffs[0][0] == g && p.length > 2 * t ? (u.length1 += p.length, a += p.length, d = !1, u.diffs.push(new r.Diff(h, p)), s.diffs.shift()) : (p = p.substring(
|
|
792
792
|
0,
|
|
793
793
|
t - u.length1 - this.Patch_Margin
|
|
794
|
-
), u.length1 += p.length,
|
|
794
|
+
), u.length1 += p.length, a += p.length, h === g ? (u.length2 += p.length, o += p.length) : d = !1, u.diffs.push(new r.Diff(h, p)), p == s.diffs[0][1] ? s.diffs.shift() : s.diffs[0][1] = s.diffs[0][1].substring(p.length));
|
|
795
795
|
}
|
|
796
796
|
c = this.diff_text2(u.diffs), c = c.substring(c.length - this.Patch_Margin);
|
|
797
797
|
var _ = this.diff_text1(s.diffs).substring(0, this.Patch_Margin);
|
|
798
|
-
_ !== "" && (u.length1 += _.length, u.length2 += _.length, u.diffs.length !== 0 && u.diffs[u.diffs.length - 1][0] === g ? u.diffs[u.diffs.length - 1][1] += _ : u.diffs.push(new r.Diff(g, _))),
|
|
798
|
+
_ !== "" && (u.length1 += _.length, u.length2 += _.length, u.diffs.length !== 0 && u.diffs[u.diffs.length - 1][0] === g ? u.diffs[u.diffs.length - 1][1] += _ : u.diffs.push(new r.Diff(g, _))), d || n.splice(++i, 0, u);
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
}, r.prototype.patch_toText = function(n) {
|
|
@@ -807,29 +807,29 @@ var dn = { exports: {} };
|
|
|
807
807
|
if (!n)
|
|
808
808
|
return t;
|
|
809
809
|
for (var i = n.split(`
|
|
810
|
-
`), s = 0,
|
|
811
|
-
var
|
|
812
|
-
if (!
|
|
810
|
+
`), s = 0, a = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/; s < i.length; ) {
|
|
811
|
+
var o = i[s].match(a);
|
|
812
|
+
if (!o)
|
|
813
813
|
throw new Error("Invalid patch string: " + i[s]);
|
|
814
814
|
var c = new r.patch_obj();
|
|
815
|
-
for (t.push(c), c.start1 = parseInt(
|
|
815
|
+
for (t.push(c), c.start1 = parseInt(o[1], 10), o[2] === "" ? (c.start1--, c.length1 = 1) : o[2] == "0" ? c.length1 = 0 : (c.start1--, c.length1 = parseInt(o[2], 10)), c.start2 = parseInt(o[3], 10), o[4] === "" ? (c.start2--, c.length2 = 1) : o[4] == "0" ? c.length2 = 0 : (c.start2--, c.length2 = parseInt(o[4], 10)), s++; s < i.length; ) {
|
|
816
816
|
var u = i[s].charAt(0);
|
|
817
817
|
try {
|
|
818
|
-
var
|
|
819
|
-
} catch (
|
|
820
|
-
throw new Error("Illegal escape in patch_fromText: " +
|
|
818
|
+
var d = decodeURI(i[s].substring(1));
|
|
819
|
+
} catch (h) {
|
|
820
|
+
throw new Error("Illegal escape in patch_fromText: " + d);
|
|
821
821
|
}
|
|
822
822
|
if (u == "-")
|
|
823
|
-
c.diffs.push(new r.Diff(l,
|
|
823
|
+
c.diffs.push(new r.Diff(l, d));
|
|
824
824
|
else if (u == "+")
|
|
825
|
-
c.diffs.push(new r.Diff(f,
|
|
825
|
+
c.diffs.push(new r.Diff(f, d));
|
|
826
826
|
else if (u == " ")
|
|
827
|
-
c.diffs.push(new r.Diff(g,
|
|
827
|
+
c.diffs.push(new r.Diff(g, d));
|
|
828
828
|
else {
|
|
829
829
|
if (u == "@")
|
|
830
830
|
break;
|
|
831
831
|
if (u !== "")
|
|
832
|
-
throw new Error('Invalid patch mode "' + u + '" in: ' +
|
|
832
|
+
throw new Error('Invalid patch mode "' + u + '" in: ' + d);
|
|
833
833
|
}
|
|
834
834
|
s++;
|
|
835
835
|
}
|
|
@@ -841,8 +841,8 @@ var dn = { exports: {} };
|
|
|
841
841
|
var n, t;
|
|
842
842
|
this.length1 === 0 ? n = this.start1 + ",0" : this.length1 == 1 ? n = this.start1 + 1 : n = this.start1 + 1 + "," + this.length1, this.length2 === 0 ? t = this.start2 + ",0" : this.length2 == 1 ? t = this.start2 + 1 : t = this.start2 + 1 + "," + this.length2;
|
|
843
843
|
for (var i = ["@@ -" + n + " +" + t + ` @@
|
|
844
|
-
`], s,
|
|
845
|
-
switch (this.diffs[
|
|
844
|
+
`], s, a = 0; a < this.diffs.length; a++) {
|
|
845
|
+
switch (this.diffs[a][0]) {
|
|
846
846
|
case f:
|
|
847
847
|
s = "+";
|
|
848
848
|
break;
|
|
@@ -853,24 +853,24 @@ var dn = { exports: {} };
|
|
|
853
853
|
s = " ";
|
|
854
854
|
break;
|
|
855
855
|
}
|
|
856
|
-
i[
|
|
856
|
+
i[a + 1] = s + encodeURI(this.diffs[a][1]) + `
|
|
857
857
|
`;
|
|
858
858
|
}
|
|
859
859
|
return i.join("").replace(/%20/g, " ");
|
|
860
860
|
}, e.exports = r, e.exports.diff_match_patch = r, e.exports.DIFF_DELETE = l, e.exports.DIFF_INSERT = f, e.exports.DIFF_EQUAL = g;
|
|
861
|
-
})(
|
|
862
|
-
var
|
|
863
|
-
function
|
|
861
|
+
})(En);
|
|
862
|
+
var Fe = En.exports;
|
|
863
|
+
function mn(e) {
|
|
864
864
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
865
865
|
throw new Error("map is read-only");
|
|
866
866
|
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
867
867
|
throw new Error("set is read-only");
|
|
868
868
|
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((r) => {
|
|
869
869
|
const l = e[r], f = typeof l;
|
|
870
|
-
(f === "object" || f === "function") && !Object.isFrozen(l) &&
|
|
870
|
+
(f === "object" || f === "function") && !Object.isFrozen(l) && mn(l);
|
|
871
871
|
}), e;
|
|
872
872
|
}
|
|
873
|
-
class
|
|
873
|
+
class an {
|
|
874
874
|
/**
|
|
875
875
|
* @param {CompiledMode} mode
|
|
876
876
|
*/
|
|
@@ -881,7 +881,7 @@ class rn {
|
|
|
881
881
|
this.isMatchIgnored = !0;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function vn(e) {
|
|
885
885
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
886
886
|
}
|
|
887
887
|
function le(e, ...r) {
|
|
@@ -894,7 +894,7 @@ function le(e, ...r) {
|
|
|
894
894
|
}), /** @type {T} */
|
|
895
895
|
l;
|
|
896
896
|
}
|
|
897
|
-
const
|
|
897
|
+
const rt = "</span>", on = (e) => !!e.scope, it = (e, { prefix: r }) => {
|
|
898
898
|
if (e.startsWith("language:"))
|
|
899
899
|
return e.replace("language:", "language-");
|
|
900
900
|
if (e.includes(".")) {
|
|
@@ -906,7 +906,7 @@ const qn = "</span>", sn = (e) => !!e.scope, et = (e, { prefix: r }) => {
|
|
|
906
906
|
}
|
|
907
907
|
return `${r}${e}`;
|
|
908
908
|
};
|
|
909
|
-
class
|
|
909
|
+
class st {
|
|
910
910
|
/**
|
|
911
911
|
* Creates a new HTMLRenderer
|
|
912
912
|
*
|
|
@@ -921,16 +921,16 @@ class nt {
|
|
|
921
921
|
*
|
|
922
922
|
* @param {string} text */
|
|
923
923
|
addText(r) {
|
|
924
|
-
this.buffer +=
|
|
924
|
+
this.buffer += vn(r);
|
|
925
925
|
}
|
|
926
926
|
/**
|
|
927
927
|
* Adds a node open to the output stream (if needed)
|
|
928
928
|
*
|
|
929
929
|
* @param {Node} node */
|
|
930
930
|
openNode(r) {
|
|
931
|
-
if (!
|
|
931
|
+
if (!on(r))
|
|
932
932
|
return;
|
|
933
|
-
const l =
|
|
933
|
+
const l = it(
|
|
934
934
|
r.scope,
|
|
935
935
|
{ prefix: this.classPrefix }
|
|
936
936
|
);
|
|
@@ -941,7 +941,7 @@ class nt {
|
|
|
941
941
|
*
|
|
942
942
|
* @param {Node} node */
|
|
943
943
|
closeNode(r) {
|
|
944
|
-
|
|
944
|
+
on(r) && (this.buffer += rt);
|
|
945
945
|
}
|
|
946
946
|
/**
|
|
947
947
|
* returns the accumulated buffer
|
|
@@ -958,13 +958,13 @@ class nt {
|
|
|
958
958
|
this.buffer += `<span class="${r}">`;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
const
|
|
961
|
+
const ln = (e = {}) => {
|
|
962
962
|
const r = { children: [] };
|
|
963
963
|
return Object.assign(r, e), r;
|
|
964
964
|
};
|
|
965
|
-
class
|
|
965
|
+
class Qe {
|
|
966
966
|
constructor() {
|
|
967
|
-
this.rootNode =
|
|
967
|
+
this.rootNode = ln(), this.stack = [this.rootNode];
|
|
968
968
|
}
|
|
969
969
|
get top() {
|
|
970
970
|
return this.stack[this.stack.length - 1];
|
|
@@ -978,7 +978,7 @@ class We {
|
|
|
978
978
|
}
|
|
979
979
|
/** @param {string} scope */
|
|
980
980
|
openNode(r) {
|
|
981
|
-
const l =
|
|
981
|
+
const l = ln({ scope: r });
|
|
982
982
|
this.add(l), this.stack.push(l);
|
|
983
983
|
}
|
|
984
984
|
closeNode() {
|
|
@@ -1011,11 +1011,11 @@ class We {
|
|
|
1011
1011
|
*/
|
|
1012
1012
|
static _collapse(r) {
|
|
1013
1013
|
typeof r != "string" && r.children && (r.children.every((l) => typeof l == "string") ? r.children = [r.children.join("")] : r.children.forEach((l) => {
|
|
1014
|
-
|
|
1014
|
+
Qe._collapse(l);
|
|
1015
1015
|
}));
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
class
|
|
1018
|
+
class at extends Qe {
|
|
1019
1019
|
/**
|
|
1020
1020
|
* @param {*} options
|
|
1021
1021
|
*/
|
|
@@ -1044,50 +1044,50 @@ class tt extends We {
|
|
|
1044
1044
|
l && (f.scope = `language:${l}`), this.add(f);
|
|
1045
1045
|
}
|
|
1046
1046
|
toHTML() {
|
|
1047
|
-
return new
|
|
1047
|
+
return new st(this, this.options).value();
|
|
1048
1048
|
}
|
|
1049
1049
|
finalize() {
|
|
1050
1050
|
return this.closeAllNodes(), !0;
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function ye(e) {
|
|
1054
1054
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function wn(e) {
|
|
1057
1057
|
return fe("(?=", e, ")");
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function ot(e) {
|
|
1060
1060
|
return fe("(?:", e, ")*");
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function lt(e) {
|
|
1063
1063
|
return fe("(?:", e, ")?");
|
|
1064
1064
|
}
|
|
1065
1065
|
function fe(...e) {
|
|
1066
|
-
return e.map((l) =>
|
|
1066
|
+
return e.map((l) => ye(l)).join("");
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function ct(e) {
|
|
1069
1069
|
const r = e[e.length - 1];
|
|
1070
1070
|
return typeof r == "object" && r.constructor === Object ? (e.splice(e.length - 1, 1), r) : {};
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1073
|
-
return "(" + (
|
|
1072
|
+
function Ze(...e) {
|
|
1073
|
+
return "(" + (ct(e).capture ? "" : "?:") + e.map((f) => ye(f)).join("|") + ")";
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function yn(e) {
|
|
1076
1076
|
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function ut(e, r) {
|
|
1079
1079
|
const l = e && e.exec(r);
|
|
1080
1080
|
return l && l.index === 0;
|
|
1081
1081
|
}
|
|
1082
|
-
const
|
|
1083
|
-
function
|
|
1082
|
+
const ft = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1083
|
+
function Ye(e, { joinWith: r }) {
|
|
1084
1084
|
let l = 0;
|
|
1085
1085
|
return e.map((f) => {
|
|
1086
1086
|
l += 1;
|
|
1087
1087
|
const g = l;
|
|
1088
|
-
let n =
|
|
1088
|
+
let n = ye(f), t = "";
|
|
1089
1089
|
for (; n.length > 0; ) {
|
|
1090
|
-
const i =
|
|
1090
|
+
const i = ft.exec(n);
|
|
1091
1091
|
if (!i) {
|
|
1092
1092
|
t += n;
|
|
1093
1093
|
break;
|
|
@@ -1097,7 +1097,7 @@ function Ze(e, { joinWith: r }) {
|
|
|
1097
1097
|
return t;
|
|
1098
1098
|
}).map((f) => `(${f})`).join(r);
|
|
1099
1099
|
}
|
|
1100
|
-
const
|
|
1100
|
+
const gt = /\b\B/, Nn = "[a-zA-Z]\\w*", Xe = "[a-zA-Z_]\\w*", An = "\\b\\d+(\\.\\d+)?", Mn = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Tn = "\\b(0b[01]+)", ht = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", dt = (e = {}) => {
|
|
1101
1101
|
const r = /^#![ ]*\//;
|
|
1102
1102
|
return e.binary && (e.begin = fe(
|
|
1103
1103
|
r,
|
|
@@ -1117,21 +1117,21 @@ const lt = /\b\B/, mn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
|
|
|
1117
1117
|
}, Ne = {
|
|
1118
1118
|
begin: "\\\\[\\s\\S]",
|
|
1119
1119
|
relevance: 0
|
|
1120
|
-
},
|
|
1120
|
+
}, pt = {
|
|
1121
1121
|
scope: "string",
|
|
1122
1122
|
begin: "'",
|
|
1123
1123
|
end: "'",
|
|
1124
1124
|
illegal: "\\n",
|
|
1125
1125
|
contains: [Ne]
|
|
1126
|
-
},
|
|
1126
|
+
}, _t = {
|
|
1127
1127
|
scope: "string",
|
|
1128
1128
|
begin: '"',
|
|
1129
1129
|
end: '"',
|
|
1130
1130
|
illegal: "\\n",
|
|
1131
1131
|
contains: [Ne]
|
|
1132
|
-
},
|
|
1132
|
+
}, bt = {
|
|
1133
1133
|
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
|
1134
|
-
},
|
|
1134
|
+
}, $e = function(e, r, l = {}) {
|
|
1135
1135
|
const f = le(
|
|
1136
1136
|
{
|
|
1137
1137
|
scope: "comment",
|
|
@@ -1150,7 +1150,7 @@ const lt = /\b\B/, mn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
|
|
|
1150
1150
|
excludeBegin: !0,
|
|
1151
1151
|
relevance: 0
|
|
1152
1152
|
});
|
|
1153
|
-
const g =
|
|
1153
|
+
const g = Ze(
|
|
1154
1154
|
// list of common 1 and 2 letter words in English
|
|
1155
1155
|
"I",
|
|
1156
1156
|
"a",
|
|
@@ -1197,19 +1197,19 @@ const lt = /\b\B/, mn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
|
|
|
1197
1197
|
// look for 3 words in a row
|
|
1198
1198
|
}
|
|
1199
1199
|
), f;
|
|
1200
|
-
},
|
|
1200
|
+
}, Et = $e("//", "$"), mt = $e("/\\*", "\\*/"), vt = $e("#", "$"), wt = {
|
|
1201
1201
|
scope: "number",
|
|
1202
|
-
begin:
|
|
1202
|
+
begin: An,
|
|
1203
1203
|
relevance: 0
|
|
1204
|
-
},
|
|
1204
|
+
}, yt = {
|
|
1205
1205
|
scope: "number",
|
|
1206
|
-
begin:
|
|
1206
|
+
begin: Mn,
|
|
1207
1207
|
relevance: 0
|
|
1208
|
-
},
|
|
1208
|
+
}, Nt = {
|
|
1209
1209
|
scope: "number",
|
|
1210
|
-
begin:
|
|
1210
|
+
begin: Tn,
|
|
1211
1211
|
relevance: 0
|
|
1212
|
-
},
|
|
1212
|
+
}, At = {
|
|
1213
1213
|
scope: "regexp",
|
|
1214
1214
|
begin: /\/(?=[^/\n]*\/)/,
|
|
1215
1215
|
end: /\/[gimuy]*/,
|
|
@@ -1222,19 +1222,19 @@ const lt = /\b\B/, mn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
|
|
|
1222
1222
|
contains: [Ne]
|
|
1223
1223
|
}
|
|
1224
1224
|
]
|
|
1225
|
-
},
|
|
1225
|
+
}, Mt = {
|
|
1226
1226
|
scope: "title",
|
|
1227
|
-
begin:
|
|
1227
|
+
begin: Nn,
|
|
1228
1228
|
relevance: 0
|
|
1229
|
-
},
|
|
1229
|
+
}, Tt = {
|
|
1230
1230
|
scope: "title",
|
|
1231
|
-
begin:
|
|
1231
|
+
begin: Xe,
|
|
1232
1232
|
relevance: 0
|
|
1233
|
-
},
|
|
1233
|
+
}, St = {
|
|
1234
1234
|
// excludes method names from keyword processing
|
|
1235
|
-
begin: "\\.\\s*" +
|
|
1235
|
+
begin: "\\.\\s*" + Xe,
|
|
1236
1236
|
relevance: 0
|
|
1237
|
-
},
|
|
1237
|
+
}, Dt = function(e) {
|
|
1238
1238
|
return Object.assign(
|
|
1239
1239
|
e,
|
|
1240
1240
|
{
|
|
@@ -1249,56 +1249,56 @@ const lt = /\b\B/, mn = "[a-zA-Z]\\w*", Ye = "[a-zA-Z_]\\w*", vn = "\\b\\d+(\\.\
|
|
|
1249
1249
|
}
|
|
1250
1250
|
);
|
|
1251
1251
|
};
|
|
1252
|
-
var
|
|
1252
|
+
var Le = /* @__PURE__ */ Object.freeze({
|
|
1253
1253
|
__proto__: null,
|
|
1254
|
-
APOS_STRING_MODE:
|
|
1254
|
+
APOS_STRING_MODE: pt,
|
|
1255
1255
|
BACKSLASH_ESCAPE: Ne,
|
|
1256
|
-
BINARY_NUMBER_MODE:
|
|
1257
|
-
BINARY_NUMBER_RE:
|
|
1258
|
-
COMMENT:
|
|
1259
|
-
C_BLOCK_COMMENT_MODE:
|
|
1260
|
-
C_LINE_COMMENT_MODE:
|
|
1261
|
-
C_NUMBER_MODE:
|
|
1262
|
-
C_NUMBER_RE:
|
|
1263
|
-
END_SAME_AS_BEGIN:
|
|
1264
|
-
HASH_COMMENT_MODE:
|
|
1265
|
-
IDENT_RE:
|
|
1266
|
-
MATCH_NOTHING_RE:
|
|
1267
|
-
METHOD_GUARD:
|
|
1268
|
-
NUMBER_MODE:
|
|
1269
|
-
NUMBER_RE:
|
|
1270
|
-
PHRASAL_WORDS_MODE:
|
|
1271
|
-
QUOTE_STRING_MODE:
|
|
1272
|
-
REGEXP_MODE:
|
|
1273
|
-
RE_STARTERS_RE:
|
|
1274
|
-
SHEBANG:
|
|
1275
|
-
TITLE_MODE:
|
|
1276
|
-
UNDERSCORE_IDENT_RE:
|
|
1277
|
-
UNDERSCORE_TITLE_MODE:
|
|
1256
|
+
BINARY_NUMBER_MODE: Nt,
|
|
1257
|
+
BINARY_NUMBER_RE: Tn,
|
|
1258
|
+
COMMENT: $e,
|
|
1259
|
+
C_BLOCK_COMMENT_MODE: mt,
|
|
1260
|
+
C_LINE_COMMENT_MODE: Et,
|
|
1261
|
+
C_NUMBER_MODE: yt,
|
|
1262
|
+
C_NUMBER_RE: Mn,
|
|
1263
|
+
END_SAME_AS_BEGIN: Dt,
|
|
1264
|
+
HASH_COMMENT_MODE: vt,
|
|
1265
|
+
IDENT_RE: Nn,
|
|
1266
|
+
MATCH_NOTHING_RE: gt,
|
|
1267
|
+
METHOD_GUARD: St,
|
|
1268
|
+
NUMBER_MODE: wt,
|
|
1269
|
+
NUMBER_RE: An,
|
|
1270
|
+
PHRASAL_WORDS_MODE: bt,
|
|
1271
|
+
QUOTE_STRING_MODE: _t,
|
|
1272
|
+
REGEXP_MODE: At,
|
|
1273
|
+
RE_STARTERS_RE: ht,
|
|
1274
|
+
SHEBANG: dt,
|
|
1275
|
+
TITLE_MODE: Mt,
|
|
1276
|
+
UNDERSCORE_IDENT_RE: Xe,
|
|
1277
|
+
UNDERSCORE_TITLE_MODE: Tt
|
|
1278
1278
|
});
|
|
1279
|
-
function
|
|
1279
|
+
function Lt(e, r) {
|
|
1280
1280
|
e.input[e.index - 1] === "." && r.ignoreMatch();
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Rt(e, r) {
|
|
1283
1283
|
e.className !== void 0 && (e.scope = e.className, delete e.className);
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1286
|
-
r && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin =
|
|
1285
|
+
function Ot(e, r) {
|
|
1286
|
+
r && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = Lt, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1289
|
-
Array.isArray(e.illegal) && (e.illegal =
|
|
1288
|
+
function Ct(e, r) {
|
|
1289
|
+
Array.isArray(e.illegal) && (e.illegal = Ze(...e.illegal));
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function It(e, r) {
|
|
1292
1292
|
if (e.match) {
|
|
1293
1293
|
if (e.begin || e.end)
|
|
1294
1294
|
throw new Error("begin & end are not supported with match");
|
|
1295
1295
|
e.begin = e.match, delete e.match;
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function kt(e, r) {
|
|
1299
1299
|
e.relevance === void 0 && (e.relevance = 1);
|
|
1300
1300
|
}
|
|
1301
|
-
const
|
|
1301
|
+
const Bt = (e, r) => {
|
|
1302
1302
|
if (!e.beforeMatch)
|
|
1303
1303
|
return;
|
|
1304
1304
|
if (e.starts)
|
|
@@ -1306,13 +1306,13 @@ const Ot = (e, r) => {
|
|
|
1306
1306
|
const l = Object.assign({}, e);
|
|
1307
1307
|
Object.keys(e).forEach((f) => {
|
|
1308
1308
|
delete e[f];
|
|
1309
|
-
}), e.keywords = l.keywords, e.begin = fe(l.beforeMatch,
|
|
1309
|
+
}), e.keywords = l.keywords, e.begin = fe(l.beforeMatch, wn(l.begin)), e.starts = {
|
|
1310
1310
|
relevance: 0,
|
|
1311
1311
|
contains: [
|
|
1312
1312
|
Object.assign(l, { endsParent: !0 })
|
|
1313
1313
|
]
|
|
1314
1314
|
}, e.relevance = 0, delete l.beforeMatch;
|
|
1315
|
-
},
|
|
1315
|
+
}, $t = [
|
|
1316
1316
|
"of",
|
|
1317
1317
|
"and",
|
|
1318
1318
|
"for",
|
|
@@ -1327,70 +1327,70 @@ const Ot = (e, r) => {
|
|
|
1327
1327
|
// common variable name
|
|
1328
1328
|
"value"
|
|
1329
1329
|
// common variable name
|
|
1330
|
-
],
|
|
1331
|
-
function
|
|
1330
|
+
], Pt = "keyword";
|
|
1331
|
+
function Sn(e, r, l = Pt) {
|
|
1332
1332
|
const f = /* @__PURE__ */ Object.create(null);
|
|
1333
1333
|
return typeof e == "string" ? g(l, e.split(" ")) : Array.isArray(e) ? g(l, e) : Object.keys(e).forEach(function(n) {
|
|
1334
1334
|
Object.assign(
|
|
1335
1335
|
f,
|
|
1336
|
-
|
|
1336
|
+
Sn(e[n], r, n)
|
|
1337
1337
|
);
|
|
1338
1338
|
}), f;
|
|
1339
1339
|
function g(n, t) {
|
|
1340
1340
|
r && (t = t.map((i) => i.toLowerCase())), t.forEach(function(i) {
|
|
1341
1341
|
const s = i.split("|");
|
|
1342
|
-
f[s[0]] = [n,
|
|
1342
|
+
f[s[0]] = [n, Ut(s[0], s[1])];
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return r ? Number(r) :
|
|
1346
|
+
function Ut(e, r) {
|
|
1347
|
+
return r ? Number(r) : Ht(e) ? 0 : 1;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1349
|
+
function Ht(e) {
|
|
1350
|
+
return $t.includes(e.toLowerCase());
|
|
1351
1351
|
}
|
|
1352
|
-
const
|
|
1352
|
+
const cn = {}, ue = (e) => {
|
|
1353
1353
|
console.error(e);
|
|
1354
|
-
},
|
|
1354
|
+
}, un = (e, ...r) => {
|
|
1355
1355
|
console.log(`WARN: ${e}`, ...r);
|
|
1356
1356
|
}, he = (e, r) => {
|
|
1357
|
-
|
|
1358
|
-
},
|
|
1359
|
-
function
|
|
1357
|
+
cn[`${e}/${r}`] || (console.log(`Deprecated as of ${e}. ${r}`), cn[`${e}/${r}`] = !0);
|
|
1358
|
+
}, ke = new Error();
|
|
1359
|
+
function Dn(e, r, { key: l }) {
|
|
1360
1360
|
let f = 0;
|
|
1361
1361
|
const g = e[l], n = {}, t = {};
|
|
1362
1362
|
for (let i = 1; i <= r.length; i++)
|
|
1363
|
-
t[i + f] = g[i], n[i + f] = !0, f +=
|
|
1363
|
+
t[i + f] = g[i], n[i + f] = !0, f += yn(r[i - 1]);
|
|
1364
1364
|
e[l] = t, e[l]._emit = n, e[l]._multi = !0;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Ft(e) {
|
|
1367
1367
|
if (Array.isArray(e.begin)) {
|
|
1368
1368
|
if (e.skip || e.excludeBegin || e.returnBegin)
|
|
1369
|
-
throw ue("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
|
1369
|
+
throw ue("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), ke;
|
|
1370
1370
|
if (typeof e.beginScope != "object" || e.beginScope === null)
|
|
1371
|
-
throw ue("beginScope must be object"),
|
|
1372
|
-
|
|
1371
|
+
throw ue("beginScope must be object"), ke;
|
|
1372
|
+
Dn(e, e.begin, { key: "beginScope" }), e.begin = Ye(e.begin, { joinWith: "" });
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function zt(e) {
|
|
1376
1376
|
if (Array.isArray(e.end)) {
|
|
1377
1377
|
if (e.skip || e.excludeEnd || e.returnEnd)
|
|
1378
|
-
throw ue("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
|
1378
|
+
throw ue("skip, excludeEnd, returnEnd not compatible with endScope: {}"), ke;
|
|
1379
1379
|
if (typeof e.endScope != "object" || e.endScope === null)
|
|
1380
|
-
throw ue("endScope must be object"),
|
|
1381
|
-
|
|
1380
|
+
throw ue("endScope must be object"), ke;
|
|
1381
|
+
Dn(e, e.end, { key: "endScope" }), e.end = Ye(e.end, { joinWith: "" });
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function xt(e) {
|
|
1385
1385
|
e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1388
|
-
|
|
1387
|
+
function Gt(e) {
|
|
1388
|
+
xt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Ft(e), zt(e);
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Kt(e) {
|
|
1391
1391
|
function r(t, i) {
|
|
1392
1392
|
return new RegExp(
|
|
1393
|
-
|
|
1393
|
+
ye(t),
|
|
1394
1394
|
"m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (i ? "g" : "")
|
|
1395
1395
|
);
|
|
1396
1396
|
}
|
|
@@ -1400,12 +1400,12 @@ function Ft(e) {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
// @ts-ignore
|
|
1402
1402
|
addRule(i, s) {
|
|
1403
|
-
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt +=
|
|
1403
|
+
s.position = this.position++, this.matchIndexes[this.matchAt] = s, this.regexes.push([s, i]), this.matchAt += yn(i) + 1;
|
|
1404
1404
|
}
|
|
1405
1405
|
compile() {
|
|
1406
1406
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
1407
1407
|
const i = this.regexes.map((s) => s[1]);
|
|
1408
|
-
this.matcherRe = r(
|
|
1408
|
+
this.matcherRe = r(Ye(i, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
1409
1409
|
}
|
|
1410
1410
|
/** @param {string} s */
|
|
1411
1411
|
exec(i) {
|
|
@@ -1413,8 +1413,8 @@ function Ft(e) {
|
|
|
1413
1413
|
const s = this.matcherRe.exec(i);
|
|
1414
1414
|
if (!s)
|
|
1415
1415
|
return null;
|
|
1416
|
-
const
|
|
1417
|
-
return s.splice(0,
|
|
1416
|
+
const a = s.findIndex((c, u) => u > 0 && c !== void 0), o = this.matchIndexes[a];
|
|
1417
|
+
return s.splice(0, a), Object.assign(s, o);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
class f {
|
|
@@ -1426,7 +1426,7 @@ function Ft(e) {
|
|
|
1426
1426
|
if (this.multiRegexes[i])
|
|
1427
1427
|
return this.multiRegexes[i];
|
|
1428
1428
|
const s = new l();
|
|
1429
|
-
return this.rules.slice(i).forEach(([
|
|
1429
|
+
return this.rules.slice(i).forEach(([a, o]) => s.addRule(a, o)), s.compile(), this.multiRegexes[i] = s, s;
|
|
1430
1430
|
}
|
|
1431
1431
|
resumingScanAtSamePosition() {
|
|
1432
1432
|
return this.regexIndex !== 0;
|
|
@@ -1442,12 +1442,12 @@ function Ft(e) {
|
|
|
1442
1442
|
exec(i) {
|
|
1443
1443
|
const s = this.getMatcher(this.regexIndex);
|
|
1444
1444
|
s.lastIndex = this.lastIndex;
|
|
1445
|
-
let
|
|
1446
|
-
if (this.resumingScanAtSamePosition() && !(
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1445
|
+
let a = s.exec(i);
|
|
1446
|
+
if (this.resumingScanAtSamePosition() && !(a && a.index === this.lastIndex)) {
|
|
1447
|
+
const o = this.getMatcher(0);
|
|
1448
|
+
o.lastIndex = this.lastIndex + 1, a = o.exec(i);
|
|
1449
1449
|
}
|
|
1450
|
-
return
|
|
1450
|
+
return a && (this.regexIndex += a.position + 1, this.regexIndex === this.count && this.considerAll()), a;
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
1453
|
function g(t) {
|
|
@@ -1462,30 +1462,30 @@ function Ft(e) {
|
|
|
1462
1462
|
if (t.isCompiled)
|
|
1463
1463
|
return s;
|
|
1464
1464
|
[
|
|
1465
|
-
|
|
1465
|
+
Rt,
|
|
1466
1466
|
// do this early so compiler extensions generally don't have to worry about
|
|
1467
1467
|
// the distinction between match/begin
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
].forEach((
|
|
1472
|
-
|
|
1468
|
+
It,
|
|
1469
|
+
Gt,
|
|
1470
|
+
Bt
|
|
1471
|
+
].forEach((o) => o(t, i)), e.compilerExtensions.forEach((o) => o(t, i)), t.__beforeBegin = null, [
|
|
1472
|
+
Ot,
|
|
1473
1473
|
// do this later so compiler extensions that come earlier have access to the
|
|
1474
1474
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
1475
|
-
|
|
1475
|
+
Ct,
|
|
1476
1476
|
// default to 1 relevance if not specified
|
|
1477
|
-
|
|
1478
|
-
].forEach((
|
|
1479
|
-
let
|
|
1480
|
-
return typeof t.keywords == "object" && t.keywords.$pattern && (t.keywords = Object.assign({}, t.keywords),
|
|
1477
|
+
kt
|
|
1478
|
+
].forEach((o) => o(t, i)), t.isCompiled = !0;
|
|
1479
|
+
let a = null;
|
|
1480
|
+
return typeof t.keywords == "object" && t.keywords.$pattern && (t.keywords = Object.assign({}, t.keywords), a = t.keywords.$pattern, delete t.keywords.$pattern), a = a || /\w+/, t.keywords && (t.keywords = Sn(t.keywords, e.case_insensitive)), s.keywordPatternRe = r(a, !0), i && (t.begin || (t.begin = /\B|\b/), s.beginRe = r(s.begin), !t.end && !t.endsWithParent && (t.end = /\B|\b/), t.end && (s.endRe = r(s.end)), s.terminatorEnd = ye(s.end) || "", t.endsWithParent && i.terminatorEnd && (s.terminatorEnd += (t.end ? "|" : "") + i.terminatorEnd)), t.illegal && (s.illegalRe = r(
|
|
1481
1481
|
/** @type {RegExp | string} */
|
|
1482
1482
|
t.illegal
|
|
1483
|
-
)), t.contains || (t.contains = []), t.contains = [].concat(...t.contains.map(function(
|
|
1484
|
-
return
|
|
1485
|
-
})), t.contains.forEach(function(
|
|
1483
|
+
)), t.contains || (t.contains = []), t.contains = [].concat(...t.contains.map(function(o) {
|
|
1484
|
+
return Wt(o === "self" ? t : o);
|
|
1485
|
+
})), t.contains.forEach(function(o) {
|
|
1486
1486
|
n(
|
|
1487
1487
|
/** @type Mode */
|
|
1488
|
-
|
|
1488
|
+
o,
|
|
1489
1489
|
s
|
|
1490
1490
|
);
|
|
1491
1491
|
}), t.starts && n(t.starts, i), s.matcher = g(s), s;
|
|
@@ -1497,21 +1497,21 @@ function Ft(e) {
|
|
|
1497
1497
|
e
|
|
1498
1498
|
);
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1501
|
-
return e ? e.endsWithParent ||
|
|
1500
|
+
function Ln(e) {
|
|
1501
|
+
return e ? e.endsWithParent || Ln(e.starts) : !1;
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function Wt(e) {
|
|
1504
1504
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(r) {
|
|
1505
1505
|
return le(e, { variants: null }, r);
|
|
1506
|
-
})), e.cachedVariants ? e.cachedVariants :
|
|
1506
|
+
})), e.cachedVariants ? e.cachedVariants : Ln(e) ? le(e, { starts: e.starts ? le(e.starts) : null }) : Object.isFrozen(e) ? le(e) : e;
|
|
1507
1507
|
}
|
|
1508
|
-
var
|
|
1509
|
-
class
|
|
1508
|
+
var Qt = "11.9.0";
|
|
1509
|
+
class Zt extends Error {
|
|
1510
1510
|
constructor(r, l) {
|
|
1511
1511
|
super(r), this.name = "HTMLInjectionError", this.html = l;
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
|
-
const
|
|
1514
|
+
const ze = vn, fn = le, gn = Symbol("nomatch"), Yt = 7, Rn = function(e) {
|
|
1515
1515
|
const r = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ Object.create(null), f = [];
|
|
1516
1516
|
let g = !0;
|
|
1517
1517
|
const n = "Could not find the language '{}', did you forget to load/include a language module?", t = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -1525,22 +1525,22 @@ const Fe = _n, cn = le, un = Symbol("nomatch"), Kt = 7, Tn = function(e) {
|
|
|
1525
1525
|
languages: null,
|
|
1526
1526
|
// beta configuration options, subject to change, welcome to discuss
|
|
1527
1527
|
// https://github.com/highlightjs/highlight.js/issues/1086
|
|
1528
|
-
__emitter:
|
|
1528
|
+
__emitter: at
|
|
1529
1529
|
};
|
|
1530
1530
|
function s(b) {
|
|
1531
1531
|
return i.noHighlightRe.test(b);
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1533
|
+
function a(b) {
|
|
1534
1534
|
let N = b.className + " ";
|
|
1535
1535
|
N += b.parentNode ? b.parentNode.className : "";
|
|
1536
1536
|
const O = i.languageDetectRe.exec(N);
|
|
1537
1537
|
if (O) {
|
|
1538
1538
|
const U = L(O[1]);
|
|
1539
|
-
return U || (
|
|
1539
|
+
return U || (un(n.replace("{}", O[1])), un("Falling back to no-highlight mode for this block.", b)), U ? O[1] : "no-highlight";
|
|
1540
1540
|
}
|
|
1541
1541
|
return N.split(/\s+/).find((U) => s(U) || L(U));
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function o(b, N, O) {
|
|
1544
1544
|
let U = "", x = "";
|
|
1545
1545
|
typeof N == "object" ? (U = b, O = N.ignoreIllegals, x = N.language) : (he("10.7.0", "highlight(lang, code, ...args) has been deprecated."), he("10.7.0", `Please use highlight(code, options) instead.
|
|
1546
1546
|
https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O === void 0 && (O = !0);
|
|
@@ -1549,123 +1549,123 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1549
1549
|
language: x
|
|
1550
1550
|
};
|
|
1551
1551
|
oe("before:highlight", X);
|
|
1552
|
-
const
|
|
1553
|
-
return
|
|
1552
|
+
const J = X.result ? X.result : c(X.language, X.code, O);
|
|
1553
|
+
return J.code = X.code, oe("after:highlight", J), J;
|
|
1554
1554
|
}
|
|
1555
1555
|
function c(b, N, O, U) {
|
|
1556
1556
|
const x = /* @__PURE__ */ Object.create(null);
|
|
1557
|
-
function X(
|
|
1558
|
-
return
|
|
1557
|
+
function X(w, T) {
|
|
1558
|
+
return w.keywords[T];
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function J() {
|
|
1561
1561
|
if (!C.keywords) {
|
|
1562
1562
|
Q.addText(z);
|
|
1563
1563
|
return;
|
|
1564
1564
|
}
|
|
1565
|
-
let
|
|
1565
|
+
let w = 0;
|
|
1566
1566
|
C.keywordPatternRe.lastIndex = 0;
|
|
1567
1567
|
let T = C.keywordPatternRe.exec(z), k = "";
|
|
1568
1568
|
for (; T; ) {
|
|
1569
|
-
k += z.substring(
|
|
1569
|
+
k += z.substring(w, T.index);
|
|
1570
1570
|
const H = te.case_insensitive ? T[0].toLowerCase() : T[0], Z = X(C, H);
|
|
1571
1571
|
if (Z) {
|
|
1572
|
-
const [re,
|
|
1573
|
-
if (Q.addText(k), k = "", x[H] = (x[H] || 0) + 1, x[H] <=
|
|
1572
|
+
const [re, Gn] = Z;
|
|
1573
|
+
if (Q.addText(k), k = "", x[H] = (x[H] || 0) + 1, x[H] <= Yt && (Se += Gn), re.startsWith("_"))
|
|
1574
1574
|
k += T[0];
|
|
1575
1575
|
else {
|
|
1576
|
-
const
|
|
1577
|
-
ne(T[0],
|
|
1576
|
+
const Kn = te.classNameAliases[re] || re;
|
|
1577
|
+
ne(T[0], Kn);
|
|
1578
1578
|
}
|
|
1579
1579
|
} else
|
|
1580
1580
|
k += T[0];
|
|
1581
|
-
|
|
1581
|
+
w = C.keywordPatternRe.lastIndex, T = C.keywordPatternRe.exec(z);
|
|
1582
1582
|
}
|
|
1583
|
-
k += z.substring(
|
|
1583
|
+
k += z.substring(w), Q.addText(k);
|
|
1584
1584
|
}
|
|
1585
1585
|
function Me() {
|
|
1586
1586
|
if (z === "")
|
|
1587
1587
|
return;
|
|
1588
|
-
let
|
|
1588
|
+
let w = null;
|
|
1589
1589
|
if (typeof C.subLanguage == "string") {
|
|
1590
1590
|
if (!r[C.subLanguage]) {
|
|
1591
1591
|
Q.addText(z);
|
|
1592
1592
|
return;
|
|
1593
1593
|
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1594
|
+
w = c(C.subLanguage, z, !0, en[C.subLanguage]), en[C.subLanguage] = /** @type {CompiledMode} */
|
|
1595
|
+
w._top;
|
|
1596
1596
|
} else
|
|
1597
|
-
|
|
1598
|
-
C.relevance > 0 && (Se +=
|
|
1597
|
+
w = d(z, C.subLanguage.length ? C.subLanguage : null);
|
|
1598
|
+
C.relevance > 0 && (Se += w.relevance), Q.__addSublanguage(w._emitter, w.language);
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1601
|
-
C.subLanguage != null ? Me() :
|
|
1600
|
+
function V() {
|
|
1601
|
+
C.subLanguage != null ? Me() : J(), z = "";
|
|
1602
1602
|
}
|
|
1603
|
-
function ne(
|
|
1604
|
-
|
|
1603
|
+
function ne(w, T) {
|
|
1604
|
+
w !== "" && (Q.startScope(T), Q.addText(w), Q.endScope());
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function Ve(w, T) {
|
|
1607
1607
|
let k = 1;
|
|
1608
1608
|
const H = T.length - 1;
|
|
1609
1609
|
for (; k <= H; ) {
|
|
1610
|
-
if (!
|
|
1610
|
+
if (!w._emit[k]) {
|
|
1611
1611
|
k++;
|
|
1612
1612
|
continue;
|
|
1613
1613
|
}
|
|
1614
|
-
const Z = te.classNameAliases[
|
|
1615
|
-
Z ? ne(re, Z) : (z = re,
|
|
1614
|
+
const Z = te.classNameAliases[w[k]] || w[k], re = T[k];
|
|
1615
|
+
Z ? ne(re, Z) : (z = re, J(), z = ""), k++;
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function je(
|
|
1619
|
-
return
|
|
1618
|
+
function je(w, T) {
|
|
1619
|
+
return w.scope && typeof w.scope == "string" && Q.openNode(te.classNameAliases[w.scope] || w.scope), w.beginScope && (w.beginScope._wrap ? (ne(z, te.classNameAliases[w.beginScope._wrap] || w.beginScope._wrap), z = "") : w.beginScope._multi && (Ve(w.beginScope, T), z = "")), C = Object.create(w, { parent: { value: C } }), C;
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1622
|
-
let H =
|
|
1621
|
+
function qe(w, T, k) {
|
|
1622
|
+
let H = ut(w.endRe, k);
|
|
1623
1623
|
if (H) {
|
|
1624
|
-
if (
|
|
1625
|
-
const Z = new
|
|
1626
|
-
|
|
1624
|
+
if (w["on:end"]) {
|
|
1625
|
+
const Z = new an(w);
|
|
1626
|
+
w["on:end"](T, Z), Z.isMatchIgnored && (H = !1);
|
|
1627
1627
|
}
|
|
1628
1628
|
if (H) {
|
|
1629
|
-
for (;
|
|
1630
|
-
|
|
1631
|
-
return
|
|
1629
|
+
for (; w.endsParent && w.parent; )
|
|
1630
|
+
w = w.parent;
|
|
1631
|
+
return w;
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
|
-
if (
|
|
1635
|
-
return
|
|
1634
|
+
if (w.endsWithParent)
|
|
1635
|
+
return qe(w.parent, T, k);
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1638
|
-
return C.matcher.regexIndex === 0 ? (z +=
|
|
1637
|
+
function Un(w) {
|
|
1638
|
+
return C.matcher.regexIndex === 0 ? (z += w[0], 1) : (He = !0, 0);
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1641
|
-
const T =
|
|
1640
|
+
function Hn(w) {
|
|
1641
|
+
const T = w[0], k = w.rule, H = new an(k), Z = [k.__beforeBegin, k["on:begin"]];
|
|
1642
1642
|
for (const re of Z)
|
|
1643
|
-
if (re && (re(
|
|
1644
|
-
return
|
|
1645
|
-
return k.skip ? z += T : (k.excludeBegin && (z += T),
|
|
1643
|
+
if (re && (re(w, H), H.isMatchIgnored))
|
|
1644
|
+
return Un(T);
|
|
1645
|
+
return k.skip ? z += T : (k.excludeBegin && (z += T), V(), !k.returnBegin && !k.excludeBegin && (z = T)), je(k, w), k.returnBegin ? 0 : T.length;
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1648
|
-
const T =
|
|
1647
|
+
function Fn(w) {
|
|
1648
|
+
const T = w[0], k = N.substring(w.index), H = qe(C, w, k);
|
|
1649
1649
|
if (!H)
|
|
1650
|
-
return
|
|
1650
|
+
return gn;
|
|
1651
1651
|
const Z = C;
|
|
1652
|
-
C.endScope && C.endScope._wrap ? (
|
|
1652
|
+
C.endScope && C.endScope._wrap ? (V(), ne(T, C.endScope._wrap)) : C.endScope && C.endScope._multi ? (V(), Ve(C.endScope, w)) : Z.skip ? z += T : (Z.returnEnd || Z.excludeEnd || (z += T), V(), Z.excludeEnd && (z = T));
|
|
1653
1653
|
do
|
|
1654
1654
|
C.scope && Q.closeNode(), !C.skip && !C.subLanguage && (Se += C.relevance), C = C.parent;
|
|
1655
1655
|
while (C !== H.parent);
|
|
1656
|
-
return H.starts && je(H.starts,
|
|
1656
|
+
return H.starts && je(H.starts, w), Z.returnEnd ? 0 : T.length;
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1659
|
-
const
|
|
1658
|
+
function zn() {
|
|
1659
|
+
const w = [];
|
|
1660
1660
|
for (let T = C; T !== te; T = T.parent)
|
|
1661
|
-
T.scope &&
|
|
1662
|
-
|
|
1661
|
+
T.scope && w.unshift(T.scope);
|
|
1662
|
+
w.forEach((T) => Q.openNode(T));
|
|
1663
1663
|
}
|
|
1664
1664
|
let Te = {};
|
|
1665
|
-
function Je(
|
|
1665
|
+
function Je(w, T) {
|
|
1666
1666
|
const k = T && T[0];
|
|
1667
|
-
if (z +=
|
|
1668
|
-
return
|
|
1667
|
+
if (z += w, k == null)
|
|
1668
|
+
return V(), 0;
|
|
1669
1669
|
if (Te.type === "begin" && T.type === "end" && Te.index === T.index && k === "") {
|
|
1670
1670
|
if (z += N.slice(T.index, T.index + 1), !g) {
|
|
1671
1671
|
const H = new Error(`0 width match regex (${b})`);
|
|
@@ -1674,13 +1674,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1674
1674
|
return 1;
|
|
1675
1675
|
}
|
|
1676
1676
|
if (Te = T, T.type === "begin")
|
|
1677
|
-
return
|
|
1677
|
+
return Hn(T);
|
|
1678
1678
|
if (T.type === "illegal" && !O) {
|
|
1679
1679
|
const H = new Error('Illegal lexeme "' + k + '" for mode "' + (C.scope || "<unnamed>") + '"');
|
|
1680
1680
|
throw H.mode = C, H;
|
|
1681
1681
|
} else if (T.type === "end") {
|
|
1682
|
-
const H =
|
|
1683
|
-
if (H !==
|
|
1682
|
+
const H = Fn(T);
|
|
1683
|
+
if (H !== gn)
|
|
1684
1684
|
return H;
|
|
1685
1685
|
}
|
|
1686
1686
|
if (T.type === "illegal" && k === "")
|
|
@@ -1692,65 +1692,65 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1692
1692
|
const te = L(b);
|
|
1693
1693
|
if (!te)
|
|
1694
1694
|
throw ue(n.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
1695
|
-
const
|
|
1696
|
-
let
|
|
1697
|
-
const
|
|
1698
|
-
|
|
1699
|
-
let z = "", Se = 0, ce = 0, Ue = 0,
|
|
1695
|
+
const xn = Kt(te);
|
|
1696
|
+
let Pe = "", C = U || xn;
|
|
1697
|
+
const en = {}, Q = new i.__emitter(i);
|
|
1698
|
+
zn();
|
|
1699
|
+
let z = "", Se = 0, ce = 0, Ue = 0, He = !1;
|
|
1700
1700
|
try {
|
|
1701
1701
|
if (te.__emitTokens)
|
|
1702
1702
|
te.__emitTokens(N, Q);
|
|
1703
1703
|
else {
|
|
1704
1704
|
for (C.matcher.considerAll(); ; ) {
|
|
1705
|
-
Ue++,
|
|
1706
|
-
const
|
|
1707
|
-
if (!
|
|
1705
|
+
Ue++, He ? He = !1 : C.matcher.considerAll(), C.matcher.lastIndex = ce;
|
|
1706
|
+
const w = C.matcher.exec(N);
|
|
1707
|
+
if (!w)
|
|
1708
1708
|
break;
|
|
1709
|
-
const T = N.substring(ce,
|
|
1710
|
-
ce =
|
|
1709
|
+
const T = N.substring(ce, w.index), k = Je(T, w);
|
|
1710
|
+
ce = w.index + k;
|
|
1711
1711
|
}
|
|
1712
1712
|
Je(N.substring(ce));
|
|
1713
1713
|
}
|
|
1714
|
-
return Q.finalize(),
|
|
1714
|
+
return Q.finalize(), Pe = Q.toHTML(), {
|
|
1715
1715
|
language: b,
|
|
1716
|
-
value:
|
|
1716
|
+
value: Pe,
|
|
1717
1717
|
relevance: Se,
|
|
1718
1718
|
illegal: !1,
|
|
1719
1719
|
_emitter: Q,
|
|
1720
1720
|
_top: C
|
|
1721
1721
|
};
|
|
1722
|
-
} catch (
|
|
1723
|
-
if (
|
|
1722
|
+
} catch (w) {
|
|
1723
|
+
if (w.message && w.message.includes("Illegal"))
|
|
1724
1724
|
return {
|
|
1725
1725
|
language: b,
|
|
1726
|
-
value:
|
|
1726
|
+
value: ze(N),
|
|
1727
1727
|
illegal: !0,
|
|
1728
1728
|
relevance: 0,
|
|
1729
1729
|
_illegalBy: {
|
|
1730
|
-
message:
|
|
1730
|
+
message: w.message,
|
|
1731
1731
|
index: ce,
|
|
1732
1732
|
context: N.slice(ce - 100, ce + 100),
|
|
1733
|
-
mode:
|
|
1734
|
-
resultSoFar:
|
|
1733
|
+
mode: w.mode,
|
|
1734
|
+
resultSoFar: Pe
|
|
1735
1735
|
},
|
|
1736
1736
|
_emitter: Q
|
|
1737
1737
|
};
|
|
1738
1738
|
if (g)
|
|
1739
1739
|
return {
|
|
1740
1740
|
language: b,
|
|
1741
|
-
value:
|
|
1741
|
+
value: ze(N),
|
|
1742
1742
|
illegal: !1,
|
|
1743
1743
|
relevance: 0,
|
|
1744
|
-
errorRaised:
|
|
1744
|
+
errorRaised: w,
|
|
1745
1745
|
_emitter: Q,
|
|
1746
1746
|
_top: C
|
|
1747
1747
|
};
|
|
1748
|
-
throw
|
|
1748
|
+
throw w;
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
function u(b) {
|
|
1752
1752
|
const N = {
|
|
1753
|
-
value:
|
|
1753
|
+
value: ze(b),
|
|
1754
1754
|
illegal: !1,
|
|
1755
1755
|
relevance: 0,
|
|
1756
1756
|
_top: t,
|
|
@@ -1758,32 +1758,32 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1758
1758
|
};
|
|
1759
1759
|
return N._emitter.addText(b), N;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function d(b, N) {
|
|
1762
1762
|
N = N || i.languages || Object.keys(r);
|
|
1763
|
-
const O = u(b), U = N.filter(L).filter(
|
|
1764
|
-
(
|
|
1763
|
+
const O = u(b), U = N.filter(L).filter(P).map(
|
|
1764
|
+
(V) => c(V, b, !1)
|
|
1765
1765
|
);
|
|
1766
1766
|
U.unshift(O);
|
|
1767
|
-
const x = U.sort((
|
|
1768
|
-
if (
|
|
1769
|
-
return ne.relevance -
|
|
1770
|
-
if (
|
|
1771
|
-
if (L(
|
|
1767
|
+
const x = U.sort((V, ne) => {
|
|
1768
|
+
if (V.relevance !== ne.relevance)
|
|
1769
|
+
return ne.relevance - V.relevance;
|
|
1770
|
+
if (V.language && ne.language) {
|
|
1771
|
+
if (L(V.language).supersetOf === ne.language)
|
|
1772
1772
|
return 1;
|
|
1773
|
-
if (L(ne.language).supersetOf ===
|
|
1773
|
+
if (L(ne.language).supersetOf === V.language)
|
|
1774
1774
|
return -1;
|
|
1775
1775
|
}
|
|
1776
1776
|
return 0;
|
|
1777
|
-
}), [X,
|
|
1778
|
-
return Me.secondBest =
|
|
1777
|
+
}), [X, J] = x, Me = X;
|
|
1778
|
+
return Me.secondBest = J, Me;
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function h(b, N, O) {
|
|
1781
1781
|
const U = N && l[N] || O;
|
|
1782
1782
|
b.classList.add("hljs"), b.classList.add(`language-${U}`);
|
|
1783
1783
|
}
|
|
1784
1784
|
function p(b) {
|
|
1785
1785
|
let N = null;
|
|
1786
|
-
const O =
|
|
1786
|
+
const O = a(b);
|
|
1787
1787
|
if (s(O))
|
|
1788
1788
|
return;
|
|
1789
1789
|
if (oe(
|
|
@@ -1794,13 +1794,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
1796
1796
|
if (b.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(b)), i.throwUnescapedHTML))
|
|
1797
|
-
throw new
|
|
1797
|
+
throw new Zt(
|
|
1798
1798
|
"One of your code blocks includes unescaped HTML.",
|
|
1799
1799
|
b.innerHTML
|
|
1800
1800
|
);
|
|
1801
1801
|
N = b;
|
|
1802
|
-
const U = N.textContent, x = O ?
|
|
1803
|
-
b.innerHTML = x.value, b.dataset.highlighted = "yes",
|
|
1802
|
+
const U = N.textContent, x = O ? o(U, { language: O, ignoreIllegals: !0 }) : d(U);
|
|
1803
|
+
b.innerHTML = x.value, b.dataset.highlighted = "yes", h(b, O, x.language), b.result = {
|
|
1804
1804
|
language: x.language,
|
|
1805
1805
|
// TODO: remove with version 11.0
|
|
1806
1806
|
re: x.relevance,
|
|
@@ -1811,7 +1811,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1811
1811
|
}), oe("after:highlightElement", { el: b, result: x, text: U });
|
|
1812
1812
|
}
|
|
1813
1813
|
function _(b) {
|
|
1814
|
-
i =
|
|
1814
|
+
i = fn(i, b);
|
|
1815
1815
|
}
|
|
1816
1816
|
const E = () => {
|
|
1817
1817
|
A(), he("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
@@ -1860,11 +1860,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1860
1860
|
l[O.toLowerCase()] = N;
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function P(b) {
|
|
1864
1864
|
const N = L(b);
|
|
1865
1865
|
return N && !N.disableAutodetect;
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1867
|
+
function $(b) {
|
|
1868
1868
|
b["before:highlightBlock"] && !b["before:highlightElement"] && (b["before:highlightElement"] = (N) => {
|
|
1869
1869
|
b["before:highlightBlock"](
|
|
1870
1870
|
Object.assign({ block: N.el }, N)
|
|
@@ -1876,7 +1876,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1876
1876
|
});
|
|
1877
1877
|
}
|
|
1878
1878
|
function K(b) {
|
|
1879
|
-
|
|
1879
|
+
$(b), f.push(b);
|
|
1880
1880
|
}
|
|
1881
1881
|
function Y(b) {
|
|
1882
1882
|
const N = f.indexOf(b);
|
|
@@ -1892,8 +1892,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1892
1892
|
return he("10.7.0", "highlightBlock will be removed entirely in v12.0"), he("10.7.0", "Please use highlightElement now."), p(b);
|
|
1893
1893
|
}
|
|
1894
1894
|
Object.assign(e, {
|
|
1895
|
-
highlight:
|
|
1896
|
-
highlightAuto:
|
|
1895
|
+
highlight: o,
|
|
1896
|
+
highlightAuto: d,
|
|
1897
1897
|
highlightAll: A,
|
|
1898
1898
|
highlightElement: p,
|
|
1899
1899
|
// TODO: Remove with v12 API
|
|
@@ -1906,31 +1906,31 @@ https://github.com/highlightjs/highlight.js/issues/2277`), x = b, U = N), O ===
|
|
|
1906
1906
|
listLanguages: R,
|
|
1907
1907
|
getLanguage: L,
|
|
1908
1908
|
registerAliases: I,
|
|
1909
|
-
autoDetection:
|
|
1910
|
-
inherit:
|
|
1909
|
+
autoDetection: P,
|
|
1910
|
+
inherit: fn,
|
|
1911
1911
|
addPlugin: K,
|
|
1912
1912
|
removePlugin: Y
|
|
1913
1913
|
}), e.debugMode = function() {
|
|
1914
1914
|
g = !1;
|
|
1915
1915
|
}, e.safeMode = function() {
|
|
1916
1916
|
g = !0;
|
|
1917
|
-
}, e.versionString =
|
|
1917
|
+
}, e.versionString = Qt, e.regex = {
|
|
1918
1918
|
concat: fe,
|
|
1919
|
-
lookahead:
|
|
1920
|
-
either:
|
|
1921
|
-
optional:
|
|
1922
|
-
anyNumberOfTimes:
|
|
1919
|
+
lookahead: wn,
|
|
1920
|
+
either: Ze,
|
|
1921
|
+
optional: lt,
|
|
1922
|
+
anyNumberOfTimes: ot
|
|
1923
1923
|
};
|
|
1924
|
-
for (const b in
|
|
1925
|
-
typeof
|
|
1926
|
-
return Object.assign(e,
|
|
1927
|
-
}, _e =
|
|
1928
|
-
_e.newInstance = () =>
|
|
1929
|
-
var
|
|
1924
|
+
for (const b in Le)
|
|
1925
|
+
typeof Le[b] == "object" && mn(Le[b]);
|
|
1926
|
+
return Object.assign(e, Le), e;
|
|
1927
|
+
}, _e = Rn({});
|
|
1928
|
+
_e.newInstance = () => Rn({});
|
|
1929
|
+
var Xt = _e;
|
|
1930
1930
|
_e.HighlightJS = _e;
|
|
1931
1931
|
_e.default = _e;
|
|
1932
|
-
const
|
|
1933
|
-
function
|
|
1932
|
+
const q = /* @__PURE__ */ tt(Xt);
|
|
1933
|
+
function Vt(e) {
|
|
1934
1934
|
const r = e.regex, l = r.concat(/[\p{L}_]/u, r.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), f = /[\p{L}0-9._:-]+/u, g = {
|
|
1935
1935
|
className: "symbol",
|
|
1936
1936
|
begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
|
|
@@ -1946,7 +1946,7 @@ function Qt(e) {
|
|
|
1946
1946
|
}, t = e.inherit(n, {
|
|
1947
1947
|
begin: /\(/,
|
|
1948
1948
|
end: /\)/
|
|
1949
|
-
}), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), s = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }),
|
|
1949
|
+
}), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), s = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), a = {
|
|
1950
1950
|
endsWithParent: !0,
|
|
1951
1951
|
illegal: /</,
|
|
1952
1952
|
relevance: 0,
|
|
@@ -2065,7 +2065,7 @@ function Qt(e) {
|
|
|
2065
2065
|
begin: /<style(?=\s|>)/,
|
|
2066
2066
|
end: />/,
|
|
2067
2067
|
keywords: { name: "style" },
|
|
2068
|
-
contains: [
|
|
2068
|
+
contains: [a],
|
|
2069
2069
|
starts: {
|
|
2070
2070
|
end: /<\/style>/,
|
|
2071
2071
|
returnEnd: !0,
|
|
@@ -2081,7 +2081,7 @@ function Qt(e) {
|
|
|
2081
2081
|
begin: /<script(?=\s|>)/,
|
|
2082
2082
|
end: />/,
|
|
2083
2083
|
keywords: { name: "script" },
|
|
2084
|
-
contains: [
|
|
2084
|
+
contains: [a],
|
|
2085
2085
|
starts: {
|
|
2086
2086
|
end: /<\/script>/,
|
|
2087
2087
|
returnEnd: !0,
|
|
@@ -2116,7 +2116,7 @@ function Qt(e) {
|
|
|
2116
2116
|
className: "name",
|
|
2117
2117
|
begin: l,
|
|
2118
2118
|
relevance: 0,
|
|
2119
|
-
starts:
|
|
2119
|
+
starts: a
|
|
2120
2120
|
}
|
|
2121
2121
|
]
|
|
2122
2122
|
},
|
|
@@ -2146,7 +2146,7 @@ function Qt(e) {
|
|
|
2146
2146
|
]
|
|
2147
2147
|
};
|
|
2148
2148
|
}
|
|
2149
|
-
const
|
|
2149
|
+
const hn = "[A-Za-z$_][0-9A-Za-z$_]*", jt = [
|
|
2150
2150
|
"as",
|
|
2151
2151
|
// for exports
|
|
2152
2152
|
"in",
|
|
@@ -2189,14 +2189,14 @@ const fn = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2189
2189
|
"from",
|
|
2190
2190
|
"export",
|
|
2191
2191
|
"extends"
|
|
2192
|
-
],
|
|
2192
|
+
], qt = [
|
|
2193
2193
|
"true",
|
|
2194
2194
|
"false",
|
|
2195
2195
|
"null",
|
|
2196
2196
|
"undefined",
|
|
2197
2197
|
"NaN",
|
|
2198
2198
|
"Infinity"
|
|
2199
|
-
],
|
|
2199
|
+
], On = [
|
|
2200
2200
|
// Fundamental objects
|
|
2201
2201
|
"Object",
|
|
2202
2202
|
"Function",
|
|
@@ -2246,7 +2246,7 @@ const fn = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2246
2246
|
"Intl",
|
|
2247
2247
|
// WebAssembly
|
|
2248
2248
|
"WebAssembly"
|
|
2249
|
-
],
|
|
2249
|
+
], Cn = [
|
|
2250
2250
|
"Error",
|
|
2251
2251
|
"EvalError",
|
|
2252
2252
|
"InternalError",
|
|
@@ -2255,7 +2255,7 @@ const fn = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2255
2255
|
"SyntaxError",
|
|
2256
2256
|
"TypeError",
|
|
2257
2257
|
"URIError"
|
|
2258
|
-
],
|
|
2258
|
+
], In = [
|
|
2259
2259
|
"setInterval",
|
|
2260
2260
|
"setTimeout",
|
|
2261
2261
|
"clearInterval",
|
|
@@ -2273,7 +2273,7 @@ const fn = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2273
2273
|
"encodeURIComponent",
|
|
2274
2274
|
"escape",
|
|
2275
2275
|
"unescape"
|
|
2276
|
-
],
|
|
2276
|
+
], Jt = [
|
|
2277
2277
|
"arguments",
|
|
2278
2278
|
"this",
|
|
2279
2279
|
"super",
|
|
@@ -2285,16 +2285,16 @@ const fn = "[A-Za-z$_][0-9A-Za-z$_]*", Zt = [
|
|
|
2285
2285
|
"module",
|
|
2286
2286
|
"global"
|
|
2287
2287
|
// Node.js
|
|
2288
|
-
],
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2288
|
+
], er = [].concat(
|
|
2289
|
+
In,
|
|
2290
|
+
On,
|
|
2291
|
+
Cn
|
|
2292
2292
|
);
|
|
2293
|
-
function
|
|
2293
|
+
function nr(e) {
|
|
2294
2294
|
const r = e.regex, l = (N, { after: O }) => {
|
|
2295
2295
|
const U = "</" + N[0].slice(1);
|
|
2296
2296
|
return N.input.indexOf(U, O) !== -1;
|
|
2297
|
-
}, f =
|
|
2297
|
+
}, f = hn, g = {
|
|
2298
2298
|
begin: "<>",
|
|
2299
2299
|
end: "</>"
|
|
2300
2300
|
}, n = /<[A-Za-z0-9\\._:-]+\s*\/>/, t = {
|
|
@@ -2319,28 +2319,28 @@ function Vt(e) {
|
|
|
2319
2319
|
}
|
|
2320
2320
|
x === ">" && (l(N, { after: U }) || O.ignoreMatch());
|
|
2321
2321
|
let X;
|
|
2322
|
-
const
|
|
2323
|
-
if (X =
|
|
2322
|
+
const J = N.input.substring(U);
|
|
2323
|
+
if (X = J.match(/^\s*=/)) {
|
|
2324
2324
|
O.ignoreMatch();
|
|
2325
2325
|
return;
|
|
2326
2326
|
}
|
|
2327
|
-
if ((X =
|
|
2327
|
+
if ((X = J.match(/^\s+extends\s+/)) && X.index === 0) {
|
|
2328
2328
|
O.ignoreMatch();
|
|
2329
2329
|
return;
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
2332
|
}, i = {
|
|
2333
|
-
$pattern:
|
|
2334
|
-
keyword:
|
|
2335
|
-
literal:
|
|
2336
|
-
built_in:
|
|
2337
|
-
"variable.language":
|
|
2338
|
-
}, s = "[0-9](_?[0-9])*",
|
|
2333
|
+
$pattern: hn,
|
|
2334
|
+
keyword: jt,
|
|
2335
|
+
literal: qt,
|
|
2336
|
+
built_in: er,
|
|
2337
|
+
"variable.language": Jt
|
|
2338
|
+
}, s = "[0-9](_?[0-9])*", a = `\\.(${s})`, o = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
|
|
2339
2339
|
className: "number",
|
|
2340
2340
|
variants: [
|
|
2341
2341
|
// DecimalLiteral
|
|
2342
|
-
{ begin: `(\\b(${
|
|
2343
|
-
{ begin: `\\b(${
|
|
2342
|
+
{ begin: `(\\b(${o})((${a})|\\.)?|(${a}))[eE][+-]?(${s})\\b` },
|
|
2343
|
+
{ begin: `\\b(${o})\\b((${a})\\b|\\.)?|(${a})\\b` },
|
|
2344
2344
|
// DecimalBigIntegerLiteral
|
|
2345
2345
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
|
2346
2346
|
// NonDecimalIntegerLiteral
|
|
@@ -2359,7 +2359,7 @@ function Vt(e) {
|
|
|
2359
2359
|
keywords: i,
|
|
2360
2360
|
contains: []
|
|
2361
2361
|
// defined later
|
|
2362
|
-
},
|
|
2362
|
+
}, d = {
|
|
2363
2363
|
begin: "html`",
|
|
2364
2364
|
end: "",
|
|
2365
2365
|
starts: {
|
|
@@ -2371,7 +2371,7 @@ function Vt(e) {
|
|
|
2371
2371
|
],
|
|
2372
2372
|
subLanguage: "xml"
|
|
2373
2373
|
}
|
|
2374
|
-
},
|
|
2374
|
+
}, h = {
|
|
2375
2375
|
begin: "css`",
|
|
2376
2376
|
end: "",
|
|
2377
2377
|
starts: {
|
|
@@ -2451,8 +2451,8 @@ function Vt(e) {
|
|
|
2451
2451
|
}, v = [
|
|
2452
2452
|
e.APOS_STRING_MODE,
|
|
2453
2453
|
e.QUOTE_STRING_MODE,
|
|
2454
|
-
h,
|
|
2455
2454
|
d,
|
|
2455
|
+
h,
|
|
2456
2456
|
p,
|
|
2457
2457
|
_,
|
|
2458
2458
|
// Skip numbers when they are part of a variable name
|
|
@@ -2541,8 +2541,8 @@ function Vt(e) {
|
|
|
2541
2541
|
keywords: {
|
|
2542
2542
|
_: [
|
|
2543
2543
|
// se we still get relevance credit for JS library classes
|
|
2544
|
-
...
|
|
2545
|
-
...
|
|
2544
|
+
...On,
|
|
2545
|
+
...Cn
|
|
2546
2546
|
]
|
|
2547
2547
|
}
|
|
2548
2548
|
}, L = {
|
|
@@ -2575,19 +2575,19 @@ function Vt(e) {
|
|
|
2575
2575
|
label: "func.def",
|
|
2576
2576
|
contains: [S],
|
|
2577
2577
|
illegal: /%/
|
|
2578
|
-
},
|
|
2578
|
+
}, P = {
|
|
2579
2579
|
relevance: 0,
|
|
2580
2580
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
2581
2581
|
className: "variable.constant"
|
|
2582
2582
|
};
|
|
2583
|
-
function
|
|
2583
|
+
function $(N) {
|
|
2584
2584
|
return r.concat("(?!", N.join("|"), ")");
|
|
2585
2585
|
}
|
|
2586
2586
|
const K = {
|
|
2587
2587
|
match: r.concat(
|
|
2588
2588
|
/\b/,
|
|
2589
|
-
|
|
2590
|
-
...
|
|
2589
|
+
$([
|
|
2590
|
+
...In,
|
|
2591
2591
|
"super",
|
|
2592
2592
|
"import"
|
|
2593
2593
|
]),
|
|
@@ -2659,8 +2659,8 @@ function Vt(e) {
|
|
|
2659
2659
|
L,
|
|
2660
2660
|
e.APOS_STRING_MODE,
|
|
2661
2661
|
e.QUOTE_STRING_MODE,
|
|
2662
|
-
h,
|
|
2663
2662
|
d,
|
|
2663
|
+
h,
|
|
2664
2664
|
p,
|
|
2665
2665
|
_,
|
|
2666
2666
|
m,
|
|
@@ -2787,7 +2787,7 @@ function Vt(e) {
|
|
|
2787
2787
|
contains: [S]
|
|
2788
2788
|
},
|
|
2789
2789
|
K,
|
|
2790
|
-
|
|
2790
|
+
P,
|
|
2791
2791
|
M,
|
|
2792
2792
|
oe,
|
|
2793
2793
|
{
|
|
@@ -2797,7 +2797,7 @@ function Vt(e) {
|
|
|
2797
2797
|
]
|
|
2798
2798
|
};
|
|
2799
2799
|
}
|
|
2800
|
-
function
|
|
2800
|
+
function tr(e) {
|
|
2801
2801
|
const r = {
|
|
2802
2802
|
className: "attr",
|
|
2803
2803
|
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -2831,7 +2831,7 @@ function Jt(e) {
|
|
|
2831
2831
|
illegal: "\\S"
|
|
2832
2832
|
};
|
|
2833
2833
|
}
|
|
2834
|
-
function
|
|
2834
|
+
function rr(e) {
|
|
2835
2835
|
const r = "true false yes no null", l = "[\\w#;/?:@&=+$,.~*'()[\\]]+", f = {
|
|
2836
2836
|
className: "attr",
|
|
2837
2837
|
variants: [
|
|
@@ -2887,22 +2887,22 @@ function qt(e) {
|
|
|
2887
2887
|
end: /"/
|
|
2888
2888
|
},
|
|
2889
2889
|
{ begin: /[^\s,{}[\]]+/ }
|
|
2890
|
-
] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", s = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",
|
|
2890
|
+
] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", s = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", a = "(\\.[0-9]*)?", o = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", c = {
|
|
2891
2891
|
className: "number",
|
|
2892
|
-
begin: "\\b" + i + s +
|
|
2892
|
+
begin: "\\b" + i + s + a + o + "\\b"
|
|
2893
2893
|
}, u = {
|
|
2894
2894
|
end: ",",
|
|
2895
2895
|
endsWithParent: !0,
|
|
2896
2896
|
excludeEnd: !0,
|
|
2897
2897
|
keywords: r,
|
|
2898
2898
|
relevance: 0
|
|
2899
|
-
},
|
|
2899
|
+
}, d = {
|
|
2900
2900
|
begin: /\{/,
|
|
2901
2901
|
end: /\}/,
|
|
2902
2902
|
contains: [u],
|
|
2903
2903
|
illegal: "\\n",
|
|
2904
2904
|
relevance: 0
|
|
2905
|
-
},
|
|
2905
|
+
}, h = {
|
|
2906
2906
|
begin: "\\[",
|
|
2907
2907
|
end: "\\]",
|
|
2908
2908
|
contains: [u],
|
|
@@ -2984,8 +2984,8 @@ function qt(e) {
|
|
|
2984
2984
|
begin: e.C_NUMBER_RE + "\\b",
|
|
2985
2985
|
relevance: 0
|
|
2986
2986
|
},
|
|
2987
|
-
h,
|
|
2988
2987
|
d,
|
|
2988
|
+
h,
|
|
2989
2989
|
n
|
|
2990
2990
|
], _ = [...p];
|
|
2991
2991
|
return _.pop(), _.push(t), u.contains = _, {
|
|
@@ -2995,7 +2995,7 @@ function qt(e) {
|
|
|
2995
2995
|
contains: p
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function ir(e) {
|
|
2999
2999
|
return {
|
|
3000
3000
|
name: "Plain text",
|
|
3001
3001
|
aliases: [
|
|
@@ -3005,7 +3005,7 @@ function er(e) {
|
|
|
3005
3005
|
disableAutodetect: !0
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function sr(e) {
|
|
3009
3009
|
const r = e.regex, l = /[\p{XID_Start}_]\p{XID_Continue}*/u, f = [
|
|
3010
3010
|
"and",
|
|
3011
3011
|
"as",
|
|
@@ -3141,13 +3141,13 @@ function nr(e) {
|
|
|
3141
3141
|
}, s = {
|
|
3142
3142
|
className: "meta",
|
|
3143
3143
|
begin: /^(>>>|\.\.\.) /
|
|
3144
|
-
},
|
|
3144
|
+
}, a = {
|
|
3145
3145
|
className: "subst",
|
|
3146
3146
|
begin: /\{/,
|
|
3147
3147
|
end: /\}/,
|
|
3148
3148
|
keywords: i,
|
|
3149
3149
|
illegal: /#/
|
|
3150
|
-
},
|
|
3150
|
+
}, o = {
|
|
3151
3151
|
begin: /\{\{/,
|
|
3152
3152
|
relevance: 0
|
|
3153
3153
|
}, c = {
|
|
@@ -3178,8 +3178,8 @@ function nr(e) {
|
|
|
3178
3178
|
contains: [
|
|
3179
3179
|
e.BACKSLASH_ESCAPE,
|
|
3180
3180
|
s,
|
|
3181
|
-
|
|
3182
|
-
|
|
3181
|
+
o,
|
|
3182
|
+
a
|
|
3183
3183
|
]
|
|
3184
3184
|
},
|
|
3185
3185
|
{
|
|
@@ -3188,8 +3188,8 @@ function nr(e) {
|
|
|
3188
3188
|
contains: [
|
|
3189
3189
|
e.BACKSLASH_ESCAPE,
|
|
3190
3190
|
s,
|
|
3191
|
-
|
|
3192
|
-
|
|
3191
|
+
o,
|
|
3192
|
+
a
|
|
3193
3193
|
]
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
@@ -3215,8 +3215,8 @@ function nr(e) {
|
|
|
3215
3215
|
end: /'/,
|
|
3216
3216
|
contains: [
|
|
3217
3217
|
e.BACKSLASH_ESCAPE,
|
|
3218
|
-
|
|
3219
|
-
|
|
3218
|
+
o,
|
|
3219
|
+
a
|
|
3220
3220
|
]
|
|
3221
3221
|
},
|
|
3222
3222
|
{
|
|
@@ -3224,14 +3224,14 @@ function nr(e) {
|
|
|
3224
3224
|
end: /"/,
|
|
3225
3225
|
contains: [
|
|
3226
3226
|
e.BACKSLASH_ESCAPE,
|
|
3227
|
-
|
|
3228
|
-
|
|
3227
|
+
o,
|
|
3228
|
+
a
|
|
3229
3229
|
]
|
|
3230
3230
|
},
|
|
3231
3231
|
e.APOS_STRING_MODE,
|
|
3232
3232
|
e.QUOTE_STRING_MODE
|
|
3233
3233
|
]
|
|
3234
|
-
}, u = "[0-9](_?[0-9])*",
|
|
3234
|
+
}, u = "[0-9](_?[0-9])*", d = `(\\b(${u}))?\\.(${u})|\\b(${u})\\.`, h = `\\b|${f.join("|")}`, p = {
|
|
3235
3235
|
className: "number",
|
|
3236
3236
|
relevance: 0,
|
|
3237
3237
|
variants: [
|
|
@@ -3246,10 +3246,10 @@ function nr(e) {
|
|
|
3246
3246
|
// because both MUST contain a decimal point and so cannot be confused with
|
|
3247
3247
|
// the interior part of an identifier
|
|
3248
3248
|
{
|
|
3249
|
-
begin: `(\\b(${u})|(${
|
|
3249
|
+
begin: `(\\b(${u})|(${d}))[eE][+-]?(${u})[jJ]?(?=${h})`
|
|
3250
3250
|
},
|
|
3251
3251
|
{
|
|
3252
|
-
begin: `(${
|
|
3252
|
+
begin: `(${d})[jJ]?`
|
|
3253
3253
|
},
|
|
3254
3254
|
// decinteger, bininteger, octinteger, hexinteger
|
|
3255
3255
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
|
|
@@ -3258,21 +3258,21 @@ function nr(e) {
|
|
|
3258
3258
|
// decinteger is optionally imaginary
|
|
3259
3259
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
3260
3260
|
{
|
|
3261
|
-
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${
|
|
3261
|
+
begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`
|
|
3262
3262
|
},
|
|
3263
3263
|
{
|
|
3264
|
-
begin: `\\b0[bB](_?[01])+[lL]?(?=${
|
|
3264
|
+
begin: `\\b0[bB](_?[01])+[lL]?(?=${h})`
|
|
3265
3265
|
},
|
|
3266
3266
|
{
|
|
3267
|
-
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${
|
|
3267
|
+
begin: `\\b0[oO](_?[0-7])+[lL]?(?=${h})`
|
|
3268
3268
|
},
|
|
3269
3269
|
{
|
|
3270
|
-
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${
|
|
3270
|
+
begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`
|
|
3271
3271
|
},
|
|
3272
3272
|
// imagnumber (digitpart-based)
|
|
3273
3273
|
// https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
|
|
3274
3274
|
{
|
|
3275
|
-
begin: `\\b(${u})[jJ](?=${
|
|
3275
|
+
begin: `\\b(${u})[jJ](?=${h})`
|
|
3276
3276
|
}
|
|
3277
3277
|
]
|
|
3278
3278
|
}, _ = {
|
|
@@ -3317,7 +3317,7 @@ function nr(e) {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
]
|
|
3319
3319
|
};
|
|
3320
|
-
return
|
|
3320
|
+
return a.contains = [
|
|
3321
3321
|
c,
|
|
3322
3322
|
p,
|
|
3323
3323
|
s
|
|
@@ -3399,22 +3399,22 @@ function nr(e) {
|
|
|
3399
3399
|
]
|
|
3400
3400
|
};
|
|
3401
3401
|
}
|
|
3402
|
-
var de = "[0-9](_*[0-9])*",
|
|
3402
|
+
var de = "[0-9](_*[0-9])*", Re = `\\.(${de})`, Oe = "[0-9a-fA-F](_*[0-9a-fA-F])*", dn = {
|
|
3403
3403
|
className: "number",
|
|
3404
3404
|
variants: [
|
|
3405
3405
|
// DecimalFloatingPointLiteral
|
|
3406
3406
|
// including ExponentPart
|
|
3407
|
-
{ begin: `(\\b(${de})((${
|
|
3407
|
+
{ begin: `(\\b(${de})((${Re})|\\.)?|(${Re}))[eE][+-]?(${de})[fFdD]?\\b` },
|
|
3408
3408
|
// excluding ExponentPart
|
|
3409
|
-
{ begin: `\\b(${de})((${
|
|
3410
|
-
{ begin: `(${
|
|
3409
|
+
{ begin: `\\b(${de})((${Re})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
3410
|
+
{ begin: `(${Re})[fFdD]?\\b` },
|
|
3411
3411
|
{ begin: `\\b(${de})[fFdD]\\b` },
|
|
3412
3412
|
// HexadecimalFloatingPointLiteral
|
|
3413
|
-
{ begin: `\\b0[xX]((${
|
|
3413
|
+
{ begin: `\\b0[xX]((${Oe})\\.?|(${Oe})?\\.(${Oe}))[pP][+-]?(${de})[fFdD]?\\b` },
|
|
3414
3414
|
// DecimalIntegerLiteral
|
|
3415
3415
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
3416
3416
|
// HexIntegerLiteral
|
|
3417
|
-
{ begin: `\\b0[xX](${
|
|
3417
|
+
{ begin: `\\b0[xX](${Oe})[lL]?\\b` },
|
|
3418
3418
|
// OctalIntegerLiteral
|
|
3419
3419
|
{ begin: "\\b0(_*[0-7])*[lL]?\\b" },
|
|
3420
3420
|
// BinaryIntegerLiteral
|
|
@@ -3422,11 +3422,11 @@ var de = "[0-9](_*[0-9])*", Le = `\\.(${de})`, Re = "[0-9a-fA-F](_*[0-9a-fA-F])*
|
|
|
3422
3422
|
],
|
|
3423
3423
|
relevance: 0
|
|
3424
3424
|
};
|
|
3425
|
-
function
|
|
3426
|
-
return l === -1 ? "" : e.replace(r, (f) =>
|
|
3425
|
+
function kn(e, r, l) {
|
|
3426
|
+
return l === -1 ? "" : e.replace(r, (f) => kn(e, r, l - 1));
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3429
|
-
const r = e.regex, l = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", f = l +
|
|
3428
|
+
function ar(e) {
|
|
3429
|
+
const r = e.regex, l = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*", f = l + kn("(?:<" + l + "~~~(?:\\s*,\\s*" + l + "~~~)*>)?", /~~~/g, 2), s = {
|
|
3430
3430
|
keyword: [
|
|
3431
3431
|
"synchronized",
|
|
3432
3432
|
"abstract",
|
|
@@ -3490,7 +3490,7 @@ function tr(e) {
|
|
|
3490
3490
|
"super",
|
|
3491
3491
|
"this"
|
|
3492
3492
|
]
|
|
3493
|
-
},
|
|
3493
|
+
}, a = {
|
|
3494
3494
|
className: "meta",
|
|
3495
3495
|
begin: "@" + l,
|
|
3496
3496
|
contains: [
|
|
@@ -3501,7 +3501,7 @@ function tr(e) {
|
|
|
3501
3501
|
// allow nested () inside our annotation
|
|
3502
3502
|
}
|
|
3503
3503
|
]
|
|
3504
|
-
},
|
|
3504
|
+
}, o = {
|
|
3505
3505
|
className: "params",
|
|
3506
3506
|
begin: /\(/,
|
|
3507
3507
|
end: /\)/,
|
|
@@ -3591,7 +3591,7 @@ function tr(e) {
|
|
|
3591
3591
|
3: "title.class"
|
|
3592
3592
|
},
|
|
3593
3593
|
contains: [
|
|
3594
|
-
|
|
3594
|
+
o,
|
|
3595
3595
|
e.C_LINE_COMMENT_MODE,
|
|
3596
3596
|
e.C_BLOCK_COMMENT_MODE
|
|
3597
3597
|
]
|
|
@@ -3618,10 +3618,10 @@ function tr(e) {
|
|
|
3618
3618
|
keywords: s,
|
|
3619
3619
|
relevance: 0,
|
|
3620
3620
|
contains: [
|
|
3621
|
-
|
|
3621
|
+
a,
|
|
3622
3622
|
e.APOS_STRING_MODE,
|
|
3623
3623
|
e.QUOTE_STRING_MODE,
|
|
3624
|
-
|
|
3624
|
+
dn,
|
|
3625
3625
|
e.C_BLOCK_COMMENT_MODE
|
|
3626
3626
|
]
|
|
3627
3627
|
},
|
|
@@ -3629,12 +3629,12 @@ function tr(e) {
|
|
|
3629
3629
|
e.C_BLOCK_COMMENT_MODE
|
|
3630
3630
|
]
|
|
3631
3631
|
},
|
|
3632
|
-
|
|
3633
|
-
|
|
3632
|
+
dn,
|
|
3633
|
+
a
|
|
3634
3634
|
]
|
|
3635
3635
|
};
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3637
|
+
function or(e) {
|
|
3638
3638
|
const r = e.regex, l = {}, f = {
|
|
3639
3639
|
begin: /\$\{/,
|
|
3640
3640
|
end: /\}/,
|
|
@@ -3690,9 +3690,9 @@ function rr(e) {
|
|
|
3690
3690
|
className: "string",
|
|
3691
3691
|
begin: /'/,
|
|
3692
3692
|
end: /'/
|
|
3693
|
-
}, o = {
|
|
3694
|
-
match: /\\'/
|
|
3695
3693
|
}, a = {
|
|
3694
|
+
match: /\\'/
|
|
3695
|
+
}, o = {
|
|
3696
3696
|
begin: /\$?\(\(/,
|
|
3697
3697
|
end: /\)\)/,
|
|
3698
3698
|
contains: [
|
|
@@ -3716,13 +3716,13 @@ function rr(e) {
|
|
|
3716
3716
|
], u = e.SHEBANG({
|
|
3717
3717
|
binary: `(${c.join("|")})`,
|
|
3718
3718
|
relevance: 10
|
|
3719
|
-
}),
|
|
3719
|
+
}), d = {
|
|
3720
3720
|
className: "function",
|
|
3721
3721
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
3722
3722
|
returnBegin: !0,
|
|
3723
3723
|
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
3724
3724
|
relevance: 0
|
|
3725
|
-
},
|
|
3725
|
+
}, h = [
|
|
3726
3726
|
"if",
|
|
3727
3727
|
"then",
|
|
3728
3728
|
"else",
|
|
@@ -3961,7 +3961,7 @@ function rr(e) {
|
|
|
3961
3961
|
aliases: ["sh"],
|
|
3962
3962
|
keywords: {
|
|
3963
3963
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
3964
|
-
keyword:
|
|
3964
|
+
keyword: h,
|
|
3965
3965
|
literal: p,
|
|
3966
3966
|
built_in: [
|
|
3967
3967
|
...E,
|
|
@@ -3978,20 +3978,20 @@ function rr(e) {
|
|
|
3978
3978
|
// to catch known shells and boost relevancy
|
|
3979
3979
|
e.SHEBANG(),
|
|
3980
3980
|
// to catch unknown shells but still highlight the shebang
|
|
3981
|
-
|
|
3982
|
-
|
|
3981
|
+
d,
|
|
3982
|
+
o,
|
|
3983
3983
|
e.HASH_COMMENT_MODE,
|
|
3984
3984
|
n,
|
|
3985
3985
|
_,
|
|
3986
3986
|
t,
|
|
3987
3987
|
i,
|
|
3988
3988
|
s,
|
|
3989
|
-
|
|
3989
|
+
a,
|
|
3990
3990
|
l
|
|
3991
3991
|
]
|
|
3992
3992
|
};
|
|
3993
3993
|
}
|
|
3994
|
-
function
|
|
3994
|
+
function lr(e) {
|
|
3995
3995
|
const r = e.regex, l = e.COMMENT("--", "$"), f = {
|
|
3996
3996
|
className: "string",
|
|
3997
3997
|
variants: [
|
|
@@ -4054,7 +4054,7 @@ function ir(e) {
|
|
|
4054
4054
|
"first",
|
|
4055
4055
|
"last",
|
|
4056
4056
|
"view"
|
|
4057
|
-
],
|
|
4057
|
+
], a = [
|
|
4058
4058
|
"abs",
|
|
4059
4059
|
"acos",
|
|
4060
4060
|
"all",
|
|
@@ -4421,7 +4421,7 @@ function ir(e) {
|
|
|
4421
4421
|
"within",
|
|
4422
4422
|
"without",
|
|
4423
4423
|
"year"
|
|
4424
|
-
],
|
|
4424
|
+
], o = [
|
|
4425
4425
|
"abs",
|
|
4426
4426
|
"acos",
|
|
4427
4427
|
"array_agg",
|
|
@@ -4540,10 +4540,10 @@ function ir(e) {
|
|
|
4540
4540
|
"nulls last",
|
|
4541
4541
|
"depth first",
|
|
4542
4542
|
"breadth first"
|
|
4543
|
-
],
|
|
4544
|
-
...
|
|
4543
|
+
], d = o, h = [
|
|
4544
|
+
...a,
|
|
4545
4545
|
...s
|
|
4546
|
-
].filter((v) => !
|
|
4546
|
+
].filter((v) => !o.includes(v)), p = {
|
|
4547
4547
|
className: "variable",
|
|
4548
4548
|
begin: /@[a-z0-9][a-z0-9_]*/
|
|
4549
4549
|
}, _ = {
|
|
@@ -4551,9 +4551,9 @@ function ir(e) {
|
|
|
4551
4551
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
4552
4552
|
relevance: 0
|
|
4553
4553
|
}, E = {
|
|
4554
|
-
begin: r.concat(/\b/, r.either(...
|
|
4554
|
+
begin: r.concat(/\b/, r.either(...d), /\s*\(/),
|
|
4555
4555
|
relevance: 0,
|
|
4556
|
-
keywords: { built_in:
|
|
4556
|
+
keywords: { built_in: d }
|
|
4557
4557
|
};
|
|
4558
4558
|
function m(v, {
|
|
4559
4559
|
exceptions: A,
|
|
@@ -4569,7 +4569,7 @@ function ir(e) {
|
|
|
4569
4569
|
illegal: /[{}]|<\//,
|
|
4570
4570
|
keywords: {
|
|
4571
4571
|
$pattern: /\b[\w\.]+/,
|
|
4572
|
-
keyword: m(
|
|
4572
|
+
keyword: m(h, { when: (v) => v.length < 3 }),
|
|
4573
4573
|
literal: n,
|
|
4574
4574
|
type: i,
|
|
4575
4575
|
built_in: c
|
|
@@ -4580,7 +4580,7 @@ function ir(e) {
|
|
|
4580
4580
|
relevance: 0,
|
|
4581
4581
|
keywords: {
|
|
4582
4582
|
$pattern: /[\w\.]+/,
|
|
4583
|
-
keyword:
|
|
4583
|
+
keyword: h.concat(u),
|
|
4584
4584
|
literal: n,
|
|
4585
4585
|
type: i
|
|
4586
4586
|
}
|
|
@@ -4600,52 +4600,52 @@ function ir(e) {
|
|
|
4600
4600
|
]
|
|
4601
4601
|
};
|
|
4602
4602
|
}
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
var
|
|
4613
|
-
const ie = "<code-diff-modified>", se = "</code-diff-modified>",
|
|
4603
|
+
q.registerLanguage("xml", Vt);
|
|
4604
|
+
q.registerLanguage("javascript", nr);
|
|
4605
|
+
q.registerLanguage("json", tr);
|
|
4606
|
+
q.registerLanguage("yaml", rr);
|
|
4607
|
+
q.registerLanguage("plaintext", ir);
|
|
4608
|
+
q.registerLanguage("python", sr);
|
|
4609
|
+
q.registerLanguage("java", ar);
|
|
4610
|
+
q.registerLanguage("bash", or);
|
|
4611
|
+
q.registerLanguage("sql", lr);
|
|
4612
|
+
var y = /* @__PURE__ */ ((e) => (e.EQUAL = "equal", e.DELETE = "removed", e.ADD = "added", e.EMPTY = "empty", e))(y || {});
|
|
4613
|
+
const ie = "<code-diff-modified>", se = "</code-diff-modified>", cr = ie.replace("<", "<").replace(">", ">"), ur = se.replace("<", "<").replace(">", ">");
|
|
4614
4614
|
function be(e) {
|
|
4615
|
-
return e === void 0 ?
|
|
4615
|
+
return e === void 0 ? y.EQUAL : e.added ? y.ADD : e.removed ? y.DELETE : y.EQUAL;
|
|
4616
4616
|
}
|
|
4617
|
-
function
|
|
4618
|
-
return typeof e == "undefined" ? r : typeof r == "undefined" ? e : (l === "char" ?
|
|
4619
|
-
(g) => be(g) ===
|
|
4617
|
+
function Be(e, r, l = "word") {
|
|
4618
|
+
return typeof e == "undefined" ? r : typeof r == "undefined" ? e : (l === "char" ? Vn : qn)(e, r).filter((g) => be(g) !== y.DELETE).map(
|
|
4619
|
+
(g) => be(g) === y.ADD ? `${ie}${g.value}${se}` : g.value
|
|
4620
4620
|
).join("");
|
|
4621
4621
|
}
|
|
4622
|
-
function
|
|
4623
|
-
const l = new
|
|
4622
|
+
function Bn(e, r) {
|
|
4623
|
+
const l = new Fe.diff_match_patch(), f = l.diff_linesToChars_(e, r), g = f.chars1, n = f.chars2, t = f.lineArray, i = l.diff_main(g, n, !1);
|
|
4624
4624
|
return l.diff_charsToLines_(i, t), i.map((s) => {
|
|
4625
|
-
const [
|
|
4625
|
+
const [a, o] = s;
|
|
4626
4626
|
return {
|
|
4627
|
-
count:
|
|
4627
|
+
count: o.replace(/\n$/, "").split(`
|
|
4628
4628
|
`).length,
|
|
4629
|
-
value:
|
|
4630
|
-
removed:
|
|
4631
|
-
added:
|
|
4629
|
+
value: o,
|
|
4630
|
+
removed: a === Fe.DIFF_DELETE,
|
|
4631
|
+
added: a === Fe.DIFF_INSERT
|
|
4632
4632
|
};
|
|
4633
4633
|
});
|
|
4634
4634
|
}
|
|
4635
|
-
function
|
|
4635
|
+
function j(e, r) {
|
|
4636
4636
|
if (!r.match(new RegExp(`(${ie}|${se})`, "g")))
|
|
4637
|
-
return
|
|
4637
|
+
return q.highlight(r, { language: e }).value;
|
|
4638
4638
|
let f = r;
|
|
4639
4639
|
const g = r.replace(new RegExp(`(${ie}|${se})`, "g"), ""), n = document.createElement("div");
|
|
4640
|
-
n.innerHTML =
|
|
4640
|
+
n.innerHTML = q.highlight(g, { language: e }).value;
|
|
4641
4641
|
let t = !1;
|
|
4642
4642
|
const i = (s) => {
|
|
4643
|
-
s.childNodes.forEach((
|
|
4644
|
-
if (
|
|
4645
|
-
if (!
|
|
4643
|
+
s.childNodes.forEach((a) => {
|
|
4644
|
+
if (a.nodeType === Node.ELEMENT_NODE && i(a), a.nodeType === Node.TEXT_NODE) {
|
|
4645
|
+
if (!a.textContent)
|
|
4646
4646
|
return;
|
|
4647
|
-
let
|
|
4648
|
-
for (t && (c = c + ie);
|
|
4647
|
+
let o = a.textContent, c = "";
|
|
4648
|
+
for (t && (c = c + ie); o.length; ) {
|
|
4649
4649
|
if (f.startsWith(ie)) {
|
|
4650
4650
|
f = f.slice(ie.length), c = c + ie, t = !0;
|
|
4651
4651
|
continue;
|
|
@@ -4654,31 +4654,31 @@ function V(e, r) {
|
|
|
4654
4654
|
f = f.slice(se.length), c = c + se, t = !1;
|
|
4655
4655
|
continue;
|
|
4656
4656
|
}
|
|
4657
|
-
const u = f.match(new RegExp(`(${ie}|${se})`)),
|
|
4658
|
-
c = c + f.substring(0,
|
|
4657
|
+
const u = f.match(new RegExp(`(${ie}|${se})`)), d = u && u.index ? u.index : f.length, h = Math.min(d, o.length);
|
|
4658
|
+
c = c + f.substring(0, h), f = f.slice(h), o = o.slice(h);
|
|
4659
4659
|
}
|
|
4660
|
-
t && (c = c + se),
|
|
4660
|
+
t && (c = c + se), a.textContent = c;
|
|
4661
4661
|
}
|
|
4662
4662
|
});
|
|
4663
4663
|
};
|
|
4664
|
-
return i(n), n.innerHTML.replace(new RegExp(
|
|
4664
|
+
return i(n), n.innerHTML.replace(new RegExp(cr, "g"), '<span class="x">').replace(new RegExp(ur, "g"), "</span>");
|
|
4665
4665
|
}
|
|
4666
|
-
function
|
|
4667
|
-
const l = (s,
|
|
4666
|
+
function $n(e, r) {
|
|
4667
|
+
const l = (s, a) => (s.match(new RegExp(a, "g")) || []).length, f = (s) => s.filter((a) => r == null ? void 0 : r.test(a)).length;
|
|
4668
4668
|
let g = 0, n = 0, t = 0, i = 0;
|
|
4669
4669
|
for (const s of e) {
|
|
4670
4670
|
if (s.added) {
|
|
4671
|
-
const
|
|
4671
|
+
const a = f(s.value.trim().split(`
|
|
4672
4672
|
`));
|
|
4673
4673
|
g += l(s.value.trim(), `
|
|
4674
|
-
`) + 1 -
|
|
4674
|
+
`) + 1 - a, t += a;
|
|
4675
4675
|
continue;
|
|
4676
4676
|
}
|
|
4677
4677
|
if (s.removed) {
|
|
4678
|
-
const
|
|
4678
|
+
const a = f(s.value.trim().split(`
|
|
4679
4679
|
`));
|
|
4680
4680
|
n += l(s.value.trim(), `
|
|
4681
|
-
`) + 1 -
|
|
4681
|
+
`) + 1 - a, i += a;
|
|
4682
4682
|
continue;
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
@@ -4689,82 +4689,82 @@ function Cn(e, r) {
|
|
|
4689
4689
|
ignoreDeletionsNum: i
|
|
4690
4690
|
};
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4693
|
-
const i = () => ({ type:
|
|
4694
|
-
let c = 0, u = 0,
|
|
4695
|
-
const
|
|
4696
|
-
changes:
|
|
4692
|
+
function fr(e, r, l = "plaintext", f = "word", g = !1, n = 10, t) {
|
|
4693
|
+
const i = () => ({ type: y.EMPTY }), s = (m, v, A) => ({ type: m, num: v, code: A }), a = Bn(e, r), o = t ? new RegExp(t) : void 0;
|
|
4694
|
+
let c = 0, u = 0, d = !1;
|
|
4695
|
+
const h = [], p = {
|
|
4696
|
+
changes: h,
|
|
4697
4697
|
collector: [],
|
|
4698
|
-
stat:
|
|
4698
|
+
stat: $n(a, o)
|
|
4699
4699
|
};
|
|
4700
|
-
for (let m = 0; m <
|
|
4701
|
-
if (
|
|
4702
|
-
|
|
4700
|
+
for (let m = 0; m < a.length; m++) {
|
|
4701
|
+
if (d) {
|
|
4702
|
+
d = !1;
|
|
4703
4703
|
continue;
|
|
4704
4704
|
}
|
|
4705
|
-
const [v, A] = [
|
|
4705
|
+
const [v, A] = [a[m], a[m + 1]], [D, S] = [be(v), be(A)], M = v.value.replace(/\n$/, "").split(`
|
|
4706
4706
|
`);
|
|
4707
4707
|
if (A === void 0) {
|
|
4708
4708
|
for (const L of M) {
|
|
4709
|
-
let I = i(),
|
|
4710
|
-
const
|
|
4711
|
-
D ===
|
|
4709
|
+
let I = i(), P = i();
|
|
4710
|
+
const $ = j(l, L);
|
|
4711
|
+
D === y.EQUAL && (c++, u++, I = s(y.EQUAL, c, $), P = s(y.EQUAL, u, $)), D === y.DELETE && (c++, I = s(y.DELETE, c, $), P = i()), D === y.ADD && (u++, I = i(), P = s(y.ADD, u, $)), h.push({ left: I, right: P });
|
|
4712
4712
|
}
|
|
4713
4713
|
break;
|
|
4714
4714
|
}
|
|
4715
|
-
if (D ===
|
|
4715
|
+
if (D === y.EQUAL)
|
|
4716
4716
|
for (const L of M) {
|
|
4717
4717
|
c++, u++;
|
|
4718
|
-
const I =
|
|
4719
|
-
|
|
4720
|
-
left: s(
|
|
4721
|
-
right: s(
|
|
4718
|
+
const I = j(l, L);
|
|
4719
|
+
h.push({
|
|
4720
|
+
left: s(y.EQUAL, c, I),
|
|
4721
|
+
right: s(y.EQUAL, u, I)
|
|
4722
4722
|
});
|
|
4723
4723
|
}
|
|
4724
4724
|
const R = A.value.replace(/\n$/, "").split(`
|
|
4725
4725
|
`);
|
|
4726
|
-
if (D ===
|
|
4727
|
-
if (S ===
|
|
4726
|
+
if (D === y.DELETE) {
|
|
4727
|
+
if (S === y.EQUAL)
|
|
4728
4728
|
for (const L of M)
|
|
4729
|
-
c++,
|
|
4730
|
-
left: s(
|
|
4729
|
+
c++, h.push({
|
|
4730
|
+
left: s(y.DELETE, c, j(l, L)),
|
|
4731
4731
|
right: i()
|
|
4732
4732
|
});
|
|
4733
|
-
if (S ===
|
|
4734
|
-
|
|
4733
|
+
if (S === y.ADD) {
|
|
4734
|
+
d = !0;
|
|
4735
4735
|
const L = Math.max(v.count, A.count);
|
|
4736
4736
|
for (let I = 0; I < L; I++) {
|
|
4737
4737
|
I < v.count && c++, I < A.count && u++;
|
|
4738
|
-
const [
|
|
4739
|
-
|
|
4738
|
+
const [P, $] = [M[I], R[I]], K = g || M.length === R.length, Y = K ? Be($, P, f) : P, oe = K ? Be(P, $, f) : $, ge = o != null && o.test(P) ? y.EQUAL : y.DELETE, b = o != null && o.test($) ? y.EQUAL : y.ADD, N = I < v.count ? s(ge, c, j(l, Y)) : i(), O = I < A.count ? s(b, u, j(l, oe)) : i();
|
|
4739
|
+
h.push({ left: N, right: O });
|
|
4740
4740
|
}
|
|
4741
4741
|
}
|
|
4742
4742
|
}
|
|
4743
|
-
if (D ===
|
|
4743
|
+
if (D === y.ADD)
|
|
4744
4744
|
for (const L of M)
|
|
4745
|
-
u++,
|
|
4745
|
+
u++, h.push({
|
|
4746
4746
|
left: i(),
|
|
4747
|
-
right: s(
|
|
4747
|
+
right: s(y.ADD, u, j(l, L))
|
|
4748
4748
|
});
|
|
4749
4749
|
}
|
|
4750
4750
|
if (e === r) {
|
|
4751
|
-
for (let m = 0; m <
|
|
4752
|
-
|
|
4751
|
+
for (let m = 0; m < h.length; m++)
|
|
4752
|
+
h[m].fold = !1;
|
|
4753
4753
|
return p;
|
|
4754
4754
|
}
|
|
4755
|
-
for (let m = 0; m <
|
|
4756
|
-
const v =
|
|
4757
|
-
if (v.left.type ===
|
|
4758
|
-
const [A, D] = [Math.max(m - n, 0), Math.min(m + n + 1,
|
|
4755
|
+
for (let m = 0; m < h.length; m++) {
|
|
4756
|
+
const v = h[m];
|
|
4757
|
+
if (v.left.type === y.DELETE || v.right.type === y.ADD) {
|
|
4758
|
+
const [A, D] = [Math.max(m - n, 0), Math.min(m + n + 1, h.length)];
|
|
4759
4759
|
for (let S = A; S < D; S++)
|
|
4760
|
-
|
|
4760
|
+
h[S].fold = !1;
|
|
4761
4761
|
}
|
|
4762
4762
|
v.fold === void 0 && (v.fold = !0);
|
|
4763
4763
|
}
|
|
4764
4764
|
const _ = [];
|
|
4765
4765
|
let E = [];
|
|
4766
|
-
for (let m = 0; m <
|
|
4767
|
-
const v =
|
|
4766
|
+
for (let m = 0; m < h.length; m++) {
|
|
4767
|
+
const v = h[m];
|
|
4768
4768
|
if (v.fold === !1) {
|
|
4769
4769
|
E.length && (E[0].hideIndex = p.collector.length, p.collector.push({
|
|
4770
4770
|
lines: E,
|
|
@@ -4779,13 +4779,13 @@ function or(e, r, l = "plaintext", f = "word", g = !1, n = 10, t) {
|
|
|
4779
4779
|
fold: !0
|
|
4780
4780
|
}), E = []), p.changes = _, p;
|
|
4781
4781
|
}
|
|
4782
|
-
function
|
|
4783
|
-
const i =
|
|
4784
|
-
let
|
|
4785
|
-
const u = [],
|
|
4782
|
+
function gr(e, r, l = "plaintext", f = "word", g = !1, n = 10, t) {
|
|
4783
|
+
const i = Bn(e, r), s = t ? new RegExp(t) : void 0;
|
|
4784
|
+
let a = 0, o = 0, c = !1;
|
|
4785
|
+
const u = [], d = {
|
|
4786
4786
|
changes: u,
|
|
4787
4787
|
collector: [],
|
|
4788
|
-
stat:
|
|
4788
|
+
stat: $n(i, s)
|
|
4789
4789
|
};
|
|
4790
4790
|
for (let _ = 0; _ < i.length; _++) {
|
|
4791
4791
|
if (c) {
|
|
@@ -4796,64 +4796,64 @@ function lr(e, r, l = "plaintext", f = "word", g = !1, n = 10, t) {
|
|
|
4796
4796
|
`);
|
|
4797
4797
|
if (m === void 0) {
|
|
4798
4798
|
for (const M of D) {
|
|
4799
|
-
v ===
|
|
4800
|
-
const R =
|
|
4799
|
+
v === y.EQUAL && (a++, o++), v === y.DELETE && a++, v === y.ADD && o++;
|
|
4800
|
+
const R = j(l, M);
|
|
4801
4801
|
u.push({
|
|
4802
4802
|
type: v,
|
|
4803
4803
|
code: R,
|
|
4804
|
-
addNum: v ===
|
|
4805
|
-
delNum: v ===
|
|
4804
|
+
addNum: v === y.DELETE ? void 0 : o,
|
|
4805
|
+
delNum: v === y.ADD ? void 0 : a
|
|
4806
4806
|
});
|
|
4807
4807
|
}
|
|
4808
4808
|
break;
|
|
4809
4809
|
}
|
|
4810
|
-
if (v ===
|
|
4810
|
+
if (v === y.EQUAL)
|
|
4811
4811
|
for (const M of D) {
|
|
4812
|
-
|
|
4813
|
-
const R =
|
|
4814
|
-
u.push({ type:
|
|
4812
|
+
a++, o++;
|
|
4813
|
+
const R = j(l, M);
|
|
4814
|
+
u.push({ type: y.EQUAL, code: R, delNum: a, addNum: o });
|
|
4815
4815
|
}
|
|
4816
4816
|
const S = m.value.replace(/\n$/, "").split(`
|
|
4817
4817
|
`);
|
|
4818
|
-
if (v ===
|
|
4819
|
-
if (A ===
|
|
4818
|
+
if (v === y.DELETE)
|
|
4819
|
+
if (A === y.ADD && (D.length === S.length || g)) {
|
|
4820
4820
|
for (let M = 0; M < D.length; M++) {
|
|
4821
4821
|
const R = D[M], L = S[M];
|
|
4822
|
-
|
|
4823
|
-
const I =
|
|
4822
|
+
a++;
|
|
4823
|
+
const I = j(l, Be(L, R, f));
|
|
4824
4824
|
u.push({
|
|
4825
|
-
type: s != null && s.test(R) ?
|
|
4825
|
+
type: s != null && s.test(R) ? y.EQUAL : y.DELETE,
|
|
4826
4826
|
code: I,
|
|
4827
|
-
delNum:
|
|
4827
|
+
delNum: a
|
|
4828
4828
|
});
|
|
4829
4829
|
}
|
|
4830
4830
|
for (let M = 0; M < S.length; M++) {
|
|
4831
4831
|
const R = D[M], L = S[M];
|
|
4832
|
-
|
|
4833
|
-
const I =
|
|
4832
|
+
o++;
|
|
4833
|
+
const I = j(l, Be(R, L, f));
|
|
4834
4834
|
u.push({
|
|
4835
|
-
type: s != null && s.test(L) ?
|
|
4835
|
+
type: s != null && s.test(L) ? y.EQUAL : y.ADD,
|
|
4836
4836
|
code: I,
|
|
4837
|
-
addNum:
|
|
4837
|
+
addNum: o
|
|
4838
4838
|
});
|
|
4839
4839
|
}
|
|
4840
4840
|
c = !0;
|
|
4841
4841
|
} else
|
|
4842
4842
|
for (const M of D) {
|
|
4843
|
-
|
|
4844
|
-
const R =
|
|
4845
|
-
u.push({ type:
|
|
4843
|
+
a++;
|
|
4844
|
+
const R = j(l, M);
|
|
4845
|
+
u.push({ type: y.DELETE, code: R, delNum: a });
|
|
4846
4846
|
}
|
|
4847
|
-
if (v ===
|
|
4847
|
+
if (v === y.ADD)
|
|
4848
4848
|
for (const M of D) {
|
|
4849
|
-
|
|
4850
|
-
const R =
|
|
4851
|
-
u.push({ type:
|
|
4849
|
+
o++;
|
|
4850
|
+
const R = j(l, M);
|
|
4851
|
+
u.push({ type: y.ADD, code: R, addNum: o });
|
|
4852
4852
|
}
|
|
4853
4853
|
}
|
|
4854
4854
|
for (let _ = 0; _ < u.length; _++) {
|
|
4855
4855
|
const E = u[_];
|
|
4856
|
-
if (E.type ===
|
|
4856
|
+
if (E.type === y.DELETE || E.type === y.ADD) {
|
|
4857
4857
|
const [m, v] = [Math.max(_ - n, 0), Math.min(_ + n + 1, u.length)];
|
|
4858
4858
|
for (let A = m; A < v; A++)
|
|
4859
4859
|
u[A].fold = !1;
|
|
@@ -4863,30 +4863,30 @@ function lr(e, r, l = "plaintext", f = "word", g = !1, n = 10, t) {
|
|
|
4863
4863
|
if (e === r) {
|
|
4864
4864
|
for (let _ = 0; _ < u.length; _++)
|
|
4865
4865
|
u[_].fold = !1;
|
|
4866
|
-
return
|
|
4866
|
+
return d;
|
|
4867
4867
|
}
|
|
4868
|
-
const
|
|
4868
|
+
const h = [];
|
|
4869
4869
|
let p = [];
|
|
4870
4870
|
for (let _ = 0; _ < u.length; _++) {
|
|
4871
4871
|
const E = u[_];
|
|
4872
4872
|
if (E.fold === !1) {
|
|
4873
|
-
p.length && (p[0].hideIndex =
|
|
4873
|
+
p.length && (p[0].hideIndex = d.collector.length, d.collector.push({
|
|
4874
4874
|
lines: p,
|
|
4875
4875
|
fold: !0
|
|
4876
|
-
}), p = []),
|
|
4876
|
+
}), p = []), h.push(E);
|
|
4877
4877
|
continue;
|
|
4878
4878
|
}
|
|
4879
|
-
E.type === "equal" && (E.hide = !0, p.push(E)),
|
|
4879
|
+
E.type === "equal" && (E.hide = !0, p.push(E)), h.push(E);
|
|
4880
4880
|
}
|
|
4881
|
-
return p.length && (p[0].hideIndex =
|
|
4881
|
+
return p.length && (p[0].hideIndex = d.collector.length, d.collector.push({
|
|
4882
4882
|
lines: p,
|
|
4883
4883
|
fold: !0
|
|
4884
|
-
}), p = []),
|
|
4884
|
+
}), p = []), d.changes = h, d;
|
|
4885
4885
|
}
|
|
4886
|
-
const
|
|
4886
|
+
const hr = { key: 0 }, dr = /* @__PURE__ */ B("td", {
|
|
4887
4887
|
class: "blob-code blob-code-hunk",
|
|
4888
4888
|
align: "left"
|
|
4889
|
-
}, " ⋯ ", -1),
|
|
4889
|
+
}, " ⋯ ", -1), pr = { key: 1 }, _r = ["data-code-marker", "innerHTML"], br = /* @__PURE__ */ Ae({
|
|
4890
4890
|
__name: "UnifiedLine",
|
|
4891
4891
|
props: {
|
|
4892
4892
|
line: {}
|
|
@@ -4895,49 +4895,49 @@ const cr = { key: 0 }, ur = /* @__PURE__ */ P("td", {
|
|
|
4895
4895
|
setup(e, { emit: r }) {
|
|
4896
4896
|
const l = r;
|
|
4897
4897
|
function f(g) {
|
|
4898
|
-
return g ===
|
|
4898
|
+
return g === y.DELETE ? "-" : g === y.ADD ? "+" : "";
|
|
4899
4899
|
}
|
|
4900
|
-
return (g, n) => g.line.hideIndex !== void 0 && g.line.hide ? (G(), W("tr",
|
|
4901
|
-
|
|
4900
|
+
return (g, n) => g.line.hideIndex !== void 0 && g.line.hide ? (G(), W("tr", hr, [
|
|
4901
|
+
B("td", {
|
|
4902
4902
|
class: "blob-num blob-num-hunk text-center",
|
|
4903
4903
|
colspan: "2",
|
|
4904
4904
|
onClick: n[0] || (n[0] = (t) => l("expand", g.line))
|
|
4905
4905
|
}, " > "),
|
|
4906
|
-
|
|
4907
|
-
])) : g.line.hide ? ve("", !0) : (G(), W("tr",
|
|
4908
|
-
|
|
4906
|
+
dr
|
|
4907
|
+
])) : g.line.hide ? ve("", !0) : (G(), W("tr", pr, [
|
|
4908
|
+
B("td", {
|
|
4909
4909
|
class: me(["blob-num", {
|
|
4910
|
-
"blob-num-deletion": g.line.type === F(
|
|
4911
|
-
"blob-num-addition": g.line.type === F(
|
|
4912
|
-
"blob-num-context": g.line.type === F(
|
|
4910
|
+
"blob-num-deletion": g.line.type === F(y).DELETE,
|
|
4911
|
+
"blob-num-addition": g.line.type === F(y).ADD,
|
|
4912
|
+
"blob-num-context": g.line.type === F(y).EQUAL,
|
|
4913
4913
|
"blob-num-hunk": g.line.hide !== void 0
|
|
4914
4914
|
}])
|
|
4915
4915
|
}, ee(g.line.delNum), 3),
|
|
4916
|
-
|
|
4916
|
+
B("td", {
|
|
4917
4917
|
class: me(["blob-num", {
|
|
4918
|
-
"blob-num-deletion": g.line.type === F(
|
|
4919
|
-
"blob-num-addition": g.line.type === F(
|
|
4920
|
-
"blob-num-context": g.line.type === F(
|
|
4918
|
+
"blob-num-deletion": g.line.type === F(y).DELETE,
|
|
4919
|
+
"blob-num-addition": g.line.type === F(y).ADD,
|
|
4920
|
+
"blob-num-context": g.line.type === F(y).EQUAL,
|
|
4921
4921
|
"blob-num-hunk": g.line.hide !== void 0
|
|
4922
4922
|
}])
|
|
4923
4923
|
}, ee(g.line.addNum), 3),
|
|
4924
|
-
|
|
4924
|
+
B("td", {
|
|
4925
4925
|
class: me(["blob-code", {
|
|
4926
|
-
"blob-code-deletion": g.line.type === F(
|
|
4927
|
-
"blob-code-addition": g.line.type === F(
|
|
4928
|
-
"blob-code-context": g.line.type === F(
|
|
4926
|
+
"blob-code-deletion": g.line.type === F(y).DELETE,
|
|
4927
|
+
"blob-code-addition": g.line.type === F(y).ADD,
|
|
4928
|
+
"blob-code-context": g.line.type === F(y).EQUAL,
|
|
4929
4929
|
"blob-code-hunk": g.line.hide !== void 0
|
|
4930
4930
|
}])
|
|
4931
4931
|
}, [
|
|
4932
|
-
|
|
4932
|
+
B("span", {
|
|
4933
4933
|
class: "blob-code-inner blob-code-marker",
|
|
4934
4934
|
"data-code-marker": f(g.line.type),
|
|
4935
4935
|
innerHTML: g.line.code
|
|
4936
|
-
}, null, 8,
|
|
4936
|
+
}, null, 8, _r)
|
|
4937
4937
|
], 2)
|
|
4938
4938
|
]));
|
|
4939
4939
|
}
|
|
4940
|
-
}),
|
|
4940
|
+
}), Er = { class: "diff-table" }, mr = /* @__PURE__ */ Ae({
|
|
4941
4941
|
__name: "UnifiedViewer",
|
|
4942
4942
|
props: {
|
|
4943
4943
|
diffChange: {}
|
|
@@ -4951,9 +4951,9 @@ const cr = { key: 0 }, ur = /* @__PURE__ */ P("td", {
|
|
|
4951
4951
|
}
|
|
4952
4952
|
return (f, g) => {
|
|
4953
4953
|
var n;
|
|
4954
|
-
return G(), W("table",
|
|
4955
|
-
|
|
4956
|
-
(G(!0), W(pe, null,
|
|
4954
|
+
return G(), W("table", Er, [
|
|
4955
|
+
B("tbody", null, [
|
|
4956
|
+
(G(!0), W(pe, null, Ke((n = f.diffChange) == null ? void 0 : n.changes, (t, i) => (G(), Ie(br, {
|
|
4957
4957
|
key: i,
|
|
4958
4958
|
line: t,
|
|
4959
4959
|
onExpand: l
|
|
@@ -4962,11 +4962,11 @@ const cr = { key: 0 }, ur = /* @__PURE__ */ P("td", {
|
|
|
4962
4962
|
]);
|
|
4963
4963
|
};
|
|
4964
4964
|
}
|
|
4965
|
-
}),
|
|
4965
|
+
}), vr = { key: 0 }, wr = /* @__PURE__ */ B("td", {
|
|
4966
4966
|
class: "blob-code blob-code-inner blob-code-hunk",
|
|
4967
4967
|
colspan: "3",
|
|
4968
4968
|
align: "left"
|
|
4969
|
-
}, " ⋯ ", -1),
|
|
4969
|
+
}, " ⋯ ", -1), yr = { key: 1 }, Nr = /* @__PURE__ */ B("td", { class: "blob-num blob-num-empty empty-cell" }, null, -1), Ar = /* @__PURE__ */ B("td", { class: "blob-code blob-code-empty empty-cell" }, null, -1), Mr = ["onMousedown"], Tr = ["data-code-marker", "innerHTML"], Sr = /* @__PURE__ */ Ae({
|
|
4970
4970
|
__name: "SplitLine",
|
|
4971
4971
|
props: {
|
|
4972
4972
|
splitLine: {}
|
|
@@ -4975,64 +4975,63 @@ const cr = { key: 0 }, ur = /* @__PURE__ */ P("td", {
|
|
|
4975
4975
|
setup(e, { emit: r }) {
|
|
4976
4976
|
const l = r;
|
|
4977
4977
|
function f(n) {
|
|
4978
|
-
return n ===
|
|
4978
|
+
return n === y.DELETE ? "-" : n === y.ADD ? "+" : "";
|
|
4979
4979
|
}
|
|
4980
4980
|
function g(n) {
|
|
4981
|
-
window.getSelection().removeAllRanges();
|
|
4982
4981
|
const t = document.querySelectorAll(".file-diff-split .split-side-left"), i = document.querySelectorAll(".file-diff-split .split-side-right");
|
|
4983
4982
|
for (const s of i)
|
|
4984
4983
|
s.classList.toggle("no-select", n === "left");
|
|
4985
4984
|
for (const s of t)
|
|
4986
4985
|
s.classList.toggle("no-select", n === "right");
|
|
4987
4986
|
}
|
|
4988
|
-
return (n, t) => n.splitLine.hideIndex !== void 0 && n.splitLine.hide ? (G(), W("tr",
|
|
4989
|
-
|
|
4987
|
+
return (n, t) => n.splitLine.hideIndex !== void 0 && n.splitLine.hide ? (G(), W("tr", vr, [
|
|
4988
|
+
B("td", {
|
|
4990
4989
|
class: "blob-num blob-num-hunk",
|
|
4991
4990
|
colspan: "1",
|
|
4992
4991
|
onClick: t[0] || (t[0] = (i) => l("expand", n.splitLine))
|
|
4993
4992
|
}, " > "),
|
|
4994
|
-
|
|
4995
|
-
])) : n.splitLine.hide ? ve("", !0) : (G(), W("tr",
|
|
4996
|
-
(G(!0), W(pe, null,
|
|
4997
|
-
i.type === F(
|
|
4998
|
-
|
|
4999
|
-
|
|
4993
|
+
wr
|
|
4994
|
+
])) : n.splitLine.hide ? ve("", !0) : (G(), W("tr", yr, [
|
|
4995
|
+
(G(!0), W(pe, null, Ke([n.splitLine.left, n.splitLine.right], (i, s) => (G(), W(pe, null, [
|
|
4996
|
+
i.type === F(y).EMPTY ? (G(), W(pe, { key: 0 }, [
|
|
4997
|
+
Nr,
|
|
4998
|
+
Ar
|
|
5000
4999
|
], 64)) : (G(), W(pe, { key: 1 }, [
|
|
5001
|
-
|
|
5000
|
+
B("td", {
|
|
5002
5001
|
class: me(["blob-num", {
|
|
5003
|
-
"blob-num-deletion": i.type === F(
|
|
5004
|
-
"blob-num-addition": i.type === F(
|
|
5005
|
-
"blob-num-context": i.type === F(
|
|
5002
|
+
"blob-num-deletion": i.type === F(y).DELETE,
|
|
5003
|
+
"blob-num-addition": i.type === F(y).ADD,
|
|
5004
|
+
"blob-num-context": i.type === F(y).EQUAL,
|
|
5006
5005
|
"blob-num-hunk": n.splitLine.hide !== void 0
|
|
5007
5006
|
}])
|
|
5008
5007
|
}, ee(i.num), 3),
|
|
5009
|
-
|
|
5008
|
+
B("td", {
|
|
5010
5009
|
class: me(["blob-code", {
|
|
5011
|
-
"blob-code-deletion": i.type === F(
|
|
5012
|
-
"blob-code-addition": i.type === F(
|
|
5013
|
-
"blob-code-context": i.type === F(
|
|
5010
|
+
"blob-code-deletion": i.type === F(y).DELETE,
|
|
5011
|
+
"blob-code-addition": i.type === F(y).ADD,
|
|
5012
|
+
"blob-code-context": i.type === F(y).EQUAL,
|
|
5014
5013
|
"blob-code-hunk": n.splitLine.hide !== void 0,
|
|
5015
5014
|
"split-side-left": s === 0,
|
|
5016
5015
|
"split-side-right": s === 1
|
|
5017
5016
|
}]),
|
|
5018
|
-
onMousedown: (
|
|
5017
|
+
onMousedown: (a) => g(s === 0 ? "left" : "right")
|
|
5019
5018
|
}, [
|
|
5020
|
-
|
|
5019
|
+
B("span", {
|
|
5021
5020
|
class: "blob-code-inner blob-code-marker",
|
|
5022
5021
|
"data-code-marker": f(i.type),
|
|
5023
5022
|
innerHTML: i.code
|
|
5024
|
-
}, null, 8,
|
|
5025
|
-
], 42,
|
|
5023
|
+
}, null, 8, Tr)
|
|
5024
|
+
], 42, Mr)
|
|
5026
5025
|
], 64))
|
|
5027
5026
|
], 64))), 256))
|
|
5028
5027
|
]));
|
|
5029
5028
|
}
|
|
5030
|
-
}),
|
|
5031
|
-
/* @__PURE__ */
|
|
5032
|
-
/* @__PURE__ */
|
|
5033
|
-
/* @__PURE__ */
|
|
5034
|
-
/* @__PURE__ */
|
|
5035
|
-
], -1),
|
|
5029
|
+
}), Dr = { class: "file-diff-split diff-table" }, Lr = /* @__PURE__ */ B("colgroup", null, [
|
|
5030
|
+
/* @__PURE__ */ B("col", { width: "44" }),
|
|
5031
|
+
/* @__PURE__ */ B("col"),
|
|
5032
|
+
/* @__PURE__ */ B("col", { width: "44" }),
|
|
5033
|
+
/* @__PURE__ */ B("col")
|
|
5034
|
+
], -1), Rr = /* @__PURE__ */ Ae({
|
|
5036
5035
|
__name: "SplitViewer",
|
|
5037
5036
|
props: {
|
|
5038
5037
|
diffChange: {}
|
|
@@ -5046,10 +5045,10 @@ const cr = { key: 0 }, ur = /* @__PURE__ */ P("td", {
|
|
|
5046
5045
|
}
|
|
5047
5046
|
return (f, g) => {
|
|
5048
5047
|
var n;
|
|
5049
|
-
return G(), W("table",
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
(G(!0), W(pe, null,
|
|
5048
|
+
return G(), W("table", Dr, [
|
|
5049
|
+
Lr,
|
|
5050
|
+
B("tbody", null, [
|
|
5051
|
+
(G(!0), W(pe, null, Ke((n = f.diffChange) == null ? void 0 : n.changes, (t, i) => (G(), Ie(Sr, {
|
|
5053
5052
|
key: i,
|
|
5054
5053
|
"split-line": t,
|
|
5055
5054
|
onExpand: l
|
|
@@ -5058,23 +5057,52 @@ const cr = { key: 0 }, ur = /* @__PURE__ */ P("td", {
|
|
|
5058
5057
|
]);
|
|
5059
5058
|
};
|
|
5060
5059
|
}
|
|
5061
|
-
})
|
|
5062
|
-
const
|
|
5060
|
+
}), Pn = (e, r) => {
|
|
5061
|
+
const l = e.__vccOpts || e;
|
|
5062
|
+
for (const [f, g] of r)
|
|
5063
|
+
l[f] = g;
|
|
5064
|
+
return l;
|
|
5065
|
+
}, Or = {
|
|
5066
|
+
name: "DownArrowIcon"
|
|
5067
|
+
}, Cr = {
|
|
5068
|
+
width: "1rem",
|
|
5069
|
+
viewBox: "0 0 512 512",
|
|
5070
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5071
|
+
}, Ir = /* @__PURE__ */ B("path", { d: "M383.6,322.7L278.6,423c-5.8,6-13.7,9-22.4,9c-8.7,0-16.5-3-22.4-9L128.4,322.7c-12.5-11.9-12.5-31.3,0-43.2 c12.5-11.9,32.7-11.9,45.2,0l50.4,48.2v-217c0-16.9,14.3-30.6,32-30.6c17.7,0,32,13.7,32,30.6v217l50.4-48.2 c12.5-11.9,32.7-11.9,45.2,0C396.1,291.4,396.1,310.7,383.6,322.7z" }, null, -1), kr = [
|
|
5072
|
+
Ir
|
|
5073
|
+
];
|
|
5074
|
+
function Br(e, r, l, f, g, n) {
|
|
5075
|
+
return G(), W("svg", Cr, kr);
|
|
5076
|
+
}
|
|
5077
|
+
const pn = /* @__PURE__ */ Pn(Or, [["render", Br]]), $r = {
|
|
5078
|
+
name: "UpArrowIcon"
|
|
5079
|
+
}, Pr = {
|
|
5080
|
+
width: "1rem",
|
|
5081
|
+
viewBox: "0 0 512 512",
|
|
5082
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5083
|
+
}, Ur = /* @__PURE__ */ B("path", { d: "M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2 c-12.5,11.9-32.7,11.9-45.2,0L288,184.4v217c0,16.9-14.3,30.6-32,30.6c-17.7,0-32-13.7-32-30.6v-217l-50.4,48.2 c-12.5,11.9-32.7,11.9-45.2,0C115.9,220.6,115.9,201.3,128.4,189.3z" }, null, -1), Hr = [
|
|
5084
|
+
Ur
|
|
5085
|
+
];
|
|
5086
|
+
function Fr(e, r, l, f, g, n) {
|
|
5087
|
+
return G(), W("svg", Pr, Hr);
|
|
5088
|
+
}
|
|
5089
|
+
const _n = /* @__PURE__ */ Pn($r, [["render", Fr]]);
|
|
5090
|
+
const zr = ["theme"], xr = {
|
|
5063
5091
|
key: 0,
|
|
5064
5092
|
class: "file-header"
|
|
5065
|
-
},
|
|
5093
|
+
}, Gr = {
|
|
5066
5094
|
key: 0,
|
|
5067
5095
|
class: "file-info"
|
|
5068
|
-
},
|
|
5096
|
+
}, Kr = { class: "info-left" }, Wr = { class: "info-left" }, Qr = { class: "diff-commandbar" }, Zr = {
|
|
5069
5097
|
key: 0,
|
|
5070
5098
|
class: "diff-stat"
|
|
5071
|
-
},
|
|
5099
|
+
}, Yr = { class: "diff-stat-added" }, Xr = { class: "diff-stat-deleted" }, Vr = {
|
|
5072
5100
|
key: 1,
|
|
5073
5101
|
class: "file-info"
|
|
5074
|
-
},
|
|
5102
|
+
}, jr = { class: "info-left" }, qr = { class: "info-right" }, Jr = { style: { "margin-left": "20px" } }, ei = { class: "diff-commandbar" }, ni = {
|
|
5075
5103
|
key: 0,
|
|
5076
5104
|
class: "diff-stat"
|
|
5077
|
-
},
|
|
5105
|
+
}, ti = { class: "diff-stat-added" }, ri = { class: "diff-stat-deleted" }, ii = /* @__PURE__ */ Ae({
|
|
5078
5106
|
__name: "CodeDiff",
|
|
5079
5107
|
props: {
|
|
5080
5108
|
newString: {},
|
|
@@ -5097,77 +5125,122 @@ const Sr = ["theme"], Dr = {
|
|
|
5097
5125
|
emits: ["diff"],
|
|
5098
5126
|
setup(e, { emit: r }) {
|
|
5099
5127
|
const l = e, f = r, g = Ee(() => l.outputFormat === "line-by-line"), n = Ee(() => {
|
|
5100
|
-
let
|
|
5101
|
-
return
|
|
5102
|
-
`) :
|
|
5128
|
+
let h = l.oldString || "";
|
|
5129
|
+
return h = l.trim ? h.trim() : h, h = l.noDiffLineFeed ? h.replace(/(\r\n)/g, `
|
|
5130
|
+
`) : h, h;
|
|
5103
5131
|
}), t = Ee(() => {
|
|
5104
|
-
let
|
|
5105
|
-
return
|
|
5106
|
-
`) :
|
|
5132
|
+
let h = l.newString || "";
|
|
5133
|
+
return h = l.trim ? h.trim() : h, h = l.noDiffLineFeed ? h.replace(/(\r\n)/g, `
|
|
5134
|
+
`) : h, h;
|
|
5107
5135
|
}), i = Ee(
|
|
5108
|
-
() => g.value ?
|
|
5109
|
-
), s =
|
|
5110
|
-
|
|
5136
|
+
() => g.value ? gr(n.value, t.value, l.language, l.diffStyle, l.forceInlineComparison, l.context, l.ignoreMatchingLines) : fr(n.value, t.value, l.language, l.diffStyle, l.forceInlineComparison, l.context, l.ignoreMatchingLines)
|
|
5137
|
+
), s = nn(i.value), a = Ee(() => s.value.stat.additionsNum === 0 && s.value.stat.deletionsNum === 0), o = nn(-1);
|
|
5138
|
+
function c() {
|
|
5139
|
+
const h = document.querySelectorAll(".blob-code-addition");
|
|
5140
|
+
o.value < h.length - 1 && (o.value++, d(h));
|
|
5141
|
+
}
|
|
5142
|
+
function u() {
|
|
5143
|
+
const h = document.querySelectorAll(".blob-code-addition");
|
|
5144
|
+
o.value > 0 && (o.value--, d(h));
|
|
5145
|
+
}
|
|
5146
|
+
function d(h) {
|
|
5147
|
+
h.forEach((_) => _.classList.remove("current-diff"));
|
|
5148
|
+
const p = h[o.value];
|
|
5149
|
+
p && (p.classList.add("current-diff"), p.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
5150
|
+
}
|
|
5151
|
+
return Wn(() => l, () => {
|
|
5111
5152
|
s.value = i.value, f("diff", {
|
|
5112
5153
|
stat: {
|
|
5113
|
-
isChanged: !
|
|
5154
|
+
isChanged: !a.value,
|
|
5114
5155
|
addNum: s.value.stat.additionsNum,
|
|
5115
5156
|
delNum: s.value.stat.deletionsNum
|
|
5116
5157
|
}
|
|
5117
5158
|
});
|
|
5118
|
-
}, { deep: !0, immediate: !0 }), (
|
|
5159
|
+
}, { deep: !0, immediate: !0 }), (h, p) => (G(), W("div", {
|
|
5119
5160
|
class: "code-diff-view",
|
|
5120
|
-
theme:
|
|
5121
|
-
style:
|
|
5161
|
+
theme: h.theme,
|
|
5162
|
+
style: Qn({ maxHeight: h.maxHeight })
|
|
5122
5163
|
}, [
|
|
5123
|
-
|
|
5124
|
-
F(g) ? (G(), W("div",
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5164
|
+
h.hideHeader ? ve("", !0) : (G(), W("div", xr, [
|
|
5165
|
+
F(g) ? (G(), W("div", Gr, [
|
|
5166
|
+
B("span", null, [
|
|
5167
|
+
B("div", Kr, ee(h.filename), 1),
|
|
5168
|
+
B("div", Wr, ee(h.newFilename), 1)
|
|
5128
5169
|
]),
|
|
5129
|
-
|
|
5130
|
-
|
|
5170
|
+
B("span", Qr, [
|
|
5171
|
+
B("button", {
|
|
5172
|
+
class: "command-item-button",
|
|
5173
|
+
title: "Next Change",
|
|
5174
|
+
onClick: c
|
|
5175
|
+
}, [
|
|
5176
|
+
De(pn)
|
|
5177
|
+
]),
|
|
5178
|
+
B("button", {
|
|
5179
|
+
class: "command-item-button",
|
|
5180
|
+
title: "Previous Change",
|
|
5181
|
+
onClick: u
|
|
5182
|
+
}, [
|
|
5183
|
+
De(_n)
|
|
5184
|
+
])
|
|
5185
|
+
]),
|
|
5186
|
+
h.hideStat ? ve("", !0) : (G(), W("span", Zr, [
|
|
5187
|
+
tn(h.$slots, "stat", {
|
|
5131
5188
|
stat: F(s).stat
|
|
5132
5189
|
}, () => [
|
|
5133
|
-
|
|
5134
|
-
|
|
5190
|
+
B("span", Yr, "+" + ee(F(s).stat.additionsNum) + " additions", 1),
|
|
5191
|
+
B("span", Xr, "-" + ee(F(s).stat.deletionsNum) + " deletions", 1)
|
|
5135
5192
|
])
|
|
5136
5193
|
]))
|
|
5137
|
-
])) : (G(), W("div",
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5194
|
+
])) : (G(), W("div", Vr, [
|
|
5195
|
+
B("span", jr, ee(h.filename), 1),
|
|
5196
|
+
B("span", qr, [
|
|
5197
|
+
B("span", Jr, ee(h.newFilename), 1),
|
|
5198
|
+
B("span", ei, [
|
|
5199
|
+
B("button", {
|
|
5200
|
+
class: "command-item-button",
|
|
5201
|
+
title: "Next Change",
|
|
5202
|
+
onClick: c
|
|
5203
|
+
}, [
|
|
5204
|
+
De(pn)
|
|
5205
|
+
]),
|
|
5206
|
+
B("button", {
|
|
5207
|
+
class: "command-item-button",
|
|
5208
|
+
title: "Previous Change",
|
|
5209
|
+
onClick: u
|
|
5210
|
+
}, [
|
|
5211
|
+
De(_n)
|
|
5212
|
+
])
|
|
5213
|
+
]),
|
|
5214
|
+
h.hideStat ? ve("", !0) : (G(), W("span", ni, [
|
|
5215
|
+
tn(h.$slots, "stat", {
|
|
5143
5216
|
stat: F(s).stat
|
|
5144
5217
|
}, () => [
|
|
5145
|
-
|
|
5146
|
-
|
|
5218
|
+
B("span", ti, "+" + ee(F(s).stat.additionsNum) + " additions", 1),
|
|
5219
|
+
B("span", ri, "-" + ee(F(s).stat.deletionsNum) + " deletions", 1)
|
|
5147
5220
|
])
|
|
5148
5221
|
]))
|
|
5149
5222
|
])
|
|
5150
5223
|
]))
|
|
5151
5224
|
])),
|
|
5152
|
-
F(g) ? (G(),
|
|
5225
|
+
F(g) ? (G(), Ie(mr, {
|
|
5153
5226
|
key: 1,
|
|
5154
5227
|
"diff-change": F(s)
|
|
5155
|
-
}, null, 8, ["diff-change"])) : (G(),
|
|
5228
|
+
}, null, 8, ["diff-change"])) : (G(), Ie(Rr, {
|
|
5156
5229
|
key: 2,
|
|
5157
5230
|
"diff-change": F(s)
|
|
5158
5231
|
}, null, 8, ["diff-change"]))
|
|
5159
|
-
], 12,
|
|
5232
|
+
], 12, zr));
|
|
5160
5233
|
}
|
|
5161
5234
|
});
|
|
5162
|
-
function
|
|
5163
|
-
e.component("CodeDiff",
|
|
5235
|
+
function si(e) {
|
|
5236
|
+
e.component("CodeDiff", ii);
|
|
5164
5237
|
}
|
|
5165
|
-
const
|
|
5166
|
-
install:
|
|
5167
|
-
hljs:
|
|
5238
|
+
const oi = {
|
|
5239
|
+
install: si,
|
|
5240
|
+
hljs: q
|
|
5168
5241
|
};
|
|
5169
5242
|
export {
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5243
|
+
ii as CodeDiff,
|
|
5244
|
+
oi as default,
|
|
5245
|
+
q as hljs
|
|
5173
5246
|
};
|