v-code-diff 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/v2/index.cjs.js +3 -3
- package/dist/v2/index.es.js +15 -10
- package/dist/v2.7/index.cjs.js +3 -3
- package/dist/v2.7/index.es.js +190 -189
- package/dist/v3/index.cjs.js +7 -7
- package/dist/v3/index.es.js +173 -173
- package/package.json +7 -3
- package/src/CodeDiff.vue +3 -1
- package/src/split/SplitViewer.vue +11 -13
- package/src/style.scss +88 -88
- package/src/unified/UnifiedViewer.vue +5 -7
- package/src/var.scss +2 -2
package/dist/v2.7/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".file{--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #24292f;--color-diff-blob-addition-fg: #24292f;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #24292f;--color-diff-blob-deletion-fg: #24292f;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #2da44e;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(27,31,36,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(27,31,36,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(27,31,36,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view *{position:static}.code-diff-view .file{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:2px}.code-diff-view .file table{border-spacing:0}.code-diff-view .file .diff-table{width:100%}.code-diff-view .file .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 .file .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 .file .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 .file .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .file .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 .file .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .file .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 .file .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .file .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 .file .diff-table .blob-code-context,.code-diff-view .file .diff-table .blob-code-addition,.code-diff-view .file .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .file .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .file .file-diff-split{table-layout:fixed}.code-diff-view .file .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .file .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode(".code-diff-view{--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #24292f;--color-diff-blob-addition-fg: #24292f;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #24292f;--color-diff-blob-deletion-fg: #24292f;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #2da44e;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(27,31,36,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(27,31,36,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(27,31,36,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static}.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 .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import wn, { defineComponent as de, computed as Ee } from "vue";
|
|
3
3
|
wn.util.warn;
|
|
4
4
|
function Z() {
|
|
@@ -8,20 +8,20 @@ Z.prototype = {
|
|
|
8
8
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = s.callback;
|
|
9
9
|
typeof s == "function" && (c = s, s = {}), this.options = s;
|
|
10
10
|
var l = this;
|
|
11
|
-
function
|
|
11
|
+
function r(g) {
|
|
12
12
|
return c ? (setTimeout(function() {
|
|
13
13
|
c(void 0, g);
|
|
14
14
|
}, 0), !0) : g;
|
|
15
15
|
}
|
|
16
16
|
n = this.castInput(n), t = this.castInput(t), n = this.removeEmpty(this.tokenize(n)), t = this.removeEmpty(this.tokenize(t));
|
|
17
|
-
var
|
|
17
|
+
var i = t.length, a = n.length, o = 1, p = i + a;
|
|
18
18
|
s.maxEditLength && (p = Math.min(p, s.maxEditLength));
|
|
19
19
|
var _ = [{
|
|
20
20
|
newPos: -1,
|
|
21
21
|
components: []
|
|
22
22
|
}], f = this.extractCommon(_[0], t, n, 0);
|
|
23
|
-
if (_[0].newPos + 1 >=
|
|
24
|
-
return
|
|
23
|
+
if (_[0].newPos + 1 >= i && f + 1 >= a)
|
|
24
|
+
return r([{
|
|
25
25
|
value: this.join(t),
|
|
26
26
|
count: t.length
|
|
27
27
|
}]);
|
|
@@ -29,13 +29,13 @@ Z.prototype = {
|
|
|
29
29
|
for (var g = -1 * o; g <= o; g += 2) {
|
|
30
30
|
var A = void 0, S = _[g - 1], x = _[g + 1], y = (x ? x.newPos : 0) - g;
|
|
31
31
|
S && (_[g - 1] = void 0);
|
|
32
|
-
var M = S && S.newPos + 1 <
|
|
32
|
+
var M = S && S.newPos + 1 < i, L = x && 0 <= y && y < a;
|
|
33
33
|
if (!M && !L) {
|
|
34
34
|
_[g] = void 0;
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
|
-
if (!M || L && S.newPos < x.newPos ? (A = Rn(x), l.pushComponent(A.components, void 0, !0)) : (A = S, A.newPos++, l.pushComponent(A.components, !0, void 0)), y = l.extractCommon(A, t, n, g), A.newPos + 1 >=
|
|
38
|
-
return
|
|
37
|
+
if (!M || L && S.newPos < x.newPos ? (A = Rn(x), l.pushComponent(A.components, void 0, !0)) : (A = S, A.newPos++, l.pushComponent(A.components, !0, void 0)), y = l.extractCommon(A, t, n, g), A.newPos + 1 >= i && y + 1 >= a)
|
|
38
|
+
return r(Sn(l, A.components, t, n, l.useLongestToken));
|
|
39
39
|
_[g] = A;
|
|
40
40
|
}
|
|
41
41
|
o++;
|
|
@@ -68,11 +68,11 @@ Z.prototype = {
|
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
70
|
extractCommon: function(n, t, s, c) {
|
|
71
|
-
for (var l = t.length,
|
|
72
|
-
|
|
71
|
+
for (var l = t.length, r = s.length, i = n.newPos, a = i - c, o = 0; i + 1 < l && a + 1 < r && this.equals(t[i + 1], s[a + 1]); )
|
|
72
|
+
i++, a++, o++;
|
|
73
73
|
return o && n.components.push({
|
|
74
74
|
count: o
|
|
75
|
-
}), n.newPos =
|
|
75
|
+
}), n.newPos = i, a;
|
|
76
76
|
},
|
|
77
77
|
equals: function(n, t) {
|
|
78
78
|
return this.options.comparator ? this.options.comparator(n, t) : n === t || this.options.ignoreCase && n.toLowerCase() === t.toLowerCase();
|
|
@@ -93,7 +93,7 @@ Z.prototype = {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
function Sn(e, n, t, s, c) {
|
|
96
|
-
for (var l = 0,
|
|
96
|
+
for (var l = 0, r = n.length, i = 0, a = 0; l < r; l++) {
|
|
97
97
|
var o = n[l];
|
|
98
98
|
if (o.removed) {
|
|
99
99
|
if (o.value = e.join(s.slice(a, a + o.count)), a += o.count, l && n[l - 1].added) {
|
|
@@ -102,18 +102,18 @@ function Sn(e, n, t, s, c) {
|
|
|
102
102
|
}
|
|
103
103
|
} else {
|
|
104
104
|
if (!o.added && c) {
|
|
105
|
-
var p = t.slice(
|
|
105
|
+
var p = t.slice(i, i + o.count);
|
|
106
106
|
p = p.map(function(N, h) {
|
|
107
107
|
var g = s[a + h];
|
|
108
108
|
return g.length > N.length ? g : N;
|
|
109
109
|
}), o.value = e.join(p);
|
|
110
110
|
} else
|
|
111
|
-
o.value = e.join(t.slice(
|
|
112
|
-
|
|
111
|
+
o.value = e.join(t.slice(i, i + o.count));
|
|
112
|
+
i += o.count, o.added || (a += o.count);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
var f = n[
|
|
116
|
-
return
|
|
115
|
+
var f = n[r - 1];
|
|
116
|
+
return r > 1 && typeof f.value == "string" && (f.added || f.removed) && e.equals("", f.value) && (n[r - 2].value += f.value, n.pop()), n;
|
|
117
117
|
}
|
|
118
118
|
function Rn(e) {
|
|
119
119
|
return {
|
|
@@ -179,8 +179,8 @@ var In = Object.prototype.toString, ce = new Z();
|
|
|
179
179
|
ce.useLongestToken = !0;
|
|
180
180
|
ce.tokenize = Ie.tokenize;
|
|
181
181
|
ce.castInput = function(e) {
|
|
182
|
-
var n = this.options, t = n.undefinedReplacement, s = n.stringifyReplacer, c = s === void 0 ? function(l,
|
|
183
|
-
return typeof
|
|
182
|
+
var n = this.options, t = n.undefinedReplacement, s = n.stringifyReplacer, c = s === void 0 ? function(l, r) {
|
|
183
|
+
return typeof r > "u" ? t : r;
|
|
184
184
|
} : s;
|
|
185
185
|
return typeof e == "string" ? e : JSON.stringify(Le(e, null, null, c), c, " ");
|
|
186
186
|
};
|
|
@@ -193,23 +193,23 @@ function Le(e, n, t, s, c) {
|
|
|
193
193
|
for (l = 0; l < n.length; l += 1)
|
|
194
194
|
if (n[l] === e)
|
|
195
195
|
return t[l];
|
|
196
|
-
var
|
|
196
|
+
var r;
|
|
197
197
|
if (In.call(e) === "[object Array]") {
|
|
198
|
-
for (n.push(e),
|
|
199
|
-
|
|
200
|
-
return n.pop(), t.pop(),
|
|
198
|
+
for (n.push(e), r = new Array(e.length), t.push(r), l = 0; l < e.length; l += 1)
|
|
199
|
+
r[l] = Le(e[l], n, t, s, c);
|
|
200
|
+
return n.pop(), t.pop(), r;
|
|
201
201
|
}
|
|
202
202
|
if (e && e.toJSON && (e = e.toJSON()), Ne(e) === "object" && e !== null) {
|
|
203
|
-
n.push(e),
|
|
204
|
-
var
|
|
203
|
+
n.push(e), r = {}, t.push(r);
|
|
204
|
+
var i = [], a;
|
|
205
205
|
for (a in e)
|
|
206
|
-
e.hasOwnProperty(a) &&
|
|
207
|
-
for (
|
|
208
|
-
a =
|
|
206
|
+
e.hasOwnProperty(a) && i.push(a);
|
|
207
|
+
for (i.sort(), l = 0; l < i.length; l += 1)
|
|
208
|
+
a = i[l], r[a] = Le(e[a], n, t, s, a);
|
|
209
209
|
n.pop(), t.pop();
|
|
210
210
|
} else
|
|
211
|
-
|
|
212
|
-
return
|
|
211
|
+
r = e;
|
|
212
|
+
return r;
|
|
213
213
|
}
|
|
214
214
|
var De = new Z();
|
|
215
215
|
De.tokenize = function(e) {
|
|
@@ -441,16 +441,16 @@ function Pe(e, { joinWith: n }) {
|
|
|
441
441
|
return e.map((s) => {
|
|
442
442
|
t += 1;
|
|
443
443
|
const c = t;
|
|
444
|
-
let l = le(s),
|
|
444
|
+
let l = le(s), r = "";
|
|
445
445
|
for (; l.length > 0; ) {
|
|
446
|
-
const
|
|
447
|
-
if (!
|
|
448
|
-
|
|
446
|
+
const i = Gn.exec(l);
|
|
447
|
+
if (!i) {
|
|
448
|
+
r += l;
|
|
449
449
|
break;
|
|
450
450
|
}
|
|
451
|
-
|
|
451
|
+
r += l.substring(0, i.index), l = l.substring(i.index + i[0].length), i[0][0] === "\\" && i[1] ? r += "\\" + String(Number(i[1]) + c) : (r += i[0], i[0] === "(" && t++);
|
|
452
452
|
}
|
|
453
|
-
return
|
|
453
|
+
return r;
|
|
454
454
|
}).map((s) => `(${s})`).join(n);
|
|
455
455
|
}
|
|
456
456
|
const Kn = /\b\B/, on = "[a-zA-Z]\\w*", He = "[a-zA-Z_]\\w*", cn = "\\b\\d+(\\.\\d+)?", ln = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", un = "\\b(0b[01]+)", Wn = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Vn = (e = {}) => {
|
|
@@ -592,11 +592,11 @@ const Kn = /\b\B/, on = "[a-zA-Z]\\w*", He = "[a-zA-Z_]\\w*", cn = "\\b\\d+(\\.\
|
|
|
592
592
|
scope: "title",
|
|
593
593
|
begin: on,
|
|
594
594
|
relevance: 0
|
|
595
|
-
},
|
|
595
|
+
}, rt = {
|
|
596
596
|
scope: "title",
|
|
597
597
|
begin: He,
|
|
598
598
|
relevance: 0
|
|
599
|
-
},
|
|
599
|
+
}, it = {
|
|
600
600
|
// excludes method names from keyword processing
|
|
601
601
|
begin: "\\.\\s*" + He,
|
|
602
602
|
relevance: 0
|
|
@@ -638,8 +638,8 @@ var me = /* @__PURE__ */ Object.freeze({
|
|
|
638
638
|
BINARY_NUMBER_MODE: nt,
|
|
639
639
|
REGEXP_MODE: tt,
|
|
640
640
|
TITLE_MODE: st,
|
|
641
|
-
UNDERSCORE_TITLE_MODE:
|
|
642
|
-
METHOD_GUARD:
|
|
641
|
+
UNDERSCORE_TITLE_MODE: rt,
|
|
642
|
+
METHOD_GUARD: it,
|
|
643
643
|
END_SAME_AS_BEGIN: at
|
|
644
644
|
});
|
|
645
645
|
function ot(e, n) {
|
|
@@ -702,9 +702,9 @@ function fn(e, n, t = _t) {
|
|
|
702
702
|
fn(e[l], n, l)
|
|
703
703
|
);
|
|
704
704
|
}), s;
|
|
705
|
-
function c(l,
|
|
706
|
-
n && (
|
|
707
|
-
const a =
|
|
705
|
+
function c(l, r) {
|
|
706
|
+
n && (r = r.map((i) => i.toLowerCase())), r.forEach(function(i) {
|
|
707
|
+
const a = i.split("|");
|
|
708
708
|
s[a[0]] = [l, bt(a[0], a[1])];
|
|
709
709
|
});
|
|
710
710
|
}
|
|
@@ -719,15 +719,15 @@ const Xe = {}, J = (e) => {
|
|
|
719
719
|
console.error(e);
|
|
720
720
|
}, qe = (e, ...n) => {
|
|
721
721
|
console.log(`WARN: ${e}`, ...n);
|
|
722
|
-
},
|
|
722
|
+
}, re = (e, n) => {
|
|
723
723
|
Xe[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), Xe[`${e}/${n}`] = !0);
|
|
724
724
|
}, Te = new Error();
|
|
725
725
|
function dn(e, n, { key: t }) {
|
|
726
726
|
let s = 0;
|
|
727
|
-
const c = e[t], l = {},
|
|
728
|
-
for (let
|
|
729
|
-
i
|
|
730
|
-
e[t] =
|
|
727
|
+
const c = e[t], l = {}, r = {};
|
|
728
|
+
for (let i = 1; i <= n.length; i++)
|
|
729
|
+
r[i + s] = c[i], l[i + s] = !0, s += an(n[i - 1]);
|
|
730
|
+
e[t] = r, e[t]._emit = l, e[t]._multi = !0;
|
|
731
731
|
}
|
|
732
732
|
function Et(e) {
|
|
733
733
|
if (Array.isArray(e.begin)) {
|
|
@@ -754,10 +754,10 @@ function vt(e) {
|
|
|
754
754
|
yt(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), Et(e), mt(e);
|
|
755
755
|
}
|
|
756
756
|
function Nt(e) {
|
|
757
|
-
function n(
|
|
757
|
+
function n(r, i) {
|
|
758
758
|
return new RegExp(
|
|
759
|
-
le(
|
|
760
|
-
"m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (
|
|
759
|
+
le(r),
|
|
760
|
+
"m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (i ? "g" : "")
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
763
|
class t {
|
|
@@ -765,18 +765,18 @@ function Nt(e) {
|
|
|
765
765
|
this.matchIndexes = {}, this.regexes = [], this.matchAt = 1, this.position = 0;
|
|
766
766
|
}
|
|
767
767
|
// @ts-ignore
|
|
768
|
-
addRule(
|
|
769
|
-
a.position = this.position++, this.matchIndexes[this.matchAt] = a, this.regexes.push([a,
|
|
768
|
+
addRule(i, a) {
|
|
769
|
+
a.position = this.position++, this.matchIndexes[this.matchAt] = a, this.regexes.push([a, i]), this.matchAt += an(i) + 1;
|
|
770
770
|
}
|
|
771
771
|
compile() {
|
|
772
772
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
773
|
-
const
|
|
774
|
-
this.matcherRe = n(Pe(
|
|
773
|
+
const i = this.regexes.map((a) => a[1]);
|
|
774
|
+
this.matcherRe = n(Pe(i, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
775
775
|
}
|
|
776
776
|
/** @param {string} s */
|
|
777
|
-
exec(
|
|
777
|
+
exec(i) {
|
|
778
778
|
this.matcherRe.lastIndex = this.lastIndex;
|
|
779
|
-
const a = this.matcherRe.exec(
|
|
779
|
+
const a = this.matcherRe.exec(i);
|
|
780
780
|
if (!a)
|
|
781
781
|
return null;
|
|
782
782
|
const o = a.findIndex((_, f) => f > 0 && _ !== void 0), p = this.matchIndexes[o];
|
|
@@ -788,11 +788,11 @@ function Nt(e) {
|
|
|
788
788
|
this.rules = [], this.multiRegexes = [], this.count = 0, this.lastIndex = 0, this.regexIndex = 0;
|
|
789
789
|
}
|
|
790
790
|
// @ts-ignore
|
|
791
|
-
getMatcher(
|
|
792
|
-
if (this.multiRegexes[
|
|
793
|
-
return this.multiRegexes[
|
|
791
|
+
getMatcher(i) {
|
|
792
|
+
if (this.multiRegexes[i])
|
|
793
|
+
return this.multiRegexes[i];
|
|
794
794
|
const a = new t();
|
|
795
|
-
return this.rules.slice(
|
|
795
|
+
return this.rules.slice(i).forEach(([o, p]) => a.addRule(o, p)), a.compile(), this.multiRegexes[i] = a, a;
|
|
796
796
|
}
|
|
797
797
|
resumingScanAtSamePosition() {
|
|
798
798
|
return this.regexIndex !== 0;
|
|
@@ -801,31 +801,31 @@ function Nt(e) {
|
|
|
801
801
|
this.regexIndex = 0;
|
|
802
802
|
}
|
|
803
803
|
// @ts-ignore
|
|
804
|
-
addRule(
|
|
805
|
-
this.rules.push([
|
|
804
|
+
addRule(i, a) {
|
|
805
|
+
this.rules.push([i, a]), a.type === "begin" && this.count++;
|
|
806
806
|
}
|
|
807
807
|
/** @param {string} s */
|
|
808
|
-
exec(
|
|
808
|
+
exec(i) {
|
|
809
809
|
const a = this.getMatcher(this.regexIndex);
|
|
810
810
|
a.lastIndex = this.lastIndex;
|
|
811
|
-
let o = a.exec(
|
|
811
|
+
let o = a.exec(i);
|
|
812
812
|
if (this.resumingScanAtSamePosition() && !(o && o.index === this.lastIndex)) {
|
|
813
813
|
const p = this.getMatcher(0);
|
|
814
|
-
p.lastIndex = this.lastIndex + 1, o = p.exec(
|
|
814
|
+
p.lastIndex = this.lastIndex + 1, o = p.exec(i);
|
|
815
815
|
}
|
|
816
816
|
return o && (this.regexIndex += o.position + 1, this.regexIndex === this.count && this.considerAll()), o;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
function c(
|
|
820
|
-
const
|
|
821
|
-
return
|
|
819
|
+
function c(r) {
|
|
820
|
+
const i = new s();
|
|
821
|
+
return r.contains.forEach((a) => i.addRule(a.begin, { rule: a, type: "begin" })), r.terminatorEnd && i.addRule(r.terminatorEnd, { type: "end" }), r.illegal && i.addRule(r.illegal, { type: "illegal" }), i;
|
|
822
822
|
}
|
|
823
|
-
function l(
|
|
823
|
+
function l(r, i) {
|
|
824
824
|
const a = (
|
|
825
825
|
/** @type CompiledMode */
|
|
826
|
-
|
|
826
|
+
r
|
|
827
827
|
);
|
|
828
|
-
if (
|
|
828
|
+
if (r.isCompiled)
|
|
829
829
|
return a;
|
|
830
830
|
[
|
|
831
831
|
ct,
|
|
@@ -834,27 +834,27 @@ function Nt(e) {
|
|
|
834
834
|
ft,
|
|
835
835
|
vt,
|
|
836
836
|
gt
|
|
837
|
-
].forEach((p) => p(
|
|
837
|
+
].forEach((p) => p(r, i)), e.compilerExtensions.forEach((p) => p(r, i)), r.__beforeBegin = null, [
|
|
838
838
|
lt,
|
|
839
839
|
// do this later so compiler extensions that come earlier have access to the
|
|
840
840
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
841
841
|
ut,
|
|
842
842
|
// default to 1 relevance if not specified
|
|
843
843
|
dt
|
|
844
|
-
].forEach((p) => p(
|
|
844
|
+
].forEach((p) => p(r, i)), r.isCompiled = !0;
|
|
845
845
|
let o = null;
|
|
846
|
-
return typeof
|
|
846
|
+
return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), o = r.keywords.$pattern, delete r.keywords.$pattern), o = o || /\w+/, r.keywords && (r.keywords = fn(r.keywords, e.case_insensitive)), a.keywordPatternRe = n(o, !0), i && (r.begin || (r.begin = /\B|\b/), a.beginRe = n(a.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (a.endRe = n(a.end)), a.terminatorEnd = le(a.end) || "", r.endsWithParent && i.terminatorEnd && (a.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (a.illegalRe = n(
|
|
847
847
|
/** @type {RegExp | string} */
|
|
848
|
-
|
|
849
|
-
)),
|
|
850
|
-
return Tt(p === "self" ?
|
|
851
|
-
})),
|
|
848
|
+
r.illegal
|
|
849
|
+
)), r.contains || (r.contains = []), r.contains = [].concat(...r.contains.map(function(p) {
|
|
850
|
+
return Tt(p === "self" ? r : p);
|
|
851
|
+
})), r.contains.forEach(function(p) {
|
|
852
852
|
l(
|
|
853
853
|
/** @type Mode */
|
|
854
854
|
p,
|
|
855
855
|
a
|
|
856
856
|
);
|
|
857
|
-
}),
|
|
857
|
+
}), r.starts && l(r.starts, i), a.matcher = c(a), a;
|
|
858
858
|
}
|
|
859
859
|
if (e.compilerExtensions || (e.compilerExtensions = []), e.contains && e.contains.includes("self"))
|
|
860
860
|
throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
|
|
@@ -880,8 +880,8 @@ class wt extends Error {
|
|
|
880
880
|
const xe = sn, je = q, Je = Symbol("nomatch"), St = 7, Rt = function(e) {
|
|
881
881
|
const n = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null), s = [];
|
|
882
882
|
let c = !0;
|
|
883
|
-
const l = "Could not find the language '{}', did you forget to load/include a language module?",
|
|
884
|
-
let
|
|
883
|
+
const l = "Could not find the language '{}', did you forget to load/include a language module?", r = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
884
|
+
let i = {
|
|
885
885
|
ignoreUnescapedHTML: !1,
|
|
886
886
|
throwUnescapedHTML: !1,
|
|
887
887
|
noHighlightRe: /^(no-?highlight)$/i,
|
|
@@ -894,12 +894,12 @@ const xe = sn, je = q, Je = Symbol("nomatch"), St = 7, Rt = function(e) {
|
|
|
894
894
|
__emitter: Un
|
|
895
895
|
};
|
|
896
896
|
function a(u) {
|
|
897
|
-
return
|
|
897
|
+
return i.noHighlightRe.test(u);
|
|
898
898
|
}
|
|
899
899
|
function o(u) {
|
|
900
900
|
let b = u.className + " ";
|
|
901
901
|
b += u.parentNode ? u.parentNode.className : "";
|
|
902
|
-
const T =
|
|
902
|
+
const T = i.languageDetectRe.exec(b);
|
|
903
903
|
if (T) {
|
|
904
904
|
const R = z(T[1]);
|
|
905
905
|
return R || (qe(l.replace("{}", T[1])), qe("Falling back to no-highlight mode for this block.", u)), R ? T[1] : "no-highlight";
|
|
@@ -908,7 +908,7 @@ const xe = sn, je = q, Je = Symbol("nomatch"), St = 7, Rt = function(e) {
|
|
|
908
908
|
}
|
|
909
909
|
function p(u, b, T) {
|
|
910
910
|
let R = "", I = "";
|
|
911
|
-
typeof b == "object" ? (R = u, T = b.ignoreIllegals, I = b.language) : (
|
|
911
|
+
typeof b == "object" ? (R = u, T = b.ignoreIllegals, I = b.language) : (re("10.7.0", "highlight(lang, code, ...args) has been deprecated."), re("10.7.0", `Please use highlight(code, options) instead.
|
|
912
912
|
https://github.com/highlightjs/highlight.js/issues/2277`), I = u, R = b), T === void 0 && (T = !0);
|
|
913
913
|
const U = {
|
|
914
914
|
code: R,
|
|
@@ -1057,7 +1057,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, R = b), T ===
|
|
|
1057
1057
|
throw J(l.replace("{}", u)), new Error('Unknown language: "' + u + '"');
|
|
1058
1058
|
const Nn = Nt(X);
|
|
1059
1059
|
let Re = "", v = R || Nn;
|
|
1060
|
-
const Ke = {}, B = new
|
|
1060
|
+
const Ke = {}, B = new i.__emitter(i);
|
|
1061
1061
|
vn();
|
|
1062
1062
|
let C = "", he = 0, j = 0, Me = 0, Oe = !1;
|
|
1063
1063
|
try {
|
|
@@ -1111,13 +1111,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, R = b), T ===
|
|
|
1111
1111
|
value: xe(u),
|
|
1112
1112
|
illegal: !1,
|
|
1113
1113
|
relevance: 0,
|
|
1114
|
-
_top:
|
|
1115
|
-
_emitter: new
|
|
1114
|
+
_top: r,
|
|
1115
|
+
_emitter: new i.__emitter(i)
|
|
1116
1116
|
};
|
|
1117
1117
|
return b._emitter.addText(u), b;
|
|
1118
1118
|
}
|
|
1119
1119
|
function N(u, b) {
|
|
1120
|
-
b = b ||
|
|
1120
|
+
b = b || i.languages || Object.keys(n);
|
|
1121
1121
|
const T = f(u), R = b.filter(z).filter(te).map(
|
|
1122
1122
|
(P) => _(P, u, !1)
|
|
1123
1123
|
);
|
|
@@ -1147,7 +1147,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, R = b), T ===
|
|
|
1147
1147
|
if (se(
|
|
1148
1148
|
"before:highlightElement",
|
|
1149
1149
|
{ el: u, language: T }
|
|
1150
|
-
), u.children.length > 0 && (
|
|
1150
|
+
), u.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(u)), i.throwUnescapedHTML))
|
|
1151
1151
|
throw new wt(
|
|
1152
1152
|
"One of your code blocks includes unescaped HTML.",
|
|
1153
1153
|
u.innerHTML
|
|
@@ -1165,13 +1165,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, R = b), T ===
|
|
|
1165
1165
|
}), se("after:highlightElement", { el: u, result: I, text: R });
|
|
1166
1166
|
}
|
|
1167
1167
|
function A(u) {
|
|
1168
|
-
|
|
1168
|
+
i = je(i, u);
|
|
1169
1169
|
}
|
|
1170
1170
|
const S = () => {
|
|
1171
|
-
M(),
|
|
1171
|
+
M(), re("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
1172
1172
|
};
|
|
1173
1173
|
function x() {
|
|
1174
|
-
M(),
|
|
1174
|
+
M(), re("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
1175
1175
|
}
|
|
1176
1176
|
let y = !1;
|
|
1177
1177
|
function M() {
|
|
@@ -1179,7 +1179,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, R = b), T ===
|
|
|
1179
1179
|
y = !0;
|
|
1180
1180
|
return;
|
|
1181
1181
|
}
|
|
1182
|
-
document.querySelectorAll(
|
|
1182
|
+
document.querySelectorAll(i.cssSelector).forEach(g);
|
|
1183
1183
|
}
|
|
1184
1184
|
function L() {
|
|
1185
1185
|
y && M();
|
|
@@ -1194,7 +1194,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, R = b), T ===
|
|
|
1194
1194
|
J(R);
|
|
1195
1195
|
else
|
|
1196
1196
|
throw R;
|
|
1197
|
-
T =
|
|
1197
|
+
T = r;
|
|
1198
1198
|
}
|
|
1199
1199
|
T.name || (T.name = u), n[u] = T, T.rawDefinition = b.bind(null, e), T.aliases && ne(T.aliases, { languageName: u });
|
|
1200
1200
|
}
|
|
@@ -1239,7 +1239,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), I = u, R = b), T ===
|
|
|
1239
1239
|
});
|
|
1240
1240
|
}
|
|
1241
1241
|
function pe(u) {
|
|
1242
|
-
return
|
|
1242
|
+
return re("10.7.0", "highlightBlock will be removed entirely in v12.0"), re("10.7.0", "Please use highlightElement now."), g(u);
|
|
1243
1243
|
}
|
|
1244
1244
|
Object.assign(e, {
|
|
1245
1245
|
highlight: p,
|
|
@@ -1291,10 +1291,10 @@ function Ot(e) {
|
|
|
1291
1291
|
illegal: /\n/
|
|
1292
1292
|
}
|
|
1293
1293
|
]
|
|
1294
|
-
},
|
|
1294
|
+
}, r = e.inherit(l, {
|
|
1295
1295
|
begin: /\(/,
|
|
1296
1296
|
end: /\)/
|
|
1297
|
-
}),
|
|
1297
|
+
}), i = e.inherit(e.APOS_STRING_MODE, { className: "string" }), a = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }), o = {
|
|
1298
1298
|
endsWithParent: !0,
|
|
1299
1299
|
illegal: /</,
|
|
1300
1300
|
relevance: 0,
|
|
@@ -1354,8 +1354,8 @@ function Ot(e) {
|
|
|
1354
1354
|
contains: [
|
|
1355
1355
|
l,
|
|
1356
1356
|
a,
|
|
1357
|
-
r,
|
|
1358
1357
|
i,
|
|
1358
|
+
r,
|
|
1359
1359
|
{
|
|
1360
1360
|
begin: /\[/,
|
|
1361
1361
|
end: /\]/,
|
|
@@ -1366,9 +1366,9 @@ function Ot(e) {
|
|
|
1366
1366
|
end: />/,
|
|
1367
1367
|
contains: [
|
|
1368
1368
|
l,
|
|
1369
|
-
|
|
1369
|
+
r,
|
|
1370
1370
|
a,
|
|
1371
|
-
|
|
1371
|
+
i
|
|
1372
1372
|
]
|
|
1373
1373
|
}
|
|
1374
1374
|
]
|
|
@@ -1644,7 +1644,7 @@ function It(e) {
|
|
|
1644
1644
|
}, s = en, c = {
|
|
1645
1645
|
begin: "<>",
|
|
1646
1646
|
end: "</>"
|
|
1647
|
-
}, l = /<[A-Za-z0-9\\._:-]+\s*\/>/,
|
|
1647
|
+
}, l = /<[A-Za-z0-9\\._:-]+\s*\/>/, r = {
|
|
1648
1648
|
begin: /<[A-Za-z0-9\\._:-]+/,
|
|
1649
1649
|
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
|
1650
1650
|
/**
|
|
@@ -1676,7 +1676,7 @@ function It(e) {
|
|
|
1676
1676
|
return;
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
},
|
|
1679
|
+
}, i = {
|
|
1680
1680
|
$pattern: en,
|
|
1681
1681
|
keyword: xt,
|
|
1682
1682
|
literal: Lt,
|
|
@@ -1703,7 +1703,7 @@ function It(e) {
|
|
|
1703
1703
|
className: "subst",
|
|
1704
1704
|
begin: "\\$\\{",
|
|
1705
1705
|
end: "\\}",
|
|
1706
|
-
keywords:
|
|
1706
|
+
keywords: i,
|
|
1707
1707
|
contains: []
|
|
1708
1708
|
// defined later
|
|
1709
1709
|
}, N = {
|
|
@@ -1801,7 +1801,7 @@ function It(e) {
|
|
|
1801
1801
|
// it from ending too early by matching another }
|
|
1802
1802
|
begin: /\{/,
|
|
1803
1803
|
end: /\}/,
|
|
1804
|
-
keywords:
|
|
1804
|
+
keywords: i,
|
|
1805
1805
|
contains: [
|
|
1806
1806
|
"self"
|
|
1807
1807
|
].concat(x)
|
|
@@ -1811,7 +1811,7 @@ function It(e) {
|
|
|
1811
1811
|
{
|
|
1812
1812
|
begin: /\(/,
|
|
1813
1813
|
end: /\)/,
|
|
1814
|
-
keywords:
|
|
1814
|
+
keywords: i,
|
|
1815
1815
|
contains: ["self"].concat(y)
|
|
1816
1816
|
}
|
|
1817
1817
|
]), L = {
|
|
@@ -1820,7 +1820,7 @@ function It(e) {
|
|
|
1820
1820
|
end: /\)/,
|
|
1821
1821
|
excludeBegin: !0,
|
|
1822
1822
|
excludeEnd: !0,
|
|
1823
|
-
keywords:
|
|
1823
|
+
keywords: i,
|
|
1824
1824
|
contains: M
|
|
1825
1825
|
}, D = {
|
|
1826
1826
|
variants: [
|
|
@@ -1980,7 +1980,7 @@ function It(e) {
|
|
|
1980
1980
|
return {
|
|
1981
1981
|
name: "Javascript",
|
|
1982
1982
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
1983
|
-
keywords:
|
|
1983
|
+
keywords: i,
|
|
1984
1984
|
// this will be extended by TypeScript
|
|
1985
1985
|
exports: { PARAMS_CONTAINS: M, CLASS_REFERENCE: k },
|
|
1986
1986
|
illegal: /#(?![$_A-z])/,
|
|
@@ -2041,7 +2041,7 @@ function It(e) {
|
|
|
2041
2041
|
end: /\)/,
|
|
2042
2042
|
excludeBegin: !0,
|
|
2043
2043
|
excludeEnd: !0,
|
|
2044
|
-
keywords:
|
|
2044
|
+
keywords: i,
|
|
2045
2045
|
contains: M
|
|
2046
2046
|
}
|
|
2047
2047
|
]
|
|
@@ -2063,18 +2063,18 @@ function It(e) {
|
|
|
2063
2063
|
{ begin: c.begin, end: c.end },
|
|
2064
2064
|
{ match: l },
|
|
2065
2065
|
{
|
|
2066
|
-
begin:
|
|
2066
|
+
begin: r.begin,
|
|
2067
2067
|
// we carefully check the opening tag to see if it truly
|
|
2068
2068
|
// is a tag and not a false positive
|
|
2069
|
-
"on:begin":
|
|
2070
|
-
end:
|
|
2069
|
+
"on:begin": r.isTrulyOpeningTag,
|
|
2070
|
+
end: r.end
|
|
2071
2071
|
}
|
|
2072
2072
|
],
|
|
2073
2073
|
subLanguage: "xml",
|
|
2074
2074
|
contains: [
|
|
2075
2075
|
{
|
|
2076
|
-
begin:
|
|
2077
|
-
end:
|
|
2076
|
+
begin: r.begin,
|
|
2077
|
+
end: r.end,
|
|
2078
2078
|
skip: !0,
|
|
2079
2079
|
contains: ["self"]
|
|
2080
2080
|
}
|
|
@@ -2210,7 +2210,7 @@ function Bt(e) {
|
|
|
2210
2210
|
e.BACKSLASH_ESCAPE,
|
|
2211
2211
|
c
|
|
2212
2212
|
]
|
|
2213
|
-
},
|
|
2213
|
+
}, r = e.inherit(l, { variants: [
|
|
2214
2214
|
{
|
|
2215
2215
|
begin: /'/,
|
|
2216
2216
|
end: /'/
|
|
@@ -2220,9 +2220,9 @@ function Bt(e) {
|
|
|
2220
2220
|
end: /"/
|
|
2221
2221
|
},
|
|
2222
2222
|
{ begin: /[^\s,{}[\]]+/ }
|
|
2223
|
-
] }),
|
|
2223
|
+
] }), i = "[0-9]{4}(-[0-9][0-9]){0,2}", a = "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?", o = "(\\.[0-9]*)?", p = "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?", _ = {
|
|
2224
2224
|
className: "number",
|
|
2225
|
-
begin: "\\b" +
|
|
2225
|
+
begin: "\\b" + i + a + o + p + "\\b"
|
|
2226
2226
|
}, f = {
|
|
2227
2227
|
end: ",",
|
|
2228
2228
|
endsWithParent: !0,
|
|
@@ -2321,7 +2321,7 @@ function Bt(e) {
|
|
|
2321
2321
|
h,
|
|
2322
2322
|
l
|
|
2323
2323
|
], A = [...g];
|
|
2324
|
-
return A.pop(), A.push(
|
|
2324
|
+
return A.pop(), A.push(r), f.contains = A, {
|
|
2325
2325
|
name: "YAML",
|
|
2326
2326
|
case_insensitive: !0,
|
|
2327
2327
|
aliases: ["yml"],
|
|
@@ -2374,7 +2374,7 @@ function Ut(e) {
|
|
|
2374
2374
|
"while",
|
|
2375
2375
|
"with",
|
|
2376
2376
|
"yield"
|
|
2377
|
-
],
|
|
2377
|
+
], i = {
|
|
2378
2378
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
2379
2379
|
keyword: s,
|
|
2380
2380
|
built_in: [
|
|
@@ -2478,7 +2478,7 @@ function Ut(e) {
|
|
|
2478
2478
|
className: "subst",
|
|
2479
2479
|
begin: /\{/,
|
|
2480
2480
|
end: /\}/,
|
|
2481
|
-
keywords:
|
|
2481
|
+
keywords: i,
|
|
2482
2482
|
illegal: /#/
|
|
2483
2483
|
}, p = {
|
|
2484
2484
|
begin: /\{\{/,
|
|
@@ -2612,7 +2612,7 @@ function Ut(e) {
|
|
|
2612
2612
|
className: "comment",
|
|
2613
2613
|
begin: n.lookahead(/# type:/),
|
|
2614
2614
|
end: /$/,
|
|
2615
|
-
keywords:
|
|
2615
|
+
keywords: i,
|
|
2616
2616
|
contains: [
|
|
2617
2617
|
{
|
|
2618
2618
|
// prevent keywords from coloring `type`
|
|
@@ -2639,7 +2639,7 @@ function Ut(e) {
|
|
|
2639
2639
|
end: /\)/,
|
|
2640
2640
|
excludeBegin: !0,
|
|
2641
2641
|
excludeEnd: !0,
|
|
2642
|
-
keywords:
|
|
2642
|
+
keywords: i,
|
|
2643
2643
|
contains: [
|
|
2644
2644
|
"self",
|
|
2645
2645
|
a,
|
|
@@ -2662,7 +2662,7 @@ function Ut(e) {
|
|
|
2662
2662
|
"ipython"
|
|
2663
2663
|
],
|
|
2664
2664
|
unicodeRegex: !0,
|
|
2665
|
-
keywords:
|
|
2665
|
+
keywords: i,
|
|
2666
2666
|
illegal: /(<\/|->|\?)|=>/,
|
|
2667
2667
|
contains: [
|
|
2668
2668
|
a,
|
|
@@ -2732,18 +2732,18 @@ function Ut(e) {
|
|
|
2732
2732
|
]
|
|
2733
2733
|
};
|
|
2734
2734
|
}
|
|
2735
|
-
var
|
|
2735
|
+
var ie = "[0-9](_*[0-9])*", ye = `\\.(${ie})`, ve = "[0-9a-fA-F](_*[0-9a-fA-F])*", nn = {
|
|
2736
2736
|
className: "number",
|
|
2737
2737
|
variants: [
|
|
2738
2738
|
// DecimalFloatingPointLiteral
|
|
2739
2739
|
// including ExponentPart
|
|
2740
|
-
{ begin: `(\\b(${
|
|
2740
|
+
{ begin: `(\\b(${ie})((${ye})|\\.)?|(${ye}))[eE][+-]?(${ie})[fFdD]?\\b` },
|
|
2741
2741
|
// excluding ExponentPart
|
|
2742
|
-
{ begin: `\\b(${
|
|
2742
|
+
{ begin: `\\b(${ie})((${ye})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
|
|
2743
2743
|
{ begin: `(${ye})[fFdD]?\\b` },
|
|
2744
|
-
{ begin: `\\b(${
|
|
2744
|
+
{ begin: `\\b(${ie})[fFdD]\\b` },
|
|
2745
2745
|
// HexadecimalFloatingPointLiteral
|
|
2746
|
-
{ begin: `\\b0[xX]((${ve})\\.?|(${ve})?\\.(${ve}))[pP][+-]?(${
|
|
2746
|
+
{ begin: `\\b0[xX]((${ve})\\.?|(${ve})?\\.(${ve}))[pP][+-]?(${ie})[fFdD]?\\b` },
|
|
2747
2747
|
// DecimalIntegerLiteral
|
|
2748
2748
|
{ begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
|
|
2749
2749
|
// HexIntegerLiteral
|
|
@@ -3006,7 +3006,7 @@ function Ht(e) {
|
|
|
3006
3006
|
className: "string"
|
|
3007
3007
|
})
|
|
3008
3008
|
] }
|
|
3009
|
-
},
|
|
3009
|
+
}, r = {
|
|
3010
3010
|
className: "string",
|
|
3011
3011
|
begin: /"/,
|
|
3012
3012
|
end: /"/,
|
|
@@ -3016,8 +3016,8 @@ function Ht(e) {
|
|
|
3016
3016
|
c
|
|
3017
3017
|
]
|
|
3018
3018
|
};
|
|
3019
|
-
c.contains.push(
|
|
3020
|
-
const
|
|
3019
|
+
c.contains.push(r);
|
|
3020
|
+
const i = {
|
|
3021
3021
|
className: "",
|
|
3022
3022
|
begin: /\\"/
|
|
3023
3023
|
}, a = {
|
|
@@ -3313,8 +3313,8 @@ function Ht(e) {
|
|
|
3313
3313
|
e.HASH_COMMENT_MODE,
|
|
3314
3314
|
l,
|
|
3315
3315
|
g,
|
|
3316
|
-
i,
|
|
3317
3316
|
r,
|
|
3317
|
+
i,
|
|
3318
3318
|
a,
|
|
3319
3319
|
t
|
|
3320
3320
|
]
|
|
@@ -3340,12 +3340,12 @@ function zt(e) {
|
|
|
3340
3340
|
// Not sure it's correct to call NULL literal, and clauses like IS [NOT] NULL look strange that way.
|
|
3341
3341
|
// "null",
|
|
3342
3342
|
"unknown"
|
|
3343
|
-
],
|
|
3343
|
+
], r = [
|
|
3344
3344
|
"double precision",
|
|
3345
3345
|
"large object",
|
|
3346
3346
|
"with timezone",
|
|
3347
3347
|
"without timezone"
|
|
3348
|
-
],
|
|
3348
|
+
], i = [
|
|
3349
3349
|
"bigint",
|
|
3350
3350
|
"binary",
|
|
3351
3351
|
"blob",
|
|
@@ -3900,7 +3900,7 @@ function zt(e) {
|
|
|
3900
3900
|
$pattern: /\b[\w\.]+/,
|
|
3901
3901
|
keyword: x(h, { when: (y) => y.length < 3 }),
|
|
3902
3902
|
literal: l,
|
|
3903
|
-
type:
|
|
3903
|
+
type: i,
|
|
3904
3904
|
built_in: _
|
|
3905
3905
|
},
|
|
3906
3906
|
contains: [
|
|
@@ -3911,12 +3911,12 @@ function zt(e) {
|
|
|
3911
3911
|
$pattern: /[\w\.]+/,
|
|
3912
3912
|
keyword: h.concat(f),
|
|
3913
3913
|
literal: l,
|
|
3914
|
-
type:
|
|
3914
|
+
type: i
|
|
3915
3915
|
}
|
|
3916
3916
|
},
|
|
3917
3917
|
{
|
|
3918
3918
|
className: "type",
|
|
3919
|
-
begin: n.either(...
|
|
3919
|
+
begin: n.either(...r)
|
|
3920
3920
|
},
|
|
3921
3921
|
S,
|
|
3922
3922
|
g,
|
|
@@ -3947,48 +3947,48 @@ const V = "<code-diff-modified>", Y = "</code-diff-modified>", Ft = V.replace("<
|
|
|
3947
3947
|
let s = n;
|
|
3948
3948
|
const c = n.replace(new RegExp(`(${V}|${Y})`, "g"), ""), l = document.createElement("div");
|
|
3949
3949
|
l.innerHTML = G.highlight(c, { language: e }).value;
|
|
3950
|
-
let
|
|
3951
|
-
const
|
|
3950
|
+
let r = !1;
|
|
3951
|
+
const i = (a) => {
|
|
3952
3952
|
a.childNodes.forEach((o) => {
|
|
3953
|
-
if (o.nodeType === Node.ELEMENT_NODE &&
|
|
3953
|
+
if (o.nodeType === Node.ELEMENT_NODE && i(o), o.nodeType === Node.TEXT_NODE) {
|
|
3954
3954
|
if (!o.textContent)
|
|
3955
3955
|
return;
|
|
3956
3956
|
let p = o.textContent, _ = "";
|
|
3957
|
-
for (
|
|
3957
|
+
for (r && (_ = _ + V); p.length; ) {
|
|
3958
3958
|
if (s.startsWith(V)) {
|
|
3959
|
-
s = s.slice(V.length), _ = _ + V,
|
|
3959
|
+
s = s.slice(V.length), _ = _ + V, r = !0;
|
|
3960
3960
|
continue;
|
|
3961
3961
|
}
|
|
3962
3962
|
if (s.startsWith(Y)) {
|
|
3963
|
-
s = s.slice(Y.length), _ = _ + Y,
|
|
3963
|
+
s = s.slice(Y.length), _ = _ + Y, r = !1;
|
|
3964
3964
|
continue;
|
|
3965
3965
|
}
|
|
3966
3966
|
const f = s.match(new RegExp(`(${V}|${Y})`)), N = f && f.index ? f.index : s.length, h = Math.min(N, p.length);
|
|
3967
3967
|
_ = _ + s.substring(0, h), s = s.slice(h), p = p.slice(h);
|
|
3968
3968
|
}
|
|
3969
|
-
|
|
3969
|
+
r && (_ = _ + Y), o.textContent = _;
|
|
3970
3970
|
}
|
|
3971
3971
|
});
|
|
3972
3972
|
};
|
|
3973
|
-
return
|
|
3973
|
+
return i(l), l.innerHTML.replace(new RegExp(Ft, "g"), '<span class="x">').replace(new RegExp(Gt, "g"), "</span>");
|
|
3974
3974
|
};
|
|
3975
3975
|
function Kt(e, n, t = "plaintext", s = "word", c = 10) {
|
|
3976
3976
|
var N;
|
|
3977
|
-
const l = () => ({ type: m.EMPTY }),
|
|
3977
|
+
const l = () => ({ type: m.EMPTY }), r = (h, g, A) => ({ type: h, num: g, code: A }), i = tn(e, n);
|
|
3978
3978
|
let a = 0, o = 0, p = !1;
|
|
3979
3979
|
const _ = [];
|
|
3980
|
-
for (let h = 0; h <
|
|
3980
|
+
for (let h = 0; h < i.length; h++) {
|
|
3981
3981
|
if (p) {
|
|
3982
3982
|
p = !1;
|
|
3983
3983
|
continue;
|
|
3984
3984
|
}
|
|
3985
|
-
const [g, A] = [
|
|
3985
|
+
const [g, A] = [i[h], i[h + 1]], [S, x] = [ae(g), ae(A)], y = g.value.replace(/\n$/, "").split(`
|
|
3986
3986
|
`);
|
|
3987
3987
|
if (A === void 0) {
|
|
3988
3988
|
for (const L of y) {
|
|
3989
3989
|
let D = l(), k = l();
|
|
3990
3990
|
const H = F(t, L);
|
|
3991
|
-
S === m.EQUAL && (a++, o++, D =
|
|
3991
|
+
S === m.EQUAL && (a++, o++, D = r(m.EQUAL, a, H), k = r(m.EQUAL, o, H)), S === m.DELETE && (a++, D = r(m.DELETE, a, H), k = l()), S === m.ADD && (o++, D = l(), k = r(m.ADD, o, H)), _.push({ left: D, right: k });
|
|
3992
3992
|
}
|
|
3993
3993
|
break;
|
|
3994
3994
|
}
|
|
@@ -3997,8 +3997,8 @@ function Kt(e, n, t = "plaintext", s = "word", c = 10) {
|
|
|
3997
3997
|
a++, o++;
|
|
3998
3998
|
const D = F(t, L);
|
|
3999
3999
|
_.push({
|
|
4000
|
-
left:
|
|
4001
|
-
right:
|
|
4000
|
+
left: r(m.EQUAL, a, D),
|
|
4001
|
+
right: r(m.EQUAL, o, D)
|
|
4002
4002
|
});
|
|
4003
4003
|
}
|
|
4004
4004
|
const M = A.value.replace(/\n$/, "").split(`
|
|
@@ -4007,7 +4007,7 @@ function Kt(e, n, t = "plaintext", s = "word", c = 10) {
|
|
|
4007
4007
|
if (x === m.EQUAL)
|
|
4008
4008
|
for (const L of y)
|
|
4009
4009
|
a++, _.push({
|
|
4010
|
-
left:
|
|
4010
|
+
left: r(m.DELETE, a, F(t, L)),
|
|
4011
4011
|
right: l()
|
|
4012
4012
|
});
|
|
4013
4013
|
if (x === m.ADD) {
|
|
@@ -4015,7 +4015,7 @@ function Kt(e, n, t = "plaintext", s = "word", c = 10) {
|
|
|
4015
4015
|
const L = Math.max(g.count, A.count);
|
|
4016
4016
|
for (let D = 0; D < L; D++) {
|
|
4017
4017
|
D < g.count && a++, D < A.count && o++;
|
|
4018
|
-
const [k, H] = [y[D], M[D]], z = y.length === M.length ? Ae(H, k, s) : k, ne = y.length === M.length ? Ae(k, H, s) : H, te = D < g.count ?
|
|
4018
|
+
const [k, H] = [y[D], M[D]], z = y.length === M.length ? Ae(H, k, s) : k, ne = y.length === M.length ? Ae(k, H, s) : H, te = D < g.count ? r(m.DELETE, a, F(t, z)) : l(), oe = D < A.count ? r(m.ADD, o, F(t, ne)) : l();
|
|
4019
4019
|
_.push({ left: te, right: oe });
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
@@ -4024,7 +4024,7 @@ function Kt(e, n, t = "plaintext", s = "word", c = 10) {
|
|
|
4024
4024
|
for (const L of y)
|
|
4025
4025
|
o++, _.push({
|
|
4026
4026
|
left: l(),
|
|
4027
|
-
right:
|
|
4027
|
+
right: r(m.ADD, o, F(t, L))
|
|
4028
4028
|
});
|
|
4029
4029
|
}
|
|
4030
4030
|
if (e === n) {
|
|
@@ -4055,7 +4055,7 @@ function Kt(e, n, t = "plaintext", s = "word", c = 10) {
|
|
|
4055
4055
|
function Wt(e, n, t = "plaintext", s = "word", c = 2) {
|
|
4056
4056
|
var _;
|
|
4057
4057
|
const l = tn(e, n);
|
|
4058
|
-
let
|
|
4058
|
+
let r = 0, i = 0, a = !1;
|
|
4059
4059
|
const o = [];
|
|
4060
4060
|
for (let f = 0; f < l.length; f++) {
|
|
4061
4061
|
if (a) {
|
|
@@ -4066,22 +4066,22 @@ function Wt(e, n, t = "plaintext", s = "word", c = 2) {
|
|
|
4066
4066
|
`);
|
|
4067
4067
|
if (h === void 0) {
|
|
4068
4068
|
for (const y of S) {
|
|
4069
|
-
g === m.EQUAL && (
|
|
4069
|
+
g === m.EQUAL && (r++, i++), g === m.DELETE && r++, g === m.ADD && i++;
|
|
4070
4070
|
const M = F(t, y);
|
|
4071
4071
|
o.push({
|
|
4072
4072
|
type: g,
|
|
4073
4073
|
code: M,
|
|
4074
|
-
addNum: g === m.DELETE ? void 0 :
|
|
4075
|
-
delNum: g === m.ADD ? void 0 :
|
|
4074
|
+
addNum: g === m.DELETE ? void 0 : i,
|
|
4075
|
+
delNum: g === m.ADD ? void 0 : r
|
|
4076
4076
|
});
|
|
4077
4077
|
}
|
|
4078
4078
|
break;
|
|
4079
4079
|
}
|
|
4080
4080
|
if (g === m.EQUAL)
|
|
4081
4081
|
for (const y of S) {
|
|
4082
|
-
|
|
4082
|
+
r++, i++;
|
|
4083
4083
|
const M = F(t, y);
|
|
4084
|
-
o.push({ type: m.EQUAL, code: M, delNum:
|
|
4084
|
+
o.push({ type: m.EQUAL, code: M, delNum: r, addNum: i });
|
|
4085
4085
|
}
|
|
4086
4086
|
const x = h.value.replace(/\n$/, "").split(`
|
|
4087
4087
|
`);
|
|
@@ -4089,28 +4089,28 @@ function Wt(e, n, t = "plaintext", s = "word", c = 2) {
|
|
|
4089
4089
|
if (A === m.ADD && S.length === x.length) {
|
|
4090
4090
|
for (let y = 0; y < S.length; y++) {
|
|
4091
4091
|
const M = S[y], L = x[y];
|
|
4092
|
-
|
|
4092
|
+
r++;
|
|
4093
4093
|
const D = F(t, Ae(L, M, s));
|
|
4094
|
-
o.push({ type: m.DELETE, code: D, delNum:
|
|
4094
|
+
o.push({ type: m.DELETE, code: D, delNum: r });
|
|
4095
4095
|
}
|
|
4096
4096
|
for (let y = 0; y < x.length; y++) {
|
|
4097
4097
|
const M = S[y], L = x[y];
|
|
4098
|
-
|
|
4098
|
+
i++;
|
|
4099
4099
|
const D = F(t, Ae(M, L, s));
|
|
4100
|
-
o.push({ type: m.ADD, code: D, addNum:
|
|
4100
|
+
o.push({ type: m.ADD, code: D, addNum: i });
|
|
4101
4101
|
}
|
|
4102
4102
|
a = !0;
|
|
4103
4103
|
} else
|
|
4104
4104
|
for (const y of S) {
|
|
4105
|
-
|
|
4105
|
+
r++;
|
|
4106
4106
|
const M = F(t, y);
|
|
4107
|
-
o.push({ type: m.DELETE, code: M, delNum:
|
|
4107
|
+
o.push({ type: m.DELETE, code: M, delNum: r });
|
|
4108
4108
|
}
|
|
4109
4109
|
if (g === m.ADD)
|
|
4110
4110
|
for (const y of S) {
|
|
4111
|
-
|
|
4111
|
+
i++;
|
|
4112
4112
|
const M = F(t, y);
|
|
4113
|
-
o.push({ type: m.ADD, code: M, addNum:
|
|
4113
|
+
o.push({ type: m.ADD, code: M, addNum: i });
|
|
4114
4114
|
}
|
|
4115
4115
|
}
|
|
4116
4116
|
for (let f = 0; f < o.length; f++) {
|
|
@@ -4147,15 +4147,15 @@ const Vt = /* @__PURE__ */ de({
|
|
|
4147
4147
|
return { __sfc: !0, props: e, getCodeMarker: (s) => s === m.DELETE ? "-" : s === m.ADD ? "+" : "", DiffType: m };
|
|
4148
4148
|
}
|
|
4149
4149
|
});
|
|
4150
|
-
function ge(e, n, t, s, c, l,
|
|
4150
|
+
function ge(e, n, t, s, c, l, r, i) {
|
|
4151
4151
|
var a = typeof e == "function" ? e.options : e;
|
|
4152
4152
|
n && (a.render = n, a.staticRenderFns = t, a._compiled = !0), s && (a.functional = !0), l && (a._scopeId = "data-v-" + l);
|
|
4153
4153
|
var o;
|
|
4154
|
-
if (
|
|
4154
|
+
if (r ? (o = function(f) {
|
|
4155
4155
|
f = f || // cached call
|
|
4156
4156
|
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
4157
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < "u" && (f = __VUE_SSR_CONTEXT__), c && c.call(this, f), f && f._registeredComponents && f._registeredComponents.add(
|
|
4158
|
-
}, a._ssrRegister = o) : c && (o =
|
|
4157
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < "u" && (f = __VUE_SSR_CONTEXT__), c && c.call(this, f), f && f._registeredComponents && f._registeredComponents.add(r);
|
|
4158
|
+
}, a._ssrRegister = o) : c && (o = i ? function() {
|
|
4159
4159
|
c.call(
|
|
4160
4160
|
this,
|
|
4161
4161
|
(a.functional ? this.parent : this).$root.$options.shadowRoot
|
|
@@ -4212,16 +4212,16 @@ const Xt = Qt.exports, qt = /* @__PURE__ */ de({
|
|
|
4212
4212
|
});
|
|
4213
4213
|
var jt = function() {
|
|
4214
4214
|
var n = this, t = n._self._c, s = n._self._setupProxy;
|
|
4215
|
-
return t("
|
|
4215
|
+
return t("table", { staticClass: "diff-table" }, [t("tbody", n._l(n.diffChange, function(c, l) {
|
|
4216
4216
|
return t(s.UnifiedLine, { key: l, attrs: { line: c } });
|
|
4217
|
-
}), 1)])
|
|
4217
|
+
}), 1)]);
|
|
4218
4218
|
}, Jt = [], es = /* @__PURE__ */ ge(
|
|
4219
4219
|
qt,
|
|
4220
4220
|
jt,
|
|
4221
4221
|
Jt,
|
|
4222
4222
|
!1,
|
|
4223
4223
|
null,
|
|
4224
|
-
"
|
|
4224
|
+
"76069310",
|
|
4225
4225
|
null,
|
|
4226
4226
|
null
|
|
4227
4227
|
);
|
|
@@ -4247,17 +4247,17 @@ var ss = function() {
|
|
|
4247
4247
|
"blob-code-context": c.type === s.DiffType.EQUAL
|
|
4248
4248
|
} }, [t("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": s.getCodeMarker(c.type) }, domProps: { innerHTML: n._s(c.code) } })])]];
|
|
4249
4249
|
})], 2);
|
|
4250
|
-
},
|
|
4250
|
+
}, rs = [], is = /* @__PURE__ */ ge(
|
|
4251
4251
|
ts,
|
|
4252
4252
|
ss,
|
|
4253
|
-
|
|
4253
|
+
rs,
|
|
4254
4254
|
!1,
|
|
4255
4255
|
null,
|
|
4256
4256
|
null,
|
|
4257
4257
|
null,
|
|
4258
4258
|
null
|
|
4259
4259
|
);
|
|
4260
|
-
const as =
|
|
4260
|
+
const as = is.exports, os = /* @__PURE__ */ de({
|
|
4261
4261
|
__name: "SplitViewer",
|
|
4262
4262
|
props: {
|
|
4263
4263
|
diffChange: null
|
|
@@ -4268,9 +4268,9 @@ const as = rs.exports, os = /* @__PURE__ */ de({
|
|
|
4268
4268
|
});
|
|
4269
4269
|
var cs = function() {
|
|
4270
4270
|
var n = this, t = n._self._c, s = n._self._setupProxy;
|
|
4271
|
-
return t("
|
|
4271
|
+
return t("table", { staticClass: "file-diff-split diff-table" }, [n._m(0), t("tbody", n._l(n.diffChange, function(c, l) {
|
|
4272
4272
|
return t(s.SplitLine, { key: l, attrs: { "split-line": c } });
|
|
4273
|
-
}), 1)])
|
|
4273
|
+
}), 1)]);
|
|
4274
4274
|
}, ls = [function() {
|
|
4275
4275
|
var e = this, n = e._self._c;
|
|
4276
4276
|
return e._self._setupProxy, n("colgroup", [n("col", { attrs: { width: "44" } }), n("col"), n("col", { attrs: { width: "44" } }), n("col")]);
|
|
@@ -4280,7 +4280,7 @@ var cs = function() {
|
|
|
4280
4280
|
ls,
|
|
4281
4281
|
!1,
|
|
4282
4282
|
null,
|
|
4283
|
-
"
|
|
4283
|
+
"0c23c064",
|
|
4284
4284
|
null,
|
|
4285
4285
|
null
|
|
4286
4286
|
);
|
|
@@ -4295,17 +4295,18 @@ const ds = /* @__PURE__ */ de({
|
|
|
4295
4295
|
diffStyle: { default: "word" },
|
|
4296
4296
|
outputFormat: { default: "line-by-line" },
|
|
4297
4297
|
trim: { type: Boolean, default: !1 },
|
|
4298
|
-
noDiffLineFeed: { type: Boolean, default: !1 }
|
|
4298
|
+
noDiffLineFeed: { type: Boolean, default: !1 },
|
|
4299
|
+
maxHeight: { default: void 0 }
|
|
4299
4300
|
},
|
|
4300
4301
|
setup(e) {
|
|
4301
4302
|
const n = e, t = Ee(() => n.outputFormat === "line-by-line"), s = Ee(() => {
|
|
4302
|
-
const
|
|
4303
|
-
return n.noDiffLineFeed ?
|
|
4304
|
-
`) :
|
|
4303
|
+
const r = n.trim ? n.oldString.trim() : n.oldString;
|
|
4304
|
+
return n.noDiffLineFeed ? r.replace(/(\r\n)/g, `
|
|
4305
|
+
`) : r;
|
|
4305
4306
|
}), c = Ee(() => {
|
|
4306
|
-
const
|
|
4307
|
-
return n.noDiffLineFeed ?
|
|
4308
|
-
`) :
|
|
4307
|
+
const r = n.trim ? n.newString.trim() : n.newString;
|
|
4308
|
+
return n.noDiffLineFeed ? r.replace(/(\r\n)/g, `
|
|
4309
|
+
`) : r;
|
|
4309
4310
|
}), l = Ee(
|
|
4310
4311
|
() => t.value ? Wt(s.value, c.value, n.language, n.diffStyle, n.context) : Kt(s.value, c.value, n.language, n.diffStyle, n.context)
|
|
4311
4312
|
);
|
|
@@ -4314,7 +4315,7 @@ const ds = /* @__PURE__ */ de({
|
|
|
4314
4315
|
});
|
|
4315
4316
|
var gs = function() {
|
|
4316
4317
|
var n = this, t = n._self._c, s = n._self._setupProxy;
|
|
4317
|
-
return t("div", { staticClass: "code-diff-view" }, [s.isUnifiedViewer ? t(s.UnifiedViewer, { attrs: { "diff-change": s.diffChange } }) : t(s.SplitViewer, { attrs: { "diff-change": s.diffChange } })], 1);
|
|
4318
|
+
return t("div", { staticClass: "code-diff-view", style: { maxHeight: n.maxHeight } }, [s.isUnifiedViewer ? t(s.UnifiedViewer, { attrs: { "diff-change": s.diffChange } }) : t(s.SplitViewer, { attrs: { "diff-change": s.diffChange } })], 1);
|
|
4318
4319
|
}, ps = [], _s = /* @__PURE__ */ ge(
|
|
4319
4320
|
ds,
|
|
4320
4321
|
gs,
|