123456789101112131415 |
- import{i as pt,f as Ht,a1 as Ft,_ as Kt}from"./index-ba596ae9.js";import{g as mt}from"./controllerUrls-941681c3.js";import{h as xe,j as Le,p as F,l as X,o as R,V as Z,k as E,M as fe,m as Zt,T as _e,U as Ge,a2 as ye,N as Q,a6 as Fe,W as ee,q as Y,i as qt,a4 as Gt,an as Qt,ah as Wt,t as be,a7 as Oe}from"./vue-a39e6937.js";function Xt(e){return pt({url:mt+"rollback",method:"POST",data:{ids:e}},{showSuccessMessage:!0})}function rr(e){return pt({url:mt+"info",method:"get",params:{id:e}})}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".code-diff-view{--color-canvas-default-transparent: rgba(255,255,255,0);--color-page-header-bg: #f6f8fa;--color-marketing-icon-primary: #218bff;--color-marketing-icon-secondary: #54aeff;--color-diff-blob-addition-num-text: #24292f;--color-diff-blob-addition-fg: #24292f;--color-diff-blob-addition-num-bg: #ccffd8;--color-diff-blob-addition-line-bg: #e6ffec;--color-diff-blob-addition-word-bg: #abf2bc;--color-diff-blob-deletion-num-text: #24292f;--color-diff-blob-deletion-fg: #24292f;--color-diff-blob-deletion-num-bg: #ffd7d5;--color-diff-blob-deletion-line-bg: #ffebe9;--color-diff-blob-deletion-word-bg: rgba(255,129,130,.4);--color-diff-blob-hunk-num-bg: rgba(84,174,255,.4);--color-diff-blob-expander-icon: #57606a;--color-diff-blob-selected-line-highlight-mix-blend-mode: multiply;--color-diffstat-deletion-border: rgba(27,31,36,.15);--color-diffstat-addition-border: rgba(27,31,36,.15);--color-diffstat-addition-bg: #2da44e;--color-search-keyword-hl: #fff8c5;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-codemirror-text: #24292f;--color-codemirror-bg: #ffffff;--color-codemirror-gutters-bg: #ffffff;--color-codemirror-guttermarker-text: #ffffff;--color-codemirror-guttermarker-subtle-text: #6e7781;--color-codemirror-linenumber-text: #57606a;--color-codemirror-cursor: #24292f;--color-codemirror-selection-bg: rgba(84,174,255,.4);--color-codemirror-activeline-bg: rgba(234,238,242,.5);--color-codemirror-matchingbracket-text: #24292f;--color-codemirror-lines-bg: #ffffff;--color-codemirror-syntax-comment: #24292f;--color-codemirror-syntax-constant: #0550ae;--color-codemirror-syntax-entity: #8250df;--color-codemirror-syntax-keyword: #cf222e;--color-codemirror-syntax-storage: #cf222e;--color-codemirror-syntax-string: #0a3069;--color-codemirror-syntax-support: #0550ae;--color-codemirror-syntax-variable: #953800;--color-checks-bg: #24292f;--color-checks-run-border-width: 0px;--color-checks-container-border-width: 0px;--color-checks-text-primary: #f6f8fa;--color-checks-text-secondary: #8c959f;--color-checks-text-link: #54aeff;--color-checks-btn-icon: #afb8c1;--color-checks-btn-hover-icon: #f6f8fa;--color-checks-btn-hover-bg: rgba(255,255,255,.125);--color-checks-input-text: #eaeef2;--color-checks-input-placeholder-text: #8c959f;--color-checks-input-focus-text: #8c959f;--color-checks-input-bg: #32383f;--color-checks-input-shadow: none;--color-checks-donut-error: #fa4549;--color-checks-donut-pending: #bf8700;--color-checks-donut-success: #2da44e;--color-checks-donut-neutral: #afb8c1;--color-checks-dropdown-text: #afb8c1;--color-checks-dropdown-bg: #32383f;--color-checks-dropdown-border: #424a53;--color-checks-dropdown-shadow: rgba(27,31,36,.3);--color-checks-dropdown-hover-text: #f6f8fa;--color-checks-dropdown-hover-bg: #424a53;--color-checks-dropdown-btn-hover-text: #f6f8fa;--color-checks-dropdown-btn-hover-bg: #32383f;--color-checks-scrollbar-thumb-bg: #57606a;--color-checks-header-label-text: #d0d7de;--color-checks-header-label-open-text: #f6f8fa;--color-checks-header-border: #32383f;--color-checks-header-icon: #8c959f;--color-checks-line-text: #d0d7de;--color-checks-line-num-text: rgba(140,149,159,.75);--color-checks-line-timestamp-text: #8c959f;--color-checks-line-hover-bg: #32383f;--color-checks-line-selected-bg: rgba(33,139,255,.15);--color-checks-line-selected-num-text: #54aeff;--color-checks-line-dt-fm-text: #24292f;--color-checks-line-dt-fm-bg: #9a6700;--color-checks-gate-bg: rgba(125,78,0,.15);--color-checks-gate-text: #d0d7de;--color-checks-gate-waiting-text: #d4a72c;--color-checks-step-header-open-bg: #32383f;--color-checks-step-error-text: #ff8182;--color-checks-step-warning-text: #d4a72c;--color-checks-logline-text: #8c959f;--color-checks-logline-num-text: rgba(140,149,159,.75);--color-checks-logline-debug-text: #c297ff;--color-checks-logline-error-text: #d0d7de;--color-checks-logline-error-num-text: #ff8182;--color-checks-logline-error-bg: rgba(164,14,38,.15);--color-checks-logline-warning-text: #d0d7de;--color-checks-logline-warning-num-text: #d4a72c;--color-checks-logline-warning-bg: rgba(125,78,0,.15);--color-checks-logline-command-text: #54aeff;--color-checks-logline-section-text: #4ac26b;--color-checks-ansi-black: #24292f;--color-checks-ansi-black-bright: #32383f;--color-checks-ansi-white: #d0d7de;--color-checks-ansi-white-bright: #d0d7de;--color-checks-ansi-gray: #8c959f;--color-checks-ansi-red: #ff8182;--color-checks-ansi-red-bright: #ffaba8;--color-checks-ansi-green: #4ac26b;--color-checks-ansi-green-bright: #6fdd8b;--color-checks-ansi-yellow: #d4a72c;--color-checks-ansi-yellow-bright: #eac54f;--color-checks-ansi-blue: #54aeff;--color-checks-ansi-blue-bright: #80ccff;--color-checks-ansi-magenta: #c297ff;--color-checks-ansi-magenta-bright: #d8b9ff;--color-checks-ansi-cyan: #76e3ea;--color-checks-ansi-cyan-bright: #b3f0ff;--color-project-header-bg: #24292f;--color-project-sidebar-bg: #ffffff;--color-project-gradient-in: #ffffff;--color-project-gradient-out: rgba(255,255,255,0);--color-mktg-btn-bg: #1b1f23;--color-mktg-btn-shadow-outline: rgb(0 0 0 / 15%) 0 0 0 1px inset;--color-mktg-btn-shadow-focus: rgb(0 0 0 / 15%) 0 0 0 4px;--color-mktg-btn-shadow-hover: 0 3px 2px rgba(0, 0, 0, .07), 0 7px 5px rgba(0, 0, 0, .04), 0 12px 10px rgba(0, 0, 0, .03), 0 22px 18px rgba(0, 0, 0, .03), 0 42px 33px rgba(0, 0, 0, .02), 0 100px 80px rgba(0, 0, 0, .02);--color-mktg-btn-shadow-hover-muted: rgb(0 0 0 / 70%) 0 0 0 2px inset;--color-avatar-bg: #ffffff;--color-avatar-border: rgba(27,31,36,.15);--color-avatar-stack-fade: #afb8c1;--color-avatar-stack-fade-more: #d0d7de;--color-avatar-child-shadow: -2px -2px 0 rgba(255,255,255,.8);--color-topic-tag-border: rgba(0,0,0,0);--color-counter-border: rgba(0,0,0,0);--color-select-menu-backdrop-border: rgba(0,0,0,0);--color-select-menu-tap-highlight: rgba(175,184,193,.5);--color-select-menu-tap-focus-bg: #b6e3ff;--color-overlay-shadow: 0 1px 3px rgba(27,31,36,.12), 0 8px 24px rgba(66,74,83,.12);--color-header-text: rgba(255,255,255,.7);--color-header-bg: #24292f;--color-header-divider: #57606a;--color-header-logo: #ffffff;--color-header-search-bg: #24292f;--color-header-search-border: #57606a;--color-sidenav-selected-bg: #ffffff;--color-menu-bg-active: rgba(0,0,0,0);--color-input-disabled-bg: rgba(175,184,193,.2);--color-timeline-badge-bg: #eaeef2;--color-ansi-black: #24292f;--color-ansi-black-bright: #57606a;--color-ansi-white: #6e7781;--color-ansi-white-bright: #8c959f;--color-ansi-gray: #6e7781;--color-ansi-red: #cf222e;--color-ansi-red-bright: #a40e26;--color-ansi-green: #116329;--color-ansi-green-bright: #1a7f37;--color-ansi-yellow: #4d2d00;--color-ansi-yellow-bright: #633c01;--color-ansi-blue: #0969da;--color-ansi-blue-bright: #218bff;--color-ansi-magenta: #8250df;--color-ansi-magenta-bright: #a475f9;--color-ansi-cyan: #1b7c83;--color-ansi-cyan-bright: #3192aa;--color-btn-text: #24292f;--color-btn-bg: #f6f8fa;--color-btn-border: rgba(27,31,36,.15);--color-btn-shadow: 0 1px 0 rgba(27,31,36,.04);--color-btn-inset-shadow: inset 0 1px 0 rgba(255,255,255,.25);--color-btn-hover-bg: #f3f4f6;--color-btn-hover-border: rgba(27,31,36,.15);--color-btn-active-bg: hsla(220,14%,93%,1);--color-btn-active-border: rgba(27,31,36,.15);--color-btn-selected-bg: hsla(220,14%,94%,1);--color-btn-focus-bg: #f6f8fa;--color-btn-focus-border: rgba(27,31,36,.15);--color-btn-focus-shadow: 0 0 0 3px rgba(9,105,218,.3);--color-btn-shadow-active: inset 0 .15em .3em rgba(27,31,36,.15);--color-btn-shadow-input-focus: 0 0 0 .2em rgba(9,105,218,.3);--color-btn-counter-bg: rgba(27,31,36,.08);--color-btn-primary-text: #ffffff;--color-btn-primary-bg: #2da44e;--color-btn-primary-border: rgba(27,31,36,.15);--color-btn-primary-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-primary-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-primary-hover-bg: #2c974b;--color-btn-primary-hover-border: rgba(27,31,36,.15);--color-btn-primary-selected-bg: hsla(137,55%,36%,1);--color-btn-primary-selected-shadow: inset 0 1px 0 rgba(0,45,17,.2);--color-btn-primary-disabled-text: rgba(255,255,255,.8);--color-btn-primary-disabled-bg: #94d3a2;--color-btn-primary-disabled-border: rgba(27,31,36,.15);--color-btn-primary-focus-bg: #2da44e;--color-btn-primary-focus-border: rgba(27,31,36,.15);--color-btn-primary-focus-shadow: 0 0 0 3px rgba(45,164,78,.4);--color-btn-primary-icon: rgba(255,255,255,.8);--color-btn-primary-counter-bg: rgba(255,255,255,.2);--color-btn-outline-text: #0969da;--color-btn-outline-hover-text: #ffffff;--color-btn-outline-hover-bg: #0969da;--color-btn-outline-hover-border: rgba(27,31,36,.15);--color-btn-outline-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-outline-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-outline-hover-counter-bg: rgba(255,255,255,.2);--color-btn-outline-selected-text: #ffffff;--color-btn-outline-selected-bg: hsla(212,92%,42%,1);--color-btn-outline-selected-border: rgba(27,31,36,.15);--color-btn-outline-selected-shadow: inset 0 1px 0 rgba(0,33,85,.2);--color-btn-outline-disabled-text: rgba(9,105,218,.5);--color-btn-outline-disabled-bg: #f6f8fa;--color-btn-outline-disabled-counter-bg: rgba(9,105,218,.05);--color-btn-outline-focus-border: rgba(27,31,36,.15);--color-btn-outline-focus-shadow: 0 0 0 3px rgba(5,80,174,.4);--color-btn-outline-counter-bg: rgba(9,105,218,.1);--color-btn-danger-text: #cf222e;--color-btn-danger-hover-text: #ffffff;--color-btn-danger-hover-bg: #a40e26;--color-btn-danger-hover-border: rgba(27,31,36,.15);--color-btn-danger-hover-shadow: 0 1px 0 rgba(27,31,36,.1);--color-btn-danger-hover-inset-shadow: inset 0 1px 0 rgba(255,255,255,.03);--color-btn-danger-hover-counter-bg: rgba(255,255,255,.2);--color-btn-danger-selected-text: #ffffff;--color-btn-danger-selected-bg: hsla(356,72%,44%,1);--color-btn-danger-selected-border: rgba(27,31,36,.15);--color-btn-danger-selected-shadow: inset 0 1px 0 rgba(76,0,20,.2);--color-btn-danger-disabled-text: rgba(207,34,46,.5);--color-btn-danger-disabled-bg: #f6f8fa;--color-btn-danger-disabled-counter-bg: rgba(207,34,46,.05);--color-btn-danger-focus-border: rgba(27,31,36,.15);--color-btn-danger-focus-shadow: 0 0 0 3px rgba(164,14,38,.4);--color-btn-danger-counter-bg: rgba(207,34,46,.1);--color-btn-danger-icon: #cf222e;--color-btn-danger-hover-icon: #ffffff;--color-underlinenav-icon: #6e7781;--color-underlinenav-border-hover: rgba(175,184,193,.2);--color-action-list-item-inline-divider: rgba(208,215,222,.48);--color-action-list-item-default-hover-bg: rgba(208,215,222,.32);--color-action-list-item-default-hover-border: rgba(0,0,0,0);--color-action-list-item-default-active-bg: rgba(208,215,222,.48);--color-action-list-item-default-active-border: rgba(0,0,0,0);--color-action-list-item-default-selected-bg: rgba(208,215,222,.24);--color-action-list-item-danger-hover-bg: rgba(255,235,233,.64);--color-action-list-item-danger-active-bg: #ffebe9;--color-action-list-item-danger-hover-text: #cf222e;--color-switch-track-bg: #eaeef2;--color-switch-track-border: #afb8c1;--color-switch-track-checked-bg: #ddf4ff;--color-switch-track-checked-hover-bg: #b6e3ff;--color-switch-track-checked-active-bg: #80ccff;--color-switch-track-checked-border: #54aeff;--color-switch-knob-checked-bg: #0969da;--color-switch-knob-checked-disabled-bg: #6e7781;--color-segmented-control-bg: #eaeef2;--color-segmented-control-button-hover-bg: rgba(175,184,193,.2);--color-segmented-control-button-active-bg: rgba(175,184,193,.4);--color-segmented-control-button-selected-border: #6e7781;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-fg-on-emphasis: #ffffff;--color-canvas-default: #ffffff;--color-canvas-overlay: #ffffff;--color-canvas-inset: #f6f8fa;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-border-subtle: rgba(27,31,36,.15);--color-shadow-small: 0 1px 0 rgba(27,31,36,.04);--color-shadow-medium: 0 3px 6px rgba(140,149,159,.15);--color-shadow-large: 0 8px 24px rgba(140,149,159,.2);--color-shadow-extra-large: 0 12px 28px rgba(140,149,159,.3);--color-neutral-emphasis-plus: #24292f;--color-neutral-emphasis: #6e7781;--color-neutral-muted: rgba(175,184,193,.2);--color-neutral-subtle: rgba(234,238,242,.5);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-accent-muted: rgba(84,174,255,.4);--color-accent-subtle: #ddf4ff;--color-success-fg: #1a7f37;--color-success-emphasis: #2da44e;--color-success-muted: rgba(74,194,107,.4);--color-success-subtle: #dafbe1;--color-attention-fg: #9a6700;--color-attention-emphasis: #bf8700;--color-attention-muted: rgba(212,167,44,.4);--color-attention-subtle: #fff8c5;--color-severe-fg: #bc4c00;--color-severe-emphasis: #bc4c00;--color-severe-muted: rgba(251,143,68,.4);--color-severe-subtle: #fff1e5;--color-danger-fg: #cf222e;--color-danger-emphasis: #cf222e;--color-danger-muted: rgba(255,129,130,.4);--color-danger-subtle: #ffebe9;--color-open-fg: #1a7f37;--color-open-emphasis: #2da44e;--color-open-muted: rgba(74,194,107,.4);--color-open-subtle: #dafbe1;--color-closed-fg: #cf222e;--color-closed-emphasis: #cf222e;--color-closed-muted: rgba(255,129,130,.4);--color-closed-subtle: #ffebe9;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-done-muted: rgba(194,151,255,.4);--color-done-subtle: #fbefff;--color-sponsors-fg: #bf3989;--color-sponsors-emphasis: #bf3989;--color-sponsors-muted: rgba(255,128,200,.4);--color-sponsors-subtle: #ffeff7;--color-primer-fg-disabled: #8c959f;--color-primer-canvas-backdrop: rgba(27,31,36,.5);--color-primer-canvas-sticky: rgba(255,255,255,.95);--color-primer-border-active: #fd8c73;--color-primer-border-contrast: rgba(27,31,36,.1);--color-primer-shadow-highlight: inset 0 1px 0 rgba(255,255,255,.25);--color-primer-shadow-inset: inset 0 1px 0 rgba(208,215,222,.2);--color-primer-shadow-focus: 0 0 0 3px rgba(9,105,218,.3);--color-scale-black: #1b1f24;--color-scale-white: #ffffff;--color-scale-gray-0: #f6f8fa;--color-scale-gray-1: #eaeef2;--color-scale-gray-2: #d0d7de;--color-scale-gray-3: #afb8c1;--color-scale-gray-4: #8c959f;--color-scale-gray-5: #6e7781;--color-scale-gray-6: #57606a;--color-scale-gray-7: #424a53;--color-scale-gray-8: #32383f;--color-scale-gray-9: #24292f;--color-scale-blue-0: #ddf4ff;--color-scale-blue-1: #b6e3ff;--color-scale-blue-2: #80ccff;--color-scale-blue-3: #54aeff;--color-scale-blue-4: #218bff;--color-scale-blue-5: #0969da;--color-scale-blue-6: #0550ae;--color-scale-blue-7: #033d8b;--color-scale-blue-8: #0a3069;--color-scale-blue-9: #002155;--color-scale-green-0: #dafbe1;--color-scale-green-1: #aceebb;--color-scale-green-2: #6fdd8b;--color-scale-green-3: #4ac26b;--color-scale-green-4: #2da44e;--color-scale-green-5: #1a7f37;--color-scale-green-6: #116329;--color-scale-green-7: #044f1e;--color-scale-green-8: #003d16;--color-scale-green-9: #002d11;--color-scale-yellow-0: #fff8c5;--color-scale-yellow-1: #fae17d;--color-scale-yellow-2: #eac54f;--color-scale-yellow-3: #d4a72c;--color-scale-yellow-4: #bf8700;--color-scale-yellow-5: #9a6700;--color-scale-yellow-6: #7d4e00;--color-scale-yellow-7: #633c01;--color-scale-yellow-8: #4d2d00;--color-scale-yellow-9: #3b2300;--color-scale-orange-0: #fff1e5;--color-scale-orange-1: #ffd8b5;--color-scale-orange-2: #ffb77c;--color-scale-orange-3: #fb8f44;--color-scale-orange-4: #e16f24;--color-scale-orange-5: #bc4c00;--color-scale-orange-6: #953800;--color-scale-orange-7: #762c00;--color-scale-orange-8: #5c2200;--color-scale-orange-9: #471700;--color-scale-red-0: #ffebe9;--color-scale-red-1: #ffcecb;--color-scale-red-2: #ffaba8;--color-scale-red-3: #ff8182;--color-scale-red-4: #fa4549;--color-scale-red-5: #cf222e;--color-scale-red-6: #a40e26;--color-scale-red-7: #82071e;--color-scale-red-8: #660018;--color-scale-red-9: #4c0014;--color-scale-purple-0: #fbefff;--color-scale-purple-1: #ecd8ff;--color-scale-purple-2: #d8b9ff;--color-scale-purple-3: #c297ff;--color-scale-purple-4: #a475f9;--color-scale-purple-5: #8250df;--color-scale-purple-6: #6639ba;--color-scale-purple-7: #512a97;--color-scale-purple-8: #3e1f79;--color-scale-purple-9: #2e1461;--color-scale-pink-0: #ffeff7;--color-scale-pink-1: #ffd3eb;--color-scale-pink-2: #ffadda;--color-scale-pink-3: #ff80c8;--color-scale-pink-4: #e85aad;--color-scale-pink-5: #bf3989;--color-scale-pink-6: #99286e;--color-scale-pink-7: #772057;--color-scale-pink-8: #611347;--color-scale-pink-9: #4d0336;--color-scale-coral-0: #fff0eb;--color-scale-coral-1: #ffd6cc;--color-scale-coral-2: #ffb4a1;--color-scale-coral-3: #fd8c73;--color-scale-coral-4: #ec6547;--color-scale-coral-5: #c4432b;--color-scale-coral-6: #9e2f1c;--color-scale-coral-7: #801f0f;--color-scale-coral-8: #691105;--color-scale-coral-9: #510901}.code-diff-view{position:relative;margin-top:16px;margin-bottom:16px;border:1px solid var(--color-border-default, #ddd);border-radius:6px;overflow-y:auto}.code-diff-view *{position:static}.code-diff-view .file-header{background-color:var(--color-canvas-subtle);border-bottom:1px solid var(--color-border-default);padding:8px 16px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.code-diff-view .file-header .file-info{display:flex;justify-content:space-between;align-items:center;margin-left:8px;height:24px}.code-diff-view .file-header .file-info .filename{font-size:13px;color:var(--color-fg-default)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-added{color:var(--color-diffstat-addition-bg)}.code-diff-view .file-header .file-info .diff-stat .diff-stat-deleted{color:var(--color-danger-emphasis)}.code-diff-view table{border-spacing:0}.code-diff-view .diff-table{width:100%}.code-diff-view .diff-table .blob-num{position:relative;width:1%;min-width:50px;padding-right:10px;padding-left:10px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:20px;color:var(--color-fg-subtle);text-align:right;white-space:nowrap;vertical-align:top;cursor:pointer;-webkit-user-select:none;user-select:none}.code-diff-view .diff-table .blob-num-deletion{color:var(--color-diff-blob-deletion-num-text);background-color:var(--color-diff-blob-deletion-num-bg);border-color:var(--color-danger-emphasis)}.code-diff-view .diff-table .blob-num-addition{color:var(--color-diff-blob-addition-num-text);background-color:var(--color-diff-blob-addition-num-bg);border-color:var(--color-success-emphasis)}.code-diff-view .diff-table .blob-code{position:relative;padding-right:10px;padding-left:10px;line-height:20px;vertical-align:top}.code-diff-view .diff-table .blob-code .blob-code-inner{display:table-cell;overflow:visible;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;color:var(--color-fg-default);word-wrap:anywhere;white-space:pre-wrap}.code-diff-view .diff-table .blob-code-deletion{background-color:var(--color-diff-blob-deletion-line-bg);outline:1px dashed transparent}.code-diff-view .diff-table .blob-code-deletion .x{color:var(--color-diff-blob-deletion-fg);background-color:var(--color-diff-blob-deletion-word-bg)}.code-diff-view .diff-table .blob-code-addition{background-color:var(--color-diff-blob-addition-line-bg);outline:1px dotted transparent}.code-diff-view .diff-table .blob-code-addition .x{color:var(--color-diff-blob-addition-fg);background-color:var(--color-diff-blob-addition-word-bg)}.code-diff-view .diff-table .blob-code-context,.code-diff-view .diff-table .blob-code-addition,.code-diff-view .diff-table .blob-code-deletion{padding-left:22px!important}.code-diff-view .diff-table .blob-code-marker:before{position:absolute;top:1px;left:8px;padding-right:8px;content:attr(data-code-marker)}.code-diff-view .diff-table .blob-num-hunk{background-color:var(--color-diff-blob-hunk-num-bg)}.code-diff-view .diff-table .blob-code-hunk{background-color:var(--color-accent-subtle)}.code-diff-view .file-diff-split{table-layout:fixed}.code-diff-view .file-diff-split .blob-code+.blob-num{border-left:1px solid var(--color-border-muted)}.code-diff-view .empty-cell{cursor:default;background-color:var(--color-neutral-subtle);border-right-color:var(--color-border-muted)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-comment,.hljs-quote,.hljs-variable{color:green}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#00f}.hljs-addition,.hljs-attribute,.hljs-literal,.hljs-section,.hljs-string,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type{color:#a31515}.hljs-deletion,.hljs-meta,.hljs-selector-attr,.hljs-selector-pseudo{color:#2b91af}.hljs-doctag{color:gray}.hljs-attr{color:red}.hljs-bullet,.hljs-link,.hljs-symbol{color:#00b0e8}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();function ie(){}ie.prototype={diff:function(e,t){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=l.callback;typeof l=="function"&&(g=l,l={}),this.options=l;var u=this;function o(h){return g?(setTimeout(function(){g(void 0,h)},0),!0):h}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var n=t.length,r=e.length,a=1,s=n+r;l.maxEditLength&&(s=Math.min(s,l.maxEditLength));var i=[{newPos:-1,components:[]}],c=this.extractCommon(i[0],t,e,0);if(i[0].newPos+1>=n&&c+1>=r)return o([{value:this.join(t),count:t.length}]);function f(){for(var h=-1*a;h<=a;h+=2){var b=void 0,p=i[h-1],_=i[h+1],y=(_?_.newPos:0)-h;p&&(i[h-1]=void 0);var w=p&&p.newPos+1<n,v=_&&0<=y&&y<r;if(!w&&!v){i[h]=void 0;continue}if(!w||v&&p.newPos<_.newPos?(b=Vt(_),u.pushComponent(b.components,void 0,!0)):(b=p,b.newPos++,u.pushComponent(b.components,!0,void 0)),y=u.extractCommon(b,t,e,h),b.newPos+1>=n&&y+1>=r)return o(Jt(u,b.components,t,e,u.useLongestToken));i[h]=b}a++}if(g)(function h(){setTimeout(function(){if(a>s)return g();f()||h()},0)})();else for(;a<=s;){var d=f();if(d)return d}},pushComponent:function(e,t,l){var g=e[e.length-1];g&&g.added===t&&g.removed===l?e[e.length-1]={count:g.count+1,added:t,removed:l}:e.push({count:1,added:t,removed:l})},extractCommon:function(e,t,l,g){for(var u=t.length,o=l.length,n=e.newPos,r=n-g,a=0;n+1<u&&r+1<o&&this.equals(t[n+1],l[r+1]);)n++,r++,a++;return a&&e.components.push({count:a}),e.newPos=n,r},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],l=0;l<e.length;l++)e[l]&&t.push(e[l]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function Jt(e,t,l,g,u){for(var o=0,n=t.length,r=0,a=0;o<n;o++){var s=t[o];if(s.removed){if(s.value=e.join(g.slice(a,a+s.count)),a+=s.count,o&&t[o-1].added){var i=t[o-1];t[o-1]=t[o],t[o]=i}}else{if(!s.added&&u){var c=l.slice(r,r+s.count);c=c.map(function(d,h){var b=g[a+h];return b.length>d.length?b:d}),s.value=e.join(c)}else s.value=e.join(l.slice(r,r+s.count));r+=s.count,s.added||(a+=s.count)}}var f=t[n-1];return n>1&&typeof f.value=="string"&&(f.added||f.removed)&&e.equals("",f.value)&&(t[n-2].value+=f.value,t.pop()),t}function Vt(e){return{newPos:e.newPos,components:e.components.slice(0)}}var Yt=new ie;function en(e,t,l){return Yt.diff(e,t,l)}function tn(e,t){if(typeof e=="function")t.callback=e;else if(e)for(var l in e)e.hasOwnProperty(l)&&(t[l]=e[l]);return t}var at=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,it=/\S/,Qe=new ie;Qe.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!it.test(e)&&!it.test(t)};Qe.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),l=0;l<t.length-1;l++)!t[l+1]&&t[l+2]&&at.test(t[l])&&at.test(t[l+2])&&(t[l]+=t[l+2],t.splice(l+1,2),l--);return t};function nn(e,t,l){return l=tn(l,{ignoreWhitespace:!0}),Qe.diff(e,t,l)}var _t=new ie;_t.tokenize=function(e){var t=[],l=e.split(/(\n|\r\n)/);l[l.length-1]||l.pop();for(var g=0;g<l.length;g++){var u=l[g];g%2&&!this.options.newlineIsToken?t[t.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),t.push(u))}return t};var on=new ie;on.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var rn=new ie;rn.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Re(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(t){return typeof t}:Re=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(e)}var an=Object.prototype.toString,ke=new ie;ke.useLongestToken=!0;ke.tokenize=_t.tokenize;ke.castInput=function(e){var t=this.options,l=t.undefinedReplacement,g=t.stringifyReplacer,u=g===void 0?function(o,n){return typeof n>"u"?l:n}:g;return typeof e=="string"?e:JSON.stringify(Ze(e,null,null,u),u," ")};ke.equals=function(e,t){return ie.prototype.equals.call(ke,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Ze(e,t,l,g,u){t=t||[],l=l||[],g&&(e=g(u,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return l[o];var n;if(an.call(e)==="[object Array]"){for(t.push(e),n=new Array(e.length),l.push(n),o=0;o<e.length;o+=1)n[o]=Ze(e[o],t,l,g,u);return t.pop(),l.pop(),n}if(e&&e.toJSON&&(e=e.toJSON()),Re(e)==="object"&&e!==null){t.push(e),n={},l.push(n);var r=[],a;for(a in e)e.hasOwnProperty(a)&&r.push(a);for(r.sort(),o=0;o<r.length;o+=1)a=r[o],n[a]=Ze(e[a],t,l,g,a);t.pop(),l.pop()}else n=e;return n}var qe=new ie;qe.tokenize=function(e){return e.slice()};qe.join=qe.removeEmpty=function(e){return e};var we={},ln={get exports(){return we},set exports(e){we=e}};(function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},l=-1,g=1,u=0;t.Diff=function(o,n){return[o,n]},t.prototype.diff_main=function(o,n,r,a){typeof a>"u"&&(this.Diff_Timeout<=0?a=Number.MAX_VALUE:a=new Date().getTime()+this.Diff_Timeout*1e3);var s=a;if(o==null||n==null)throw new Error("Null input. (diff_main)");if(o==n)return o?[new t.Diff(u,o)]:[];typeof r>"u"&&(r=!0);var i=r,c=this.diff_commonPrefix(o,n),f=o.substring(0,c);o=o.substring(c),n=n.substring(c),c=this.diff_commonSuffix(o,n);var d=o.substring(o.length-c);o=o.substring(0,o.length-c),n=n.substring(0,n.length-c);var h=this.diff_compute_(o,n,i,s);return f&&h.unshift(new t.Diff(u,f)),d&&h.push(new t.Diff(u,d)),this.diff_cleanupMerge(h),h},t.prototype.diff_compute_=function(o,n,r,a){var s;if(!o)return[new t.Diff(g,n)];if(!n)return[new t.Diff(l,o)];var i=o.length>n.length?o:n,c=o.length>n.length?n:o,f=i.indexOf(c);if(f!=-1)return s=[new t.Diff(g,i.substring(0,f)),new t.Diff(u,c),new t.Diff(g,i.substring(f+c.length))],o.length>n.length&&(s[0][0]=s[2][0]=l),s;if(c.length==1)return[new t.Diff(l,o),new t.Diff(g,n)];var d=this.diff_halfMatch_(o,n);if(d){var h=d[0],b=d[1],p=d[2],_=d[3],y=d[4],w=this.diff_main(h,p,r,a),v=this.diff_main(b,_,r,a);return w.concat([new t.Diff(u,y)],v)}return r&&o.length>100&&n.length>100?this.diff_lineMode_(o,n,a):this.diff_bisect_(o,n,a)},t.prototype.diff_lineMode_=function(o,n,r){var a=this.diff_linesToChars_(o,n);o=a.chars1,n=a.chars2;var s=a.lineArray,i=this.diff_main(o,n,!1,r);this.diff_charsToLines_(i,s),this.diff_cleanupSemantic(i),i.push(new t.Diff(u,""));for(var c=0,f=0,d=0,h="",b="";c<i.length;){switch(i[c][0]){case g:d++,b+=i[c][1];break;case l:f++,h+=i[c][1];break;case u:if(f>=1&&d>=1){i.splice(c-f-d,f+d),c=c-f-d;for(var p=this.diff_main(h,b,!1,r),_=p.length-1;_>=0;_--)i.splice(c,0,p[_]);c=c+p.length}d=0,f=0,h="",b="";break}c++}return i.pop(),i},t.prototype.diff_bisect_=function(o,n,r){for(var a=o.length,s=n.length,i=Math.ceil((a+s)/2),c=i,f=2*i,d=new Array(f),h=new Array(f),b=0;b<f;b++)d[b]=-1,h[b]=-1;d[c+1]=0,h[c+1]=0;for(var p=a-s,_=p%2!=0,y=0,w=0,v=0,S=0,A=0;A<i&&!(new Date().getTime()>r);A++){for(var N=-A+y;N<=A-w;N+=2){var j=c+N,L;N==-A||N!=A&&d[j-1]<d[j+1]?L=d[j+1]:L=d[j-1]+1;for(var H=L-N;L<a&&H<s&&o.charAt(L)==n.charAt(H);)L++,H++;if(d[j]=L,L>a)w+=2;else if(H>s)y+=2;else if(_){var P=c+p-N;if(P>=0&&P<f&&h[P]!=-1){var $=a-h[P];if(L>=$)return this.diff_bisectSplit_(o,n,L,H,r)}}}for(var K=-A+v;K<=A-S;K+=2){var P=c+K,$;K==-A||K!=A&&h[P-1]<h[P+1]?$=h[P+1]:$=h[P-1]+1;for(var G=$-K;$<a&&G<s&&o.charAt(a-$-1)==n.charAt(s-G-1);)$++,G++;if(h[P]=$,$>a)S+=2;else if(G>s)v+=2;else if(!_){var j=c+p-K;if(j>=0&&j<f&&d[j]!=-1){var L=d[j],H=c+L-j;if($=a-$,L>=$)return this.diff_bisectSplit_(o,n,L,H,r)}}}}return[new t.Diff(l,o),new t.Diff(g,n)]},t.prototype.diff_bisectSplit_=function(o,n,r,a,s){var i=o.substring(0,r),c=n.substring(0,a),f=o.substring(r),d=n.substring(a),h=this.diff_main(i,c,!1,s),b=this.diff_main(f,d,!1,s);return h.concat(b)},t.prototype.diff_linesToChars_=function(o,n){var r=[],a={};r[0]="";function s(d){for(var h="",b=0,p=-1,_=r.length;p<d.length-1;){p=d.indexOf(`
- `,b),p==-1&&(p=d.length-1);var y=d.substring(b,p+1);(a.hasOwnProperty?a.hasOwnProperty(y):a[y]!==void 0)?h+=String.fromCharCode(a[y]):(_==i&&(y=d.substring(b),p=d.length),h+=String.fromCharCode(_),a[y]=_,r[_++]=y),b=p+1}return h}var i=4e4,c=s(o);i=65535;var f=s(n);return{chars1:c,chars2:f,lineArray:r}},t.prototype.diff_charsToLines_=function(o,n){for(var r=0;r<o.length;r++){for(var a=o[r][1],s=[],i=0;i<a.length;i++)s[i]=n[a.charCodeAt(i)];o[r][1]=s.join("")}},t.prototype.diff_commonPrefix=function(o,n){if(!o||!n||o.charAt(0)!=n.charAt(0))return 0;for(var r=0,a=Math.min(o.length,n.length),s=a,i=0;r<s;)o.substring(i,s)==n.substring(i,s)?(r=s,i=r):a=s,s=Math.floor((a-r)/2+r);return s},t.prototype.diff_commonSuffix=function(o,n){if(!o||!n||o.charAt(o.length-1)!=n.charAt(n.length-1))return 0;for(var r=0,a=Math.min(o.length,n.length),s=a,i=0;r<s;)o.substring(o.length-s,o.length-i)==n.substring(n.length-s,n.length-i)?(r=s,i=r):a=s,s=Math.floor((a-r)/2+r);return s},t.prototype.diff_commonOverlap_=function(o,n){var r=o.length,a=n.length;if(r==0||a==0)return 0;r>a?o=o.substring(r-a):r<a&&(n=n.substring(0,r));var s=Math.min(r,a);if(o==n)return s;for(var i=0,c=1;;){var f=o.substring(s-c),d=n.indexOf(f);if(d==-1)return i;c+=d,(d==0||o.substring(s-c)==n.substring(0,c))&&(i=c,c++)}},t.prototype.diff_halfMatch_=function(o,n){if(this.Diff_Timeout<=0)return null;var r=o.length>n.length?o:n,a=o.length>n.length?n:o;if(r.length<4||a.length*2<r.length)return null;var s=this;function i(w,v,S){for(var A=w.substring(S,S+Math.floor(w.length/4)),N=-1,j="",L,H,P,$;(N=v.indexOf(A,N+1))!=-1;){var K=s.diff_commonPrefix(w.substring(S),v.substring(N)),G=s.diff_commonSuffix(w.substring(0,S),v.substring(0,N));j.length<G+K&&(j=v.substring(N-G,N)+v.substring(N,N+K),L=w.substring(0,S-G),H=w.substring(S+K),P=v.substring(0,N-G),$=v.substring(N+K))}return j.length*2>=w.length?[L,H,P,$,j]:null}var c=i(r,a,Math.ceil(r.length/4)),f=i(r,a,Math.ceil(r.length/2)),d;if(!c&&!f)return null;f?c?d=c[4].length>f[4].length?c:f:d=f:d=c;var h,b,p,_;o.length>n.length?(h=d[0],b=d[1],p=d[2],_=d[3]):(p=d[0],_=d[1],h=d[2],b=d[3]);var y=d[4];return[h,b,p,_,y]},t.prototype.diff_cleanupSemantic=function(o){for(var n=!1,r=[],a=0,s=null,i=0,c=0,f=0,d=0,h=0;i<o.length;)o[i][0]==u?(r[a++]=i,c=d,f=h,d=0,h=0,s=o[i][1]):(o[i][0]==g?d+=o[i][1].length:h+=o[i][1].length,s&&s.length<=Math.max(c,f)&&s.length<=Math.max(d,h)&&(o.splice(r[a-1],0,new t.Diff(l,s)),o[r[a-1]+1][0]=g,a--,a--,i=a>0?r[a-1]:-1,c=0,f=0,d=0,h=0,s=null,n=!0)),i++;for(n&&this.diff_cleanupMerge(o),this.diff_cleanupSemanticLossless(o),i=1;i<o.length;){if(o[i-1][0]==l&&o[i][0]==g){var b=o[i-1][1],p=o[i][1],_=this.diff_commonOverlap_(b,p),y=this.diff_commonOverlap_(p,b);_>=y?(_>=b.length/2||_>=p.length/2)&&(o.splice(i,0,new t.Diff(u,p.substring(0,_))),o[i-1][1]=b.substring(0,b.length-_),o[i+1][1]=p.substring(_),i++):(y>=b.length/2||y>=p.length/2)&&(o.splice(i,0,new t.Diff(u,b.substring(0,y))),o[i-1][0]=g,o[i-1][1]=p.substring(0,p.length-y),o[i+1][0]=l,o[i+1][1]=b.substring(y),i++),i++}i++}},t.prototype.diff_cleanupSemanticLossless=function(o){function n(y,w){if(!y||!w)return 6;var v=y.charAt(y.length-1),S=w.charAt(0),A=v.match(t.nonAlphaNumericRegex_),N=S.match(t.nonAlphaNumericRegex_),j=A&&v.match(t.whitespaceRegex_),L=N&&S.match(t.whitespaceRegex_),H=j&&v.match(t.linebreakRegex_),P=L&&S.match(t.linebreakRegex_),$=H&&y.match(t.blanklineEndRegex_),K=P&&w.match(t.blanklineStartRegex_);return $||K?5:H||P?4:A&&!j&&L?3:j||L?2:A||N?1:0}for(var r=1;r<o.length-1;){if(o[r-1][0]==u&&o[r+1][0]==u){var a=o[r-1][1],s=o[r][1],i=o[r+1][1],c=this.diff_commonSuffix(a,s);if(c){var f=s.substring(s.length-c);a=a.substring(0,a.length-c),s=f+s.substring(0,s.length-c),i=f+i}for(var d=a,h=s,b=i,p=n(a,s)+n(s,i);s.charAt(0)===i.charAt(0);){a+=s.charAt(0),s=s.substring(1)+i.charAt(0),i=i.substring(1);var _=n(a,s)+n(s,i);_>=p&&(p=_,d=a,h=s,b=i)}o[r-1][1]!=d&&(d?o[r-1][1]=d:(o.splice(r-1,1),r--),o[r][1]=h,b?o[r+1][1]=b:(o.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(o){for(var n=!1,r=[],a=0,s=null,i=0,c=!1,f=!1,d=!1,h=!1;i<o.length;)o[i][0]==u?(o[i][1].length<this.Diff_EditCost&&(d||h)?(r[a++]=i,c=d,f=h,s=o[i][1]):(a=0,s=null),d=h=!1):(o[i][0]==l?h=!0:d=!0,s&&(c&&f&&d&&h||s.length<this.Diff_EditCost/2&&c+f+d+h==3)&&(o.splice(r[a-1],0,new t.Diff(l,s)),o[r[a-1]+1][0]=g,a--,s=null,c&&f?(d=h=!0,a=0):(a--,i=a>0?r[a-1]:-1,d=h=!1),n=!0)),i++;n&&this.diff_cleanupMerge(o)},t.prototype.diff_cleanupMerge=function(o){o.push(new t.Diff(u,""));for(var n=0,r=0,a=0,s="",i="",c;n<o.length;)switch(o[n][0]){case g:a++,i+=o[n][1],n++;break;case l:r++,s+=o[n][1],n++;break;case u:r+a>1?(r!==0&&a!==0&&(c=this.diff_commonPrefix(i,s),c!==0&&(n-r-a>0&&o[n-r-a-1][0]==u?o[n-r-a-1][1]+=i.substring(0,c):(o.splice(0,0,new t.Diff(u,i.substring(0,c))),n++),i=i.substring(c),s=s.substring(c)),c=this.diff_commonSuffix(i,s),c!==0&&(o[n][1]=i.substring(i.length-c)+o[n][1],i=i.substring(0,i.length-c),s=s.substring(0,s.length-c))),n-=r+a,o.splice(n,r+a),s.length&&(o.splice(n,0,new t.Diff(l,s)),n++),i.length&&(o.splice(n,0,new t.Diff(g,i)),n++),n++):n!==0&&o[n-1][0]==u?(o[n-1][1]+=o[n][1],o.splice(n,1)):n++,a=0,r=0,s="",i="";break}o[o.length-1][1]===""&&o.pop();var f=!1;for(n=1;n<o.length-1;)o[n-1][0]==u&&o[n+1][0]==u&&(o[n][1].substring(o[n][1].length-o[n-1][1].length)==o[n-1][1]?(o[n][1]=o[n-1][1]+o[n][1].substring(0,o[n][1].length-o[n-1][1].length),o[n+1][1]=o[n-1][1]+o[n+1][1],o.splice(n-1,1),f=!0):o[n][1].substring(0,o[n+1][1].length)==o[n+1][1]&&(o[n-1][1]+=o[n+1][1],o[n][1]=o[n][1].substring(o[n+1][1].length)+o[n+1][1],o.splice(n+1,1),f=!0)),n++;f&&this.diff_cleanupMerge(o)},t.prototype.diff_xIndex=function(o,n){var r=0,a=0,s=0,i=0,c;for(c=0;c<o.length&&(o[c][0]!==g&&(r+=o[c][1].length),o[c][0]!==l&&(a+=o[c][1].length),!(r>n));c++)s=r,i=a;return o.length!=c&&o[c][0]===l?i:i+(n-s)},t.prototype.diff_prettyHtml=function(o){for(var n=[],r=/&/g,a=/</g,s=/>/g,i=/\n/g,c=0;c<o.length;c++){var f=o[c][0],d=o[c][1],h=d.replace(r,"&").replace(a,"<").replace(s,">").replace(i,"¶<br>");switch(f){case g:n[c]='<ins style="background:#e6ffe6;">'+h+"</ins>";break;case l:n[c]='<del style="background:#ffe6e6;">'+h+"</del>";break;case u:n[c]="<span>"+h+"</span>";break}}return n.join("")},t.prototype.diff_text1=function(o){for(var n=[],r=0;r<o.length;r++)o[r][0]!==g&&(n[r]=o[r][1]);return n.join("")},t.prototype.diff_text2=function(o){for(var n=[],r=0;r<o.length;r++)o[r][0]!==l&&(n[r]=o[r][1]);return n.join("")},t.prototype.diff_levenshtein=function(o){for(var n=0,r=0,a=0,s=0;s<o.length;s++){var i=o[s][0],c=o[s][1];switch(i){case g:r+=c.length;break;case l:a+=c.length;break;case u:n+=Math.max(r,a),r=0,a=0;break}}return n+=Math.max(r,a),n},t.prototype.diff_toDelta=function(o){for(var n=[],r=0;r<o.length;r++)switch(o[r][0]){case g:n[r]="+"+encodeURI(o[r][1]);break;case l:n[r]="-"+o[r][1].length;break;case u:n[r]="="+o[r][1].length;break}return n.join(" ").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(o,n){for(var r=[],a=0,s=0,i=n.split(/\t/g),c=0;c<i.length;c++){var f=i[c].substring(1);switch(i[c].charAt(0)){case"+":try{r[a++]=new t.Diff(g,decodeURI(f))}catch{throw new Error("Illegal escape in diff_fromDelta: "+f)}break;case"-":case"=":var d=parseInt(f,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+f);var h=o.substring(s,s+=d);i[c].charAt(0)=="="?r[a++]=new t.Diff(u,h):r[a++]=new t.Diff(l,h);break;default:if(i[c])throw new Error("Invalid diff operation in diff_fromDelta: "+i[c])}}if(s!=o.length)throw new Error("Delta length ("+s+") does not equal source text length ("+o.length+").");return r},t.prototype.match_main=function(o,n,r){if(o==null||n==null||r==null)throw new Error("Null input. (match_main)");return r=Math.max(0,Math.min(r,o.length)),o==n?0:o.length?o.substring(r,r+n.length)==n?r:this.match_bitap_(o,n,r):-1},t.prototype.match_bitap_=function(o,n,r){if(n.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var a=this.match_alphabet_(n),s=this;function i(L,H){var P=L/n.length,$=Math.abs(r-H);return s.Match_Distance?P+$/s.Match_Distance:$?1:P}var c=this.Match_Threshold,f=o.indexOf(n,r);f!=-1&&(c=Math.min(i(0,f),c),f=o.lastIndexOf(n,r+n.length),f!=-1&&(c=Math.min(i(0,f),c)));var d=1<<n.length-1;f=-1;for(var h,b,p=n.length+o.length,_,y=0;y<n.length;y++){for(h=0,b=p;h<b;)i(y,r+b)<=c?h=b:p=b,b=Math.floor((p-h)/2+h);p=b;var w=Math.max(1,r-b+1),v=Math.min(r+b,o.length)+n.length,S=Array(v+2);S[v+1]=(1<<y)-1;for(var A=v;A>=w;A--){var N=a[o.charAt(A-1)];if(y===0?S[A]=(S[A+1]<<1|1)&N:S[A]=(S[A+1]<<1|1)&N|((_[A+1]|_[A])<<1|1)|_[A+1],S[A]&d){var j=i(y,A-1);if(j<=c)if(c=j,f=A-1,f>r)w=Math.max(1,2*r-f);else break}}if(i(y+1,r)>c)break;_=S}return f},t.prototype.match_alphabet_=function(o){for(var n={},r=0;r<o.length;r++)n[o.charAt(r)]=0;for(var r=0;r<o.length;r++)n[o.charAt(r)]|=1<<o.length-r-1;return n},t.prototype.patch_addContext_=function(o,n){if(n.length!=0){if(o.start2===null)throw Error("patch not initialized");for(var r=n.substring(o.start2,o.start2+o.length1),a=0;n.indexOf(r)!=n.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)a+=this.Patch_Margin,r=n.substring(o.start2-a,o.start2+o.length1+a);a+=this.Patch_Margin;var s=n.substring(o.start2-a,o.start2);s&&o.diffs.unshift(new t.Diff(u,s));var i=n.substring(o.start2+o.length1,o.start2+o.length1+a);i&&o.diffs.push(new t.Diff(u,i)),o.start1-=s.length,o.start2-=s.length,o.length1+=s.length+i.length,o.length2+=s.length+i.length}},t.prototype.patch_make=function(o,n,r){var a,s;if(typeof o=="string"&&typeof n=="string"&&typeof r>"u")a=o,s=this.diff_main(a,n,!0),s.length>2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(o&&typeof o=="object"&&typeof n>"u"&&typeof r>"u")s=o,a=this.diff_text1(s);else if(typeof o=="string"&&n&&typeof n=="object"&&typeof r>"u")a=o,s=n;else if(typeof o=="string"&&typeof n=="string"&&r&&typeof r=="object")a=o,s=r;else throw new Error("Unknown call format to patch_make.");if(s.length===0)return[];for(var i=[],c=new t.patch_obj,f=0,d=0,h=0,b=a,p=a,_=0;_<s.length;_++){var y=s[_][0],w=s[_][1];switch(!f&&y!==u&&(c.start1=d,c.start2=h),y){case g:c.diffs[f++]=s[_],c.length2+=w.length,p=p.substring(0,h)+w+p.substring(h);break;case l:c.length1+=w.length,c.diffs[f++]=s[_],p=p.substring(0,h)+p.substring(h+w.length);break;case u:w.length<=2*this.Patch_Margin&&f&&s.length!=_+1?(c.diffs[f++]=s[_],c.length1+=w.length,c.length2+=w.length):w.length>=2*this.Patch_Margin&&f&&(this.patch_addContext_(c,b),i.push(c),c=new t.patch_obj,f=0,b=p,d=h);break}y!==g&&(d+=w.length),y!==l&&(h+=w.length)}return f&&(this.patch_addContext_(c,b),i.push(c)),i},t.prototype.patch_deepCopy=function(o){for(var n=[],r=0;r<o.length;r++){var a=o[r],s=new t.patch_obj;s.diffs=[];for(var i=0;i<a.diffs.length;i++)s.diffs[i]=new t.Diff(a.diffs[i][0],a.diffs[i][1]);s.start1=a.start1,s.start2=a.start2,s.length1=a.length1,s.length2=a.length2,n[r]=s}return n},t.prototype.patch_apply=function(o,n){if(o.length==0)return[n,[]];o=this.patch_deepCopy(o);var r=this.patch_addPadding(o);n=r+n+r,this.patch_splitMax(o);for(var a=0,s=[],i=0;i<o.length;i++){var c=o[i].start2+a,f=this.diff_text1(o[i].diffs),d,h=-1;if(f.length>this.Match_MaxBits?(d=this.match_main(n,f.substring(0,this.Match_MaxBits),c),d!=-1&&(h=this.match_main(n,f.substring(f.length-this.Match_MaxBits),c+f.length-this.Match_MaxBits),(h==-1||d>=h)&&(d=-1))):d=this.match_main(n,f,c),d==-1)s[i]=!1,a-=o[i].length2-o[i].length1;else{s[i]=!0,a=d-c;var b;if(h==-1?b=n.substring(d,d+f.length):b=n.substring(d,h+this.Match_MaxBits),f==b)n=n.substring(0,d)+this.diff_text2(o[i].diffs)+n.substring(d+f.length);else{var p=this.diff_main(f,b,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(p)/f.length>this.Patch_DeleteThreshold)s[i]=!1;else{this.diff_cleanupSemanticLossless(p);for(var _=0,y,w=0;w<o[i].diffs.length;w++){var v=o[i].diffs[w];v[0]!==u&&(y=this.diff_xIndex(p,_)),v[0]===g?n=n.substring(0,d+y)+v[1]+n.substring(d+y):v[0]===l&&(n=n.substring(0,d+y)+n.substring(d+this.diff_xIndex(p,_+v[1].length))),v[0]!==l&&(_+=v[1].length)}}}}}return n=n.substring(r.length,n.length-r.length),[n,s]},t.prototype.patch_addPadding=function(o){for(var n=this.Patch_Margin,r="",a=1;a<=n;a++)r+=String.fromCharCode(a);for(var a=0;a<o.length;a++)o[a].start1+=n,o[a].start2+=n;var s=o[0],i=s.diffs;if(i.length==0||i[0][0]!=u)i.unshift(new t.Diff(u,r)),s.start1-=n,s.start2-=n,s.length1+=n,s.length2+=n;else if(n>i[0][1].length){var c=n-i[0][1].length;i[0][1]=r.substring(i[0][1].length)+i[0][1],s.start1-=c,s.start2-=c,s.length1+=c,s.length2+=c}if(s=o[o.length-1],i=s.diffs,i.length==0||i[i.length-1][0]!=u)i.push(new t.Diff(u,r)),s.length1+=n,s.length2+=n;else if(n>i[i.length-1][1].length){var c=n-i[i.length-1][1].length;i[i.length-1][1]+=r.substring(0,c),s.length1+=c,s.length2+=c}return r},t.prototype.patch_splitMax=function(o){for(var n=this.Match_MaxBits,r=0;r<o.length;r++)if(!(o[r].length1<=n)){var a=o[r];o.splice(r--,1);for(var s=a.start1,i=a.start2,c="";a.diffs.length!==0;){var f=new t.patch_obj,d=!0;for(f.start1=s-c.length,f.start2=i-c.length,c!==""&&(f.length1=f.length2=c.length,f.diffs.push(new t.Diff(u,c)));a.diffs.length!==0&&f.length1<n-this.Patch_Margin;){var h=a.diffs[0][0],b=a.diffs[0][1];h===g?(f.length2+=b.length,i+=b.length,f.diffs.push(a.diffs.shift()),d=!1):h===l&&f.diffs.length==1&&f.diffs[0][0]==u&&b.length>2*n?(f.length1+=b.length,s+=b.length,d=!1,f.diffs.push(new t.Diff(h,b)),a.diffs.shift()):(b=b.substring(0,n-f.length1-this.Patch_Margin),f.length1+=b.length,s+=b.length,h===u?(f.length2+=b.length,i+=b.length):d=!1,f.diffs.push(new t.Diff(h,b)),b==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(b.length))}c=this.diff_text2(f.diffs),c=c.substring(c.length-this.Patch_Margin);var p=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);p!==""&&(f.length1+=p.length,f.length2+=p.length,f.diffs.length!==0&&f.diffs[f.diffs.length-1][0]===u?f.diffs[f.diffs.length-1][1]+=p:f.diffs.push(new t.Diff(u,p))),d||o.splice(++r,0,f)}}},t.prototype.patch_toText=function(o){for(var n=[],r=0;r<o.length;r++)n[r]=o[r];return n.join("")},t.prototype.patch_fromText=function(o){var n=[];if(!o)return n;for(var r=o.split(`
- `),a=0,s=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;a<r.length;){var i=r[a].match(s);if(!i)throw new Error("Invalid patch string: "+r[a]);var c=new t.patch_obj;for(n.push(c),c.start1=parseInt(i[1],10),i[2]===""?(c.start1--,c.length1=1):i[2]=="0"?c.length1=0:(c.start1--,c.length1=parseInt(i[2],10)),c.start2=parseInt(i[3],10),i[4]===""?(c.start2--,c.length2=1):i[4]=="0"?c.length2=0:(c.start2--,c.length2=parseInt(i[4],10)),a++;a<r.length;){var f=r[a].charAt(0);try{var d=decodeURI(r[a].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+d)}if(f=="-")c.diffs.push(new t.Diff(l,d));else if(f=="+")c.diffs.push(new t.Diff(g,d));else if(f==" ")c.diffs.push(new t.Diff(u,d));else{if(f=="@")break;if(f!=="")throw new Error('Invalid patch mode "'+f+'" in: '+d)}a++}}return n},t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},t.patch_obj.prototype.toString=function(){var o,n;this.length1===0?o=this.start1+",0":this.length1==1?o=this.start1+1:o=this.start1+1+","+this.length1,this.length2===0?n=this.start2+",0":this.length2==1?n=this.start2+1:n=this.start2+1+","+this.length2;for(var r=["@@ -"+o+" +"+n+` @@
- `],a,s=0;s<this.diffs.length;s++){switch(this.diffs[s][0]){case g:a="+";break;case l:a="-";break;case u:a=" ";break}r[s+1]=a+encodeURI(this.diffs[s][1])+`
- `}return r.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=l,e.exports.DIFF_INSERT=g,e.exports.DIFF_EQUAL=u})(ln);var We={exports:{}};function Xe(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var l=e[t];typeof l=="object"&&!Object.isFrozen(l)&&Xe(l)}),e}We.exports=Xe;We.exports.default=Xe;class lt{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function yt(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function de(e,...t){const l=Object.create(null);for(const g in e)l[g]=e[g];return t.forEach(function(g){for(const u in g)l[u]=g[u]}),l}const sn="</span>",st=e=>!!e.scope||e.sublanguage&&e.language,cn=(e,{prefix:t})=>{if(e.includes(".")){const l=e.split(".");return[`${t}${l.shift()}`,...l.map((g,u)=>`${g}${"_".repeat(u+1)}`)].join(" ")}return`${t}${e}`};class fn{constructor(t,l){this.buffer="",this.classPrefix=l.classPrefix,t.walk(this)}addText(t){this.buffer+=yt(t)}openNode(t){if(!st(t))return;let l="";t.sublanguage?l=`language-${t.language}`:l=cn(t.scope,{prefix:this.classPrefix}),this.span(l)}closeNode(t){st(t)&&(this.buffer+=sn)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const ct=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Je{constructor(){this.rootNode=ct(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const l=ct({scope:t});this.add(l),this.stack.push(l)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,l){return typeof l=="string"?t.addText(l):l.children&&(t.openNode(l),l.children.forEach(g=>this._walk(t,g)),t.closeNode(l)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(l=>typeof l=="string")?t.children=[t.children.join("")]:t.children.forEach(l=>{Je._collapse(l)}))}}class dn extends Je{constructor(t){super(),this.options=t}addKeyword(t,l){t!==""&&(this.openNode(l),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,l){const g=t.root;g.sublanguage=!0,g.language=l,this.add(g)}toHTML(){return new fn(this,this.options).value()}finalize(){return!0}}function Ee(e){return e?typeof e=="string"?e:e.source:null}function vt(e){return he("(?=",e,")")}function gn(e){return he("(?:",e,")*")}function un(e){return he("(?:",e,")?")}function he(...e){return e.map(t=>Ee(t)).join("")}function hn(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ve(...e){return"("+(hn(e).capture?"":"?:")+e.map(t=>Ee(t)).join("|")+")"}function xt(e){return new RegExp(e.toString()+"|").exec("").length-1}function bn(e,t){const l=e&&e.exec(t);return l&&l.index===0}const pn=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ye(e,{joinWith:t}){let l=0;return e.map(g=>{l+=1;const u=l;let o=Ee(g),n="";for(;o.length>0;){const r=pn.exec(o);if(!r){n+=o;break}n+=o.substring(0,r.index),o=o.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?n+="\\"+String(Number(r[1])+u):(n+=r[0],r[0]==="("&&l++)}return n}).map(g=>`(${g})`).join(t)}const mn=/\b\B/,wt="[a-zA-Z]\\w*",et="[a-zA-Z_]\\w*",kt="\\b\\d+(\\.\\d+)?",Et="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Nt="\\b(0b[01]+)",_n="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",yn=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=he(t,/.*\b/,e.binary,/\b.*/)),de({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(l,g)=>{l.index!==0&&g.ignoreMatch()}},e)},Ne={begin:"\\\\[\\s\\S]",relevance:0},vn={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ne]},xn={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ne]},wn={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/},$e=function(e,t,l={}){const g=de({scope:"comment",begin:e,end:t,contains:[]},l);g.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const u=Ve("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return g.contains.push({begin:he(/[ ]+/,"(",u,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),g},kn=$e("//","$"),En=$e("/\\*","\\*/"),Nn=$e("#","$"),Mn={scope:"number",begin:kt,relevance:0},Dn={scope:"number",begin:Et,relevance:0},An={scope:"number",begin:Nt,relevance:0},Sn={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Ne,{begin:/\[/,end:/\]/,relevance:0,contains:[Ne]}]}]},Ln={scope:"title",begin:wt,relevance:0},On={scope:"title",begin:et,relevance:0},Tn={begin:"\\.\\s*"+et,relevance:0},Cn=function(e){return Object.assign(e,{"on:begin":(t,l)=>{l.data._beginMatch=t[1]},"on:end":(t,l)=>{l.data._beginMatch!==t[1]&&l.ignoreMatch()}})};var Te=Object.freeze({__proto__:null,MATCH_NOTHING_RE:mn,IDENT_RE:wt,UNDERSCORE_IDENT_RE:et,NUMBER_RE:kt,C_NUMBER_RE:Et,BINARY_NUMBER_RE:Nt,RE_STARTERS_RE:_n,SHEBANG:yn,BACKSLASH_ESCAPE:Ne,APOS_STRING_MODE:vn,QUOTE_STRING_MODE:xn,PHRASAL_WORDS_MODE:wn,COMMENT:$e,C_LINE_COMMENT_MODE:kn,C_BLOCK_COMMENT_MODE:En,HASH_COMMENT_MODE:Nn,NUMBER_MODE:Mn,C_NUMBER_MODE:Dn,BINARY_NUMBER_MODE:An,REGEXP_MODE:Sn,TITLE_MODE:Ln,UNDERSCORE_TITLE_MODE:On,METHOD_GUARD:Tn,END_SAME_AS_BEGIN:Cn});function jn(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Rn(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function In(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=jn,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Bn(e,t){Array.isArray(e.illegal)&&(e.illegal=Ve(...e.illegal))}function $n(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Pn(e,t){e.relevance===void 0&&(e.relevance=1)}const zn=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const l=Object.assign({},e);Object.keys(e).forEach(g=>{delete e[g]}),e.keywords=l.keywords,e.begin=he(l.beforeMatch,vt(l.begin)),e.starts={relevance:0,contains:[Object.assign(l,{endsParent:!0})]},e.relevance=0,delete l.beforeMatch},Un=["of","and","for","in","not","or","if","then","parent","list","value"],Hn="keyword";function Mt(e,t,l=Hn){const g=Object.create(null);return typeof e=="string"?u(l,e.split(" ")):Array.isArray(e)?u(l,e):Object.keys(e).forEach(function(o){Object.assign(g,Mt(e[o],t,o))}),g;function u(o,n){t&&(n=n.map(r=>r.toLowerCase())),n.forEach(function(r){const a=r.split("|");g[a[0]]=[o,Fn(a[0],a[1])]})}}function Fn(e,t){return t?Number(t):Kn(e)?0:1}function Kn(e){return Un.includes(e.toLowerCase())}const ft={},ue=e=>{console.error(e)},dt=(e,...t)=>{console.log(`WARN: ${e}`,...t)},pe=(e,t)=>{ft[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ft[`${e}/${t}`]=!0)},Ie=new Error;function Dt(e,t,{key:l}){let g=0;const u=e[l],o={},n={};for(let r=1;r<=t.length;r++)n[r+g]=u[r],o[r+g]=!0,g+=xt(t[r-1]);e[l]=n,e[l]._emit=o,e[l]._multi=!0}function Zn(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw ue("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ie;if(typeof e.beginScope!="object"||e.beginScope===null)throw ue("beginScope must be object"),Ie;Dt(e,e.begin,{key:"beginScope"}),e.begin=Ye(e.begin,{joinWith:""})}}function qn(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw ue("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ie;if(typeof e.endScope!="object"||e.endScope===null)throw ue("endScope must be object"),Ie;Dt(e,e.end,{key:"endScope"}),e.end=Ye(e.end,{joinWith:""})}}function Gn(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Qn(e){Gn(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Zn(e),qn(e)}function Wn(e){function t(n,r){return new RegExp(Ee(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class l{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,r]),this.matchAt+=xt(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(a=>a[1]);this.matcherRe=t(Ye(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(r);if(!a)return null;const s=a.findIndex((c,f)=>f>0&&c!==void 0),i=this.matchIndexes[s];return a.splice(0,s),Object.assign(a,i)}}class g{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const a=new l;return this.rules.slice(r).forEach(([s,i])=>a.addRule(s,i)),a.compile(),this.multiRegexes[r]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,a){this.rules.push([r,a]),a.type==="begin"&&this.count++}exec(r){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let s=a.exec(r);if(this.resumingScanAtSamePosition()&&!(s&&s.index===this.lastIndex)){const i=this.getMatcher(0);i.lastIndex=this.lastIndex+1,s=i.exec(r)}return s&&(this.regexIndex+=s.position+1,this.regexIndex===this.count&&this.considerAll()),s}}function u(n){const r=new g;return n.contains.forEach(a=>r.addRule(a.begin,{rule:a,type:"begin"})),n.terminatorEnd&&r.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&r.addRule(n.illegal,{type:"illegal"}),r}function o(n,r){const a=n;if(n.isCompiled)return a;[Rn,$n,Qn,zn].forEach(i=>i(n,r)),e.compilerExtensions.forEach(i=>i(n,r)),n.__beforeBegin=null,[In,Bn,Pn].forEach(i=>i(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s=s||/\w+/,n.keywords&&(n.keywords=Mt(n.keywords,e.case_insensitive)),a.keywordPatternRe=t(s,!0),r&&(n.begin||(n.begin=/\B|\b/),a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=Ee(a.end)||"",n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?"|":"")+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(i){return Xn(i==="self"?n:i)})),n.contains.forEach(function(i){o(i,a)}),n.starts&&o(n.starts,r),a.matcher=u(a),a}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=de(e.classNameAliases||{}),o(e)}function At(e){return e?e.endsWithParent||At(e.starts):!1}function Xn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return de(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:At(e)?de(e,{starts:e.starts?de(e.starts):null}):Object.isFrozen(e)?de(e):e}var Jn="11.7.0";class Vn extends Error{constructor(t,l){super(t),this.name="HTMLInjectionError",this.html=l}}const Ke=yt,gt=de,ut=Symbol("nomatch"),Yn=7,eo=function(e){const t=Object.create(null),l=Object.create(null),g=[];let u=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:dn};function a(m){return r.noHighlightRe.test(m)}function s(m){let M=m.className+" ";M+=m.parentNode?m.parentNode.className:"";const T=r.languageDetectRe.exec(M);if(T){const I=L(T[1]);return I||(dt(o.replace("{}",T[1])),dt("Falling back to no-highlight mode for this block.",m)),I?T[1]:"no-highlight"}return M.split(/\s+/).find(I=>a(I)||L(I))}function i(m,M,T){let I="",U="";typeof M=="object"?(I=m,T=M.ignoreIllegals,U=M.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0",`Please use highlight(code, options) instead.
- https://github.com/highlightjs/highlight.js/issues/2277`),U=m,I=M),T===void 0&&(T=!0);const J={code:I,language:U};G("before:highlight",J);const le=J.result?J.result:c(J.language,J.code,T);return le.code=J.code,G("after:highlight",le),le}function c(m,M,T,I){const U=Object.create(null);function J(x,D){return x.keywords[D]}function le(){if(!O.keywords){q.addText(z);return}let x=0;O.keywordPatternRe.lastIndex=0;let D=O.keywordPatternRe.exec(z),C="";for(;D;){C+=z.substring(x,D.index);const B=ce.case_insensitive?D[0].toLowerCase():D[0],W=J(O,B);if(W){const[oe,zt]=W;if(q.addText(C),C="",U[B]=(U[B]||0)+1,U[B]<=Yn&&(Se+=zt),oe.startsWith("_"))C+=D[0];else{const Ut=ce.classNameAliases[oe]||oe;q.addKeyword(D[0],Ut)}}else C+=D[0];x=O.keywordPatternRe.lastIndex,D=O.keywordPatternRe.exec(z)}C+=z.substring(x),q.addText(C)}function De(){if(z==="")return;let x=null;if(typeof O.subLanguage=="string"){if(!t[O.subLanguage]){q.addText(z);return}x=c(O.subLanguage,z,!0,rt[O.subLanguage]),rt[O.subLanguage]=x._top}else x=d(z,O.subLanguage.length?O.subLanguage:null);O.relevance>0&&(Se+=x.relevance),q.addSublanguage(x._emitter,x.language)}function V(){O.subLanguage!=null?De():le(),z=""}function se(x,D){let C=1;const B=D.length-1;for(;C<=B;){if(!x._emit[C]){C++;continue}const W=ce.classNameAliases[x[C]]||x[C],oe=D[C];W?q.addKeyword(oe,W):(z=oe,le(),z=""),C++}}function tt(x,D){return x.scope&&typeof x.scope=="string"&&q.openNode(ce.classNameAliases[x.scope]||x.scope),x.beginScope&&(x.beginScope._wrap?(q.addKeyword(z,ce.classNameAliases[x.beginScope._wrap]||x.beginScope._wrap),z=""):x.beginScope._multi&&(se(x.beginScope,D),z="")),O=Object.create(x,{parent:{value:O}}),O}function nt(x,D,C){let B=bn(x.endRe,C);if(B){if(x["on:end"]){const W=new lt(x);x["on:end"](D,W),W.isMatchIgnored&&(B=!1)}if(B){for(;x.endsParent&&x.parent;)x=x.parent;return x}}if(x.endsWithParent)return nt(x.parent,D,C)}function Rt(x){return O.matcher.regexIndex===0?(z+=x[0],1):(He=!0,0)}function It(x){const D=x[0],C=x.rule,B=new lt(C),W=[C.__beforeBegin,C["on:begin"]];for(const oe of W)if(oe&&(oe(x,B),B.isMatchIgnored))return Rt(D);return C.skip?z+=D:(C.excludeBegin&&(z+=D),V(),!C.returnBegin&&!C.excludeBegin&&(z=D)),tt(C,x),C.returnBegin?0:D.length}function Bt(x){const D=x[0],C=M.substring(x.index),B=nt(O,x,C);if(!B)return ut;const W=O;O.endScope&&O.endScope._wrap?(V(),q.addKeyword(D,O.endScope._wrap)):O.endScope&&O.endScope._multi?(V(),se(O.endScope,x)):W.skip?z+=D:(W.returnEnd||W.excludeEnd||(z+=D),V(),W.excludeEnd&&(z=D));do O.scope&&q.closeNode(),!O.skip&&!O.subLanguage&&(Se+=O.relevance),O=O.parent;while(O!==B.parent);return B.starts&&tt(B.starts,x),W.returnEnd?0:D.length}function $t(){const x=[];for(let D=O;D!==ce;D=D.parent)D.scope&&x.unshift(D.scope);x.forEach(D=>q.openNode(D))}let Ae={};function ot(x,D){const C=D&&D[0];if(z+=x,C==null)return V(),0;if(Ae.type==="begin"&&D.type==="end"&&Ae.index===D.index&&C===""){if(z+=M.slice(D.index,D.index+1),!u){const B=new Error(`0 width match regex (${m})`);throw B.languageName=m,B.badRule=Ae.rule,B}return 1}if(Ae=D,D.type==="begin")return It(D);if(D.type==="illegal"&&!T){const B=new Error('Illegal lexeme "'+C+'" for mode "'+(O.scope||"<unnamed>")+'"');throw B.mode=O,B}else if(D.type==="end"){const B=Bt(D);if(B!==ut)return B}if(D.type==="illegal"&&C==="")return 1;if(Ue>1e5&&Ue>D.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=C,C.length}const ce=L(m);if(!ce)throw ue(o.replace("{}",m)),new Error('Unknown language: "'+m+'"');const Pt=Wn(ce);let ze="",O=I||Pt;const rt={},q=new r.__emitter(r);$t();let z="",Se=0,ge=0,Ue=0,He=!1;try{for(O.matcher.considerAll();;){Ue++,He?He=!1:O.matcher.considerAll(),O.matcher.lastIndex=ge;const x=O.matcher.exec(M);if(!x)break;const D=M.substring(ge,x.index),C=ot(D,x);ge=x.index+C}return ot(M.substring(ge)),q.closeAllNodes(),q.finalize(),ze=q.toHTML(),{language:m,value:ze,relevance:Se,illegal:!1,_emitter:q,_top:O}}catch(x){if(x.message&&x.message.includes("Illegal"))return{language:m,value:Ke(M),illegal:!0,relevance:0,_illegalBy:{message:x.message,index:ge,context:M.slice(ge-100,ge+100),mode:x.mode,resultSoFar:ze},_emitter:q};if(u)return{language:m,value:Ke(M),illegal:!1,relevance:0,errorRaised:x,_emitter:q,_top:O};throw x}}function f(m){const M={value:Ke(m),illegal:!1,relevance:0,_top:n,_emitter:new r.__emitter(r)};return M._emitter.addText(m),M}function d(m,M){M=M||r.languages||Object.keys(t);const T=f(m),I=M.filter(L).filter(P).map(V=>c(V,m,!1));I.unshift(T);const U=I.sort((V,se)=>{if(V.relevance!==se.relevance)return se.relevance-V.relevance;if(V.language&&se.language){if(L(V.language).supersetOf===se.language)return 1;if(L(se.language).supersetOf===V.language)return-1}return 0}),[J,le]=U,De=J;return De.secondBest=le,De}function h(m,M,T){const I=M&&l[M]||T;m.classList.add("hljs"),m.classList.add(`language-${I}`)}function b(m){let M=null;const T=s(m);if(a(T))return;if(G("before:highlightElement",{el:m,language:T}),m.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(m)),r.throwUnescapedHTML))throw new Vn("One of your code blocks includes unescaped HTML.",m.innerHTML);M=m;const I=M.textContent,U=T?i(I,{language:T,ignoreIllegals:!0}):d(I);m.innerHTML=U.value,h(m,T,U.language),m.result={language:U.language,re:U.relevance,relevance:U.relevance},U.secondBest&&(m.secondBest={language:U.secondBest.language,relevance:U.secondBest.relevance}),G("after:highlightElement",{el:m,result:U,text:I})}function p(m){r=gt(r,m)}const _=()=>{v(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){v(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let w=!1;function v(){if(document.readyState==="loading"){w=!0;return}document.querySelectorAll(r.cssSelector).forEach(b)}function S(){w&&v()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",S,!1);function A(m,M){let T=null;try{T=M(e)}catch(I){if(ue("Language definition for '{}' could not be registered.".replace("{}",m)),u)ue(I);else throw I;T=n}T.name||(T.name=m),t[m]=T,T.rawDefinition=M.bind(null,e),T.aliases&&H(T.aliases,{languageName:m})}function N(m){delete t[m];for(const M of Object.keys(l))l[M]===m&&delete l[M]}function j(){return Object.keys(t)}function L(m){return m=(m||"").toLowerCase(),t[m]||t[l[m]]}function H(m,{languageName:M}){typeof m=="string"&&(m=[m]),m.forEach(T=>{l[T.toLowerCase()]=M})}function P(m){const M=L(m);return M&&!M.disableAutodetect}function $(m){m["before:highlightBlock"]&&!m["before:highlightElement"]&&(m["before:highlightElement"]=M=>{m["before:highlightBlock"](Object.assign({block:M.el},M))}),m["after:highlightBlock"]&&!m["after:highlightElement"]&&(m["after:highlightElement"]=M=>{m["after:highlightBlock"](Object.assign({block:M.el},M))})}function K(m){$(m),g.push(m)}function G(m,M){const T=m;g.forEach(function(I){I[T]&&I[T](M)})}function Pe(m){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),b(m)}Object.assign(e,{highlight:i,highlightAuto:d,highlightAll:v,highlightElement:b,highlightBlock:Pe,configure:p,initHighlighting:_,initHighlightingOnLoad:y,registerLanguage:A,unregisterLanguage:N,listLanguages:j,getLanguage:L,registerAliases:H,autoDetection:P,inherit:gt,addPlugin:K}),e.debugMode=function(){u=!1},e.safeMode=function(){u=!0},e.versionString=Jn,e.regex={concat:he,lookahead:vt,either:Ve,optional:un,anyNumberOfTimes:gn};for(const m in Te)typeof Te[m]=="object"&&We.exports(Te[m]);return Object.assign(e,Te),e};var Me=eo({}),to=Me;Me.HighlightJS=Me;Me.default=Me;const ne=to;function no(e){const t=e.regex,l=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),g=/[\p{L}0-9._:-]+/u,u={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},n=e.inherit(o,{begin:/\(/,end:/\)/}),r=e.inherit(e.APOS_STRING_MODE,{className:"string"}),a=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),s={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:g,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[u]},{begin:/'/,end:/'/,contains:[u]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,a,r,n,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,n,a,r]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},u,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[s],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[s],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(l,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:s}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ht="[A-Za-z$_][0-9A-Za-z$_]*",oo=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],ro=["true","false","null","undefined","NaN","Infinity"],St=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Lt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ot=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ao=["arguments","this","super","console","window","document","localStorage","module","global"],io=[].concat(Ot,St,Lt);function lo(e){const t=e.regex,l=(m,{after:M})=>{const T="</"+m[0].slice(1);return m.input.indexOf(T,M)!==-1},g=ht,u={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,n={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(m,M)=>{const T=m[0].length+m.index,I=m.input[T];if(I==="<"||I===","){M.ignoreMatch();return}I===">"&&(l(m,{after:T})||M.ignoreMatch());let U;const J=m.input.substring(T);if(U=J.match(/^\s*=/)){M.ignoreMatch();return}if((U=J.match(/^\s+extends\s+/))&&U.index===0){M.ignoreMatch();return}}},r={$pattern:ht,keyword:oo,literal:ro,built_in:io,"variable.language":ao},a="[0-9](_?[0-9])*",s=`\\.(${a})`,i="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${i})((${s})|\\.)?|(${s}))[eE][+-]?(${a})\\b`},{begin:`\\b(${i})\\b((${s})\\b|\\.)?|(${s})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},p={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},_=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,b,{match:/\$\d+/},c];f.contains=_.concat({begin:/\{/,end:/\}/,keywords:r,contains:["self"].concat(_)});const y=[].concat(p,f.contains),w=y.concat([{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(y)}]),v={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:w},S={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,t.concat(g,"(",t.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...St,...Lt]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(m){return t.concat("(?!",m.join("|"),")")}const P={match:t.concat(/\b/,H([...Ot,"super","import"]),g,t.lookahead(/\(/)),className:"title.function",relevance:0},$={begin:t.concat(/\./,t.lookahead(t.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},G="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Pe={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(G)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:r,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,b,p,{match:/\$\d+/},c,A,{className:"attr",begin:g+t.lookahead(":"),relevance:0},Pe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[p,e.REGEXP_MODE,{className:"function",begin:G,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:u.begin,end:u.end},{match:o},{begin:n.begin,"on:begin":n.isTrulyOpeningTag,end:n.end}],subLanguage:"xml",contains:[{begin:n.begin,end:n.end,skip:!0,contains:["self"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},$,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},P,L,S,K,{match:/\$[(.]/}]}}function so(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},l={match:/[{}[\],:]/,className:"punctuation",relevance:0},g=["true","false","null"],u={scope:"literal",beginKeywords:g.join(" ")};return{name:"JSON",keywords:{literal:g},contains:[t,l,e.QUOTE_STRING_MODE,u,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function co(e){const t="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",g={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},u={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,u]},n=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),r="[0-9]{4}(-[0-9][0-9]){0,2}",a="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",s="(\\.[0-9]*)?",i="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",c={className:"number",begin:"\\b"+r+a+s+i+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},d={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},b=[g,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+l},{className:"type",begin:"!<"+l+">"},{className:"type",begin:"!"+l},{className:"type",begin:"!!"+l},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},c,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},d,h,o],p=[...b];return p.pop(),p.push(n),f.contains=p,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}function fo(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function go(e){const t=e.regex,l=/[\p{XID_Start}_]\p{XID_Continue}*/u,g=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:g,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},o={className:"meta",begin:/^(>>>|\.\.\.) /},n={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},r={begin:/\{\{/,relevance:0},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,r,n]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,r,n]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,r,n]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,n]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},s="[0-9](_?[0-9])*",i=`(\\b(${s}))?\\.(${s})|\\b(${s})\\.`,c=`\\b|${g.join("|")}`,f={className:"number",relevance:0,variants:[{begin:`(\\b(${s})|(${i}))[eE][+-]?(${s})[jJ]?(?=${c})`},{begin:`(${i})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${c})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${c})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${c})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${c})`},{begin:`\\b(${s})[jJ](?=${c})`}]},d={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},h={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",o,f,a,e.HASH_COMMENT_MODE]}]};return n.contains=[a,f,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|->|\?)|=>/,contains:[o,f,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},a,d,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[h]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[f,h,a]}]}}var me="[0-9](_*[0-9])*",Ce=`\\.(${me})`,je="[0-9a-fA-F](_*[0-9a-fA-F])*",bt={className:"number",variants:[{begin:`(\\b(${me})((${Ce})|\\.)?|(${Ce}))[eE][+-]?(${me})[fFdD]?\\b`},{begin:`\\b(${me})((${Ce})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Ce})[fFdD]?\\b`},{begin:`\\b(${me})[fFdD]\\b`},{begin:`\\b0[xX]((${je})\\.?|(${je})?\\.(${je}))[pP][+-]?(${me})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${je})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Tt(e,t,l){return l===-1?"":e.replace(t,g=>Tt(e,t,l-1))}function uo(e){const t=e.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",g=l+Tt("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),u={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},o={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},n={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+g+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,bt,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},bt,o]}}function ho(e){const t=e.regex,l={},g={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[l]}]};Object.assign(l,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},g]});const u={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,l,u]};u.contains.push(n);const r={className:"",begin:/\\"/},a={className:"string",begin:/'/,end:/'/},s={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,l]},i=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],c=e.SHEBANG({binary:`(${i.join("|")})`,relevance:10}),f={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},d=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],h=["true","false"],b={match:/(\/[a-z._-]+)+/},p=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],_=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],y=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],w=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:d,literal:h,built_in:[...p,..._,"set","shopt",...y,...w]},contains:[c,e.SHEBANG(),f,s,e.HASH_COMMENT_MODE,o,b,n,r,a,l]}}function bo(e){const t=e.regex,l=e.COMMENT("--","$"),g={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},u={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],n=["double precision","large object","with timezone","without timezone"],r=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],a=["add","asc","collation","desc","final","first","last","view"],s=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],i=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],c=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],d=i,h=[...s,...a].filter(w=>!i.includes(w)),b={className:"variable",begin:/@[a-z0-9]+/},p={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},_={begin:t.concat(/\b/,t.either(...d),/\s*\(/),relevance:0,keywords:{built_in:d}};function y(w,{exceptions:v,when:S}={}){const A=S;return v=v||[],w.map(N=>N.match(/\|\d+$/)||v.includes(N)?N:A(N)?`${N}|0`:N)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:y(h,{when:w=>w.length<3}),literal:o,type:r,built_in:c},contains:[{begin:t.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:h.concat(f),literal:o,type:r}},{className:"type",begin:t.either(...n)},_,b,g,u,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,l,p]}}ne.registerLanguage("xml",no);ne.registerLanguage("javascript",lo);ne.registerLanguage("json",so);ne.registerLanguage("yaml",co);ne.registerLanguage("plaintext",fo);ne.registerLanguage("python",go);ne.registerLanguage("java",uo);ne.registerLanguage("bash",ho);ne.registerLanguage("sql",bo);var k=(e=>(e.EQUAL="equal",e.DELETE="removed",e.ADD="added",e.EMPTY="empty",e))(k||{});const re="<code-diff-modified>",ae="</code-diff-modified>",po=re.replace("<","<").replace(">",">"),mo=ae.replace("<","<").replace(">",">"),ve=e=>e===void 0?k.EQUAL:e.added?k.ADD:e.removed?k.DELETE:k.EQUAL,Be=(e,t,l="word")=>typeof e>"u"?t:typeof t>"u"?e:(l==="char"?en:nn)(e,t).filter(g=>ve(g)!==k.DELETE).map(g=>ve(g)===k.ADD?`${re}${g.value}${ae}`:g.value).join("");function Ct(e,t){const l=new we.diff_match_patch,g=l.diff_linesToChars_(e,t),u=g.chars1,o=g.chars2,n=g.lineArray,r=l.diff_main(u,o,!1);return l.diff_charsToLines_(r,n),r.map(a=>{const[s,i]=a;return{count:i.trim().split(`
- `).length,value:i,removed:s===we.DIFF_DELETE,added:s===we.DIFF_INSERT}})}const te=(e,t)=>{if(!t.match(new RegExp(`(${re}|${ae})`,"g")))return ne.highlight(t,{language:e}).value;let l=t;const g=t.replace(new RegExp(`(${re}|${ae})`,"g"),""),u=document.createElement("div");u.innerHTML=ne.highlight(g,{language:e}).value;let o=!1;const n=r=>{r.childNodes.forEach(a=>{if(a.nodeType===Node.ELEMENT_NODE&&n(a),a.nodeType===Node.TEXT_NODE){if(!a.textContent)return;let s=a.textContent,i="";for(o&&(i=i+re);s.length;){if(l.startsWith(re)){l=l.slice(re.length),i=i+re,o=!0;continue}if(l.startsWith(ae)){l=l.slice(ae.length),i=i+ae,o=!1;continue}const c=l.match(new RegExp(`(${re}|${ae})`)),f=c&&c.index?c.index:l.length,d=Math.min(f,s.length);i=i+l.substring(0,d),l=l.slice(d),s=s.slice(d)}o&&(i=i+ae),a.textContent=i}})};return n(u),u.innerHTML.replace(new RegExp(po,"g"),'<span class="x">').replace(new RegExp(mo,"g"),"</span>")};function jt(e){const t=(u,o)=>(u.match(new RegExp(o,"g"))||[]).length;let l=0,g=0;for(const u of e)u.added&&(l+=t(u.value.trim(),`
- `)+1),u.removed&&(g+=t(u.value.trim(),`
- `)+1);return{additionsNum:l,deletionsNum:g}}function _o(e,t,l="plaintext",g="word",u=10){var o;const n=()=>({type:k.EMPTY}),r=(b,p,_)=>({type:b,num:p,code:_}),a=Ct(e,t);let s=0,i=0,c=!1;const f=[],d={changes:f,stat:jt(a)};for(let b=0;b<a.length;b++){if(c){c=!1;continue}const[p,_]=[a[b],a[b+1]],[y,w]=[ve(p),ve(_)],v=p.value.replace(/\n$/,"").split(`
- `);if(_===void 0){for(const A of v){let N=n(),j=n();const L=te(l,A);y===k.EQUAL&&(s++,i++,N=r(k.EQUAL,s,L),j=r(k.EQUAL,i,L)),y===k.DELETE&&(s++,N=r(k.DELETE,s,L),j=n()),y===k.ADD&&(i++,N=n(),j=r(k.ADD,i,L)),f.push({left:N,right:j})}break}if(y===k.EQUAL)for(const A of v){s++,i++;const N=te(l,A);f.push({left:r(k.EQUAL,s,N),right:r(k.EQUAL,i,N)})}const S=_.value.replace(/\n$/,"").split(`
- `);if(y===k.DELETE){if(w===k.EQUAL)for(const A of v)s++,f.push({left:r(k.DELETE,s,te(l,A)),right:n()});if(w===k.ADD){c=!0;const A=Math.max(p.count,_.count);for(let N=0;N<A;N++){N<p.count&&s++,N<_.count&&i++;const[j,L]=[v[N],S[N]],H=v.length===S.length?Be(L,j,g):j,P=v.length===S.length?Be(j,L,g):L,$=N<p.count?r(k.DELETE,s,te(l,H)):n(),K=N<_.count?r(k.ADD,i,te(l,P)):n();f.push({left:$,right:K})}}}if(y===k.ADD)for(const A of v)i++,f.push({left:n(),right:r(k.ADD,i,te(l,A))})}if(e===t){for(let b=0;b<f.length;b++)f[b].fold=!1;return d}for(let b=0;b<f.length;b++){const p=f[b];if(p.left.type===k.DELETE||p.right.type===k.ADD){const[_,y]=[Math.max(b-u,0),Math.min(b+u+1,f.length)];for(let w=_;w<y;w++)f[w].fold=!1}p.fold===void 0&&(p.fold=!0)}const h=[];for(let b=0;b<f.length;b++){const p=f[b];if(p.fold===!1){h.push(p);continue}p.fold===!0&&((o=h[h.length-1])==null?void 0:o.fold)!==!0&&h.push(p)}return d.changes=h,d}function yo(e,t,l="plaintext",g="word",u=10){var o;const n=Ct(e,t);let r=0,a=0,s=!1;const i=[],c={changes:i,stat:jt(n)};for(let d=0;d<n.length;d++){if(s){s=!1;continue}const[h,b]=[n[d],n[d+1]],[p,_]=[ve(h),ve(b)],y=h.value.replace(/\n$/,"").split(`
- `);if(b===void 0){for(const v of y){p===k.EQUAL&&(r++,a++),p===k.DELETE&&r++,p===k.ADD&&a++;const S=te(l,v);i.push({type:p,code:S,addNum:p===k.DELETE?void 0:a,delNum:p===k.ADD?void 0:r})}break}if(p===k.EQUAL)for(const v of y){r++,a++;const S=te(l,v);i.push({type:k.EQUAL,code:S,delNum:r,addNum:a})}const w=b.value.replace(/\n$/,"").split(`
- `);if(p===k.DELETE)if(_===k.ADD&&y.length===w.length){for(let v=0;v<y.length;v++){const S=y[v],A=w[v];r++;const N=te(l,Be(A,S,g));i.push({type:k.DELETE,code:N,delNum:r})}for(let v=0;v<w.length;v++){const S=y[v],A=w[v];a++;const N=te(l,Be(S,A,g));i.push({type:k.ADD,code:N,addNum:a})}s=!0}else for(const v of y){r++;const S=te(l,v);i.push({type:k.DELETE,code:S,delNum:r})}if(p===k.ADD)for(const v of y){a++;const S=te(l,v);i.push({type:k.ADD,code:S,addNum:a})}}for(let d=0;d<i.length;d++){const h=i[d];if(h.type===k.DELETE||h.type===k.ADD){const[b,p]=[Math.max(d-u,0),Math.min(d+u+1,i.length)];for(let _=b;_<p;_++)i[_].fold=!1}h.fold===void 0&&(h.fold=!0)}if(e===t){for(let d=0;d<i.length;d++)i[d].fold=!1;return c}const f=[];for(let d=0;d<i.length;d++){const h=i[d];if(h.fold===!1){f.push(h);continue}h.fold===!0&&(d===0||((o=f[f.length-1])==null?void 0:o.fold)!==!0)&&f.push(h)}return c.changes=f,c}const vo={key:0},xo=R("td",{class:"blob-num blob-num-hunk"}," > ",-1),wo=R("td",{class:"blob-num blob-num-hunk"}," > ",-1),ko=R("td",{class:"blob-code blob-code-hunk",align:"left"}," ⋯ ",-1),Eo=[xo,wo,ko],No={key:1},Mo=["data-code-marker","innerHTML"],Do=xe({__name:"UnifiedLine",props:{line:null},setup(e){const t=l=>l===k.DELETE?"-":l===k.ADD?"+":"";return(l,g)=>e.line.fold?(F(),X("tr",vo,Eo)):(F(),X("tr",No,[R("td",{class:ye(["blob-num",{"blob-num-deletion":e.line.type===E(k).DELETE,"blob-num-addition":e.line.type===E(k).ADD,"blob-num-context":e.line.type===E(k).EQUAL}])},Z(e.line.delNum),3),R("td",{class:ye(["blob-num",{"blob-num-deletion":e.line.type===E(k).DELETE,"blob-num-addition":e.line.type===E(k).ADD,"blob-num-context":e.line.type===E(k).EQUAL}])},Z(e.line.addNum),3),R("td",{class:ye(["blob-code",{"blob-code-deletion":e.line.type===E(k).DELETE,"blob-code-addition":e.line.type===E(k).ADD,"blob-code-context":e.line.type===E(k).EQUAL}])},[R("span",{class:"blob-code-inner blob-code-marker","data-code-marker":t(e.line.type),innerHTML:e.line.code},null,8,Mo)],2)]))}}),Ao={class:"diff-table"},So=xe({__name:"UnifiedViewer",props:{diffChange:null},setup(e){return(t,l)=>(F(),X("table",Ao,[R("tbody",null,[(F(!0),X(_e,null,Ge(e.diffChange,(g,u)=>(F(),fe(Do,{key:u,line:g},null,8,["line"]))),128))])]))}}),Lo={key:0},Oo=R("td",{class:"blob-num blob-num-hunk",colspan:"1"}," > ",-1),To=R("td",{class:"blob-code blob-code-inner blob-code-hunk",colspan:"3",align:"left"}," ⋯ ",-1),Co=[Oo,To],jo={key:1},Ro=R("td",{class:"blob-num blob-num-empty empty-cell"},null,-1),Io=R("td",{class:"blob-code blob-code-empty empty-cell"},null,-1),Bo=["data-code-marker","innerHTML"],$o=xe({__name:"SplitLine",props:{splitLine:null},setup(e){const t=l=>l===k.DELETE?"-":l===k.ADD?"+":"";return(l,g)=>e.splitLine.fold?(F(),X("tr",Lo,Co)):(F(),X("tr",jo,[(F(!0),X(_e,null,Ge([e.splitLine.left,e.splitLine.right],u=>(F(),X(_e,null,[u.type===E(k).EMPTY?(F(),X(_e,{key:0},[Ro,Io],64)):(F(),X(_e,{key:1},[R("td",{class:ye(["blob-num",{"blob-num-deletion":u.type===E(k).DELETE,"blob-num-addition":u.type===E(k).ADD,"blob-num-context":u.type===E(k).EQUAL}])},Z(u.num),3),R("td",{class:ye(["blob-code",{"blob-code-deletion":u.type===E(k).DELETE,"blob-code-addition":u.type===E(k).ADD,"blob-code-context":u.type===E(k).EQUAL}])},[R("span",{class:"blob-code-inner blob-code-marker","data-code-marker":t(u.type),innerHTML:u.code},null,8,Bo)],2)],64))],64))),256))]))}}),Po={class:"file-diff-split diff-table"},zo=R("colgroup",null,[R("col",{width:"44"}),R("col"),R("col",{width:"44"}),R("col")],-1),Uo=xe({__name:"SplitViewer",props:{diffChange:null},setup(e){return(t,l)=>(F(),X("table",Po,[zo,R("tbody",null,[(F(!0),X(_e,null,Ge(e.diffChange,(g,u)=>(F(),fe($o,{key:u,"split-line":g},null,8,["split-line"]))),128))])]))}}),Ho={class:"file-header"},Fo={class:"file-info"},Ko={class:"filename"},Zo={class:"diff-stat"},qo={class:"diff-stat-added"},Go={class:"diff-stat-deleted",style:{"margin-left":"8px"}},Qo=xe({__name:"CodeDiff",props:{newString:null,oldString:null,language:{default:"plaintext"},context:{default:10},diffStyle:{default:"word"},outputFormat:{default:"line-by-line"},trim:{type:Boolean,default:!1},noDiffLineFeed:{type:Boolean,default:!1},maxHeight:{default:void 0},filename:{default:void 0}},setup(e){const t=e,l=Le(()=>t.outputFormat==="line-by-line"),g=Le(()=>{const n=t.trim?t.oldString.trim():t.oldString;return t.noDiffLineFeed?n.replace(/(\r\n)/g,`
- `):n}),u=Le(()=>{const n=t.trim?t.newString.trim():t.newString;return t.noDiffLineFeed?n.replace(/(\r\n)/g,`
- `):n}),o=Le(()=>l.value?yo(g.value,u.value,t.language,t.diffStyle,t.context):_o(g.value,u.value,t.language,t.diffStyle,t.context));return(n,r)=>(F(),X("div",{class:"code-diff-view",style:Zt({maxHeight:e.maxHeight})},[R("div",Ho,[R("div",Fo,[R("span",Ko,Z(e.filename),1),R("span",Zo,[R("span",qo,"+"+Z(E(o).stat.additionsNum)+" additions",1),R("span",Go,"-"+Z(E(o).stat.deletionsNum)+" deletions",1)])])]),E(l)?(F(),fe(So,{key:0,"diff-change":E(o).changes},null,8,["diff-change"])):(F(),fe(Uo,{key:1,"diff-change":E(o).changes},null,8,["diff-change"]))],4))}}),Wo={class:"title"},Xo={class:"diff-box"},Jo={class:"diff-box-title"},Vo={class:"table-header-operate-text"},Yo=xe({__name:"info",setup(e){const t=Qt("baTable"),{t:l}=Ht(),g=u=>{Wt.confirm(l("security.sensitiveDataLog.Are you sure you want to rollback the record?"),"",{confirmButtonText:l("security.sensitiveDataLog.RollBACK"),cancelButtonText:l("Cancel")}).then(()=>{Xt([u]).then(()=>{t.toggleForm(),t.onTableHeaderAction("refresh",{})})}).catch(()=>{})};return(u,o)=>{const n=be("el-descriptions-item"),r=be("el-descriptions"),a=be("el-scrollbar"),s=be("Icon"),i=be("el-button"),c=be("el-dialog"),f=Oe("drag"),d=Oe("zoom"),h=Oe("loading"),b=Oe("blur");return F(),fe(c,{class:"ba-operate-dialog","model-value":!!E(t).form.operate,onClose:E(t).toggleForm},{header:Q(()=>[Fe((F(),X("div",Wo,[ee(Z(E(l)("info")),1)])),[[f,[".ba-operate-dialog",".el-dialog__header"]],[d,".ba-operate-dialog"]])]),footer:Q(()=>[Fe((F(),fe(i,{onClick:o[0]||(o[0]=p=>g(E(t).form.extend.info.id)),type:"success"},{default:Q(()=>[Y(s,{size:"16",color:"#ffffff",name:"fa fa-sign-in"}),R("span",Vo,Z(E(l)("security.sensitiveDataLog.RollBACK")),1)]),_:1})),[[b]])]),default:Q(()=>[Fe((F(),fe(a,{class:"ba-table-form-scrollbar"},{default:Q(()=>[R("div",{class:ye(["ba-operate-form","ba-"+E(t).form.operate+"-form"])},[E(qt)(E(t).form.extend.info)?Gt("",!0):(F(),fe(r,{key:0,column:2,border:""},{default:Q(()=>[Y(n,{label:E(l)("id")},{default:Q(()=>[ee(Z(E(t).form.extend.info.id),1)]),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.Operation administrator")},{default:Q(()=>{var p,_;return[ee(Z(((p=E(t).form.extend.info.admin)==null?void 0:p.nickname)+"("+((_=E(t).form.extend.info.admin)==null?void 0:_.username)+")"),1)]}),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.Rule name")},{default:Q(()=>{var p;return[ee(Z((p=E(t).form.extend.info.sensitive)==null?void 0:p.name),1)]}),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.data sheet")},{default:Q(()=>[ee(Z(E(t).form.extend.info.data_table),1)]),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.Modification time")},{default:Q(()=>[ee(Z(E(Ft)(E(t).form.extend.info.createtime)),1)]),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.Operator IP")},{default:Q(()=>[ee(Z(E(t).form.extend.info.ip),1)]),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.Data table primary key")},{default:Q(()=>[ee(Z(E(t).form.extend.info.primary_key+"="+E(t).form.extend.info.id_value),1)]),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.Modified item")},{default:Q(()=>[ee(Z(E(t).form.extend.info.data_field+(E(t).form.extend.info.data_comment?"("+E(t).form.extend.info.data_comment+")":"")),1)]),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.Before modification"),"label-class-name":"color-red"},{default:Q(()=>[ee(Z(E(t).form.extend.info.before),1)]),_:1},8,["label"]),Y(n,{label:E(l)("security.sensitiveDataLog.After modification"),"label-class-name":"color-red"},{default:Q(()=>[ee(Z(E(t).form.extend.info.after),1)]),_:1},8,["label"]),Y(n,{width:120,span:2,label:"User Agent"},{default:Q(()=>[ee(Z(E(t).form.extend.info.useragent),1)]),_:1})]),_:1})),R("div",Xo,[R("div",Jo,Z(E(l)("security.sensitiveDataLog.Modification comparison")),1),Y(E(Qo),{diffStyle:"char","old-string":E(t).form.extend.info.before??"","new-string":E(t).form.extend.info.after??""},null,8,["old-string","new-string"])])],2)]),_:1})),[[h,E(t).form.loading]])]),_:1},8,["model-value","onClose"])}}});const er=Kt(Yo,[["__scopeId","data-v-9083b6df"]]),ar=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"}));export{er as I,ar as a,rr as i,Xt as r};
|