v-code-diff 1.12.1 → 1.13.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 +19 -18
- package/dist/v2/index.es.js +1465 -1422
- package/dist/v2/index.umd.js +19 -18
- package/dist/v2.7/index.cjs.js +13 -12
- package/dist/v2.7/index.es.js +716 -707
- package/dist/v2.7/index.umd.js +13 -12
- package/dist/v3/index.cjs.js +18 -17
- package/dist/v3/index.es.js +1064 -1026
- package/dist/v3/index.umd.js +18 -17
- package/package.json +9 -9
- package/src/CodeReader.vue +25 -0
- package/src/global.ts +2 -0
- package/src/index.ts +3 -0
- package/types/index.d.ts +3 -0
package/dist/v2.7/index.es.js
CHANGED
|
@@ -1,78 +1,93 @@
|
|
|
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
|
|
3
|
-
|
|
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:#fff}.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)}.code-diff-view[data-v-0c5adc58] td:nth-child(1){display:none}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import On, { defineComponent as he, computed as de, ref as We, watch as In } from "vue";
|
|
3
|
+
On.util.warn;
|
|
4
4
|
function ne() {
|
|
5
5
|
}
|
|
6
6
|
ne.prototype = {
|
|
7
7
|
diff: function(e, s) {
|
|
8
|
-
var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
9
|
-
typeof
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
}, 0), !0) :
|
|
8
|
+
var u, h = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = h.callback;
|
|
9
|
+
typeof h == "function" && (t = h, h = {}), this.options = h;
|
|
10
|
+
var r = this;
|
|
11
|
+
function i(w) {
|
|
12
|
+
return t ? (setTimeout(function() {
|
|
13
|
+
t(void 0, w);
|
|
14
|
+
}, 0), !0) : w;
|
|
15
15
|
}
|
|
16
16
|
e = this.castInput(e), s = this.castInput(s), e = this.removeEmpty(this.tokenize(e)), s = this.removeEmpty(this.tokenize(s));
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}],
|
|
23
|
-
if (
|
|
24
|
-
return
|
|
17
|
+
var a = s.length, o = e.length, l = 1, c = a + o;
|
|
18
|
+
h.maxEditLength && (c = Math.min(c, h.maxEditLength));
|
|
19
|
+
var f = (u = h.timeout) !== null && u !== void 0 ? u : 1 / 0, g = Date.now() + f, d = [{
|
|
20
|
+
oldPos: -1,
|
|
21
|
+
lastComponent: void 0
|
|
22
|
+
}], p = this.extractCommon(d[0], s, e, 0);
|
|
23
|
+
if (d[0].oldPos + 1 >= o && p + 1 >= a)
|
|
24
|
+
return i([{
|
|
25
25
|
value: this.join(s),
|
|
26
26
|
count: s.length
|
|
27
27
|
}]);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
var _ = -1 / 0, v = 1 / 0;
|
|
29
|
+
function m() {
|
|
30
|
+
for (var w = Math.max(_, -l); w <= Math.min(v, l); w += 2) {
|
|
31
|
+
var T = void 0, M = d[w - 1], N = d[w + 1];
|
|
32
|
+
M && (d[w - 1] = void 0);
|
|
33
|
+
var R = !1;
|
|
34
|
+
if (N) {
|
|
35
|
+
var C = N.oldPos - w;
|
|
36
|
+
R = N && 0 <= C && C < a;
|
|
37
|
+
}
|
|
38
|
+
var L = M && M.oldPos + 1 < o;
|
|
39
|
+
if (!R && !L) {
|
|
40
|
+
d[w] = void 0;
|
|
35
41
|
continue;
|
|
36
42
|
}
|
|
37
|
-
if (!
|
|
38
|
-
return
|
|
39
|
-
|
|
43
|
+
if (!L || R && M.oldPos + 1 < N.oldPos ? T = r.addToPath(N, !0, void 0, 0) : T = r.addToPath(M, void 0, !0, 1), p = r.extractCommon(T, s, e, w), T.oldPos + 1 >= o && p + 1 >= a)
|
|
44
|
+
return i(kn(r, T.lastComponent, s, e, r.useLongestToken));
|
|
45
|
+
d[w] = T, T.oldPos + 1 >= o && (v = Math.min(v, w - 1)), p + 1 >= a && (_ = Math.max(_, w + 1));
|
|
40
46
|
}
|
|
41
|
-
|
|
47
|
+
l++;
|
|
42
48
|
}
|
|
43
|
-
if (
|
|
44
|
-
(function
|
|
49
|
+
if (t)
|
|
50
|
+
(function w() {
|
|
45
51
|
setTimeout(function() {
|
|
46
|
-
if (
|
|
47
|
-
return
|
|
48
|
-
|
|
52
|
+
if (l > c || Date.now() > g)
|
|
53
|
+
return t();
|
|
54
|
+
m() || w();
|
|
49
55
|
}, 0);
|
|
50
56
|
})();
|
|
51
57
|
else
|
|
52
|
-
for (;
|
|
53
|
-
var
|
|
54
|
-
if (
|
|
55
|
-
return
|
|
58
|
+
for (; l <= c && Date.now() <= g; ) {
|
|
59
|
+
var E = m();
|
|
60
|
+
if (E)
|
|
61
|
+
return E;
|
|
56
62
|
}
|
|
57
63
|
},
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
64
|
+
addToPath: function(e, s, u, h) {
|
|
65
|
+
var t = e.lastComponent;
|
|
66
|
+
return t && t.added === s && t.removed === u ? {
|
|
67
|
+
oldPos: e.oldPos + h,
|
|
68
|
+
lastComponent: {
|
|
69
|
+
count: t.count + 1,
|
|
70
|
+
added: s,
|
|
71
|
+
removed: u,
|
|
72
|
+
previousComponent: t.previousComponent
|
|
73
|
+
}
|
|
74
|
+
} : {
|
|
75
|
+
oldPos: e.oldPos + h,
|
|
76
|
+
lastComponent: {
|
|
77
|
+
count: 1,
|
|
78
|
+
added: s,
|
|
79
|
+
removed: u,
|
|
80
|
+
previousComponent: t
|
|
81
|
+
}
|
|
82
|
+
};
|
|
69
83
|
},
|
|
70
84
|
extractCommon: function(e, s, u, h) {
|
|
71
|
-
for (var t = s.length, r = u.length, i = e.
|
|
72
|
-
|
|
73
|
-
return o && e.
|
|
74
|
-
count: o
|
|
75
|
-
|
|
85
|
+
for (var t = s.length, r = u.length, i = e.oldPos, a = i - h, o = 0; a + 1 < t && i + 1 < r && this.equals(s[a + 1], u[i + 1]); )
|
|
86
|
+
a++, i++, o++;
|
|
87
|
+
return o && (e.lastComponent = {
|
|
88
|
+
count: o,
|
|
89
|
+
previousComponent: e.lastComponent
|
|
90
|
+
}), e.oldPos = i, a;
|
|
76
91
|
},
|
|
77
92
|
equals: function(e, s) {
|
|
78
93
|
return this.options.comparator ? this.options.comparator(e, s) : e === s || this.options.ignoreCase && e.toLowerCase() === s.toLowerCase();
|
|
@@ -92,40 +107,37 @@ ne.prototype = {
|
|
|
92
107
|
return e.join("");
|
|
93
108
|
}
|
|
94
109
|
};
|
|
95
|
-
function
|
|
96
|
-
for (var t =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
110
|
+
function kn(n, e, s, u, h) {
|
|
111
|
+
for (var t = [], r; e; )
|
|
112
|
+
t.push(e), r = e.previousComponent, delete e.previousComponent, e = r;
|
|
113
|
+
t.reverse();
|
|
114
|
+
for (var i = 0, a = t.length, o = 0, l = 0; i < a; i++) {
|
|
115
|
+
var c = t[i];
|
|
116
|
+
if (c.removed) {
|
|
117
|
+
if (c.value = n.join(u.slice(l, l + c.count)), l += c.count, i && t[i - 1].added) {
|
|
118
|
+
var g = t[i - 1];
|
|
119
|
+
t[i - 1] = t[i], t[i] = g;
|
|
102
120
|
}
|
|
103
121
|
} else {
|
|
104
|
-
if (!
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
return
|
|
109
|
-
}),
|
|
122
|
+
if (!c.added && h) {
|
|
123
|
+
var f = s.slice(o, o + c.count);
|
|
124
|
+
f = f.map(function(p, _) {
|
|
125
|
+
var v = u[l + _];
|
|
126
|
+
return v.length > p.length ? v : p;
|
|
127
|
+
}), c.value = n.join(f);
|
|
110
128
|
} else
|
|
111
|
-
|
|
112
|
-
|
|
129
|
+
c.value = n.join(s.slice(o, o + c.count));
|
|
130
|
+
o += c.count, c.added || (l += c.count);
|
|
113
131
|
}
|
|
114
132
|
}
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
}
|
|
118
|
-
function kn(n) {
|
|
119
|
-
return {
|
|
120
|
-
newPos: n.newPos,
|
|
121
|
-
components: n.components.slice(0)
|
|
122
|
-
};
|
|
133
|
+
var d = t[a - 1];
|
|
134
|
+
return a > 1 && typeof d.value == "string" && (d.added || d.removed) && n.equals("", d.value) && (t[a - 2].value += d.value, t.pop()), t;
|
|
123
135
|
}
|
|
124
136
|
var Bn = new ne();
|
|
125
137
|
function $n(n, e, s) {
|
|
126
138
|
return Bn.diff(n, e, s);
|
|
127
139
|
}
|
|
128
|
-
function
|
|
140
|
+
function Pn(n, e) {
|
|
129
141
|
if (typeof n == "function")
|
|
130
142
|
e.callback = n;
|
|
131
143
|
else if (n)
|
|
@@ -133,22 +145,24 @@ function Un(n, e) {
|
|
|
133
145
|
n.hasOwnProperty(s) && (e[s] = n[s]);
|
|
134
146
|
return e;
|
|
135
147
|
}
|
|
136
|
-
var Qe = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,
|
|
148
|
+
var Qe = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/, Ze = /\S/, Be = new ne();
|
|
137
149
|
Be.equals = function(n, e) {
|
|
138
|
-
return this.options.ignoreCase && (n = n.toLowerCase(), e = e.toLowerCase()), n === e || this.options.ignoreWhitespace && !
|
|
150
|
+
return this.options.ignoreCase && (n = n.toLowerCase(), e = e.toLowerCase()), n === e || this.options.ignoreWhitespace && !Ze.test(n) && !Ze.test(e);
|
|
139
151
|
};
|
|
140
152
|
Be.tokenize = function(n) {
|
|
141
153
|
for (var e = n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/), s = 0; s < e.length - 1; s++)
|
|
142
154
|
!e[s + 1] && e[s + 2] && Qe.test(e[s]) && Qe.test(e[s + 2]) && (e[s] += e[s + 2], e.splice(s + 1, 2), s--);
|
|
143
155
|
return e;
|
|
144
156
|
};
|
|
145
|
-
function
|
|
146
|
-
return s =
|
|
157
|
+
function Un(n, e, s) {
|
|
158
|
+
return s = Pn(s, {
|
|
147
159
|
ignoreWhitespace: !0
|
|
148
160
|
}), Be.diff(n, e, s);
|
|
149
161
|
}
|
|
150
162
|
var rn = new ne();
|
|
151
163
|
rn.tokenize = function(n) {
|
|
164
|
+
this.options.stripTrailingCr && (n = n.replace(/\r\n/g, `
|
|
165
|
+
`));
|
|
152
166
|
var e = [], s = n.split(/(\n|\r\n)/);
|
|
153
167
|
s[s.length - 1] || s.pop();
|
|
154
168
|
for (var u = 0; u < s.length; u++) {
|
|
@@ -173,17 +187,17 @@ function Ne(n) {
|
|
|
173
187
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
174
188
|
}, Ne(n);
|
|
175
189
|
}
|
|
176
|
-
var Hn = Object.prototype.toString,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
190
|
+
var Hn = Object.prototype.toString, pe = new ne();
|
|
191
|
+
pe.useLongestToken = !0;
|
|
192
|
+
pe.tokenize = rn.tokenize;
|
|
193
|
+
pe.castInput = function(n) {
|
|
180
194
|
var e = this.options, s = e.undefinedReplacement, u = e.stringifyReplacer, h = u === void 0 ? function(t, r) {
|
|
181
195
|
return typeof r == "undefined" ? s : r;
|
|
182
196
|
} : u;
|
|
183
197
|
return typeof n == "string" ? n : JSON.stringify(Ie(n, null, null, h), h, " ");
|
|
184
198
|
};
|
|
185
|
-
|
|
186
|
-
return ne.prototype.equals.call(
|
|
199
|
+
pe.equals = function(n, e) {
|
|
200
|
+
return ne.prototype.equals.call(pe, n.replace(/,([\r\n])/g, "$1"), e.replace(/,([\r\n])/g, "$1"));
|
|
187
201
|
};
|
|
188
202
|
function Ie(n, e, s, u, h) {
|
|
189
203
|
e = e || [], s = s || [], u && (n = u(h, n));
|
|
@@ -263,10 +277,10 @@ var sn = { exports: {} };
|
|
|
263
277
|
];
|
|
264
278
|
var g = this.diff_halfMatch_(t, r);
|
|
265
279
|
if (g) {
|
|
266
|
-
var d = g[0],
|
|
280
|
+
var d = g[0], p = g[1], _ = g[2], v = g[3], m = g[4], E = this.diff_main(d, _, i, a), w = this.diff_main(p, v, i, a);
|
|
267
281
|
return E.concat(
|
|
268
282
|
[new e.Diff(h, m)],
|
|
269
|
-
|
|
283
|
+
w
|
|
270
284
|
);
|
|
271
285
|
}
|
|
272
286
|
return i && t.length > 100 && r.length > 100 ? this.diff_lineMode_(t, r, a) : this.diff_bisect_(t, r, a);
|
|
@@ -275,10 +289,10 @@ var sn = { exports: {} };
|
|
|
275
289
|
t = a.chars1, r = a.chars2;
|
|
276
290
|
var o = a.lineArray, l = this.diff_main(t, r, !1, i);
|
|
277
291
|
this.diff_charsToLines_(l, o), this.diff_cleanupSemantic(l), l.push(new e.Diff(h, ""));
|
|
278
|
-
for (var c = 0, f = 0, g = 0, d = "",
|
|
292
|
+
for (var c = 0, f = 0, g = 0, d = "", p = ""; c < l.length; ) {
|
|
279
293
|
switch (l[c][0]) {
|
|
280
294
|
case u:
|
|
281
|
-
g++,
|
|
295
|
+
g++, p += l[c][1];
|
|
282
296
|
break;
|
|
283
297
|
case s:
|
|
284
298
|
f++, d += l[c][1];
|
|
@@ -289,54 +303,54 @@ var sn = { exports: {} };
|
|
|
289
303
|
c - f - g,
|
|
290
304
|
f + g
|
|
291
305
|
), c = c - f - g;
|
|
292
|
-
for (var
|
|
293
|
-
l.splice(c, 0,
|
|
294
|
-
c = c +
|
|
306
|
+
for (var _ = this.diff_main(d, p, !1, i), v = _.length - 1; v >= 0; v--)
|
|
307
|
+
l.splice(c, 0, _[v]);
|
|
308
|
+
c = c + _.length;
|
|
295
309
|
}
|
|
296
|
-
g = 0, f = 0, d = "",
|
|
310
|
+
g = 0, f = 0, d = "", p = "";
|
|
297
311
|
break;
|
|
298
312
|
}
|
|
299
313
|
c++;
|
|
300
314
|
}
|
|
301
315
|
return l.pop(), l;
|
|
302
316
|
}, e.prototype.diff_bisect_ = function(t, r, i) {
|
|
303
|
-
for (var a = t.length, o = r.length, l = Math.ceil((a + o) / 2), c = l, f = 2 * l, g = new Array(f), d = new Array(f),
|
|
304
|
-
g[
|
|
317
|
+
for (var a = t.length, o = r.length, l = Math.ceil((a + o) / 2), c = l, f = 2 * l, g = new Array(f), d = new Array(f), p = 0; p < f; p++)
|
|
318
|
+
g[p] = -1, d[p] = -1;
|
|
305
319
|
g[c + 1] = 0, d[c + 1] = 0;
|
|
306
|
-
for (var
|
|
307
|
-
for (var N = -
|
|
320
|
+
for (var _ = a - o, v = _ % 2 != 0, m = 0, E = 0, w = 0, T = 0, M = 0; M < l && !((/* @__PURE__ */ new Date()).getTime() > i); M++) {
|
|
321
|
+
for (var N = -M + m; N <= M - E; N += 2) {
|
|
308
322
|
var R = c + N, C;
|
|
309
|
-
N == -
|
|
310
|
-
for (var
|
|
311
|
-
C++,
|
|
323
|
+
N == -M || N != M && g[R - 1] < g[R + 1] ? C = g[R + 1] : C = g[R - 1] + 1;
|
|
324
|
+
for (var L = C - N; C < a && L < o && t.charAt(C) == r.charAt(L); )
|
|
325
|
+
C++, L++;
|
|
312
326
|
if (g[R] = C, C > a)
|
|
313
327
|
E += 2;
|
|
314
|
-
else if (
|
|
328
|
+
else if (L > o)
|
|
315
329
|
m += 2;
|
|
316
330
|
else if (v) {
|
|
317
|
-
var $ = c +
|
|
331
|
+
var $ = c + _ - N;
|
|
318
332
|
if ($ >= 0 && $ < f && d[$] != -1) {
|
|
319
333
|
var B = a - d[$];
|
|
320
334
|
if (C >= B)
|
|
321
|
-
return this.diff_bisectSplit_(t, r, C,
|
|
335
|
+
return this.diff_bisectSplit_(t, r, C, L, i);
|
|
322
336
|
}
|
|
323
337
|
}
|
|
324
338
|
}
|
|
325
|
-
for (var H = -
|
|
339
|
+
for (var H = -M + w; H <= M - T; H += 2) {
|
|
326
340
|
var $ = c + H, B;
|
|
327
|
-
H == -
|
|
341
|
+
H == -M || H != M && d[$ - 1] < d[$ + 1] ? B = d[$ + 1] : B = d[$ - 1] + 1;
|
|
328
342
|
for (var K = B - H; B < a && K < o && t.charAt(a - B - 1) == r.charAt(o - K - 1); )
|
|
329
343
|
B++, K++;
|
|
330
344
|
if (d[$] = B, B > a)
|
|
331
|
-
|
|
345
|
+
T += 2;
|
|
332
346
|
else if (K > o)
|
|
333
|
-
|
|
347
|
+
w += 2;
|
|
334
348
|
else if (!v) {
|
|
335
|
-
var R = c +
|
|
349
|
+
var R = c + _ - H;
|
|
336
350
|
if (R >= 0 && R < f && g[R] != -1) {
|
|
337
|
-
var C = g[R],
|
|
351
|
+
var C = g[R], L = c + C - R;
|
|
338
352
|
if (B = a - B, C >= B)
|
|
339
|
-
return this.diff_bisectSplit_(t, r, C,
|
|
353
|
+
return this.diff_bisectSplit_(t, r, C, L, i);
|
|
340
354
|
}
|
|
341
355
|
}
|
|
342
356
|
}
|
|
@@ -346,17 +360,17 @@ var sn = { exports: {} };
|
|
|
346
360
|
new e.Diff(u, r)
|
|
347
361
|
];
|
|
348
362
|
}, e.prototype.diff_bisectSplit_ = function(t, r, i, a, o) {
|
|
349
|
-
var l = t.substring(0, i), c = r.substring(0, a), f = t.substring(i), g = r.substring(a), d = this.diff_main(l, c, !1, o),
|
|
350
|
-
return d.concat(
|
|
363
|
+
var l = t.substring(0, i), c = r.substring(0, a), f = t.substring(i), g = r.substring(a), d = this.diff_main(l, c, !1, o), p = this.diff_main(f, g, !1, o);
|
|
364
|
+
return d.concat(p);
|
|
351
365
|
}, e.prototype.diff_linesToChars_ = function(t, r) {
|
|
352
366
|
var i = [], a = {};
|
|
353
367
|
i[0] = "";
|
|
354
368
|
function o(g) {
|
|
355
|
-
for (var d = "",
|
|
356
|
-
|
|
357
|
-
`,
|
|
358
|
-
var m = g.substring(
|
|
359
|
-
(a.hasOwnProperty ? a.hasOwnProperty(m) : a[m] !== void 0) ? d += String.fromCharCode(a[m]) : (v == l && (m = g.substring(
|
|
369
|
+
for (var d = "", p = 0, _ = -1, v = i.length; _ < g.length - 1; ) {
|
|
370
|
+
_ = g.indexOf(`
|
|
371
|
+
`, p), _ == -1 && (_ = g.length - 1);
|
|
372
|
+
var m = g.substring(p, _ + 1);
|
|
373
|
+
(a.hasOwnProperty ? a.hasOwnProperty(m) : a[m] !== void 0) ? d += String.fromCharCode(a[m]) : (v == l && (m = g.substring(p), _ = g.length), d += String.fromCharCode(v), a[m] = v, i[v++] = m), p = _ + 1;
|
|
360
374
|
}
|
|
361
375
|
return d;
|
|
362
376
|
}
|
|
@@ -403,20 +417,20 @@ var sn = { exports: {} };
|
|
|
403
417
|
if (i.length < 4 || a.length * 2 < i.length)
|
|
404
418
|
return null;
|
|
405
419
|
var o = this;
|
|
406
|
-
function l(E,
|
|
407
|
-
for (var
|
|
420
|
+
function l(E, w, T) {
|
|
421
|
+
for (var M = E.substring(T, T + Math.floor(E.length / 4)), N = -1, R = "", C, L, $, B; (N = w.indexOf(M, N + 1)) != -1; ) {
|
|
408
422
|
var H = o.diff_commonPrefix(
|
|
409
|
-
E.substring(
|
|
410
|
-
|
|
423
|
+
E.substring(T),
|
|
424
|
+
w.substring(N)
|
|
411
425
|
), K = o.diff_commonSuffix(
|
|
412
|
-
E.substring(0,
|
|
413
|
-
|
|
426
|
+
E.substring(0, T),
|
|
427
|
+
w.substring(0, N)
|
|
414
428
|
);
|
|
415
|
-
R.length < K + H && (R =
|
|
429
|
+
R.length < K + H && (R = w.substring(N - K, N) + w.substring(N, N + H), C = E.substring(0, T - K), L = E.substring(T + H), $ = w.substring(0, N - K), B = w.substring(N + H));
|
|
416
430
|
}
|
|
417
431
|
return R.length * 2 >= E.length ? [
|
|
418
432
|
C,
|
|
419
|
-
|
|
433
|
+
L,
|
|
420
434
|
$,
|
|
421
435
|
B,
|
|
422
436
|
R
|
|
@@ -434,10 +448,10 @@ var sn = { exports: {} };
|
|
|
434
448
|
if (!c && !f)
|
|
435
449
|
return null;
|
|
436
450
|
f ? c ? g = c[4].length > f[4].length ? c : f : g = f : g = c;
|
|
437
|
-
var d,
|
|
438
|
-
t.length > r.length ? (d = g[0],
|
|
451
|
+
var d, p, _, v;
|
|
452
|
+
t.length > r.length ? (d = g[0], p = g[1], _ = g[2], v = g[3]) : (_ = g[0], v = g[1], d = g[2], p = g[3]);
|
|
439
453
|
var m = g[4];
|
|
440
|
-
return [d,
|
|
454
|
+
return [d, p, _, v, m];
|
|
441
455
|
}, e.prototype.diff_cleanupSemantic = function(t) {
|
|
442
456
|
for (var r = !1, i = [], a = 0, o = null, l = 0, c = 0, f = 0, g = 0, d = 0; l < t.length; )
|
|
443
457
|
t[l][0] == h ? (i[a++] = l, c = g, f = d, g = 0, d = 0, o = t[l][1]) : (t[l][0] == u ? g += t[l][1].length : d += t[l][1].length, o && o.length <= Math.max(c, f) && o.length <= Math.max(
|
|
@@ -450,14 +464,14 @@ var sn = { exports: {} };
|
|
|
450
464
|
), t[i[a - 1] + 1][0] = u, a--, a--, l = a > 0 ? i[a - 1] : -1, c = 0, f = 0, g = 0, d = 0, o = null, r = !0)), l++;
|
|
451
465
|
for (r && this.diff_cleanupMerge(t), this.diff_cleanupSemanticLossless(t), l = 1; l < t.length; ) {
|
|
452
466
|
if (t[l - 1][0] == s && t[l][0] == u) {
|
|
453
|
-
var
|
|
454
|
-
v >= m ? (v >=
|
|
467
|
+
var p = t[l - 1][1], _ = t[l][1], v = this.diff_commonOverlap_(p, _), m = this.diff_commonOverlap_(_, p);
|
|
468
|
+
v >= m ? (v >= p.length / 2 || v >= _.length / 2) && (t.splice(l, 0, new e.Diff(
|
|
455
469
|
h,
|
|
456
|
-
|
|
457
|
-
)), t[l - 1][1] =
|
|
470
|
+
_.substring(0, v)
|
|
471
|
+
)), t[l - 1][1] = p.substring(0, p.length - v), t[l + 1][1] = _.substring(v), l++) : (m >= p.length / 2 || m >= _.length / 2) && (t.splice(l, 0, new e.Diff(
|
|
458
472
|
h,
|
|
459
|
-
|
|
460
|
-
)), t[l - 1][0] = u, t[l - 1][1] =
|
|
473
|
+
p.substring(0, m)
|
|
474
|
+
)), t[l - 1][0] = u, t[l - 1][1] = _.substring(0, _.length - m), t[l + 1][0] = s, t[l + 1][1] = p.substring(m), l++), l++;
|
|
461
475
|
}
|
|
462
476
|
l++;
|
|
463
477
|
}
|
|
@@ -465,8 +479,8 @@ var sn = { exports: {} };
|
|
|
465
479
|
function r(m, E) {
|
|
466
480
|
if (!m || !E)
|
|
467
481
|
return 6;
|
|
468
|
-
var
|
|
469
|
-
return B || H ? 5 :
|
|
482
|
+
var w = m.charAt(m.length - 1), T = E.charAt(0), M = w.match(e.nonAlphaNumericRegex_), N = T.match(e.nonAlphaNumericRegex_), R = M && w.match(e.whitespaceRegex_), C = N && T.match(e.whitespaceRegex_), L = R && w.match(e.linebreakRegex_), $ = C && T.match(e.linebreakRegex_), B = L && m.match(e.blanklineEndRegex_), H = $ && E.match(e.blanklineStartRegex_);
|
|
483
|
+
return B || H ? 5 : L || $ ? 4 : M && !R && C ? 3 : R || C ? 2 : M || N ? 1 : 0;
|
|
470
484
|
}
|
|
471
485
|
for (var i = 1; i < t.length - 1; ) {
|
|
472
486
|
if (t[i - 1][0] == h && t[i + 1][0] == h) {
|
|
@@ -475,12 +489,12 @@ var sn = { exports: {} };
|
|
|
475
489
|
var f = o.substring(o.length - c);
|
|
476
490
|
a = a.substring(0, a.length - c), o = f + o.substring(0, o.length - c), l = f + l;
|
|
477
491
|
}
|
|
478
|
-
for (var g = a, d = o,
|
|
492
|
+
for (var g = a, d = o, p = l, _ = r(a, o) + r(o, l); o.charAt(0) === l.charAt(0); ) {
|
|
479
493
|
a += o.charAt(0), o = o.substring(1) + l.charAt(0), l = l.substring(1);
|
|
480
494
|
var v = r(a, o) + r(o, l);
|
|
481
|
-
v >=
|
|
495
|
+
v >= _ && (_ = v, g = a, d = o, p = l);
|
|
482
496
|
}
|
|
483
|
-
t[i - 1][1] != g && (g ? t[i - 1][1] = g : (t.splice(i - 1, 1), i--), t[i][1] = d,
|
|
497
|
+
t[i - 1][1] != g && (g ? t[i - 1][1] = g : (t.splice(i - 1, 1), i--), t[i][1] = d, p ? t[i + 1][1] = p : (t.splice(i + 1, 1), i--));
|
|
484
498
|
}
|
|
485
499
|
i++;
|
|
486
500
|
}
|
|
@@ -588,7 +602,7 @@ var sn = { exports: {} };
|
|
|
588
602
|
case "+":
|
|
589
603
|
try {
|
|
590
604
|
i[a++] = new e.Diff(u, decodeURI(f));
|
|
591
|
-
} catch (
|
|
605
|
+
} catch (p) {
|
|
592
606
|
throw new Error("Illegal escape in diff_fromDelta: " + f);
|
|
593
607
|
}
|
|
594
608
|
break;
|
|
@@ -616,26 +630,26 @@ var sn = { exports: {} };
|
|
|
616
630
|
if (r.length > this.Match_MaxBits)
|
|
617
631
|
throw new Error("Pattern too long for this browser.");
|
|
618
632
|
var a = this.match_alphabet_(r), o = this;
|
|
619
|
-
function l(C,
|
|
620
|
-
var $ = C / r.length, B = Math.abs(i -
|
|
633
|
+
function l(C, L) {
|
|
634
|
+
var $ = C / r.length, B = Math.abs(i - L);
|
|
621
635
|
return o.Match_Distance ? $ + B / o.Match_Distance : B ? 1 : $;
|
|
622
636
|
}
|
|
623
637
|
var c = this.Match_Threshold, f = t.indexOf(r, i);
|
|
624
638
|
f != -1 && (c = Math.min(l(0, f), c), f = t.lastIndexOf(r, i + r.length), f != -1 && (c = Math.min(l(0, f), c)));
|
|
625
639
|
var g = 1 << r.length - 1;
|
|
626
640
|
f = -1;
|
|
627
|
-
for (var d,
|
|
628
|
-
for (d = 0,
|
|
629
|
-
l(m, i +
|
|
630
|
-
|
|
631
|
-
var E = Math.max(1, i -
|
|
632
|
-
|
|
633
|
-
for (var
|
|
634
|
-
var N = a[t.charAt(
|
|
635
|
-
if (m === 0 ?
|
|
636
|
-
var R = l(m,
|
|
641
|
+
for (var d, p, _ = r.length + t.length, v, m = 0; m < r.length; m++) {
|
|
642
|
+
for (d = 0, p = _; d < p; )
|
|
643
|
+
l(m, i + p) <= c ? d = p : _ = p, p = Math.floor((_ - d) / 2 + d);
|
|
644
|
+
_ = p;
|
|
645
|
+
var E = Math.max(1, i - p + 1), w = Math.min(i + p, t.length) + r.length, T = Array(w + 2);
|
|
646
|
+
T[w + 1] = (1 << m) - 1;
|
|
647
|
+
for (var M = w; M >= E; M--) {
|
|
648
|
+
var N = a[t.charAt(M - 1)];
|
|
649
|
+
if (m === 0 ? T[M] = (T[M + 1] << 1 | 1) & N : T[M] = (T[M + 1] << 1 | 1) & N | ((v[M + 1] | v[M]) << 1 | 1) | v[M + 1], T[M] & g) {
|
|
650
|
+
var R = l(m, M - 1);
|
|
637
651
|
if (R <= c)
|
|
638
|
-
if (c = R, f =
|
|
652
|
+
if (c = R, f = M - 1, f > i)
|
|
639
653
|
E = Math.max(1, 2 * i - f);
|
|
640
654
|
else
|
|
641
655
|
break;
|
|
@@ -643,7 +657,7 @@ var sn = { exports: {} };
|
|
|
643
657
|
}
|
|
644
658
|
if (l(m + 1, i) > c)
|
|
645
659
|
break;
|
|
646
|
-
v =
|
|
660
|
+
v = T;
|
|
647
661
|
}
|
|
648
662
|
return f;
|
|
649
663
|
}, e.prototype.match_alphabet_ = function(t) {
|
|
@@ -695,22 +709,22 @@ var sn = { exports: {} };
|
|
|
695
709
|
throw new Error("Unknown call format to patch_make.");
|
|
696
710
|
if (o.length === 0)
|
|
697
711
|
return [];
|
|
698
|
-
for (var l = [], c = new e.patch_obj(), f = 0, g = 0, d = 0,
|
|
712
|
+
for (var l = [], c = new e.patch_obj(), f = 0, g = 0, d = 0, p = a, _ = a, v = 0; v < o.length; v++) {
|
|
699
713
|
var m = o[v][0], E = o[v][1];
|
|
700
714
|
switch (!f && m !== h && (c.start1 = g, c.start2 = d), m) {
|
|
701
715
|
case u:
|
|
702
|
-
c.diffs[f++] = o[v], c.length2 += E.length,
|
|
716
|
+
c.diffs[f++] = o[v], c.length2 += E.length, _ = _.substring(0, d) + E + _.substring(d);
|
|
703
717
|
break;
|
|
704
718
|
case s:
|
|
705
|
-
c.length1 += E.length, c.diffs[f++] = o[v],
|
|
719
|
+
c.length1 += E.length, c.diffs[f++] = o[v], _ = _.substring(0, d) + _.substring(d + E.length);
|
|
706
720
|
break;
|
|
707
721
|
case h:
|
|
708
|
-
E.length <= 2 * this.Patch_Margin && f && o.length != v + 1 ? (c.diffs[f++] = o[v], c.length1 += E.length, c.length2 += E.length) : E.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c,
|
|
722
|
+
E.length <= 2 * this.Patch_Margin && f && o.length != v + 1 ? (c.diffs[f++] = o[v], c.length1 += E.length, c.length2 += E.length) : E.length >= 2 * this.Patch_Margin && f && (this.patch_addContext_(c, p), l.push(c), c = new e.patch_obj(), f = 0, p = _, g = d);
|
|
709
723
|
break;
|
|
710
724
|
}
|
|
711
725
|
m !== u && (g += E.length), m !== s && (d += E.length);
|
|
712
726
|
}
|
|
713
|
-
return f && (this.patch_addContext_(c,
|
|
727
|
+
return f && (this.patch_addContext_(c, p), l.push(c)), l;
|
|
714
728
|
}, e.prototype.patch_deepCopy = function(t) {
|
|
715
729
|
for (var r = [], i = 0; i < t.length; i++) {
|
|
716
730
|
var a = t[i], o = new e.patch_obj();
|
|
@@ -740,21 +754,21 @@ var sn = { exports: {} };
|
|
|
740
754
|
o[l] = !1, a -= t[l].length2 - t[l].length1;
|
|
741
755
|
else {
|
|
742
756
|
o[l] = !0, a = g - c;
|
|
743
|
-
var
|
|
744
|
-
if (d == -1 ?
|
|
757
|
+
var p;
|
|
758
|
+
if (d == -1 ? p = r.substring(g, g + f.length) : p = r.substring(g, d + this.Match_MaxBits), f == p)
|
|
745
759
|
r = r.substring(0, g) + this.diff_text2(t[l].diffs) + r.substring(g + f.length);
|
|
746
760
|
else {
|
|
747
|
-
var
|
|
748
|
-
if (f.length > this.Match_MaxBits && this.diff_levenshtein(
|
|
761
|
+
var _ = this.diff_main(f, p, !1);
|
|
762
|
+
if (f.length > this.Match_MaxBits && this.diff_levenshtein(_) / f.length > this.Patch_DeleteThreshold)
|
|
749
763
|
o[l] = !1;
|
|
750
764
|
else {
|
|
751
|
-
this.diff_cleanupSemanticLossless(
|
|
765
|
+
this.diff_cleanupSemanticLossless(_);
|
|
752
766
|
for (var v = 0, m, E = 0; E < t[l].diffs.length; E++) {
|
|
753
|
-
var
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
v +
|
|
757
|
-
))),
|
|
767
|
+
var w = t[l].diffs[E];
|
|
768
|
+
w[0] !== h && (m = this.diff_xIndex(_, v)), w[0] === u ? r = r.substring(0, g + m) + w[1] + r.substring(g + m) : w[0] === s && (r = r.substring(0, g + m) + r.substring(g + this.diff_xIndex(
|
|
769
|
+
_,
|
|
770
|
+
v + w[1].length
|
|
771
|
+
))), w[0] !== s && (v += w[1].length);
|
|
758
772
|
}
|
|
759
773
|
}
|
|
760
774
|
}
|
|
@@ -788,15 +802,15 @@ var sn = { exports: {} };
|
|
|
788
802
|
for (var o = a.start1, l = a.start2, c = ""; a.diffs.length !== 0; ) {
|
|
789
803
|
var f = new e.patch_obj(), g = !0;
|
|
790
804
|
for (f.start1 = o - c.length, f.start2 = l - c.length, c !== "" && (f.length1 = f.length2 = c.length, f.diffs.push(new e.Diff(h, c))); a.diffs.length !== 0 && f.length1 < r - this.Patch_Margin; ) {
|
|
791
|
-
var d = a.diffs[0][0],
|
|
792
|
-
d === u ? (f.length2 +=
|
|
805
|
+
var d = a.diffs[0][0], p = a.diffs[0][1];
|
|
806
|
+
d === u ? (f.length2 += p.length, l += p.length, f.diffs.push(a.diffs.shift()), g = !1) : d === s && f.diffs.length == 1 && f.diffs[0][0] == h && p.length > 2 * r ? (f.length1 += p.length, o += p.length, g = !1, f.diffs.push(new e.Diff(d, p)), a.diffs.shift()) : (p = p.substring(
|
|
793
807
|
0,
|
|
794
808
|
r - f.length1 - this.Patch_Margin
|
|
795
|
-
), f.length1 +=
|
|
809
|
+
), f.length1 += p.length, o += p.length, d === h ? (f.length2 += p.length, l += p.length) : g = !1, f.diffs.push(new e.Diff(d, p)), p == a.diffs[0][1] ? a.diffs.shift() : a.diffs[0][1] = a.diffs[0][1].substring(p.length));
|
|
796
810
|
}
|
|
797
811
|
c = this.diff_text2(f.diffs), c = c.substring(c.length - this.Patch_Margin);
|
|
798
|
-
var
|
|
799
|
-
|
|
812
|
+
var _ = this.diff_text1(a.diffs).substring(0, this.Patch_Margin);
|
|
813
|
+
_ !== "" && (f.length1 += _.length, f.length2 += _.length, f.diffs.length !== 0 && f.diffs[f.diffs.length - 1][0] === h ? f.diffs[f.diffs.length - 1][1] += _ : f.diffs.push(new e.Diff(h, _))), g || t.splice(++i, 0, f);
|
|
800
814
|
}
|
|
801
815
|
}
|
|
802
816
|
}, e.prototype.patch_toText = function(t) {
|
|
@@ -829,8 +843,7 @@ var sn = { exports: {} };
|
|
|
829
843
|
else {
|
|
830
844
|
if (f == "@")
|
|
831
845
|
break;
|
|
832
|
-
if (f !== "")
|
|
833
|
-
throw new Error('Invalid patch mode "' + f + '" in: ' + g);
|
|
846
|
+
if (f !== "") throw new Error('Invalid patch mode "' + f + '" in: ' + g);
|
|
834
847
|
}
|
|
835
848
|
a++;
|
|
836
849
|
}
|
|
@@ -871,7 +884,7 @@ function an(n) {
|
|
|
871
884
|
(u === "object" || u === "function") && !Object.isFrozen(s) && an(s);
|
|
872
885
|
}), n;
|
|
873
886
|
}
|
|
874
|
-
class
|
|
887
|
+
class Ye {
|
|
875
888
|
/**
|
|
876
889
|
* @param {CompiledMode} mode
|
|
877
890
|
*/
|
|
@@ -895,7 +908,7 @@ function re(n, ...e) {
|
|
|
895
908
|
}), /** @type {T} */
|
|
896
909
|
s;
|
|
897
910
|
}
|
|
898
|
-
const Gn = "</span>",
|
|
911
|
+
const Gn = "</span>", Ve = (n) => !!n.scope, Kn = (n, { prefix: e }) => {
|
|
899
912
|
if (n.startsWith("language:"))
|
|
900
913
|
return n.replace("language:", "language-");
|
|
901
914
|
if (n.includes(".")) {
|
|
@@ -929,8 +942,7 @@ class Wn {
|
|
|
929
942
|
*
|
|
930
943
|
* @param {Node} node */
|
|
931
944
|
openNode(e) {
|
|
932
|
-
if (!
|
|
933
|
-
return;
|
|
945
|
+
if (!Ve(e)) return;
|
|
934
946
|
const s = Kn(
|
|
935
947
|
e.scope,
|
|
936
948
|
{ prefix: this.classPrefix }
|
|
@@ -942,7 +954,7 @@ class Wn {
|
|
|
942
954
|
*
|
|
943
955
|
* @param {Node} node */
|
|
944
956
|
closeNode(e) {
|
|
945
|
-
|
|
957
|
+
Ve(e) && (this.buffer += Gn);
|
|
946
958
|
}
|
|
947
959
|
/**
|
|
948
960
|
* returns the accumulated buffer
|
|
@@ -987,8 +999,7 @@ class $e {
|
|
|
987
999
|
return this.stack.pop();
|
|
988
1000
|
}
|
|
989
1001
|
closeAllNodes() {
|
|
990
|
-
for (; this.closeNode(); )
|
|
991
|
-
;
|
|
1002
|
+
for (; this.closeNode(); ) ;
|
|
992
1003
|
}
|
|
993
1004
|
toJSON() {
|
|
994
1005
|
return JSON.stringify(this.rootNode, null, 4);
|
|
@@ -1055,23 +1066,23 @@ function _e(n) {
|
|
|
1055
1066
|
return n ? typeof n == "string" ? n : n.source : null;
|
|
1056
1067
|
}
|
|
1057
1068
|
function ln(n) {
|
|
1058
|
-
return
|
|
1059
|
-
}
|
|
1060
|
-
function Vn(n) {
|
|
1061
|
-
return ae("(?:", n, ")*");
|
|
1069
|
+
return oe("(?=", n, ")");
|
|
1062
1070
|
}
|
|
1063
1071
|
function Zn(n) {
|
|
1064
|
-
return
|
|
1072
|
+
return oe("(?:", n, ")*");
|
|
1073
|
+
}
|
|
1074
|
+
function Yn(n) {
|
|
1075
|
+
return oe("(?:", n, ")?");
|
|
1065
1076
|
}
|
|
1066
|
-
function
|
|
1077
|
+
function oe(...n) {
|
|
1067
1078
|
return n.map((s) => _e(s)).join("");
|
|
1068
1079
|
}
|
|
1069
|
-
function
|
|
1080
|
+
function Vn(n) {
|
|
1070
1081
|
const e = n[n.length - 1];
|
|
1071
1082
|
return typeof e == "object" && e.constructor === Object ? (n.splice(n.length - 1, 1), e) : {};
|
|
1072
1083
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return "(" + (
|
|
1084
|
+
function Pe(...n) {
|
|
1085
|
+
return "(" + (Vn(n).capture ? "" : "?:") + n.map((u) => _e(u)).join("|") + ")";
|
|
1075
1086
|
}
|
|
1076
1087
|
function cn(n) {
|
|
1077
1088
|
return new RegExp(n.toString() + "|").exec("").length - 1;
|
|
@@ -1081,7 +1092,7 @@ function Xn(n, e) {
|
|
|
1081
1092
|
return s && s.index === 0;
|
|
1082
1093
|
}
|
|
1083
1094
|
const jn = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
|
|
1084
|
-
function
|
|
1095
|
+
function Ue(n, { joinWith: e }) {
|
|
1085
1096
|
let s = 0;
|
|
1086
1097
|
return n.map((u) => {
|
|
1087
1098
|
s += 1;
|
|
@@ -1100,7 +1111,7 @@ function Pe(n, { joinWith: e }) {
|
|
|
1100
1111
|
}
|
|
1101
1112
|
const qn = /\b\B/, un = "[a-zA-Z]\\w*", xe = "[a-zA-Z_]\\w*", fn = "\\b\\d+(\\.\\d+)?", gn = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", hn = "\\b(0b[01]+)", Jn = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", et = (n = {}) => {
|
|
1102
1113
|
const e = /^#![ ]*\//;
|
|
1103
|
-
return n.binary && (n.begin =
|
|
1114
|
+
return n.binary && (n.begin = oe(
|
|
1104
1115
|
e,
|
|
1105
1116
|
/.*\b/,
|
|
1106
1117
|
n.binary,
|
|
@@ -1115,7 +1126,7 @@ const qn = /\b\B/, un = "[a-zA-Z]\\w*", xe = "[a-zA-Z_]\\w*", fn = "\\b\\d+(\\.\
|
|
|
1115
1126
|
s.index !== 0 && u.ignoreMatch();
|
|
1116
1127
|
}
|
|
1117
1128
|
}, n);
|
|
1118
|
-
},
|
|
1129
|
+
}, be = {
|
|
1119
1130
|
begin: "\\\\[\\s\\S]",
|
|
1120
1131
|
relevance: 0
|
|
1121
1132
|
}, nt = {
|
|
@@ -1123,13 +1134,13 @@ const qn = /\b\B/, un = "[a-zA-Z]\\w*", xe = "[a-zA-Z_]\\w*", fn = "\\b\\d+(\\.\
|
|
|
1123
1134
|
begin: "'",
|
|
1124
1135
|
end: "'",
|
|
1125
1136
|
illegal: "\\n",
|
|
1126
|
-
contains: [
|
|
1137
|
+
contains: [be]
|
|
1127
1138
|
}, tt = {
|
|
1128
1139
|
scope: "string",
|
|
1129
1140
|
begin: '"',
|
|
1130
1141
|
end: '"',
|
|
1131
1142
|
illegal: "\\n",
|
|
1132
|
-
contains: [
|
|
1143
|
+
contains: [be]
|
|
1133
1144
|
}, rt = {
|
|
1134
1145
|
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/
|
|
1135
1146
|
}, De = function(n, e, s = {}) {
|
|
@@ -1151,7 +1162,7 @@ const qn = /\b\B/, un = "[a-zA-Z]\\w*", xe = "[a-zA-Z_]\\w*", fn = "\\b\\d+(\\.\
|
|
|
1151
1162
|
excludeBegin: !0,
|
|
1152
1163
|
relevance: 0
|
|
1153
1164
|
});
|
|
1154
|
-
const h =
|
|
1165
|
+
const h = Pe(
|
|
1155
1166
|
// list of common 1 and 2 letter words in English
|
|
1156
1167
|
"I",
|
|
1157
1168
|
"a",
|
|
@@ -1187,7 +1198,7 @@ const qn = /\b\B/, un = "[a-zA-Z]\\w*", xe = "[a-zA-Z_]\\w*", fn = "\\b\\d+(\\.\
|
|
|
1187
1198
|
//
|
|
1188
1199
|
// for a visual example please see:
|
|
1189
1200
|
// https://github.com/highlightjs/highlight.js/issues/2827
|
|
1190
|
-
begin:
|
|
1201
|
+
begin: oe(
|
|
1191
1202
|
/[ ]+/,
|
|
1192
1203
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
|
1193
1204
|
"(",
|
|
@@ -1215,12 +1226,12 @@ const qn = /\b\B/, un = "[a-zA-Z]\\w*", xe = "[a-zA-Z_]\\w*", fn = "\\b\\d+(\\.\
|
|
|
1215
1226
|
begin: /\/(?=[^/\n]*\/)/,
|
|
1216
1227
|
end: /\/[gimuy]*/,
|
|
1217
1228
|
contains: [
|
|
1218
|
-
|
|
1229
|
+
be,
|
|
1219
1230
|
{
|
|
1220
1231
|
begin: /\[/,
|
|
1221
1232
|
end: /\]/,
|
|
1222
1233
|
relevance: 0,
|
|
1223
|
-
contains: [
|
|
1234
|
+
contains: [be]
|
|
1224
1235
|
}
|
|
1225
1236
|
]
|
|
1226
1237
|
}, ft = {
|
|
@@ -1253,7 +1264,7 @@ const qn = /\b\B/, un = "[a-zA-Z]\\w*", xe = "[a-zA-Z_]\\w*", fn = "\\b\\d+(\\.\
|
|
|
1253
1264
|
var we = /* @__PURE__ */ Object.freeze({
|
|
1254
1265
|
__proto__: null,
|
|
1255
1266
|
APOS_STRING_MODE: nt,
|
|
1256
|
-
BACKSLASH_ESCAPE:
|
|
1267
|
+
BACKSLASH_ESCAPE: be,
|
|
1257
1268
|
BINARY_NUMBER_MODE: ct,
|
|
1258
1269
|
BINARY_NUMBER_RE: hn,
|
|
1259
1270
|
COMMENT: De,
|
|
@@ -1277,22 +1288,21 @@ var we = /* @__PURE__ */ Object.freeze({
|
|
|
1277
1288
|
UNDERSCORE_IDENT_RE: xe,
|
|
1278
1289
|
UNDERSCORE_TITLE_MODE: gt
|
|
1279
1290
|
});
|
|
1280
|
-
function
|
|
1291
|
+
function pt(n, e) {
|
|
1281
1292
|
n.input[n.index - 1] === "." && e.ignoreMatch();
|
|
1282
1293
|
}
|
|
1283
|
-
function
|
|
1294
|
+
function _t(n, e) {
|
|
1284
1295
|
n.className !== void 0 && (n.scope = n.className, delete n.className);
|
|
1285
1296
|
}
|
|
1286
1297
|
function bt(n, e) {
|
|
1287
|
-
e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin =
|
|
1298
|
+
e && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = pt, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
|
|
1288
1299
|
}
|
|
1289
1300
|
function vt(n, e) {
|
|
1290
|
-
Array.isArray(n.illegal) && (n.illegal =
|
|
1301
|
+
Array.isArray(n.illegal) && (n.illegal = Pe(...n.illegal));
|
|
1291
1302
|
}
|
|
1292
1303
|
function mt(n, e) {
|
|
1293
1304
|
if (n.match) {
|
|
1294
|
-
if (n.begin || n.end)
|
|
1295
|
-
throw new Error("begin & end are not supported with match");
|
|
1305
|
+
if (n.begin || n.end) throw new Error("begin & end are not supported with match");
|
|
1296
1306
|
n.begin = n.match, delete n.match;
|
|
1297
1307
|
}
|
|
1298
1308
|
}
|
|
@@ -1300,14 +1310,12 @@ function Et(n, e) {
|
|
|
1300
1310
|
n.relevance === void 0 && (n.relevance = 1);
|
|
1301
1311
|
}
|
|
1302
1312
|
const wt = (n, e) => {
|
|
1303
|
-
if (!n.beforeMatch)
|
|
1304
|
-
|
|
1305
|
-
if (n.starts)
|
|
1306
|
-
throw new Error("beforeMatch cannot be used with starts");
|
|
1313
|
+
if (!n.beforeMatch) return;
|
|
1314
|
+
if (n.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
1307
1315
|
const s = Object.assign({}, n);
|
|
1308
1316
|
Object.keys(n).forEach((u) => {
|
|
1309
1317
|
delete n[u];
|
|
1310
|
-
}), n.keywords = s.keywords, n.begin =
|
|
1318
|
+
}), n.keywords = s.keywords, n.begin = oe(s.beforeMatch, ln(s.begin)), n.starts = {
|
|
1311
1319
|
relevance: 0,
|
|
1312
1320
|
contains: [
|
|
1313
1321
|
Object.assign(s, { endsParent: !0 })
|
|
@@ -1350,14 +1358,14 @@ function Nt(n, e) {
|
|
|
1350
1358
|
function Mt(n) {
|
|
1351
1359
|
return yt.includes(n.toLowerCase());
|
|
1352
1360
|
}
|
|
1353
|
-
const je = {},
|
|
1361
|
+
const je = {}, ae = (n) => {
|
|
1354
1362
|
console.error(n);
|
|
1355
1363
|
}, qe = (n, ...e) => {
|
|
1356
1364
|
console.log(`WARN: ${n}`, ...e);
|
|
1357
1365
|
}, ce = (n, e) => {
|
|
1358
1366
|
je[`${n}/${e}`] || (console.log(`Deprecated as of ${n}. ${e}`), je[`${n}/${e}`] = !0);
|
|
1359
1367
|
}, Me = new Error();
|
|
1360
|
-
function
|
|
1368
|
+
function pn(n, e, { key: s }) {
|
|
1361
1369
|
let u = 0;
|
|
1362
1370
|
const h = n[s], t = {}, r = {};
|
|
1363
1371
|
for (let i = 1; i <= e.length; i++)
|
|
@@ -1367,19 +1375,19 @@ function _n(n, e, { key: s }) {
|
|
|
1367
1375
|
function Tt(n) {
|
|
1368
1376
|
if (Array.isArray(n.begin)) {
|
|
1369
1377
|
if (n.skip || n.excludeBegin || n.returnBegin)
|
|
1370
|
-
throw
|
|
1378
|
+
throw ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), Me;
|
|
1371
1379
|
if (typeof n.beginScope != "object" || n.beginScope === null)
|
|
1372
|
-
throw
|
|
1373
|
-
|
|
1380
|
+
throw ae("beginScope must be object"), Me;
|
|
1381
|
+
pn(n, n.begin, { key: "beginScope" }), n.begin = Ue(n.begin, { joinWith: "" });
|
|
1374
1382
|
}
|
|
1375
1383
|
}
|
|
1376
1384
|
function Dt(n) {
|
|
1377
1385
|
if (Array.isArray(n.end)) {
|
|
1378
1386
|
if (n.skip || n.excludeEnd || n.returnEnd)
|
|
1379
|
-
throw
|
|
1387
|
+
throw ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"), Me;
|
|
1380
1388
|
if (typeof n.endScope != "object" || n.endScope === null)
|
|
1381
|
-
throw
|
|
1382
|
-
|
|
1389
|
+
throw ae("endScope must be object"), Me;
|
|
1390
|
+
pn(n, n.end, { key: "endScope" }), n.end = Ue(n.end, { joinWith: "" });
|
|
1383
1391
|
}
|
|
1384
1392
|
}
|
|
1385
1393
|
function St(n) {
|
|
@@ -1406,7 +1414,7 @@ function Rt(n) {
|
|
|
1406
1414
|
compile() {
|
|
1407
1415
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
1408
1416
|
const i = this.regexes.map((a) => a[1]);
|
|
1409
|
-
this.matcherRe = e(
|
|
1417
|
+
this.matcherRe = e(Ue(i, { joinWith: "|" }), !0), this.lastIndex = 0;
|
|
1410
1418
|
}
|
|
1411
1419
|
/** @param {string} s */
|
|
1412
1420
|
exec(i) {
|
|
@@ -1424,8 +1432,7 @@ function Rt(n) {
|
|
|
1424
1432
|
}
|
|
1425
1433
|
// @ts-ignore
|
|
1426
1434
|
getMatcher(i) {
|
|
1427
|
-
if (this.multiRegexes[i])
|
|
1428
|
-
return this.multiRegexes[i];
|
|
1435
|
+
if (this.multiRegexes[i]) return this.multiRegexes[i];
|
|
1429
1436
|
const a = new s();
|
|
1430
1437
|
return this.rules.slice(i).forEach(([o, l]) => a.addRule(o, l)), a.compile(), this.multiRegexes[i] = a, a;
|
|
1431
1438
|
}
|
|
@@ -1460,10 +1467,9 @@ function Rt(n) {
|
|
|
1460
1467
|
/** @type CompiledMode */
|
|
1461
1468
|
r
|
|
1462
1469
|
);
|
|
1463
|
-
if (r.isCompiled)
|
|
1464
|
-
return a;
|
|
1470
|
+
if (r.isCompiled) return a;
|
|
1465
1471
|
[
|
|
1466
|
-
|
|
1472
|
+
_t,
|
|
1467
1473
|
// do this early so compiler extensions generally don't have to worry about
|
|
1468
1474
|
// the distinction between match/begin
|
|
1469
1475
|
mt,
|
|
@@ -1498,15 +1504,15 @@ function Rt(n) {
|
|
|
1498
1504
|
n
|
|
1499
1505
|
);
|
|
1500
1506
|
}
|
|
1501
|
-
function
|
|
1502
|
-
return n ? n.endsWithParent ||
|
|
1507
|
+
function _n(n) {
|
|
1508
|
+
return n ? n.endsWithParent || _n(n.starts) : !1;
|
|
1503
1509
|
}
|
|
1504
1510
|
function Lt(n) {
|
|
1505
1511
|
return n.variants && !n.cachedVariants && (n.cachedVariants = n.variants.map(function(e) {
|
|
1506
1512
|
return re(n, { variants: null }, e);
|
|
1507
|
-
})), n.cachedVariants ? n.cachedVariants :
|
|
1513
|
+
})), n.cachedVariants ? n.cachedVariants : _n(n) ? re(n, { starts: n.starts ? re(n.starts) : null }) : Object.isFrozen(n) ? re(n) : n;
|
|
1508
1514
|
}
|
|
1509
|
-
var Ot = "11.
|
|
1515
|
+
var Ot = "11.10.0";
|
|
1510
1516
|
class It extends Error {
|
|
1511
1517
|
constructor(e, s) {
|
|
1512
1518
|
super(e), this.name = "HTMLInjectionError", this.html = s;
|
|
@@ -1532,185 +1538,183 @@ const Oe = on, Je = re, en = Symbol("nomatch"), kt = 7, bn = function(n) {
|
|
|
1532
1538
|
return i.noHighlightRe.test(b);
|
|
1533
1539
|
}
|
|
1534
1540
|
function o(b) {
|
|
1535
|
-
let
|
|
1536
|
-
|
|
1537
|
-
const
|
|
1538
|
-
if (
|
|
1539
|
-
const
|
|
1540
|
-
return
|
|
1541
|
+
let A = b.className + " ";
|
|
1542
|
+
A += b.parentNode ? b.parentNode.className : "";
|
|
1543
|
+
const O = i.languageDetectRe.exec(A);
|
|
1544
|
+
if (O) {
|
|
1545
|
+
const P = C(O[1]);
|
|
1546
|
+
return P || (qe(t.replace("{}", O[1])), qe("Falling back to no-highlight mode for this block.", b)), P ? O[1] : "no-highlight";
|
|
1541
1547
|
}
|
|
1542
|
-
return
|
|
1548
|
+
return A.split(/\s+/).find((P) => a(P) || C(P));
|
|
1543
1549
|
}
|
|
1544
|
-
function l(b,
|
|
1545
|
-
let
|
|
1546
|
-
typeof
|
|
1547
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), F = b,
|
|
1550
|
+
function l(b, A, O) {
|
|
1551
|
+
let P = "", F = "";
|
|
1552
|
+
typeof A == "object" ? (P = b, O = A.ignoreIllegals, F = A.language) : (ce("10.7.0", "highlight(lang, code, ...args) has been deprecated."), ce("10.7.0", `Please use highlight(code, options) instead.
|
|
1553
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), F = b, P = A), O === void 0 && (O = !0);
|
|
1548
1554
|
const W = {
|
|
1549
|
-
code:
|
|
1555
|
+
code: P,
|
|
1550
1556
|
language: F
|
|
1551
1557
|
};
|
|
1552
1558
|
te("before:highlight", W);
|
|
1553
|
-
const
|
|
1554
|
-
return
|
|
1559
|
+
const V = W.result ? W.result : c(W.language, W.code, O);
|
|
1560
|
+
return V.code = W.code, te("after:highlight", V), V;
|
|
1555
1561
|
}
|
|
1556
|
-
function c(b,
|
|
1562
|
+
function c(b, A, O, P) {
|
|
1557
1563
|
const F = /* @__PURE__ */ Object.create(null);
|
|
1558
|
-
function W(
|
|
1559
|
-
return
|
|
1564
|
+
function W(y, D) {
|
|
1565
|
+
return y.keywords[D];
|
|
1560
1566
|
}
|
|
1561
|
-
function
|
|
1562
|
-
if (!
|
|
1567
|
+
function V() {
|
|
1568
|
+
if (!I.keywords) {
|
|
1563
1569
|
z.addText(x);
|
|
1564
1570
|
return;
|
|
1565
1571
|
}
|
|
1566
|
-
let
|
|
1567
|
-
|
|
1568
|
-
let
|
|
1569
|
-
for (;
|
|
1570
|
-
k += x.substring(
|
|
1571
|
-
const
|
|
1572
|
+
let y = 0;
|
|
1573
|
+
I.keywordPatternRe.lastIndex = 0;
|
|
1574
|
+
let D = I.keywordPatternRe.exec(x), k = "";
|
|
1575
|
+
for (; D; ) {
|
|
1576
|
+
k += x.substring(y, D.index);
|
|
1577
|
+
const U = j.case_insensitive ? D[0].toLowerCase() : D[0], G = W(I, U);
|
|
1572
1578
|
if (G) {
|
|
1573
|
-
const [q,
|
|
1574
|
-
if (z.addText(k), k = "", F[
|
|
1575
|
-
k +=
|
|
1579
|
+
const [q, Rn] = G;
|
|
1580
|
+
if (z.addText(k), k = "", F[U] = (F[U] || 0) + 1, F[U] <= kt && (Ee += Rn), q.startsWith("_"))
|
|
1581
|
+
k += D[0];
|
|
1576
1582
|
else {
|
|
1577
|
-
const
|
|
1578
|
-
X(
|
|
1583
|
+
const Ln = j.classNameAliases[q] || q;
|
|
1584
|
+
X(D[0], Ln);
|
|
1579
1585
|
}
|
|
1580
1586
|
} else
|
|
1581
|
-
k +=
|
|
1582
|
-
|
|
1587
|
+
k += D[0];
|
|
1588
|
+
y = I.keywordPatternRe.lastIndex, D = I.keywordPatternRe.exec(x);
|
|
1583
1589
|
}
|
|
1584
|
-
k += x.substring(
|
|
1590
|
+
k += x.substring(y), z.addText(k);
|
|
1585
1591
|
}
|
|
1586
1592
|
function ve() {
|
|
1587
|
-
if (x === "")
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
if (!e[O.subLanguage]) {
|
|
1593
|
+
if (x === "") return;
|
|
1594
|
+
let y = null;
|
|
1595
|
+
if (typeof I.subLanguage == "string") {
|
|
1596
|
+
if (!e[I.subLanguage]) {
|
|
1592
1597
|
z.addText(x);
|
|
1593
1598
|
return;
|
|
1594
1599
|
}
|
|
1595
|
-
|
|
1596
|
-
|
|
1600
|
+
y = c(I.subLanguage, x, !0, Ke[I.subLanguage]), Ke[I.subLanguage] = /** @type {CompiledMode} */
|
|
1601
|
+
y._top;
|
|
1597
1602
|
} else
|
|
1598
|
-
|
|
1599
|
-
|
|
1603
|
+
y = g(x, I.subLanguage.length ? I.subLanguage : null);
|
|
1604
|
+
I.relevance > 0 && (Ee += y.relevance), z.__addSublanguage(y._emitter, y.language);
|
|
1600
1605
|
}
|
|
1601
1606
|
function Q() {
|
|
1602
|
-
|
|
1607
|
+
I.subLanguage != null ? ve() : V(), x = "";
|
|
1603
1608
|
}
|
|
1604
|
-
function X(
|
|
1605
|
-
|
|
1609
|
+
function X(y, D) {
|
|
1610
|
+
y !== "" && (z.startScope(D), z.addText(y), z.endScope());
|
|
1606
1611
|
}
|
|
1607
|
-
function Fe(
|
|
1612
|
+
function Fe(y, D) {
|
|
1608
1613
|
let k = 1;
|
|
1609
|
-
const
|
|
1610
|
-
for (; k <=
|
|
1611
|
-
if (!
|
|
1614
|
+
const U = D.length - 1;
|
|
1615
|
+
for (; k <= U; ) {
|
|
1616
|
+
if (!y._emit[k]) {
|
|
1612
1617
|
k++;
|
|
1613
1618
|
continue;
|
|
1614
1619
|
}
|
|
1615
|
-
const G = j.classNameAliases[
|
|
1616
|
-
G ? X(q, G) : (x = q,
|
|
1620
|
+
const G = j.classNameAliases[y[k]] || y[k], q = D[k];
|
|
1621
|
+
G ? X(q, G) : (x = q, V(), x = ""), k++;
|
|
1617
1622
|
}
|
|
1618
1623
|
}
|
|
1619
|
-
function He(
|
|
1620
|
-
return
|
|
1624
|
+
function He(y, D) {
|
|
1625
|
+
return y.scope && typeof y.scope == "string" && z.openNode(j.classNameAliases[y.scope] || y.scope), y.beginScope && (y.beginScope._wrap ? (X(x, j.classNameAliases[y.beginScope._wrap] || y.beginScope._wrap), x = "") : y.beginScope._multi && (Fe(y.beginScope, D), x = "")), I = Object.create(y, { parent: { value: I } }), I;
|
|
1621
1626
|
}
|
|
1622
|
-
function ze(
|
|
1623
|
-
let
|
|
1624
|
-
if (
|
|
1625
|
-
if (
|
|
1626
|
-
const G = new
|
|
1627
|
-
|
|
1627
|
+
function ze(y, D, k) {
|
|
1628
|
+
let U = Xn(y.endRe, k);
|
|
1629
|
+
if (U) {
|
|
1630
|
+
if (y["on:end"]) {
|
|
1631
|
+
const G = new Ye(y);
|
|
1632
|
+
y["on:end"](D, G), G.isMatchIgnored && (U = !1);
|
|
1628
1633
|
}
|
|
1629
|
-
if (
|
|
1630
|
-
for (;
|
|
1631
|
-
|
|
1632
|
-
return
|
|
1634
|
+
if (U) {
|
|
1635
|
+
for (; y.endsParent && y.parent; )
|
|
1636
|
+
y = y.parent;
|
|
1637
|
+
return y;
|
|
1633
1638
|
}
|
|
1634
1639
|
}
|
|
1635
|
-
if (
|
|
1636
|
-
return ze(
|
|
1640
|
+
if (y.endsWithParent)
|
|
1641
|
+
return ze(y.parent, D, k);
|
|
1637
1642
|
}
|
|
1638
|
-
function
|
|
1639
|
-
return
|
|
1643
|
+
function Mn(y) {
|
|
1644
|
+
return I.matcher.regexIndex === 0 ? (x += y[0], 1) : (Re = !0, 0);
|
|
1640
1645
|
}
|
|
1641
|
-
function
|
|
1642
|
-
const
|
|
1646
|
+
function Tn(y) {
|
|
1647
|
+
const D = y[0], k = y.rule, U = new Ye(k), G = [k.__beforeBegin, k["on:begin"]];
|
|
1643
1648
|
for (const q of G)
|
|
1644
|
-
if (q && (q(
|
|
1645
|
-
return
|
|
1646
|
-
return k.skip ? x +=
|
|
1649
|
+
if (q && (q(y, U), U.isMatchIgnored))
|
|
1650
|
+
return Mn(D);
|
|
1651
|
+
return k.skip ? x += D : (k.excludeBegin && (x += D), Q(), !k.returnBegin && !k.excludeBegin && (x = D)), He(k, y), k.returnBegin ? 0 : D.length;
|
|
1647
1652
|
}
|
|
1648
|
-
function
|
|
1649
|
-
const
|
|
1650
|
-
if (!
|
|
1653
|
+
function Dn(y) {
|
|
1654
|
+
const D = y[0], k = A.substring(y.index), U = ze(I, y, k);
|
|
1655
|
+
if (!U)
|
|
1651
1656
|
return en;
|
|
1652
|
-
const G =
|
|
1653
|
-
|
|
1657
|
+
const G = I;
|
|
1658
|
+
I.endScope && I.endScope._wrap ? (Q(), X(D, I.endScope._wrap)) : I.endScope && I.endScope._multi ? (Q(), Fe(I.endScope, y)) : G.skip ? x += D : (G.returnEnd || G.excludeEnd || (x += D), Q(), G.excludeEnd && (x = D));
|
|
1654
1659
|
do
|
|
1655
|
-
|
|
1656
|
-
while (
|
|
1657
|
-
return
|
|
1660
|
+
I.scope && z.closeNode(), !I.skip && !I.subLanguage && (Ee += I.relevance), I = I.parent;
|
|
1661
|
+
while (I !== U.parent);
|
|
1662
|
+
return U.starts && He(U.starts, y), G.returnEnd ? 0 : D.length;
|
|
1658
1663
|
}
|
|
1659
|
-
function
|
|
1660
|
-
const
|
|
1661
|
-
for (let
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
+
function Sn() {
|
|
1665
|
+
const y = [];
|
|
1666
|
+
for (let D = I; D !== j; D = D.parent)
|
|
1667
|
+
D.scope && y.unshift(D.scope);
|
|
1668
|
+
y.forEach((D) => z.openNode(D));
|
|
1664
1669
|
}
|
|
1665
1670
|
let me = {};
|
|
1666
|
-
function Ge(
|
|
1667
|
-
const k =
|
|
1668
|
-
if (x +=
|
|
1671
|
+
function Ge(y, D) {
|
|
1672
|
+
const k = D && D[0];
|
|
1673
|
+
if (x += y, k == null)
|
|
1669
1674
|
return Q(), 0;
|
|
1670
|
-
if (me.type === "begin" &&
|
|
1671
|
-
if (x +=
|
|
1672
|
-
const
|
|
1673
|
-
throw
|
|
1675
|
+
if (me.type === "begin" && D.type === "end" && me.index === D.index && k === "") {
|
|
1676
|
+
if (x += A.slice(D.index, D.index + 1), !h) {
|
|
1677
|
+
const U = new Error(`0 width match regex (${b})`);
|
|
1678
|
+
throw U.languageName = b, U.badRule = me.rule, U;
|
|
1674
1679
|
}
|
|
1675
1680
|
return 1;
|
|
1676
1681
|
}
|
|
1677
|
-
if (me =
|
|
1678
|
-
return
|
|
1679
|
-
if (
|
|
1680
|
-
const
|
|
1681
|
-
throw
|
|
1682
|
-
} else if (
|
|
1683
|
-
const
|
|
1684
|
-
if (
|
|
1685
|
-
return
|
|
1682
|
+
if (me = D, D.type === "begin")
|
|
1683
|
+
return Tn(D);
|
|
1684
|
+
if (D.type === "illegal" && !O) {
|
|
1685
|
+
const U = new Error('Illegal lexeme "' + k + '" for mode "' + (I.scope || "<unnamed>") + '"');
|
|
1686
|
+
throw U.mode = I, U;
|
|
1687
|
+
} else if (D.type === "end") {
|
|
1688
|
+
const U = Dn(D);
|
|
1689
|
+
if (U !== en)
|
|
1690
|
+
return U;
|
|
1686
1691
|
}
|
|
1687
|
-
if (
|
|
1692
|
+
if (D.type === "illegal" && k === "")
|
|
1688
1693
|
return 1;
|
|
1689
|
-
if (Ce > 1e5 && Ce >
|
|
1694
|
+
if (Ce > 1e5 && Ce > D.index * 3)
|
|
1690
1695
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
1691
1696
|
return x += k, k.length;
|
|
1692
1697
|
}
|
|
1693
1698
|
const j = C(b);
|
|
1694
1699
|
if (!j)
|
|
1695
|
-
throw
|
|
1696
|
-
const
|
|
1697
|
-
let Se = "",
|
|
1700
|
+
throw ae(t.replace("{}", b)), new Error('Unknown language: "' + b + '"');
|
|
1701
|
+
const Cn = Rt(j);
|
|
1702
|
+
let Se = "", I = P || Cn;
|
|
1698
1703
|
const Ke = {}, z = new i.__emitter(i);
|
|
1699
|
-
|
|
1700
|
-
let x = "", Ee = 0,
|
|
1704
|
+
Sn();
|
|
1705
|
+
let x = "", Ee = 0, se = 0, Ce = 0, Re = !1;
|
|
1701
1706
|
try {
|
|
1702
1707
|
if (j.__emitTokens)
|
|
1703
|
-
j.__emitTokens(
|
|
1708
|
+
j.__emitTokens(A, z);
|
|
1704
1709
|
else {
|
|
1705
|
-
for (
|
|
1706
|
-
Ce++, Re ? Re = !1 :
|
|
1707
|
-
const
|
|
1708
|
-
if (!
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
ie = w.index + k;
|
|
1710
|
+
for (I.matcher.considerAll(); ; ) {
|
|
1711
|
+
Ce++, Re ? Re = !1 : I.matcher.considerAll(), I.matcher.lastIndex = se;
|
|
1712
|
+
const y = I.matcher.exec(A);
|
|
1713
|
+
if (!y) break;
|
|
1714
|
+
const D = A.substring(se, y.index), k = Ge(D, y);
|
|
1715
|
+
se = y.index + k;
|
|
1712
1716
|
}
|
|
1713
|
-
Ge(
|
|
1717
|
+
Ge(A.substring(se));
|
|
1714
1718
|
}
|
|
1715
1719
|
return z.finalize(), Se = z.toHTML(), {
|
|
1716
1720
|
language: b,
|
|
@@ -1718,20 +1722,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L ===
|
|
|
1718
1722
|
relevance: Ee,
|
|
1719
1723
|
illegal: !1,
|
|
1720
1724
|
_emitter: z,
|
|
1721
|
-
_top:
|
|
1725
|
+
_top: I
|
|
1722
1726
|
};
|
|
1723
|
-
} catch (
|
|
1724
|
-
if (
|
|
1727
|
+
} catch (y) {
|
|
1728
|
+
if (y.message && y.message.includes("Illegal"))
|
|
1725
1729
|
return {
|
|
1726
1730
|
language: b,
|
|
1727
|
-
value: Oe(
|
|
1731
|
+
value: Oe(A),
|
|
1728
1732
|
illegal: !0,
|
|
1729
1733
|
relevance: 0,
|
|
1730
1734
|
_illegalBy: {
|
|
1731
|
-
message:
|
|
1732
|
-
index:
|
|
1733
|
-
context:
|
|
1734
|
-
mode:
|
|
1735
|
+
message: y.message,
|
|
1736
|
+
index: se,
|
|
1737
|
+
context: A.slice(se - 100, se + 100),
|
|
1738
|
+
mode: y.mode,
|
|
1735
1739
|
resultSoFar: Se
|
|
1736
1740
|
},
|
|
1737
1741
|
_emitter: z
|
|
@@ -1739,35 +1743,34 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L ===
|
|
|
1739
1743
|
if (h)
|
|
1740
1744
|
return {
|
|
1741
1745
|
language: b,
|
|
1742
|
-
value: Oe(
|
|
1746
|
+
value: Oe(A),
|
|
1743
1747
|
illegal: !1,
|
|
1744
1748
|
relevance: 0,
|
|
1745
|
-
errorRaised:
|
|
1749
|
+
errorRaised: y,
|
|
1746
1750
|
_emitter: z,
|
|
1747
|
-
_top:
|
|
1751
|
+
_top: I
|
|
1748
1752
|
};
|
|
1749
|
-
throw
|
|
1753
|
+
throw y;
|
|
1750
1754
|
}
|
|
1751
1755
|
}
|
|
1752
1756
|
function f(b) {
|
|
1753
|
-
const
|
|
1757
|
+
const A = {
|
|
1754
1758
|
value: Oe(b),
|
|
1755
1759
|
illegal: !1,
|
|
1756
1760
|
relevance: 0,
|
|
1757
1761
|
_top: r,
|
|
1758
1762
|
_emitter: new i.__emitter(i)
|
|
1759
1763
|
};
|
|
1760
|
-
return
|
|
1764
|
+
return A._emitter.addText(b), A;
|
|
1761
1765
|
}
|
|
1762
|
-
function g(b,
|
|
1763
|
-
|
|
1764
|
-
const
|
|
1766
|
+
function g(b, A) {
|
|
1767
|
+
A = A || i.languages || Object.keys(e);
|
|
1768
|
+
const O = f(b), P = A.filter(C).filter($).map(
|
|
1765
1769
|
(Q) => c(Q, b, !1)
|
|
1766
1770
|
);
|
|
1767
|
-
|
|
1768
|
-
const F =
|
|
1769
|
-
if (Q.relevance !== X.relevance)
|
|
1770
|
-
return X.relevance - Q.relevance;
|
|
1771
|
+
P.unshift(O);
|
|
1772
|
+
const F = P.sort((Q, X) => {
|
|
1773
|
+
if (Q.relevance !== X.relevance) return X.relevance - Q.relevance;
|
|
1771
1774
|
if (Q.language && X.language) {
|
|
1772
1775
|
if (C(Q.language).supersetOf === X.language)
|
|
1773
1776
|
return 1;
|
|
@@ -1775,21 +1778,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L ===
|
|
|
1775
1778
|
return -1;
|
|
1776
1779
|
}
|
|
1777
1780
|
return 0;
|
|
1778
|
-
}), [W,
|
|
1779
|
-
return ve.secondBest =
|
|
1781
|
+
}), [W, V] = F, ve = W;
|
|
1782
|
+
return ve.secondBest = V, ve;
|
|
1780
1783
|
}
|
|
1781
|
-
function d(b,
|
|
1782
|
-
const
|
|
1783
|
-
b.classList.add("hljs"), b.classList.add(`language-${
|
|
1784
|
+
function d(b, A, O) {
|
|
1785
|
+
const P = A && s[A] || O;
|
|
1786
|
+
b.classList.add("hljs"), b.classList.add(`language-${P}`);
|
|
1784
1787
|
}
|
|
1785
|
-
function
|
|
1786
|
-
let
|
|
1787
|
-
const
|
|
1788
|
-
if (a(
|
|
1789
|
-
return;
|
|
1788
|
+
function p(b) {
|
|
1789
|
+
let A = null;
|
|
1790
|
+
const O = o(b);
|
|
1791
|
+
if (a(O)) return;
|
|
1790
1792
|
if (te(
|
|
1791
1793
|
"before:highlightElement",
|
|
1792
|
-
{ el: b, language:
|
|
1794
|
+
{ el: b, language: O }
|
|
1793
1795
|
), b.dataset.highlighted) {
|
|
1794
1796
|
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", b);
|
|
1795
1797
|
return;
|
|
@@ -1799,9 +1801,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L ===
|
|
|
1799
1801
|
"One of your code blocks includes unescaped HTML.",
|
|
1800
1802
|
b.innerHTML
|
|
1801
1803
|
);
|
|
1802
|
-
|
|
1803
|
-
const
|
|
1804
|
-
b.innerHTML = F.value, b.dataset.highlighted = "yes", d(b,
|
|
1804
|
+
A = b;
|
|
1805
|
+
const P = A.textContent, F = O ? l(P, { language: O, ignoreIllegals: !0 }) : g(P);
|
|
1806
|
+
b.innerHTML = F.value, b.dataset.highlighted = "yes", d(b, O, F.language), b.result = {
|
|
1805
1807
|
language: F.language,
|
|
1806
1808
|
// TODO: remove with version 11.0
|
|
1807
1809
|
re: F.relevance,
|
|
@@ -1809,46 +1811,46 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L ===
|
|
|
1809
1811
|
}, F.secondBest && (b.secondBest = {
|
|
1810
1812
|
language: F.secondBest.language,
|
|
1811
1813
|
relevance: F.secondBest.relevance
|
|
1812
|
-
}), te("after:highlightElement", { el: b, result: F, text:
|
|
1814
|
+
}), te("after:highlightElement", { el: b, result: F, text: P });
|
|
1813
1815
|
}
|
|
1814
|
-
function
|
|
1816
|
+
function _(b) {
|
|
1815
1817
|
i = Je(i, b);
|
|
1816
1818
|
}
|
|
1817
1819
|
const v = () => {
|
|
1818
|
-
|
|
1820
|
+
w(), ce("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
1819
1821
|
};
|
|
1820
1822
|
function m() {
|
|
1821
|
-
|
|
1823
|
+
w(), ce("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
1822
1824
|
}
|
|
1823
1825
|
let E = !1;
|
|
1824
|
-
function
|
|
1826
|
+
function w() {
|
|
1825
1827
|
if (document.readyState === "loading") {
|
|
1826
1828
|
E = !0;
|
|
1827
1829
|
return;
|
|
1828
1830
|
}
|
|
1829
|
-
document.querySelectorAll(i.cssSelector).forEach(
|
|
1831
|
+
document.querySelectorAll(i.cssSelector).forEach(p);
|
|
1830
1832
|
}
|
|
1831
|
-
function
|
|
1832
|
-
E &&
|
|
1833
|
+
function T() {
|
|
1834
|
+
E && w();
|
|
1833
1835
|
}
|
|
1834
|
-
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
|
1835
|
-
function
|
|
1836
|
-
let
|
|
1836
|
+
typeof window != "undefined" && window.addEventListener && window.addEventListener("DOMContentLoaded", T, !1);
|
|
1837
|
+
function M(b, A) {
|
|
1838
|
+
let O = null;
|
|
1837
1839
|
try {
|
|
1838
|
-
|
|
1839
|
-
} catch (
|
|
1840
|
-
if (
|
|
1841
|
-
|
|
1840
|
+
O = A(n);
|
|
1841
|
+
} catch (P) {
|
|
1842
|
+
if (ae("Language definition for '{}' could not be registered.".replace("{}", b)), h)
|
|
1843
|
+
ae(P);
|
|
1842
1844
|
else
|
|
1843
|
-
throw
|
|
1844
|
-
|
|
1845
|
+
throw P;
|
|
1846
|
+
O = r;
|
|
1845
1847
|
}
|
|
1846
|
-
|
|
1848
|
+
O.name || (O.name = b), e[b] = O, O.rawDefinition = A.bind(null, n), O.aliases && L(O.aliases, { languageName: b });
|
|
1847
1849
|
}
|
|
1848
1850
|
function N(b) {
|
|
1849
1851
|
delete e[b];
|
|
1850
|
-
for (const
|
|
1851
|
-
s[
|
|
1852
|
+
for (const A of Object.keys(s))
|
|
1853
|
+
s[A] === b && delete s[A];
|
|
1852
1854
|
}
|
|
1853
1855
|
function R() {
|
|
1854
1856
|
return Object.keys(e);
|
|
@@ -1856,23 +1858,23 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L ===
|
|
|
1856
1858
|
function C(b) {
|
|
1857
1859
|
return b = (b || "").toLowerCase(), e[b] || e[s[b]];
|
|
1858
1860
|
}
|
|
1859
|
-
function
|
|
1860
|
-
typeof b == "string" && (b = [b]), b.forEach((
|
|
1861
|
-
s[
|
|
1861
|
+
function L(b, { languageName: A }) {
|
|
1862
|
+
typeof b == "string" && (b = [b]), b.forEach((O) => {
|
|
1863
|
+
s[O.toLowerCase()] = A;
|
|
1862
1864
|
});
|
|
1863
1865
|
}
|
|
1864
1866
|
function $(b) {
|
|
1865
|
-
const
|
|
1866
|
-
return
|
|
1867
|
+
const A = C(b);
|
|
1868
|
+
return A && !A.disableAutodetect;
|
|
1867
1869
|
}
|
|
1868
1870
|
function B(b) {
|
|
1869
|
-
b["before:highlightBlock"] && !b["before:highlightElement"] && (b["before:highlightElement"] = (
|
|
1871
|
+
b["before:highlightBlock"] && !b["before:highlightElement"] && (b["before:highlightElement"] = (A) => {
|
|
1870
1872
|
b["before:highlightBlock"](
|
|
1871
|
-
Object.assign({ block:
|
|
1873
|
+
Object.assign({ block: A.el }, A)
|
|
1872
1874
|
);
|
|
1873
|
-
}), b["after:highlightBlock"] && !b["after:highlightElement"] && (b["after:highlightElement"] = (
|
|
1875
|
+
}), b["after:highlightBlock"] && !b["after:highlightElement"] && (b["after:highlightElement"] = (A) => {
|
|
1874
1876
|
b["after:highlightBlock"](
|
|
1875
|
-
Object.assign({ block:
|
|
1877
|
+
Object.assign({ block: A.el }, A)
|
|
1876
1878
|
);
|
|
1877
1879
|
});
|
|
1878
1880
|
}
|
|
@@ -1880,33 +1882,33 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L ===
|
|
|
1880
1882
|
B(b), u.push(b);
|
|
1881
1883
|
}
|
|
1882
1884
|
function K(b) {
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1885
|
+
const A = u.indexOf(b);
|
|
1886
|
+
A !== -1 && u.splice(A, 1);
|
|
1885
1887
|
}
|
|
1886
|
-
function te(b,
|
|
1887
|
-
const
|
|
1888
|
-
u.forEach(function(
|
|
1889
|
-
|
|
1888
|
+
function te(b, A) {
|
|
1889
|
+
const O = b;
|
|
1890
|
+
u.forEach(function(P) {
|
|
1891
|
+
P[O] && P[O](A);
|
|
1890
1892
|
});
|
|
1891
1893
|
}
|
|
1892
1894
|
function le(b) {
|
|
1893
|
-
return ce("10.7.0", "highlightBlock will be removed entirely in v12.0"), ce("10.7.0", "Please use highlightElement now."),
|
|
1895
|
+
return ce("10.7.0", "highlightBlock will be removed entirely in v12.0"), ce("10.7.0", "Please use highlightElement now."), p(b);
|
|
1894
1896
|
}
|
|
1895
1897
|
Object.assign(n, {
|
|
1896
1898
|
highlight: l,
|
|
1897
1899
|
highlightAuto: g,
|
|
1898
|
-
highlightAll:
|
|
1899
|
-
highlightElement:
|
|
1900
|
+
highlightAll: w,
|
|
1901
|
+
highlightElement: p,
|
|
1900
1902
|
// TODO: Remove with v12 API
|
|
1901
1903
|
highlightBlock: le,
|
|
1902
|
-
configure:
|
|
1904
|
+
configure: _,
|
|
1903
1905
|
initHighlighting: v,
|
|
1904
1906
|
initHighlightingOnLoad: m,
|
|
1905
|
-
registerLanguage:
|
|
1907
|
+
registerLanguage: M,
|
|
1906
1908
|
unregisterLanguage: N,
|
|
1907
1909
|
listLanguages: R,
|
|
1908
1910
|
getLanguage: C,
|
|
1909
|
-
registerAliases:
|
|
1911
|
+
registerAliases: L,
|
|
1910
1912
|
autoDetection: $,
|
|
1911
1913
|
inherit: Je,
|
|
1912
1914
|
addPlugin: H,
|
|
@@ -1916,11 +1918,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), F = b, U = y), L ===
|
|
|
1916
1918
|
}, n.safeMode = function() {
|
|
1917
1919
|
h = !0;
|
|
1918
1920
|
}, n.versionString = Ot, n.regex = {
|
|
1919
|
-
concat:
|
|
1921
|
+
concat: oe,
|
|
1920
1922
|
lookahead: ln,
|
|
1921
|
-
either:
|
|
1922
|
-
optional:
|
|
1923
|
-
anyNumberOfTimes:
|
|
1923
|
+
either: Pe,
|
|
1924
|
+
optional: Yn,
|
|
1925
|
+
anyNumberOfTimes: Zn
|
|
1924
1926
|
};
|
|
1925
1927
|
for (const b in we)
|
|
1926
1928
|
typeof we[b] == "object" && an(we[b]);
|
|
@@ -1930,7 +1932,7 @@ fe.newInstance = () => bn({});
|
|
|
1930
1932
|
var Bt = fe;
|
|
1931
1933
|
fe.HighlightJS = fe;
|
|
1932
1934
|
fe.default = fe;
|
|
1933
|
-
const
|
|
1935
|
+
const Y = /* @__PURE__ */ zn(Bt);
|
|
1934
1936
|
function $t(n) {
|
|
1935
1937
|
const e = n.regex, s = e.concat(/[\p{L}_]/u, e.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), u = /[\p{L}0-9._:-]+/u, h = {
|
|
1936
1938
|
className: "symbol",
|
|
@@ -2147,7 +2149,7 @@ function $t(n) {
|
|
|
2147
2149
|
]
|
|
2148
2150
|
};
|
|
2149
2151
|
}
|
|
2150
|
-
const nn = "[A-Za-z$_][0-9A-Za-z$_]*",
|
|
2152
|
+
const nn = "[A-Za-z$_][0-9A-Za-z$_]*", Pt = [
|
|
2151
2153
|
"as",
|
|
2152
2154
|
// for exports
|
|
2153
2155
|
"in",
|
|
@@ -2190,7 +2192,7 @@ const nn = "[A-Za-z$_][0-9A-Za-z$_]*", Ut = [
|
|
|
2190
2192
|
"from",
|
|
2191
2193
|
"export",
|
|
2192
2194
|
"extends"
|
|
2193
|
-
],
|
|
2195
|
+
], Ut = [
|
|
2194
2196
|
"true",
|
|
2195
2197
|
"false",
|
|
2196
2198
|
"null",
|
|
@@ -2292,9 +2294,9 @@ const nn = "[A-Za-z$_][0-9A-Za-z$_]*", Ut = [
|
|
|
2292
2294
|
mn
|
|
2293
2295
|
);
|
|
2294
2296
|
function Ht(n) {
|
|
2295
|
-
const e = n.regex, s = (
|
|
2296
|
-
const
|
|
2297
|
-
return
|
|
2297
|
+
const e = n.regex, s = (A, { after: O }) => {
|
|
2298
|
+
const P = "</" + A[0].slice(1);
|
|
2299
|
+
return A.input.indexOf(P, O) !== -1;
|
|
2298
2300
|
}, u = nn, h = {
|
|
2299
2301
|
begin: "<>",
|
|
2300
2302
|
end: "</>"
|
|
@@ -2305,8 +2307,8 @@ function Ht(n) {
|
|
|
2305
2307
|
* @param {RegExpMatchArray} match
|
|
2306
2308
|
* @param {CallbackResponse} response
|
|
2307
2309
|
*/
|
|
2308
|
-
isTrulyOpeningTag: (
|
|
2309
|
-
const
|
|
2310
|
+
isTrulyOpeningTag: (A, O) => {
|
|
2311
|
+
const P = A[0].length + A.index, F = A.input[P];
|
|
2310
2312
|
if (
|
|
2311
2313
|
// HTML should not include another raw `<` inside a tag
|
|
2312
2314
|
// nested type?
|
|
@@ -2315,25 +2317,25 @@ function Ht(n) {
|
|
|
2315
2317
|
// `<T, A extends keyof T, V>`
|
|
2316
2318
|
F === ","
|
|
2317
2319
|
) {
|
|
2318
|
-
|
|
2320
|
+
O.ignoreMatch();
|
|
2319
2321
|
return;
|
|
2320
2322
|
}
|
|
2321
|
-
F === ">" && (s(
|
|
2323
|
+
F === ">" && (s(A, { after: P }) || O.ignoreMatch());
|
|
2322
2324
|
let W;
|
|
2323
|
-
const
|
|
2324
|
-
if (W =
|
|
2325
|
-
|
|
2325
|
+
const V = A.input.substring(P);
|
|
2326
|
+
if (W = V.match(/^\s*=/)) {
|
|
2327
|
+
O.ignoreMatch();
|
|
2326
2328
|
return;
|
|
2327
2329
|
}
|
|
2328
|
-
if ((W =
|
|
2329
|
-
|
|
2330
|
+
if ((W = V.match(/^\s+extends\s+/)) && W.index === 0) {
|
|
2331
|
+
O.ignoreMatch();
|
|
2330
2332
|
return;
|
|
2331
2333
|
}
|
|
2332
2334
|
}
|
|
2333
2335
|
}, i = {
|
|
2334
2336
|
$pattern: nn,
|
|
2335
|
-
keyword:
|
|
2336
|
-
literal:
|
|
2337
|
+
keyword: Pt,
|
|
2338
|
+
literal: Ut,
|
|
2337
2339
|
built_in: Ft,
|
|
2338
2340
|
"variable.language": xt
|
|
2339
2341
|
}, a = "[0-9](_?[0-9])*", o = `\\.(${a})`, l = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", c = {
|
|
@@ -2361,7 +2363,7 @@ function Ht(n) {
|
|
|
2361
2363
|
contains: []
|
|
2362
2364
|
// defined later
|
|
2363
2365
|
}, g = {
|
|
2364
|
-
begin: "html`",
|
|
2366
|
+
begin: ".?html`",
|
|
2365
2367
|
end: "",
|
|
2366
2368
|
starts: {
|
|
2367
2369
|
end: "`",
|
|
@@ -2373,7 +2375,7 @@ function Ht(n) {
|
|
|
2373
2375
|
subLanguage: "xml"
|
|
2374
2376
|
}
|
|
2375
2377
|
}, d = {
|
|
2376
|
-
begin: "css`",
|
|
2378
|
+
begin: ".?css`",
|
|
2377
2379
|
end: "",
|
|
2378
2380
|
starts: {
|
|
2379
2381
|
end: "`",
|
|
@@ -2384,8 +2386,8 @@ function Ht(n) {
|
|
|
2384
2386
|
],
|
|
2385
2387
|
subLanguage: "css"
|
|
2386
2388
|
}
|
|
2387
|
-
},
|
|
2388
|
-
begin: "gql`",
|
|
2389
|
+
}, p = {
|
|
2390
|
+
begin: ".?gql`",
|
|
2389
2391
|
end: "",
|
|
2390
2392
|
starts: {
|
|
2391
2393
|
end: "`",
|
|
@@ -2396,7 +2398,7 @@ function Ht(n) {
|
|
|
2396
2398
|
],
|
|
2397
2399
|
subLanguage: "graphql"
|
|
2398
2400
|
}
|
|
2399
|
-
},
|
|
2401
|
+
}, _ = {
|
|
2400
2402
|
className: "string",
|
|
2401
2403
|
begin: "`",
|
|
2402
2404
|
end: "`",
|
|
@@ -2454,8 +2456,8 @@ function Ht(n) {
|
|
|
2454
2456
|
n.QUOTE_STRING_MODE,
|
|
2455
2457
|
g,
|
|
2456
2458
|
d,
|
|
2457
|
-
_,
|
|
2458
2459
|
p,
|
|
2460
|
+
_,
|
|
2459
2461
|
// Skip numbers when they are part of a variable name
|
|
2460
2462
|
{ match: /\$\d+/ },
|
|
2461
2463
|
c
|
|
@@ -2473,22 +2475,24 @@ function Ht(n) {
|
|
|
2473
2475
|
"self"
|
|
2474
2476
|
].concat(E)
|
|
2475
2477
|
});
|
|
2476
|
-
const
|
|
2478
|
+
const w = [].concat(m, f.contains), T = w.concat([
|
|
2477
2479
|
// eat recursive parens in sub expressions
|
|
2478
2480
|
{
|
|
2479
|
-
begin:
|
|
2481
|
+
begin: /(\s*)\(/,
|
|
2480
2482
|
end: /\)/,
|
|
2481
2483
|
keywords: i,
|
|
2482
|
-
contains: ["self"].concat(
|
|
2484
|
+
contains: ["self"].concat(w)
|
|
2483
2485
|
}
|
|
2484
|
-
]),
|
|
2486
|
+
]), M = {
|
|
2485
2487
|
className: "params",
|
|
2486
|
-
|
|
2488
|
+
// convert this to negative lookbehind in v12
|
|
2489
|
+
begin: /(\s*)\(/,
|
|
2490
|
+
// to match the parms with
|
|
2487
2491
|
end: /\)/,
|
|
2488
2492
|
excludeBegin: !0,
|
|
2489
2493
|
excludeEnd: !0,
|
|
2490
2494
|
keywords: i,
|
|
2491
|
-
contains:
|
|
2495
|
+
contains: T
|
|
2492
2496
|
}, N = {
|
|
2493
2497
|
variants: [
|
|
2494
2498
|
// class Car extends vehicle
|
|
@@ -2551,7 +2555,7 @@ function Ht(n) {
|
|
|
2551
2555
|
className: "meta",
|
|
2552
2556
|
relevance: 10,
|
|
2553
2557
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
2554
|
-
},
|
|
2558
|
+
}, L = {
|
|
2555
2559
|
variants: [
|
|
2556
2560
|
{
|
|
2557
2561
|
match: [
|
|
@@ -2574,15 +2578,15 @@ function Ht(n) {
|
|
|
2574
2578
|
3: "title.function"
|
|
2575
2579
|
},
|
|
2576
2580
|
label: "func.def",
|
|
2577
|
-
contains: [
|
|
2581
|
+
contains: [M],
|
|
2578
2582
|
illegal: /%/
|
|
2579
2583
|
}, $ = {
|
|
2580
2584
|
relevance: 0,
|
|
2581
2585
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
2582
2586
|
className: "variable.constant"
|
|
2583
2587
|
};
|
|
2584
|
-
function B(
|
|
2585
|
-
return e.concat("(?!",
|
|
2588
|
+
function B(A) {
|
|
2589
|
+
return e.concat("(?!", A.join("|"), ")");
|
|
2586
2590
|
}
|
|
2587
2591
|
const H = {
|
|
2588
2592
|
match: e.concat(
|
|
@@ -2591,9 +2595,9 @@ function Ht(n) {
|
|
|
2591
2595
|
...En,
|
|
2592
2596
|
"super",
|
|
2593
2597
|
"import"
|
|
2594
|
-
]),
|
|
2598
|
+
].map((A) => `${A}\\s*\\(`)),
|
|
2595
2599
|
u,
|
|
2596
|
-
e.lookahead(/\(/)
|
|
2600
|
+
e.lookahead(/\s*\(/)
|
|
2597
2601
|
),
|
|
2598
2602
|
className: "title.function",
|
|
2599
2603
|
relevance: 0
|
|
@@ -2622,7 +2626,7 @@ function Ht(n) {
|
|
|
2622
2626
|
// eat to avoid empty params
|
|
2623
2627
|
begin: /\(\)/
|
|
2624
2628
|
},
|
|
2625
|
-
|
|
2629
|
+
M
|
|
2626
2630
|
]
|
|
2627
2631
|
}, le = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + n.UNDERSCORE_IDENT_RE + ")\\s*=>", b = {
|
|
2628
2632
|
match: [
|
|
@@ -2641,7 +2645,7 @@ function Ht(n) {
|
|
|
2641
2645
|
3: "title.function"
|
|
2642
2646
|
},
|
|
2643
2647
|
contains: [
|
|
2644
|
-
|
|
2648
|
+
M
|
|
2645
2649
|
]
|
|
2646
2650
|
};
|
|
2647
2651
|
return {
|
|
@@ -2649,7 +2653,7 @@ function Ht(n) {
|
|
|
2649
2653
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
2650
2654
|
keywords: i,
|
|
2651
2655
|
// this will be extended by TypeScript
|
|
2652
|
-
exports: { PARAMS_CONTAINS:
|
|
2656
|
+
exports: { PARAMS_CONTAINS: T, CLASS_REFERENCE: R },
|
|
2653
2657
|
illegal: /#(?![$_A-z])/,
|
|
2654
2658
|
contains: [
|
|
2655
2659
|
n.SHEBANG({
|
|
@@ -2662,8 +2666,8 @@ function Ht(n) {
|
|
|
2662
2666
|
n.QUOTE_STRING_MODE,
|
|
2663
2667
|
g,
|
|
2664
2668
|
d,
|
|
2665
|
-
_,
|
|
2666
2669
|
p,
|
|
2670
|
+
_,
|
|
2667
2671
|
m,
|
|
2668
2672
|
// Skip numbers when they are part of a variable name
|
|
2669
2673
|
{ match: /\$\d+/ },
|
|
@@ -2705,12 +2709,12 @@ function Ht(n) {
|
|
|
2705
2709
|
skip: !0
|
|
2706
2710
|
},
|
|
2707
2711
|
{
|
|
2708
|
-
begin:
|
|
2712
|
+
begin: /(\s*)\(/,
|
|
2709
2713
|
end: /\)/,
|
|
2710
2714
|
excludeBegin: !0,
|
|
2711
2715
|
excludeEnd: !0,
|
|
2712
2716
|
keywords: i,
|
|
2713
|
-
contains:
|
|
2717
|
+
contains: T
|
|
2714
2718
|
}
|
|
2715
2719
|
]
|
|
2716
2720
|
}
|
|
@@ -2750,7 +2754,7 @@ function Ht(n) {
|
|
|
2750
2754
|
}
|
|
2751
2755
|
]
|
|
2752
2756
|
},
|
|
2753
|
-
|
|
2757
|
+
L,
|
|
2754
2758
|
{
|
|
2755
2759
|
// prevent this from getting swallowed up by function
|
|
2756
2760
|
// since they appear "function like"
|
|
@@ -2765,7 +2769,7 @@ function Ht(n) {
|
|
|
2765
2769
|
returnBegin: !0,
|
|
2766
2770
|
label: "func.def",
|
|
2767
2771
|
contains: [
|
|
2768
|
-
|
|
2772
|
+
M,
|
|
2769
2773
|
n.inherit(n.TITLE_MODE, { begin: u, className: "title.function" })
|
|
2770
2774
|
]
|
|
2771
2775
|
},
|
|
@@ -2785,7 +2789,7 @@ function Ht(n) {
|
|
|
2785
2789
|
{
|
|
2786
2790
|
match: [/\bconstructor(?=\s*\()/],
|
|
2787
2791
|
className: { 1: "title.function" },
|
|
2788
|
-
contains: [
|
|
2792
|
+
contains: [M]
|
|
2789
2793
|
},
|
|
2790
2794
|
H,
|
|
2791
2795
|
$,
|
|
@@ -2817,6 +2821,7 @@ function zt(n) {
|
|
|
2817
2821
|
};
|
|
2818
2822
|
return {
|
|
2819
2823
|
name: "JSON",
|
|
2824
|
+
aliases: ["jsonc"],
|
|
2820
2825
|
keywords: {
|
|
2821
2826
|
literal: u
|
|
2822
2827
|
},
|
|
@@ -2836,14 +2841,15 @@ function Gt(n) {
|
|
|
2836
2841
|
const e = "true false yes no null", s = "[\\w#;/?:@&=+$,.~*'()[\\]]+", u = {
|
|
2837
2842
|
className: "attr",
|
|
2838
2843
|
variants: [
|
|
2839
|
-
|
|
2844
|
+
// added brackets support
|
|
2845
|
+
{ begin: /\w[\w :()\./-]*:(?=[ \t]|$)/ },
|
|
2840
2846
|
{
|
|
2841
|
-
// double quoted keys
|
|
2842
|
-
begin:
|
|
2847
|
+
// double quoted keys - with brackets
|
|
2848
|
+
begin: /"\w[\w :()\./-]*":(?=[ \t]|$)/
|
|
2843
2849
|
},
|
|
2844
2850
|
{
|
|
2845
|
-
// single quoted keys
|
|
2846
|
-
begin:
|
|
2851
|
+
// single quoted keys - with brackets
|
|
2852
|
+
begin: /'\w[\w :()\./-]*':(?=[ \t]|$)/
|
|
2847
2853
|
}
|
|
2848
2854
|
]
|
|
2849
2855
|
}, h = {
|
|
@@ -2888,9 +2894,9 @@ function Gt(n) {
|
|
|
2888
2894
|
end: /"/
|
|
2889
2895
|
},
|
|
2890
2896
|
{ begin: /[^\s,{}[\]]+/ }
|
|
2891
|
-
] }),
|
|
2897
|
+
] }), c = {
|
|
2892
2898
|
className: "number",
|
|
2893
|
-
begin: "\\b" +
|
|
2899
|
+
begin: "\\b" + "[0-9]{4}(-[0-9][0-9]){0,2}" + "([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?" + "(\\.[0-9]*)?" + "([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?" + "\\b"
|
|
2894
2900
|
}, f = {
|
|
2895
2901
|
end: ",",
|
|
2896
2902
|
endsWithParent: !0,
|
|
@@ -2909,7 +2915,7 @@ function Gt(n) {
|
|
|
2909
2915
|
contains: [f],
|
|
2910
2916
|
illegal: "\\n",
|
|
2911
2917
|
relevance: 0
|
|
2912
|
-
},
|
|
2918
|
+
}, p = [
|
|
2913
2919
|
u,
|
|
2914
2920
|
{
|
|
2915
2921
|
className: "meta",
|
|
@@ -2988,12 +2994,12 @@ function Gt(n) {
|
|
|
2988
2994
|
g,
|
|
2989
2995
|
d,
|
|
2990
2996
|
t
|
|
2991
|
-
],
|
|
2992
|
-
return
|
|
2997
|
+
], _ = [...p];
|
|
2998
|
+
return _.pop(), _.push(r), f.contains = _, {
|
|
2993
2999
|
name: "YAML",
|
|
2994
3000
|
case_insensitive: !0,
|
|
2995
3001
|
aliases: ["yml"],
|
|
2996
|
-
contains:
|
|
3002
|
+
contains: p
|
|
2997
3003
|
};
|
|
2998
3004
|
}
|
|
2999
3005
|
function Kt(n) {
|
|
@@ -3232,7 +3238,7 @@ function Wt(n) {
|
|
|
3232
3238
|
n.APOS_STRING_MODE,
|
|
3233
3239
|
n.QUOTE_STRING_MODE
|
|
3234
3240
|
]
|
|
3235
|
-
}, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`,
|
|
3241
|
+
}, f = "[0-9](_?[0-9])*", g = `(\\b(${f}))?\\.(${f})|\\b(${f})\\.`, d = `\\b|${u.join("|")}`, p = {
|
|
3236
3242
|
className: "number",
|
|
3237
3243
|
relevance: 0,
|
|
3238
3244
|
variants: [
|
|
@@ -3276,7 +3282,7 @@ function Wt(n) {
|
|
|
3276
3282
|
begin: `\\b(${f})[jJ](?=${d})`
|
|
3277
3283
|
}
|
|
3278
3284
|
]
|
|
3279
|
-
},
|
|
3285
|
+
}, _ = {
|
|
3280
3286
|
className: "comment",
|
|
3281
3287
|
begin: e.lookahead(/# type:/),
|
|
3282
3288
|
end: /$/,
|
|
@@ -3311,7 +3317,7 @@ function Wt(n) {
|
|
|
3311
3317
|
contains: [
|
|
3312
3318
|
"self",
|
|
3313
3319
|
a,
|
|
3314
|
-
|
|
3320
|
+
p,
|
|
3315
3321
|
c,
|
|
3316
3322
|
n.HASH_COMMENT_MODE
|
|
3317
3323
|
]
|
|
@@ -3320,7 +3326,7 @@ function Wt(n) {
|
|
|
3320
3326
|
};
|
|
3321
3327
|
return o.contains = [
|
|
3322
3328
|
c,
|
|
3323
|
-
|
|
3329
|
+
p,
|
|
3324
3330
|
a
|
|
3325
3331
|
], {
|
|
3326
3332
|
name: "Python",
|
|
@@ -3334,10 +3340,11 @@ function Wt(n) {
|
|
|
3334
3340
|
illegal: /(<\/|\?)|=>/,
|
|
3335
3341
|
contains: [
|
|
3336
3342
|
a,
|
|
3337
|
-
|
|
3343
|
+
p,
|
|
3338
3344
|
{
|
|
3339
3345
|
// very common convention
|
|
3340
|
-
|
|
3346
|
+
scope: "variable.language",
|
|
3347
|
+
match: /\bself\b/
|
|
3341
3348
|
},
|
|
3342
3349
|
{
|
|
3343
3350
|
// eat "if" prior to string so that it won't accidentally be
|
|
@@ -3345,8 +3352,9 @@ function Wt(n) {
|
|
|
3345
3352
|
beginKeywords: "if",
|
|
3346
3353
|
relevance: 0
|
|
3347
3354
|
},
|
|
3355
|
+
{ match: /\bor\b/, scope: "keyword" },
|
|
3348
3356
|
c,
|
|
3349
|
-
|
|
3357
|
+
_,
|
|
3350
3358
|
n.HASH_COMMENT_MODE,
|
|
3351
3359
|
{
|
|
3352
3360
|
match: [
|
|
@@ -3392,7 +3400,7 @@ function Wt(n) {
|
|
|
3392
3400
|
begin: /^[\t ]*@/,
|
|
3393
3401
|
end: /(?=#)|$/,
|
|
3394
3402
|
contains: [
|
|
3395
|
-
|
|
3403
|
+
p,
|
|
3396
3404
|
v,
|
|
3397
3405
|
c
|
|
3398
3406
|
]
|
|
@@ -3470,7 +3478,8 @@ function Qt(n) {
|
|
|
3470
3478
|
"do",
|
|
3471
3479
|
"sealed",
|
|
3472
3480
|
"yield",
|
|
3473
|
-
"permits"
|
|
3481
|
+
"permits",
|
|
3482
|
+
"goto"
|
|
3474
3483
|
],
|
|
3475
3484
|
literal: [
|
|
3476
3485
|
"false",
|
|
@@ -3635,7 +3644,7 @@ function Qt(n) {
|
|
|
3635
3644
|
]
|
|
3636
3645
|
};
|
|
3637
3646
|
}
|
|
3638
|
-
function
|
|
3647
|
+
function Zt(n) {
|
|
3639
3648
|
const e = n.regex, s = {}, u = {
|
|
3640
3649
|
begin: /\$\{/,
|
|
3641
3650
|
end: /\}/,
|
|
@@ -3665,7 +3674,18 @@ function Vt(n) {
|
|
|
3665
3674
|
begin: /\$\(/,
|
|
3666
3675
|
end: /\)/,
|
|
3667
3676
|
contains: [n.BACKSLASH_ESCAPE]
|
|
3668
|
-
}, t =
|
|
3677
|
+
}, t = n.inherit(
|
|
3678
|
+
n.COMMENT(),
|
|
3679
|
+
{
|
|
3680
|
+
match: [
|
|
3681
|
+
/(^|\s)/,
|
|
3682
|
+
/#.*$/
|
|
3683
|
+
],
|
|
3684
|
+
scope: {
|
|
3685
|
+
2: "comment"
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
), r = {
|
|
3669
3689
|
begin: /<<-?\s*(?=\w+)/,
|
|
3670
3690
|
starts: { contains: [
|
|
3671
3691
|
n.END_SAME_AS_BEGIN({
|
|
@@ -3674,7 +3694,7 @@ function Vt(n) {
|
|
|
3674
3694
|
className: "string"
|
|
3675
3695
|
})
|
|
3676
3696
|
] }
|
|
3677
|
-
},
|
|
3697
|
+
}, i = {
|
|
3678
3698
|
className: "string",
|
|
3679
3699
|
begin: /"/,
|
|
3680
3700
|
end: /"/,
|
|
@@ -3684,16 +3704,16 @@ function Vt(n) {
|
|
|
3684
3704
|
h
|
|
3685
3705
|
]
|
|
3686
3706
|
};
|
|
3687
|
-
h.contains.push(
|
|
3688
|
-
const
|
|
3707
|
+
h.contains.push(i);
|
|
3708
|
+
const a = {
|
|
3689
3709
|
match: /\\"/
|
|
3690
|
-
},
|
|
3710
|
+
}, o = {
|
|
3691
3711
|
className: "string",
|
|
3692
3712
|
begin: /'/,
|
|
3693
3713
|
end: /'/
|
|
3694
|
-
}, o = {
|
|
3695
|
-
match: /\\'/
|
|
3696
3714
|
}, l = {
|
|
3715
|
+
match: /\\'/
|
|
3716
|
+
}, c = {
|
|
3697
3717
|
begin: /\$?\(\(/,
|
|
3698
3718
|
end: /\)\)/,
|
|
3699
3719
|
contains: [
|
|
@@ -3704,7 +3724,7 @@ function Vt(n) {
|
|
|
3704
3724
|
n.NUMBER_MODE,
|
|
3705
3725
|
s
|
|
3706
3726
|
]
|
|
3707
|
-
},
|
|
3727
|
+
}, f = [
|
|
3708
3728
|
"fish",
|
|
3709
3729
|
"bash",
|
|
3710
3730
|
"zsh",
|
|
@@ -3714,16 +3734,16 @@ function Vt(n) {
|
|
|
3714
3734
|
"tcsh",
|
|
3715
3735
|
"dash",
|
|
3716
3736
|
"scsh"
|
|
3717
|
-
],
|
|
3718
|
-
binary: `(${
|
|
3737
|
+
], g = n.SHEBANG({
|
|
3738
|
+
binary: `(${f.join("|")})`,
|
|
3719
3739
|
relevance: 10
|
|
3720
|
-
}),
|
|
3740
|
+
}), d = {
|
|
3721
3741
|
className: "function",
|
|
3722
3742
|
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
3723
3743
|
returnBegin: !0,
|
|
3724
3744
|
contains: [n.inherit(n.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
3725
3745
|
relevance: 0
|
|
3726
|
-
},
|
|
3746
|
+
}, p = [
|
|
3727
3747
|
"if",
|
|
3728
3748
|
"then",
|
|
3729
3749
|
"else",
|
|
@@ -3742,7 +3762,7 @@ function Vt(n) {
|
|
|
3742
3762
|
], _ = [
|
|
3743
3763
|
"true",
|
|
3744
3764
|
"false"
|
|
3745
|
-
],
|
|
3765
|
+
], v = { match: /(\/[a-z._-]+)+/ }, m = [
|
|
3746
3766
|
"break",
|
|
3747
3767
|
"cd",
|
|
3748
3768
|
"continue",
|
|
@@ -3761,7 +3781,7 @@ function Vt(n) {
|
|
|
3761
3781
|
"trap",
|
|
3762
3782
|
"umask",
|
|
3763
3783
|
"unset"
|
|
3764
|
-
],
|
|
3784
|
+
], E = [
|
|
3765
3785
|
"alias",
|
|
3766
3786
|
"bind",
|
|
3767
3787
|
"builtin",
|
|
@@ -3779,11 +3799,12 @@ function Vt(n) {
|
|
|
3779
3799
|
"read",
|
|
3780
3800
|
"readarray",
|
|
3781
3801
|
"source",
|
|
3802
|
+
"sudo",
|
|
3782
3803
|
"type",
|
|
3783
3804
|
"typeset",
|
|
3784
3805
|
"ulimit",
|
|
3785
3806
|
"unalias"
|
|
3786
|
-
],
|
|
3807
|
+
], w = [
|
|
3787
3808
|
"autoload",
|
|
3788
3809
|
"bg",
|
|
3789
3810
|
"bindkey",
|
|
@@ -3852,7 +3873,7 @@ function Vt(n) {
|
|
|
3852
3873
|
"zsocket",
|
|
3853
3874
|
"zstyle",
|
|
3854
3875
|
"ztcp"
|
|
3855
|
-
],
|
|
3876
|
+
], T = [
|
|
3856
3877
|
"chcon",
|
|
3857
3878
|
"chgrp",
|
|
3858
3879
|
"chown",
|
|
@@ -3959,40 +3980,43 @@ function Vt(n) {
|
|
|
3959
3980
|
];
|
|
3960
3981
|
return {
|
|
3961
3982
|
name: "Bash",
|
|
3962
|
-
aliases: [
|
|
3983
|
+
aliases: [
|
|
3984
|
+
"sh",
|
|
3985
|
+
"zsh"
|
|
3986
|
+
],
|
|
3963
3987
|
keywords: {
|
|
3964
3988
|
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
3965
|
-
keyword:
|
|
3989
|
+
keyword: p,
|
|
3966
3990
|
literal: _,
|
|
3967
3991
|
built_in: [
|
|
3968
|
-
...v,
|
|
3969
3992
|
...m,
|
|
3993
|
+
...E,
|
|
3970
3994
|
// Shell modifiers
|
|
3971
3995
|
"set",
|
|
3972
3996
|
"shopt",
|
|
3973
|
-
...
|
|
3974
|
-
...
|
|
3997
|
+
...w,
|
|
3998
|
+
...T
|
|
3975
3999
|
]
|
|
3976
4000
|
},
|
|
3977
4001
|
contains: [
|
|
3978
|
-
|
|
4002
|
+
g,
|
|
3979
4003
|
// to catch known shells and boost relevancy
|
|
3980
4004
|
n.SHEBANG(),
|
|
3981
4005
|
// to catch unknown shells but still highlight the shebang
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
n.HASH_COMMENT_MODE,
|
|
4006
|
+
d,
|
|
4007
|
+
c,
|
|
3985
4008
|
t,
|
|
3986
|
-
p,
|
|
3987
4009
|
r,
|
|
4010
|
+
v,
|
|
3988
4011
|
i,
|
|
3989
4012
|
a,
|
|
3990
4013
|
o,
|
|
4014
|
+
l,
|
|
3991
4015
|
s
|
|
3992
4016
|
]
|
|
3993
4017
|
};
|
|
3994
4018
|
}
|
|
3995
|
-
function
|
|
4019
|
+
function Yt(n) {
|
|
3996
4020
|
const e = n.regex, s = n.COMMENT("--", "$"), u = {
|
|
3997
4021
|
className: "string",
|
|
3998
4022
|
variants: [
|
|
@@ -4544,10 +4568,10 @@ function Zt(n) {
|
|
|
4544
4568
|
], g = l, d = [
|
|
4545
4569
|
...o,
|
|
4546
4570
|
...a
|
|
4547
|
-
].filter((E) => !l.includes(E)),
|
|
4571
|
+
].filter((E) => !l.includes(E)), p = {
|
|
4548
4572
|
className: "variable",
|
|
4549
4573
|
begin: /@[a-z0-9][a-z0-9_]*/
|
|
4550
|
-
},
|
|
4574
|
+
}, _ = {
|
|
4551
4575
|
className: "operator",
|
|
4552
4576
|
begin: /[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
|
|
4553
4577
|
relevance: 0
|
|
@@ -4557,11 +4581,11 @@ function Zt(n) {
|
|
|
4557
4581
|
keywords: { built_in: g }
|
|
4558
4582
|
};
|
|
4559
4583
|
function m(E, {
|
|
4560
|
-
exceptions:
|
|
4561
|
-
when:
|
|
4584
|
+
exceptions: w,
|
|
4585
|
+
when: T
|
|
4562
4586
|
} = {}) {
|
|
4563
|
-
const
|
|
4564
|
-
return
|
|
4587
|
+
const M = T;
|
|
4588
|
+
return w = w || [], E.map((N) => N.match(/\|\d+$/) || w.includes(N) ? N : M(N) ? `${N}|0` : N);
|
|
4565
4589
|
}
|
|
4566
4590
|
return {
|
|
4567
4591
|
name: "SQL",
|
|
@@ -4591,33 +4615,33 @@ function Zt(n) {
|
|
|
4591
4615
|
begin: e.either(...r)
|
|
4592
4616
|
},
|
|
4593
4617
|
v,
|
|
4594
|
-
|
|
4618
|
+
p,
|
|
4595
4619
|
u,
|
|
4596
4620
|
h,
|
|
4597
4621
|
n.C_NUMBER_MODE,
|
|
4598
4622
|
n.C_BLOCK_COMMENT_MODE,
|
|
4599
4623
|
s,
|
|
4600
|
-
|
|
4624
|
+
_
|
|
4601
4625
|
]
|
|
4602
4626
|
};
|
|
4603
4627
|
}
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
var
|
|
4614
|
-
const J = "<code-diff-modified>", ee = "</code-diff-modified>",
|
|
4628
|
+
Y.registerLanguage("xml", $t);
|
|
4629
|
+
Y.registerLanguage("javascript", Ht);
|
|
4630
|
+
Y.registerLanguage("json", zt);
|
|
4631
|
+
Y.registerLanguage("yaml", Gt);
|
|
4632
|
+
Y.registerLanguage("plaintext", Kt);
|
|
4633
|
+
Y.registerLanguage("python", Wt);
|
|
4634
|
+
Y.registerLanguage("java", Qt);
|
|
4635
|
+
Y.registerLanguage("bash", Zt);
|
|
4636
|
+
Y.registerLanguage("sql", Yt);
|
|
4637
|
+
var S = /* @__PURE__ */ ((n) => (n.EQUAL = "equal", n.DELETE = "removed", n.ADD = "added", n.EMPTY = "empty", n))(S || {});
|
|
4638
|
+
const J = "<code-diff-modified>", ee = "</code-diff-modified>", Vt = J.replace("<", "<").replace(">", ">"), Xt = ee.replace("<", "<").replace(">", ">");
|
|
4615
4639
|
function ge(n) {
|
|
4616
|
-
return n === void 0 ?
|
|
4640
|
+
return n === void 0 ? S.EQUAL : n.added ? S.ADD : n.removed ? S.DELETE : S.EQUAL;
|
|
4617
4641
|
}
|
|
4618
4642
|
function Te(n, e, s = "word") {
|
|
4619
|
-
return typeof n == "undefined" ? e : typeof e == "undefined" ? n : (s === "char" ? $n :
|
|
4620
|
-
(h) => ge(h) ===
|
|
4643
|
+
return typeof n == "undefined" ? e : typeof e == "undefined" ? n : (s === "char" ? $n : Un)(n, e).filter((h) => ge(h) !== S.DELETE).map(
|
|
4644
|
+
(h) => ge(h) === S.ADD ? `${J}${h.value}${ee}` : h.value
|
|
4621
4645
|
).join("");
|
|
4622
4646
|
}
|
|
4623
4647
|
function yn(n, e) {
|
|
@@ -4633,12 +4657,12 @@ function yn(n, e) {
|
|
|
4633
4657
|
};
|
|
4634
4658
|
});
|
|
4635
4659
|
}
|
|
4636
|
-
function
|
|
4660
|
+
function Z(n, e) {
|
|
4637
4661
|
if (!e.match(new RegExp(`(${J}|${ee})`, "g")))
|
|
4638
|
-
return
|
|
4662
|
+
return Y.highlight(e, { language: n }).value;
|
|
4639
4663
|
let u = e;
|
|
4640
4664
|
const h = e.replace(new RegExp(`(${J}|${ee})`, "g"), ""), t = document.createElement("div");
|
|
4641
|
-
t.innerHTML =
|
|
4665
|
+
t.innerHTML = Y.highlight(h, { language: n }).value;
|
|
4642
4666
|
let r = !1;
|
|
4643
4667
|
const i = (a) => {
|
|
4644
4668
|
a.childNodes.forEach((o) => {
|
|
@@ -4662,7 +4686,7 @@ function V(n, e) {
|
|
|
4662
4686
|
}
|
|
4663
4687
|
});
|
|
4664
4688
|
};
|
|
4665
|
-
return i(t), t.innerHTML.replace(new RegExp(
|
|
4689
|
+
return i(t), t.innerHTML.replace(new RegExp(Vt, "g"), '<span class="x">').replace(new RegExp(Xt, "g"), "</span>");
|
|
4666
4690
|
}
|
|
4667
4691
|
function An(n, e) {
|
|
4668
4692
|
const s = (a, o) => (a.match(new RegExp(o, "g")) || []).length, u = (a) => a.filter((o) => e == null ? void 0 : e.test(o)).length;
|
|
@@ -4691,9 +4715,9 @@ function An(n, e) {
|
|
|
4691
4715
|
};
|
|
4692
4716
|
}
|
|
4693
4717
|
function jt(n, e, s = "plaintext", u = "word", h = !1, t = 10, r) {
|
|
4694
|
-
const i = () => ({ type:
|
|
4718
|
+
const i = () => ({ type: S.EMPTY }), a = (m, E, w) => ({ type: m, num: E, code: w }), o = yn(n, e), l = r ? new RegExp(r) : void 0;
|
|
4695
4719
|
let c = 0, f = 0, g = !1;
|
|
4696
|
-
const d = [],
|
|
4720
|
+
const d = [], p = {
|
|
4697
4721
|
changes: d,
|
|
4698
4722
|
collector: [],
|
|
4699
4723
|
stat: An(o, l)
|
|
@@ -4703,82 +4727,82 @@ function jt(n, e, s = "plaintext", u = "word", h = !1, t = 10, r) {
|
|
|
4703
4727
|
g = !1;
|
|
4704
4728
|
continue;
|
|
4705
4729
|
}
|
|
4706
|
-
const [E,
|
|
4730
|
+
const [E, w] = [o[m], o[m + 1]], [T, M] = [ge(E), ge(w)], N = E.value.replace(/\n$/, "").split(`
|
|
4707
4731
|
`);
|
|
4708
|
-
if (
|
|
4732
|
+
if (w === void 0) {
|
|
4709
4733
|
for (const C of N) {
|
|
4710
|
-
let
|
|
4711
|
-
const B =
|
|
4712
|
-
|
|
4734
|
+
let L = i(), $ = i();
|
|
4735
|
+
const B = Z(s, C);
|
|
4736
|
+
T === S.EQUAL && (c++, f++, L = a(S.EQUAL, c, B), $ = a(S.EQUAL, f, B)), T === S.DELETE && (c++, L = a(S.DELETE, c, B), $ = i()), T === S.ADD && (f++, L = i(), $ = a(S.ADD, f, B)), d.push({ left: L, right: $ });
|
|
4713
4737
|
}
|
|
4714
4738
|
break;
|
|
4715
4739
|
}
|
|
4716
|
-
if (
|
|
4740
|
+
if (T === S.EQUAL)
|
|
4717
4741
|
for (const C of N) {
|
|
4718
4742
|
c++, f++;
|
|
4719
|
-
const
|
|
4743
|
+
const L = Z(s, C);
|
|
4720
4744
|
d.push({
|
|
4721
|
-
left: a(
|
|
4722
|
-
right: a(
|
|
4745
|
+
left: a(S.EQUAL, c, L),
|
|
4746
|
+
right: a(S.EQUAL, f, L)
|
|
4723
4747
|
});
|
|
4724
4748
|
}
|
|
4725
|
-
const R =
|
|
4749
|
+
const R = w.value.replace(/\n$/, "").split(`
|
|
4726
4750
|
`);
|
|
4727
|
-
if (
|
|
4728
|
-
if (
|
|
4751
|
+
if (T === S.DELETE) {
|
|
4752
|
+
if (M === S.EQUAL)
|
|
4729
4753
|
for (const C of N)
|
|
4730
4754
|
c++, d.push({
|
|
4731
|
-
left: a(
|
|
4755
|
+
left: a(S.DELETE, c, Z(s, C)),
|
|
4732
4756
|
right: i()
|
|
4733
4757
|
});
|
|
4734
|
-
if (
|
|
4758
|
+
if (M === S.ADD) {
|
|
4735
4759
|
g = !0;
|
|
4736
|
-
const C = Math.max(E.count,
|
|
4737
|
-
for (let
|
|
4738
|
-
|
|
4739
|
-
const [$, B] = [N[
|
|
4740
|
-
d.push({ left:
|
|
4760
|
+
const C = Math.max(E.count, w.count);
|
|
4761
|
+
for (let L = 0; L < C; L++) {
|
|
4762
|
+
L < E.count && c++, L < w.count && f++;
|
|
4763
|
+
const [$, B] = [N[L], R[L]], H = h || N.length === R.length, K = H ? Te(B, $, u) : $, te = H ? Te($, B, u) : B, le = l != null && l.test($) ? S.EQUAL : S.DELETE, b = l != null && l.test(B) ? S.EQUAL : S.ADD, A = L < E.count ? a(le, c, Z(s, K)) : i(), O = L < w.count ? a(b, f, Z(s, te)) : i();
|
|
4764
|
+
d.push({ left: A, right: O });
|
|
4741
4765
|
}
|
|
4742
4766
|
}
|
|
4743
4767
|
}
|
|
4744
|
-
if (
|
|
4768
|
+
if (T === S.ADD)
|
|
4745
4769
|
for (const C of N)
|
|
4746
4770
|
f++, d.push({
|
|
4747
4771
|
left: i(),
|
|
4748
|
-
right: a(
|
|
4772
|
+
right: a(S.ADD, f, Z(s, C))
|
|
4749
4773
|
});
|
|
4750
4774
|
}
|
|
4751
4775
|
if (n === e) {
|
|
4752
4776
|
for (let m = 0; m < d.length; m++)
|
|
4753
4777
|
d[m].fold = !1;
|
|
4754
|
-
return
|
|
4778
|
+
return p;
|
|
4755
4779
|
}
|
|
4756
4780
|
for (let m = 0; m < d.length; m++) {
|
|
4757
4781
|
const E = d[m];
|
|
4758
|
-
if (E.left.type ===
|
|
4759
|
-
const [
|
|
4760
|
-
for (let
|
|
4761
|
-
d[
|
|
4782
|
+
if (E.left.type === S.DELETE || E.right.type === S.ADD) {
|
|
4783
|
+
const [w, T] = [Math.max(m - t, 0), Math.min(m + t + 1, d.length)];
|
|
4784
|
+
for (let M = w; M < T; M++)
|
|
4785
|
+
d[M].fold = !1;
|
|
4762
4786
|
}
|
|
4763
4787
|
E.fold === void 0 && (E.fold = !0);
|
|
4764
4788
|
}
|
|
4765
|
-
const
|
|
4789
|
+
const _ = [];
|
|
4766
4790
|
let v = [];
|
|
4767
4791
|
for (let m = 0; m < d.length; m++) {
|
|
4768
4792
|
const E = d[m];
|
|
4769
4793
|
if (E.fold === !1) {
|
|
4770
|
-
v.length && (v[0].hideIndex =
|
|
4794
|
+
v.length && (v[0].hideIndex = p.collector.length, p.collector.push({
|
|
4771
4795
|
lines: v,
|
|
4772
4796
|
fold: !0
|
|
4773
|
-
}), v = []),
|
|
4797
|
+
}), v = []), _.push(E);
|
|
4774
4798
|
continue;
|
|
4775
4799
|
}
|
|
4776
|
-
E.hide = !0, v.push(E),
|
|
4800
|
+
E.hide = !0, v.push(E), _.push(E);
|
|
4777
4801
|
}
|
|
4778
|
-
return v.length && (v[0].hideIndex =
|
|
4802
|
+
return v.length && (v[0].hideIndex = p.collector.length, p.collector.push({
|
|
4779
4803
|
lines: v,
|
|
4780
4804
|
fold: !0
|
|
4781
|
-
}), v = []),
|
|
4805
|
+
}), v = []), p.changes = _, p;
|
|
4782
4806
|
}
|
|
4783
4807
|
function qt(n, e, s = "plaintext", u = "word", h = !1, t = 10, r) {
|
|
4784
4808
|
const i = yn(n, e), a = r ? new RegExp(r) : void 0;
|
|
@@ -4788,103 +4812,103 @@ function qt(n, e, s = "plaintext", u = "word", h = !1, t = 10, r) {
|
|
|
4788
4812
|
collector: [],
|
|
4789
4813
|
stat: An(i, a)
|
|
4790
4814
|
};
|
|
4791
|
-
for (let
|
|
4815
|
+
for (let _ = 0; _ < i.length; _++) {
|
|
4792
4816
|
if (c) {
|
|
4793
4817
|
c = !1;
|
|
4794
4818
|
continue;
|
|
4795
4819
|
}
|
|
4796
|
-
const [v, m] = [i[
|
|
4820
|
+
const [v, m] = [i[_], i[_ + 1]], [E, w] = [ge(v), ge(m)], T = v.value.replace(/\n$/, "").split(`
|
|
4797
4821
|
`);
|
|
4798
4822
|
if (m === void 0) {
|
|
4799
|
-
for (const N of
|
|
4800
|
-
E ===
|
|
4801
|
-
const R =
|
|
4823
|
+
for (const N of T) {
|
|
4824
|
+
E === S.EQUAL && (o++, l++), E === S.DELETE && o++, E === S.ADD && l++;
|
|
4825
|
+
const R = Z(s, N);
|
|
4802
4826
|
f.push({
|
|
4803
4827
|
type: E,
|
|
4804
4828
|
code: R,
|
|
4805
|
-
addNum: E ===
|
|
4806
|
-
delNum: E ===
|
|
4829
|
+
addNum: E === S.DELETE ? void 0 : l,
|
|
4830
|
+
delNum: E === S.ADD ? void 0 : o
|
|
4807
4831
|
});
|
|
4808
4832
|
}
|
|
4809
4833
|
break;
|
|
4810
4834
|
}
|
|
4811
|
-
if (E ===
|
|
4812
|
-
for (const N of
|
|
4835
|
+
if (E === S.EQUAL)
|
|
4836
|
+
for (const N of T) {
|
|
4813
4837
|
o++, l++;
|
|
4814
|
-
const R =
|
|
4815
|
-
f.push({ type:
|
|
4838
|
+
const R = Z(s, N);
|
|
4839
|
+
f.push({ type: S.EQUAL, code: R, delNum: o, addNum: l });
|
|
4816
4840
|
}
|
|
4817
|
-
const
|
|
4841
|
+
const M = m.value.replace(/\n$/, "").split(`
|
|
4818
4842
|
`);
|
|
4819
|
-
if (E ===
|
|
4820
|
-
if (
|
|
4821
|
-
for (let N = 0; N <
|
|
4822
|
-
const R =
|
|
4843
|
+
if (E === S.DELETE)
|
|
4844
|
+
if (w === S.ADD && (T.length === M.length || h)) {
|
|
4845
|
+
for (let N = 0; N < T.length; N++) {
|
|
4846
|
+
const R = T[N], C = M[N];
|
|
4823
4847
|
o++;
|
|
4824
|
-
const
|
|
4848
|
+
const L = Z(s, Te(C, R, u));
|
|
4825
4849
|
f.push({
|
|
4826
|
-
type: a != null && a.test(R) ?
|
|
4827
|
-
code:
|
|
4850
|
+
type: a != null && a.test(R) ? S.EQUAL : S.DELETE,
|
|
4851
|
+
code: L,
|
|
4828
4852
|
delNum: o
|
|
4829
4853
|
});
|
|
4830
4854
|
}
|
|
4831
|
-
for (let N = 0; N <
|
|
4832
|
-
const R =
|
|
4855
|
+
for (let N = 0; N < M.length; N++) {
|
|
4856
|
+
const R = T[N], C = M[N];
|
|
4833
4857
|
l++;
|
|
4834
|
-
const
|
|
4858
|
+
const L = Z(s, Te(R, C, u));
|
|
4835
4859
|
f.push({
|
|
4836
|
-
type: a != null && a.test(C) ?
|
|
4837
|
-
code:
|
|
4860
|
+
type: a != null && a.test(C) ? S.EQUAL : S.ADD,
|
|
4861
|
+
code: L,
|
|
4838
4862
|
addNum: l
|
|
4839
4863
|
});
|
|
4840
4864
|
}
|
|
4841
4865
|
c = !0;
|
|
4842
4866
|
} else
|
|
4843
|
-
for (const N of
|
|
4867
|
+
for (const N of T) {
|
|
4844
4868
|
o++;
|
|
4845
|
-
const R =
|
|
4846
|
-
f.push({ type:
|
|
4869
|
+
const R = Z(s, N);
|
|
4870
|
+
f.push({ type: S.DELETE, code: R, delNum: o });
|
|
4847
4871
|
}
|
|
4848
|
-
if (E ===
|
|
4849
|
-
for (const N of
|
|
4872
|
+
if (E === S.ADD)
|
|
4873
|
+
for (const N of T) {
|
|
4850
4874
|
l++;
|
|
4851
|
-
const R =
|
|
4852
|
-
f.push({ type:
|
|
4875
|
+
const R = Z(s, N);
|
|
4876
|
+
f.push({ type: S.ADD, code: R, addNum: l });
|
|
4853
4877
|
}
|
|
4854
4878
|
}
|
|
4855
|
-
for (let
|
|
4856
|
-
const v = f[
|
|
4857
|
-
if (v.type ===
|
|
4858
|
-
const [m, E] = [Math.max(
|
|
4859
|
-
for (let
|
|
4860
|
-
f[
|
|
4879
|
+
for (let _ = 0; _ < f.length; _++) {
|
|
4880
|
+
const v = f[_];
|
|
4881
|
+
if (v.type === S.DELETE || v.type === S.ADD) {
|
|
4882
|
+
const [m, E] = [Math.max(_ - t, 0), Math.min(_ + t + 1, f.length)];
|
|
4883
|
+
for (let w = m; w < E; w++)
|
|
4884
|
+
f[w].fold = !1;
|
|
4861
4885
|
}
|
|
4862
4886
|
v.fold === void 0 && (v.fold = !0);
|
|
4863
4887
|
}
|
|
4864
4888
|
if (n === e) {
|
|
4865
|
-
for (let
|
|
4866
|
-
f[
|
|
4889
|
+
for (let _ = 0; _ < f.length; _++)
|
|
4890
|
+
f[_].fold = !1;
|
|
4867
4891
|
return g;
|
|
4868
4892
|
}
|
|
4869
4893
|
const d = [];
|
|
4870
|
-
let
|
|
4871
|
-
for (let
|
|
4872
|
-
const v = f[
|
|
4894
|
+
let p = [];
|
|
4895
|
+
for (let _ = 0; _ < f.length; _++) {
|
|
4896
|
+
const v = f[_];
|
|
4873
4897
|
if (v.fold === !1) {
|
|
4874
|
-
|
|
4875
|
-
lines:
|
|
4898
|
+
p.length && (p[0].hideIndex = g.collector.length, g.collector.push({
|
|
4899
|
+
lines: p,
|
|
4876
4900
|
fold: !0
|
|
4877
|
-
}),
|
|
4901
|
+
}), p = []), d.push(v);
|
|
4878
4902
|
continue;
|
|
4879
4903
|
}
|
|
4880
|
-
v.type === "equal" && (v.hide = !0,
|
|
4904
|
+
v.type === "equal" && (v.hide = !0, p.push(v)), d.push(v);
|
|
4881
4905
|
}
|
|
4882
|
-
return
|
|
4883
|
-
lines:
|
|
4906
|
+
return p.length && (p[0].hideIndex = g.collector.length, g.collector.push({
|
|
4907
|
+
lines: p,
|
|
4884
4908
|
fold: !0
|
|
4885
|
-
}),
|
|
4909
|
+
}), p = []), g.changes = d, g;
|
|
4886
4910
|
}
|
|
4887
|
-
const Jt = /* @__PURE__ */
|
|
4911
|
+
const Jt = /* @__PURE__ */ he({
|
|
4888
4912
|
__name: "UnifiedLine",
|
|
4889
4913
|
props: {
|
|
4890
4914
|
line: null
|
|
@@ -4892,36 +4916,14 @@ const Jt = /* @__PURE__ */ be({
|
|
|
4892
4916
|
emits: ["expand"],
|
|
4893
4917
|
setup(n, { emit: e }) {
|
|
4894
4918
|
function s(u) {
|
|
4895
|
-
return u ===
|
|
4919
|
+
return u === S.DELETE ? "-" : u === S.ADD ? "+" : "";
|
|
4896
4920
|
}
|
|
4897
|
-
return { __sfc: !0, emit: e, getCodeMarker: s, DiffType:
|
|
4921
|
+
return { __sfc: !0, emit: e, getCodeMarker: s, DiffType: S };
|
|
4898
4922
|
}
|
|
4899
4923
|
});
|
|
4900
|
-
function
|
|
4924
|
+
function ie(n, e, s, u, h, t, r, i) {
|
|
4901
4925
|
var a = typeof n == "function" ? n.options : n;
|
|
4902
|
-
e && (a.render = e, a.staticRenderFns = s, a._compiled = !0),
|
|
4903
|
-
var o;
|
|
4904
|
-
if (r ? (o = function(f) {
|
|
4905
|
-
f = f || // cached call
|
|
4906
|
-
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
4907
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ != "undefined" && (f = __VUE_SSR_CONTEXT__), h && h.call(this, f), f && f._registeredComponents && f._registeredComponents.add(r);
|
|
4908
|
-
}, a._ssrRegister = o) : h && (o = i ? function() {
|
|
4909
|
-
h.call(
|
|
4910
|
-
this,
|
|
4911
|
-
(a.functional ? this.parent : this).$root.$options.shadowRoot
|
|
4912
|
-
);
|
|
4913
|
-
} : h), o)
|
|
4914
|
-
if (a.functional) {
|
|
4915
|
-
a._injectStyles = o;
|
|
4916
|
-
var l = a.render;
|
|
4917
|
-
a.render = function(g, d) {
|
|
4918
|
-
return o.call(d), l(g, d);
|
|
4919
|
-
};
|
|
4920
|
-
} else {
|
|
4921
|
-
var c = a.beforeCreate;
|
|
4922
|
-
a.beforeCreate = c ? [].concat(c, o) : [o];
|
|
4923
|
-
}
|
|
4924
|
-
return {
|
|
4926
|
+
return e && (a.render = e, a.staticRenderFns = s, a._compiled = !0), t && (a._scopeId = "data-v-" + t), {
|
|
4925
4927
|
exports: n,
|
|
4926
4928
|
options: a
|
|
4927
4929
|
};
|
|
@@ -4946,17 +4948,15 @@ var er = function() {
|
|
|
4946
4948
|
"blob-code-context": e.line.type === u.DiffType.EQUAL,
|
|
4947
4949
|
"blob-code-hunk": e.line.hide !== void 0
|
|
4948
4950
|
} }, [s("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": u.getCodeMarker(e.line.type) }, domProps: { innerHTML: e._s(e.line.code) } })])]);
|
|
4949
|
-
}, nr = [], tr = /* @__PURE__ */
|
|
4951
|
+
}, nr = [], tr = /* @__PURE__ */ ie(
|
|
4950
4952
|
Jt,
|
|
4951
4953
|
er,
|
|
4952
4954
|
nr,
|
|
4953
4955
|
!1,
|
|
4954
4956
|
null,
|
|
4955
|
-
null,
|
|
4956
|
-
null,
|
|
4957
4957
|
null
|
|
4958
4958
|
);
|
|
4959
|
-
const rr = tr.exports, ir = /* @__PURE__ */
|
|
4959
|
+
const rr = tr.exports, ir = /* @__PURE__ */ he({
|
|
4960
4960
|
__name: "UnifiedViewer",
|
|
4961
4961
|
props: {
|
|
4962
4962
|
diffChange: null
|
|
@@ -4977,17 +4977,15 @@ var sr = function() {
|
|
|
4977
4977
|
return s("table", { staticClass: "diff-table" }, [s("tbody", e._l((h = e.diffChange) == null ? void 0 : h.changes, function(t, r) {
|
|
4978
4978
|
return s(u.UnifiedLine, { key: r, attrs: { line: t }, on: { expand: u.expandHandler } });
|
|
4979
4979
|
}), 1)]);
|
|
4980
|
-
}, ar = [], or = /* @__PURE__ */
|
|
4980
|
+
}, ar = [], or = /* @__PURE__ */ ie(
|
|
4981
4981
|
ir,
|
|
4982
4982
|
sr,
|
|
4983
4983
|
ar,
|
|
4984
4984
|
!1,
|
|
4985
4985
|
null,
|
|
4986
|
-
"238e1326"
|
|
4987
|
-
null,
|
|
4988
|
-
null
|
|
4986
|
+
"238e1326"
|
|
4989
4987
|
);
|
|
4990
|
-
const lr = or.exports, cr = /* @__PURE__ */
|
|
4988
|
+
const lr = or.exports, cr = /* @__PURE__ */ he({
|
|
4991
4989
|
__name: "SplitLine",
|
|
4992
4990
|
props: {
|
|
4993
4991
|
splitLine: null
|
|
@@ -4995,7 +4993,7 @@ const lr = or.exports, cr = /* @__PURE__ */ be({
|
|
|
4995
4993
|
emits: ["expand"],
|
|
4996
4994
|
setup(n, { emit: e }) {
|
|
4997
4995
|
function s(h) {
|
|
4998
|
-
return h ===
|
|
4996
|
+
return h === S.DELETE ? "-" : h === S.ADD ? "+" : "";
|
|
4999
4997
|
}
|
|
5000
4998
|
function u(h) {
|
|
5001
4999
|
const t = document.querySelectorAll(".file-diff-split .split-side-left"), r = document.querySelectorAll(".file-diff-split .split-side-right");
|
|
@@ -5004,7 +5002,7 @@ const lr = or.exports, cr = /* @__PURE__ */ be({
|
|
|
5004
5002
|
for (const i of t)
|
|
5005
5003
|
i.classList.toggle("no-select", h === "right");
|
|
5006
5004
|
}
|
|
5007
|
-
return { __sfc: !0, emit: e, getCodeMarker: s, onSplitLineMousedown: u, DiffType:
|
|
5005
|
+
return { __sfc: !0, emit: e, getCodeMarker: s, onSplitLineMousedown: u, DiffType: S };
|
|
5008
5006
|
}
|
|
5009
5007
|
});
|
|
5010
5008
|
var ur = function() {
|
|
@@ -5028,17 +5026,15 @@ var ur = function() {
|
|
|
5028
5026
|
return u.onSplitLineMousedown(t === 0 ? "left" : "right");
|
|
5029
5027
|
} } }, [s("span", { staticClass: "blob-code-inner blob-code-marker", attrs: { "data-code-marker": u.getCodeMarker(h.type) }, domProps: { innerHTML: e._s(h.code) } })])]];
|
|
5030
5028
|
})], 2);
|
|
5031
|
-
}, fr = [], gr = /* @__PURE__ */
|
|
5029
|
+
}, fr = [], gr = /* @__PURE__ */ ie(
|
|
5032
5030
|
cr,
|
|
5033
5031
|
ur,
|
|
5034
5032
|
fr,
|
|
5035
5033
|
!1,
|
|
5036
5034
|
null,
|
|
5037
|
-
null,
|
|
5038
|
-
null,
|
|
5039
5035
|
null
|
|
5040
5036
|
);
|
|
5041
|
-
const hr = gr.exports, dr = /* @__PURE__ */
|
|
5037
|
+
const hr = gr.exports, dr = /* @__PURE__ */ he({
|
|
5042
5038
|
__name: "SplitViewer",
|
|
5043
5039
|
props: {
|
|
5044
5040
|
diffChange: null
|
|
@@ -5053,24 +5049,22 @@ const hr = gr.exports, dr = /* @__PURE__ */ be({
|
|
|
5053
5049
|
return { __sfc: !0, props: e, expandHandler: s, SplitLine: hr };
|
|
5054
5050
|
}
|
|
5055
5051
|
});
|
|
5056
|
-
var
|
|
5052
|
+
var pr = function() {
|
|
5057
5053
|
var h;
|
|
5058
5054
|
var e = this, s = e._self._c, u = e._self._setupProxy;
|
|
5059
5055
|
return s("table", { staticClass: "file-diff-split diff-table" }, [e._m(0), s("tbody", e._l((h = e.diffChange) == null ? void 0 : h.changes, function(t, r) {
|
|
5060
5056
|
return s(u.SplitLine, { key: r, attrs: { "split-line": t }, on: { expand: u.expandHandler } });
|
|
5061
5057
|
}), 1)]);
|
|
5062
|
-
},
|
|
5058
|
+
}, _r = [function() {
|
|
5063
5059
|
var n = this, e = n._self._c;
|
|
5064
5060
|
return n._self._setupProxy, e("colgroup", [e("col", { attrs: { width: "44" } }), e("col"), e("col", { attrs: { width: "44" } }), e("col")]);
|
|
5065
|
-
}], br = /* @__PURE__ */
|
|
5061
|
+
}], br = /* @__PURE__ */ ie(
|
|
5066
5062
|
dr,
|
|
5067
|
-
_r,
|
|
5068
5063
|
pr,
|
|
5064
|
+
_r,
|
|
5069
5065
|
!1,
|
|
5070
5066
|
null,
|
|
5071
|
-
"829edc33"
|
|
5072
|
-
null,
|
|
5073
|
-
null
|
|
5067
|
+
"829edc33"
|
|
5074
5068
|
);
|
|
5075
5069
|
const vr = br.exports, mr = {
|
|
5076
5070
|
name: "DownArrowIcon"
|
|
@@ -5078,14 +5072,12 @@ const vr = br.exports, mr = {
|
|
|
5078
5072
|
var Er = function() {
|
|
5079
5073
|
var e = this, s = e._self._c;
|
|
5080
5074
|
return s("svg", { attrs: { width: "1rem", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg" } }, [s("path", { attrs: { 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" } })]);
|
|
5081
|
-
}, wr = [], yr = /* @__PURE__ */
|
|
5075
|
+
}, wr = [], yr = /* @__PURE__ */ ie(
|
|
5082
5076
|
mr,
|
|
5083
5077
|
Er,
|
|
5084
5078
|
wr,
|
|
5085
5079
|
!1,
|
|
5086
5080
|
null,
|
|
5087
|
-
null,
|
|
5088
|
-
null,
|
|
5089
5081
|
null
|
|
5090
5082
|
);
|
|
5091
5083
|
const Ar = yr.exports, Nr = {
|
|
@@ -5094,18 +5086,15 @@ const Ar = yr.exports, Nr = {
|
|
|
5094
5086
|
var Mr = function() {
|
|
5095
5087
|
var e = this, s = e._self._c;
|
|
5096
5088
|
return s("svg", { attrs: { width: "1rem", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg" } }, [s("path", { attrs: { 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" } })]);
|
|
5097
|
-
}, Tr = [], Dr = /* @__PURE__ */
|
|
5089
|
+
}, Tr = [], Dr = /* @__PURE__ */ ie(
|
|
5098
5090
|
Nr,
|
|
5099
5091
|
Mr,
|
|
5100
5092
|
Tr,
|
|
5101
5093
|
!1,
|
|
5102
5094
|
null,
|
|
5103
|
-
null,
|
|
5104
|
-
null,
|
|
5105
5095
|
null
|
|
5106
5096
|
);
|
|
5107
|
-
const Sr = Dr.exports
|
|
5108
|
-
const Cr = /* @__PURE__ */ be({
|
|
5097
|
+
const Sr = Dr.exports, Cr = /* @__PURE__ */ he({
|
|
5109
5098
|
__name: "CodeDiff",
|
|
5110
5099
|
props: {
|
|
5111
5100
|
newString: null,
|
|
@@ -5127,17 +5116,17 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5127
5116
|
},
|
|
5128
5117
|
emits: ["diff"],
|
|
5129
5118
|
setup(n, { emit: e }) {
|
|
5130
|
-
const s = n, u =
|
|
5119
|
+
const s = n, u = de(() => s.outputFormat === "line-by-line"), h = de(() => {
|
|
5131
5120
|
let g = s.oldString || "";
|
|
5132
5121
|
return g = s.trim ? g.trim() : g, g = s.noDiffLineFeed ? g.replace(/(\r\n)/g, `
|
|
5133
5122
|
`) : g, g;
|
|
5134
|
-
}), t =
|
|
5123
|
+
}), t = de(() => {
|
|
5135
5124
|
let g = s.newString || "";
|
|
5136
5125
|
return g = s.trim ? g.trim() : g, g = s.noDiffLineFeed ? g.replace(/(\r\n)/g, `
|
|
5137
5126
|
`) : g, g;
|
|
5138
|
-
}), r =
|
|
5127
|
+
}), r = de(
|
|
5139
5128
|
() => u.value ? qt(h.value, t.value, s.language, s.diffStyle, s.forceInlineComparison, s.context, s.ignoreMatchingLines) : jt(h.value, t.value, s.language, s.diffStyle, s.forceInlineComparison, s.context, s.ignoreMatchingLines)
|
|
5140
|
-
), i = We(r.value), a =
|
|
5129
|
+
), i = We(r.value), a = de(() => i.value.stat.additionsNum === 0 && i.value.stat.deletionsNum === 0), o = We(-1);
|
|
5141
5130
|
function l() {
|
|
5142
5131
|
const g = document.querySelectorAll(".blob-code-addition");
|
|
5143
5132
|
o.value < g.length - 1 && (o.value++, f(g));
|
|
@@ -5147,11 +5136,11 @@ const Cr = /* @__PURE__ */ be({
|
|
|
5147
5136
|
o.value > 0 && (o.value--, f(g));
|
|
5148
5137
|
}
|
|
5149
5138
|
function f(g) {
|
|
5150
|
-
g.forEach((
|
|
5139
|
+
g.forEach((p) => p.classList.remove("current-diff"));
|
|
5151
5140
|
const d = g[o.value];
|
|
5152
5141
|
d && (d.classList.add("current-diff"), d.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
5153
5142
|
}
|
|
5154
|
-
return
|
|
5143
|
+
return In(() => s, () => {
|
|
5155
5144
|
i.value = r.value, e("diff", {
|
|
5156
5145
|
stat: {
|
|
5157
5146
|
isChanged: !a.value,
|
|
@@ -5169,26 +5158,46 @@ var Rr = function() {
|
|
|
5169
5158
|
}, { stat: u.diffChange.stat })], 2)]) : s("div", { staticClass: "file-info" }, [s("span", { staticClass: "info-left" }, [e._v(e._s(e.filename))]), s("span", { staticClass: "info-right" }, [s("span", { staticStyle: { "margin-left": "20px" } }, [e._v(e._s(e.newFilename))]), s("span", { staticClass: "diff-commandbar" }, [s("button", { staticClass: "command-item-button", attrs: { title: "Next Change" }, on: { click: u.goToNextDiff } }, [s(u.DownArrowIcon)], 1), s("button", { staticClass: "command-item-button", attrs: { title: "Previous Change" }, on: { click: u.goToPrevDiff } }, [s(u.UpArrowIcon)], 1)]), e.hideStat ? e._e() : s("span", { staticClass: "diff-stat" }, [e._t("stat", function() {
|
|
5170
5159
|
return [s("span", { staticClass: "diff-stat-added" }, [e._v("+" + e._s(u.diffChange.stat.additionsNum) + " additions")]), s("span", { staticClass: "diff-stat-deleted" }, [e._v("-" + e._s(u.diffChange.stat.deletionsNum) + " deletions")])];
|
|
5171
5160
|
}, { stat: u.diffChange.stat })], 2)])])]), u.isUnifiedViewer ? s(u.UnifiedViewer, { attrs: { "diff-change": u.diffChange } }) : s(u.SplitViewer, { attrs: { "diff-change": u.diffChange } })], 1);
|
|
5172
|
-
}, Lr = [], Or = /* @__PURE__ */
|
|
5161
|
+
}, Lr = [], Or = /* @__PURE__ */ ie(
|
|
5173
5162
|
Cr,
|
|
5174
5163
|
Rr,
|
|
5175
5164
|
Lr,
|
|
5176
5165
|
!1,
|
|
5177
5166
|
null,
|
|
5178
|
-
null,
|
|
5179
|
-
null,
|
|
5180
5167
|
null
|
|
5181
5168
|
);
|
|
5182
|
-
const
|
|
5183
|
-
|
|
5184
|
-
|
|
5169
|
+
const Nn = Or.exports, Ir = /* @__PURE__ */ he({
|
|
5170
|
+
__name: "CodeReader",
|
|
5171
|
+
props: {
|
|
5172
|
+
language: { default: "plaintext" },
|
|
5173
|
+
text: null
|
|
5174
|
+
},
|
|
5175
|
+
setup(n) {
|
|
5176
|
+
return { __sfc: !0, CodeDiff: Nn };
|
|
5177
|
+
}
|
|
5178
|
+
});
|
|
5179
|
+
var kr = function() {
|
|
5180
|
+
var e = this, s = e._self._c, u = e._self._setupProxy;
|
|
5181
|
+
return s(u.CodeDiff, { attrs: { "hide-header": "", language: e.language, "old-string": e.text, "new-string": e.text } });
|
|
5182
|
+
}, Br = [], $r = /* @__PURE__ */ ie(
|
|
5183
|
+
Ir,
|
|
5184
|
+
kr,
|
|
5185
|
+
Br,
|
|
5186
|
+
!1,
|
|
5187
|
+
null,
|
|
5188
|
+
"0c5adc58"
|
|
5189
|
+
);
|
|
5190
|
+
const Pr = $r.exports;
|
|
5191
|
+
function Ur(n) {
|
|
5192
|
+
n.component("CodeDiff", Nn), n.component("CodeReader", Pr);
|
|
5185
5193
|
}
|
|
5186
|
-
const
|
|
5187
|
-
install:
|
|
5188
|
-
hljs:
|
|
5194
|
+
const Fr = {
|
|
5195
|
+
install: Ur,
|
|
5196
|
+
hljs: Y
|
|
5189
5197
|
};
|
|
5190
5198
|
export {
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5199
|
+
Nn as CodeDiff,
|
|
5200
|
+
Pr as CodeReader,
|
|
5201
|
+
Fr as default,
|
|
5202
|
+
Y as hljs
|
|
5194
5203
|
};
|