diff --git a/dist/assets/index-5380a742.css b/dist/assets/index-5380a742.css new file mode 100644 index 0000000..9241b73 --- /dev/null +++ b/dist/assets/index-5380a742.css @@ -0,0 +1 @@ +html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}@media (prefers-color-scheme: dark){.wmde-markdown,.wmde-markdown-var{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149;--color-copied-active-bg: #2e9b33}}@media (prefers-color-scheme: light){.wmde-markdown,.wmde-markdown-var{color-scheme:light;--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-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e;--color-copied-active-bg: #2e9b33}}[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],body[data-color-mode*=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],body[data-color-mode*=light]{color-scheme:light;--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-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}.wmde-markdown{-webkit-text-size-adjust:100%;font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word;color:var(--color-fg-default);background-color:var(--color-canvas-default)}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{display:inline-block;border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{box-sizing:content-box;overflow:hidden;background:transparent;border:0;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default)}.wmde-markdown input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:before{display:table;content:""}.wmde-markdown hr:after{display:table;clear:both;content:""}.wmde-markdown table{border-spacing:0;border-collapse:collapse;display:block;width:-webkit-max-content;width:max-content;max-width:100%}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>*:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-default);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:var(--color-copied-active-bg);color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.wmde-markdown .highlight-line{background-color:var(--color-neutral-muted)}.wmde-markdown .code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.wmde-markdown .token.comment,.wmde-markdown .token.prolog,.wmde-markdown .token.doctype,.wmde-markdown .token.cdata{color:var(--color-prettylights-syntax-comment)}.wmde-markdown .token.namespace{opacity:.7}.wmde-markdown .token.property,.wmde-markdown .token.tag,.wmde-markdown .token.selector,.wmde-markdown .token.constant,.wmde-markdown .token.symbol,.wmde-markdown .token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.wmde-markdown .token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.wmde-markdown .token.property-access,.wmde-markdown .token.operator,.wmde-markdown .token.boolean,.wmde-markdown .token.number,.wmde-markdown .token.selector .token.class,.wmde-markdown .token.attr-name,.wmde-markdown .token.string,.wmde-markdown .token.char,.wmde-markdown .token.builtin{color:var(--color-prettylights-syntax-constant)}.wmde-markdown .token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.wmde-markdown .code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.wmde-markdown .token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.wmde-markdown .code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.wmde-markdown .token.variable{color:var(--color-prettylights-syntax-constant)}.wmde-markdown .token.entity,.wmde-markdown .token.url,.wmde-markdown .language-css .token.string,.wmde-markdown .style .token.string,.wmde-markdown .token.color,.wmde-markdown .token.atrule,.wmde-markdown .token.attr-value,.wmde-markdown .token.function,.wmde-markdown .token.class-name{color:var(--color-prettylights-syntax-string)}.wmde-markdown .token.rule,.wmde-markdown .token.regex,.wmde-markdown .token.important,.wmde-markdown .token.keyword{color:var(--color-prettylights-syntax-keyword)}.wmde-markdown .token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.wmde-markdown .token.important,.wmde-markdown .token.bold{font-weight:700}.wmde-markdown .token.italic{font-style:italic}.wmde-markdown .token.entity{cursor:help}.w-md-editor-area{overflow:auto;border-radius:5px}.w-md-editor-text{min-height:100%;position:relative;text-align:left;white-space:pre-wrap;word-break:keep-all;overflow-wrap:break-word;box-sizing:border-box;padding:10px;margin:0;font-size:14px!important;line-height:18px!important;font-variant-ligatures:common-ligatures}.w-md-editor-text-pre,.w-md-editor-text-input,.w-md-editor-text>.w-md-editor-text-pre{margin:0;border:0;background:none;box-sizing:inherit;display:inherit;font-family:inherit;font-family:var(--md-editor-font-family)!important;font-size:inherit;font-style:inherit;font-variant-ligatures:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;-moz-tab-size:inherit;tab-size:inherit;text-indent:inherit;text-rendering:inherit;text-transform:inherit;white-space:inherit;overflow-wrap:inherit;word-break:inherit;word-break:normal;padding:0}.w-md-editor-text-pre{position:relative;margin:0!important;pointer-events:none;background-color:transparent!important}.w-md-editor-text-pre>code{padding:0!important;font-family:var(--md-editor-font-family)!important;font-size:14px!important;line-height:18px!important}.w-md-editor-text-input{position:absolute;top:0;left:0;height:100%;width:100%;resize:none;color:inherit;overflow:hidden;outline:0;padding:inherit;-webkit-font-smoothing:antialiased;-webkit-text-fill-color:transparent}.w-md-editor-text-input:empty{-webkit-text-fill-color:inherit!important}.w-md-editor-text-pre,.w-md-editor-text-input{word-wrap:pre;word-break:break-word;white-space:pre-wrap}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.w-md-editor-text-input{color:transparent!important}.w-md-editor-text-input::selection{background-color:#accef7!important;color:transparent!important}}.w-md-editor-text-pre .punctuation{color:var(--color-prettylights-syntax-comment, #8b949e)!important}.w-md-editor-text-pre .token.url,.w-md-editor-text-pre .token.content{color:var(--color-prettylights-syntax-constant, #0550ae)!important}.w-md-editor-text-pre .token.title.important{color:var(--color-prettylights-syntax-markup-bold, #24292f)}.w-md-editor-text-pre .token.code-block .function{color:var(--color-prettylights-syntax-entity, #8250df)}.w-md-editor-text-pre .token.bold{font-weight:unset!important}.w-md-editor-text-pre .token.title{line-height:unset!important;font-size:unset!important;font-weight:unset!important}.w-md-editor-text-pre .token.code.keyword{color:var(--color-prettylights-syntax-constant, #0550ae)!important}.w-md-editor-text-pre .token.strike,.w-md-editor-text-pre .token.strike .content{color:var(--color-prettylights-syntax-markup-deleted-text, #82071e)!important}.w-md-editor-toolbar-child{position:absolute;border-radius:3px;box-shadow:0 0 0 1px var(--md-editor-box-shadow-color),0 0 0 var(--md-editor-box-shadow-color),0 1px 1px var(--md-editor-box-shadow-color);background-color:var(--md-editor-background-color);z-index:1;display:none}.w-md-editor-toolbar-child.active{display:block}.w-md-editor-toolbar-child .w-md-editor-toolbar{border-bottom:0;padding:3px;border-radius:3px}.w-md-editor-toolbar-child .w-md-editor-toolbar ul>li{display:block}.w-md-editor-toolbar-child .w-md-editor-toolbar ul>li button{width:-webkit-fill-available;height:initial;box-sizing:border-box;padding:3px 4px 2px;margin:0}.w-md-editor-toolbar{border-bottom:1px solid var(--md-editor-box-shadow-color);background-color:var(--md-editor-background-color);padding:3px;display:flex;justify-content:space-between;align-items:center;border-radius:3px 3px 0 0;-webkit-user-select:none;user-select:none;flex-wrap:wrap}.w-md-editor-toolbar.bottom{border-bottom:0px;border-top:1px solid var(--md-editor-box-shadow-color);border-radius:0 0 3px 3px}.w-md-editor-toolbar ul,.w-md-editor-toolbar li{margin:0;padding:0;list-style:none;line-height:initial}.w-md-editor-toolbar li{display:inline-block;font-size:14px}.w-md-editor-toolbar li+li{margin:0}.w-md-editor-toolbar li>button{border:none;height:20px;line-height:14px;background:none;padding:4px;margin:0 1px;border-radius:2px;text-transform:none;font-weight:400;overflow:visible;outline:none;cursor:pointer;transition:all .3s;white-space:nowrap;color:var(--color-fg-default)}.w-md-editor-toolbar li>button:hover,.w-md-editor-toolbar li>button:focus{background-color:var(--color-neutral-muted);color:var(--color-accent-fg)}.w-md-editor-toolbar li>button:active{background-color:var(--color-neutral-muted);color:var(--color-danger-fg)}.w-md-editor-toolbar li>button:disabled{color:var(--md-editor-box-shadow-color);cursor:not-allowed}.w-md-editor-toolbar li>button:disabled:hover{background-color:transparent;color:var(--md-editor-box-shadow-color)}.w-md-editor-toolbar li.active>button{color:var(--color-accent-fg);background-color:var(--color-neutral-muted)}.w-md-editor-toolbar-divider{height:14px;width:1px;margin:-3px 3px 0!important;vertical-align:middle;background-color:var(--md-editor-box-shadow-color)}.w-md-editor-bar{position:absolute;cursor:s-resize;right:0;bottom:0;margin-top:-11px;margin-right:0;width:14px;z-index:3;height:10px;border-radius:0 0 3px;-webkit-user-select:none;user-select:none}.w-md-editor-bar svg{display:block;margin:0 auto}.w-md-editor{text-align:left;border-radius:3px;padding-bottom:1px;position:relative;color:var(--color-fg-default);--md-editor-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;--md-editor-background-color: var(--color-canvas-default, #ffffff);--md-editor-box-shadow-color: var(--color-border-default, #d0d7de);box-shadow:0 0 0 1px var(--md-editor-box-shadow-color),0 0 0 var(--md-editor-box-shadow-color),0 1px 1px var(--md-editor-box-shadow-color);background-color:var(--md-editor-background-color);font-family:Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;flex-direction:column}.w-md-editor.w-md-editor-rtl{direction:rtl!important;text-align:right!important}.w-md-editor.w-md-editor-rtl .w-md-editor-preview{right:unset!important;left:0;text-align:right!important;box-shadow:inset -1px 0 0 0 var(--md-editor-box-shadow-color)}.w-md-editor.w-md-editor-rtl .w-md-editor-text{text-align:right!important}.w-md-editor-toolbar{height:-webkit-fit-content;height:fit-content}.w-md-editor-content{height:100%;overflow:auto;position:relative;border-radius:0 0 3px}.w-md-editor .copied{display:none!important}.w-md-editor-input{width:50%;height:100%}.w-md-editor-text-pre>code{word-break:break-word!important;white-space:pre-wrap!important}.w-md-editor-preview{width:50%;box-sizing:border-box;box-shadow:inset 1px 0 0 0 var(--md-editor-box-shadow-color);position:absolute;padding:10px 20px;overflow:auto;top:0;right:0;bottom:0;border-radius:0 0 5px;display:flex;flex-direction:column}.w-md-editor-preview .anchor{display:none}.w-md-editor-preview .contains-task-list li.task-list-item{list-style:none}.w-md-editor-show-preview .w-md-editor-input{width:0%;overflow:hidden;background-color:var(--md-editor-background-color)}.w-md-editor-show-preview .w-md-editor-preview{width:100%;box-shadow:inset 0 0}.w-md-editor-show-edit .w-md-editor-input{width:100%}.w-md-editor-show-edit .w-md-editor-preview{width:0%;padding:0}.w-md-editor-fullscreen{overflow:hidden;position:fixed;z-index:99999;top:0;left:0;right:0;bottom:0;height:100%!important}.w-md-editor-fullscreen .w-md-editor-content{height:100%} diff --git a/dist/assets/index-813fbcca.js b/dist/assets/index-813fbcca.js new file mode 100644 index 0000000..6f0b20f --- /dev/null +++ b/dist/assets/index-813fbcca.js @@ -0,0 +1,1349 @@ +var h_e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Wyn=h_e((wd,Td)=>{function c5(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const FO=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Zu},get Circle(){return x9t},get Ellipse(){return E9t},get Image(){return S9t},get Line(){return C9t},get Marker(){return M9t},get Path(){return tj},get Polygon(){return H9t},get Polyline(){return j9t},get Rect(){return W9t},get Text(){return G9t}},Symbol.toStringTag,{value:"Module"})),BO=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Qs},get Circle(){return J9t},get Dom(){return ezt},get Ellipse(){return tzt},get Image(){return nzt},get Line(){return rzt},get Marker(){return azt},get Path(){return izt},get Polygon(){return ozt},get Polyline(){return lzt},get Rect(){return uzt},get Text(){return pzt}},Symbol.toStringTag,{value:"Module"}));(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zO(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var Nue={exports:{}},HO={},Due={exports:{}},nr={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var sS=Symbol.for("react.element"),g_e=Symbol.for("react.portal"),m_e=Symbol.for("react.fragment"),v_e=Symbol.for("react.strict_mode"),y_e=Symbol.for("react.profiler"),b_e=Symbol.for("react.provider"),x_e=Symbol.for("react.context"),E_e=Symbol.for("react.forward_ref"),S_e=Symbol.for("react.suspense"),C_e=Symbol.for("react.memo"),w_e=Symbol.for("react.lazy"),IY=Symbol.iterator;function T_e(e){return e===null||typeof e!="object"?null:(e=IY&&e[IY]||e["@@iterator"],typeof e=="function"?e:null)}var Mue={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$ue=Object.assign,Lue={};function iy(e,t,n){this.props=e,this.context=t,this.refs=Lue,this.updater=n||Mue}iy.prototype.isReactComponent={};iy.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};iy.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pue(){}Pue.prototype=iy.prototype;function d5(e,t,n){this.props=e,this.context=t,this.refs=Lue,this.updater=n||Mue}var f5=d5.prototype=new Pue;f5.constructor=d5;$ue(f5,iy.prototype);f5.isPureReactComponent=!0;var OY=Array.isArray,Fue=Object.prototype.hasOwnProperty,p5={current:null},Bue={key:!0,ref:!0,__self:!0,__source:!0};function zue(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Fue.call(t,r)&&!Bue.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1>>1,j=P[D];if(0>>1;Da(G,F))Wa(Y,G)?(P[D]=Y,P[W]=F,D=W):(P[D]=G,P[V]=F,D=V);else if(Wa(Y,F))P[D]=Y,P[W]=F,D=W;else break e}}return B}function a(P,B){var F=P.sortIndex-B.sortIndex;return F!==0?F:P.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(P){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=P)r(u),B.sortIndex=B.expirationTime,t(s,B);else break;B=n(u)}}function E(P){if(m=!1,x(P),!h)if(n(s)!==null)h=!0,$(S);else{var B=n(u);B!==null&&k(E,B.startTime-P)}}function S(P,B){h=!1,m&&(m=!1,y(I),I=-1),p=!0;var F=f;try{for(x(B),d=n(s);d!==null&&(!(d.expirationTime>B)||P&&!O());){var D=d.callback;if(typeof D=="function"){d.callback=null,f=d.priorityLevel;var j=D(d.expirationTime<=B);B=e.unstable_now(),typeof j=="function"?d.callback=j:d===n(s)&&r(s),x(B)}else r(s);d=n(s)}if(d!==null)var z=!0;else{var V=n(u);V!==null&&k(E,V.startTime-B),z=!1}return z}finally{d=null,f=F,p=!1}}var C=!1,w=null,I=-1,T=5,A=-1;function O(){return!(e.unstable_now()-AP||125D?(P.sortIndex=F,t(u,P),n(s)===null&&P===n(u)&&(m?(y(I),I=-1):m=!0,k(E,F-D))):(P.sortIndex=j,t(s,P),h||p||(h=!0,$(S))),P},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(P){var B=f;return function(){var F=f;f=B;try{return P.apply(this,arguments)}finally{f=F}}}})(Vue);Uue.exports=Vue;var L_e=Uue.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Wue=g,es=L_e;function ht(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Y$=Object.prototype.hasOwnProperty,P_e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,RY={},_Y={};function F_e(e){return Y$.call(_Y,e)?!0:Y$.call(RY,e)?!1:P_e.test(e)?_Y[e]=!0:(RY[e]=!0,!1)}function B_e(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function z_e(e,t,n,r){if(t===null||typeof t>"u"||B_e(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Go(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ao={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ao[e]=new Go(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ao[t]=new Go(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ao[e]=new Go(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ao[e]=new Go(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ao[e]=new Go(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ao[e]=new Go(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ao[e]=new Go(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ao[e]=new Go(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ao[e]=new Go(e,5,!1,e.toLowerCase(),null,!1,!1)});var g5=/[\-:]([a-z])/g;function m5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(g5,m5);ao[t]=new Go(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g5,m5);ao[t]=new Go(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g5,m5);ao[t]=new Go(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ao[e]=new Go(e,1,!1,e.toLowerCase(),null,!1,!1)});ao.xlinkHref=new Go("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ao[e]=new Go(e,1,!1,e.toLowerCase(),null,!0,!0)});function v5(e,t,n,r){var a=ao.hasOwnProperty(t)?ao[t]:null;(a!==null?a.type!==0:r||!(2l||a[o]!==i[l]){var s=` +`+a[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{vN=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?v1(e):""}function H_e(e){switch(e.tag){case 5:return v1(e.type);case 16:return v1("Lazy");case 13:return v1("Suspense");case 19:return v1("SuspenseList");case 0:case 2:case 15:return e=yN(e.type,!1),e;case 11:return e=yN(e.type.render,!1),e;case 1:return e=yN(e.type,!0),e;default:return""}}function Z$(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case dv:return"Fragment";case cv:return"Portal";case K$:return"Profiler";case y5:return"StrictMode";case X$:return"Suspense";case Q$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yue:return(e.displayName||"Context")+".Consumer";case que:return(e._context.displayName||"Context")+".Provider";case b5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case x5:return t=e.displayName||null,t!==null?t:Z$(e.type)||"Memo";case Sf:t=e._payload,e=e._init;try{return Z$(e(t))}catch{}}return null}function j_e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z$(t);case 8:return t===y5?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gp(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U_e(e){var t=Xue(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sw(e){e._valueTracker||(e._valueTracker=U_e(e))}function Que(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xue(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _A(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function J$(e,t){var n=t.checked;return wa({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function DY(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gp(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Zue(e,t){t=t.checked,t!=null&&v5(e,"checked",t,!1)}function eL(e,t){Zue(e,t);var n=gp(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tL(e,t.type,n):t.hasOwnProperty("defaultValue")&&tL(e,t.type,gp(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MY(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tL(e,t,n){(t!=="number"||_A(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var y1=Array.isArray;function Mv(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=uw.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bx(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var z1={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},V_e=["Webkit","ms","Moz","O"];Object.keys(z1).forEach(function(e){V_e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),z1[t]=z1[e]})});function nce(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||z1.hasOwnProperty(e)&&z1[e]?(""+t).trim():t+"px"}function rce(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=nce(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var W_e=wa({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function aL(e,t){if(t){if(W_e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ht(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ht(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ht(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ht(62))}}function iL(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oL=null;function E5(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lL=null,$v=null,Lv=null;function PY(e){if(e=fS(e)){if(typeof lL!="function")throw Error(ht(280));var t=e.stateNode;t&&(t=GO(t),lL(e.stateNode,e.type,t))}}function ace(e){$v?Lv?Lv.push(e):Lv=[e]:$v=e}function ice(){if($v){var e=$v,t=Lv;if(Lv=$v=null,PY(e),t)for(e=0;e>>=0,e===0?32:31-(nNe(e)/rNe|0)|0}var cw=64,dw=4194304;function b1(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $A(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?r=b1(l):(i&=o,i!==0&&(r=b1(i)))}else o=n&~a,o!==0?r=b1(o):i!==0&&(r=b1(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function cS(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wu(t),e[t]=n}function lNe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=j1),GY=String.fromCharCode(32),qY=!1;function Tce(e,t){switch(e){case"keyup":return $Ne.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ace(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fv=!1;function PNe(e,t){switch(e){case"compositionend":return Ace(t);case"keypress":return t.which!==32?null:(qY=!0,GY);case"textInput":return e=t.data,e===GY&&qY?null:e;default:return null}}function FNe(e,t){if(fv)return e==="compositionend"||!k5&&Tce(e,t)?(e=Cce(),ST=A5=Pf=null,fv=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=QY(n)}}function Rce(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rce(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _ce(){for(var e=window,t=_A();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_A(e.document)}return t}function R5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function qNe(e){var t=_ce(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rce(n.ownerDocument.documentElement,n)){if(r!==null&&R5(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=ZY(n,i);var o=ZY(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,pv=null,pL=null,V1=null,hL=!1;function JY(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hL||pv==null||pv!==_A(r)||(r=pv,"selectionStart"in r&&R5(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),V1&&Wx(V1,r)||(V1=r,r=FA(pL,"onSelect"),0mv||(e.current=xL[mv],xL[mv]=null,mv--)}function na(e,t){mv++,xL[mv]=e.current,e.current=t}var mp={},Ro=Dp(mp),fl=Dp(!1),lg=mp;function h0(e,t){var n=e.type.contextTypes;if(!n)return mp;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function pl(e){return e=e.childContextTypes,e!=null}function zA(){da(fl),da(Ro)}function oK(e,t,n){if(Ro.current!==mp)throw Error(ht(168));na(Ro,t),na(fl,n)}function zce(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(ht(108,j_e(e)||"Unknown",a));return wa({},n,r)}function HA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mp,lg=Ro.current,na(Ro,e),na(fl,fl.current),!0}function lK(e,t,n){var r=e.stateNode;if(!r)throw Error(ht(169));n?(e=zce(e,t,lg),r.__reactInternalMemoizedMergedChildContext=e,da(fl),da(Ro),na(Ro,e)):da(fl),na(fl,n)}var cd=null,qO=!1,NN=!1;function Hce(e){cd===null?cd=[e]:cd.push(e)}function iDe(e){qO=!0,Hce(e)}function Mp(){if(!NN&&cd!==null){NN=!0;var e=0,t=_r;try{var n=cd;for(_r=1;e>=o,a-=o,md=1<<32-wu(t)+a|n<I?(T=w,w=null):T=w.sibling;var A=f(y,w,x[I],E);if(A===null){w===null&&(w=T);break}e&&w&&A.alternate===null&&t(y,w),b=i(A,b,I),C===null?S=A:C.sibling=A,C=A,w=T}if(I===x.length)return n(y,w),ya&&sh(y,I),S;if(w===null){for(;II?(T=w,w=null):T=w.sibling;var O=f(y,w,A.value,E);if(O===null){w===null&&(w=T);break}e&&w&&O.alternate===null&&t(y,w),b=i(O,b,I),C===null?S=O:C.sibling=O,C=O,w=T}if(A.done)return n(y,w),ya&&sh(y,I),S;if(w===null){for(;!A.done;I++,A=x.next())A=d(y,A.value,E),A!==null&&(b=i(A,b,I),C===null?S=A:C.sibling=A,C=A);return ya&&sh(y,I),S}for(w=r(y,w);!A.done;I++,A=x.next())A=p(w,y,I,A.value,E),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?I:A.key),b=i(A,b,I),C===null?S=A:C.sibling=A,C=A);return e&&w.forEach(function(R){return t(y,R)}),ya&&sh(y,I),S}function v(y,b,x,E){if(typeof x=="object"&&x!==null&&x.type===dv&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case lw:e:{for(var S=x.key,C=b;C!==null;){if(C.key===S){if(S=x.type,S===dv){if(C.tag===7){n(y,C.sibling),b=a(C,x.props.children),b.return=y,y=b;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Sf&&hK(S)===C.type){n(y,C.sibling),b=a(C,x.props),b.ref=_b(y,C,x),b.return=y,y=b;break e}n(y,C);break}else t(y,C);C=C.sibling}x.type===dv?(b=Wh(x.props.children,y.mode,E,x.key),b.return=y,y=b):(E=RT(x.type,x.key,x.props,null,y.mode,E),E.ref=_b(y,b,x),E.return=y,y=E)}return o(y);case cv:e:{for(C=x.key;b!==null;){if(b.key===C)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(y,b.sibling),b=a(b,x.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=zN(x,y.mode,E),b.return=y,y=b}return o(y);case Sf:return C=x._init,v(y,b,C(x._payload),E)}if(y1(x))return h(y,b,x,E);if(Ab(x))return m(y,b,x,E);yw(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(y,b.sibling),b=a(b,x),b.return=y,y=b):(n(y,b),b=BN(x,y.mode,E),b.return=y,y=b),o(y)):n(y,b)}return v}var m0=Kce(!0),Xce=Kce(!1),pS={},Sc=Dp(pS),Kx=Dp(pS),Xx=Dp(pS);function Rh(e){if(e===pS)throw Error(ht(174));return e}function B5(e,t){switch(na(Xx,t),na(Kx,e),na(Sc,pS),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rL(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rL(t,e)}da(Sc),na(Sc,t)}function v0(){da(Sc),da(Kx),da(Xx)}function Qce(e){Rh(Xx.current);var t=Rh(Sc.current),n=rL(t,e.type);t!==n&&(na(Kx,e),na(Sc,n))}function z5(e){Kx.current===e&&(da(Sc),da(Kx))}var Ea=Dp(0);function qA(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var DN=[];function H5(){for(var e=0;en?n:4,e(!0);var r=MN.transition;MN.transition={};try{e(!1),t()}finally{_r=n,MN.transition=r}}function pde(){return Ms().memoizedState}function uDe(e,t,n){var r=tp(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hde(e))gde(t,n);else if(n=Wce(e,t,n,r),n!==null){var a=jo();Tu(n,e,r,a),mde(n,t,r)}}function cDe(e,t,n){var r=tp(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hde(e))gde(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,Nu(l,o)){var s=t.interleaved;s===null?(a.next=a,P5(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}n=Wce(e,t,a,r),n!==null&&(a=jo(),Tu(n,e,r,a),mde(n,t,r))}}function hde(e){var t=e.alternate;return e===Ca||t!==null&&t===Ca}function gde(e,t){W1=YA=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mde(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,C5(e,n)}}var KA={readContext:Ds,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useInsertionEffect:yo,useLayoutEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useMutableSource:yo,useSyncExternalStore:yo,useId:yo,unstable_isNewReconciler:!1},dDe={readContext:Ds,useCallback:function(e,t){return sc().memoizedState=[e,t===void 0?null:t],e},useContext:Ds,useEffect:mK,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,AT(4194308,4,sde.bind(null,t,e),n)},useLayoutEffect:function(e,t){return AT(4194308,4,e,t)},useInsertionEffect:function(e,t){return AT(4,2,e,t)},useMemo:function(e,t){var n=sc();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sc();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=uDe.bind(null,Ca,e),[r.memoizedState,e]},useRef:function(e){var t=sc();return e={current:e},t.memoizedState=e},useState:gK,useDebugValue:G5,useDeferredValue:function(e){return sc().memoizedState=e},useTransition:function(){var e=gK(!1),t=e[0];return e=sDe.bind(null,e[1]),sc().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ca,a=sc();if(ya){if(n===void 0)throw Error(ht(407));n=n()}else{if(n=t(),ji===null)throw Error(ht(349));ug&30||ede(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,mK(nde.bind(null,r,i,e),[e]),r.flags|=2048,Jx(9,tde.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=sc(),t=ji.identifierPrefix;if(ya){var n=vd,r=md;n=(r&~(1<<32-wu(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qx++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[gc]=t,e[Yx]=r,Tde(e,t,!1,!1),t.stateNode=e;e:{switch(o=iL(n,r),n){case"dialog":sa("cancel",e),sa("close",e),a=r;break;case"iframe":case"object":case"embed":sa("load",e),a=r;break;case"video":case"audio":for(a=0;ab0&&(t.flags|=128,r=!0,Nb(i,!1),t.lanes=4194304)}else{if(!r)if(e=qA(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nb(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ya)return bo(t),null}else 2*ja()-i.renderingStartTime>b0&&n!==1073741824&&(t.flags|=128,r=!0,Nb(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ja(),t.sibling=null,n=Ea.current,na(Ea,r?n&1|2:n&1),t):(bo(t),null);case 22:case 23:return Z5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Hl&1073741824&&(bo(t),t.subtreeFlags&6&&(t.flags|=8192)):bo(t),null;case 24:return null;case 25:return null}throw Error(ht(156,t.tag))}function bDe(e,t){switch(N5(t),t.tag){case 1:return pl(t.type)&&zA(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return v0(),da(fl),da(Ro),H5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return z5(t),null;case 13:if(da(Ea),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ht(340));g0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return da(Ea),null;case 4:return v0(),null;case 10:return L5(t.type._context),null;case 22:case 23:return Z5(),null;case 24:return null;default:return null}}var xw=!1,To=!1,xDe=typeof WeakSet=="function"?WeakSet:Set,qt=null;function xv(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_a(e,t,r)}else n.current=null}function NL(e,t,n){try{n()}catch(r){_a(e,t,r)}}var TK=!1;function EDe(e,t){if(gL=LA,e=_ce(),R5(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||a!==0&&d.nodeType!==3||(l=o+a),d!==i||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===a&&(l=o),f===i&&++c===r&&(s=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(mL={focusedElem:e,selectionRange:n},LA=!1,qt=t;qt!==null;)if(t=qt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qt=e;else for(;qt!==null;){t=qt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,v=h.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:hu(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ht(163))}}catch(E){_a(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,qt=e;break}qt=t.return}return h=TK,TK=!1,h}function G1(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&NL(t,n,i)}a=a.next}while(a!==r)}}function XO(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function DL(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ode(e){var t=e.alternate;t!==null&&(e.alternate=null,Ode(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gc],delete t[Yx],delete t[bL],delete t[rDe],delete t[aDe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kde(e){return e.tag===5||e.tag===3||e.tag===4}function AK(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kde(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ML(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=BA));else if(r!==4&&(e=e.child,e!==null))for(ML(e,t,n),e=e.sibling;e!==null;)ML(e,t,n),e=e.sibling}function $L(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($L(e,t,n),e=e.sibling;e!==null;)$L(e,t,n),e=e.sibling}var Qi=null,gu=!1;function sf(e,t,n){for(n=n.child;n!==null;)Rde(e,t,n),n=n.sibling}function Rde(e,t,n){if(Ec&&typeof Ec.onCommitFiberUnmount=="function")try{Ec.onCommitFiberUnmount(jO,n)}catch{}switch(n.tag){case 5:To||xv(n,t);case 6:var r=Qi,a=gu;Qi=null,sf(e,t,n),Qi=r,gu=a,Qi!==null&&(gu?(e=Qi,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qi.removeChild(n.stateNode));break;case 18:Qi!==null&&(gu?(e=Qi,n=n.stateNode,e.nodeType===8?_N(e.parentNode,n):e.nodeType===1&&_N(e,n),Ux(e)):_N(Qi,n.stateNode));break;case 4:r=Qi,a=gu,Qi=n.stateNode.containerInfo,gu=!0,sf(e,t,n),Qi=r,gu=a;break;case 0:case 11:case 14:case 15:if(!To&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&NL(n,t,o),a=a.next}while(a!==r)}sf(e,t,n);break;case 1:if(!To&&(xv(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_a(n,t,l)}sf(e,t,n);break;case 21:sf(e,t,n);break;case 22:n.mode&1?(To=(r=To)||n.memoizedState!==null,sf(e,t,n),To=r):sf(e,t,n);break;default:sf(e,t,n)}}function IK(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xDe),t.forEach(function(r){var a=RDe.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function lu(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=ja()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*CDe(r/1960))-r,10e?16:e,Ff===null)var r=!1;else{if(e=Ff,Ff=null,ZA=0,yr&6)throw Error(ht(331));var a=yr;for(yr|=4,qt=e.current;qt!==null;){var i=qt,o=i.child;if(qt.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sja()-X5?Vh(e,0):K5|=n),hl(e,t)}function Fde(e,t){t===0&&(e.mode&1?(t=dw,dw<<=1,!(dw&130023424)&&(dw=4194304)):t=1);var n=jo();e=Dd(e,t),e!==null&&(cS(e,t,n),hl(e,n))}function kDe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fde(e,n)}function RDe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ht(314))}r!==null&&r.delete(t),Fde(e,n)}var Bde;Bde=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fl.current)ul=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ul=!1,vDe(e,t,n);ul=!!(e.flags&131072)}else ul=!1,ya&&t.flags&1048576&&jce(t,UA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;IT(e,t),e=t.pendingProps;var a=h0(t,Ro.current);Fv(t,n),a=U5(null,t,r,e,a,n);var i=V5();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pl(r)?(i=!0,HA(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,F5(t),a.updater=YO,t.stateNode=a,a._reactInternals=t,TL(t,r,e,n),t=OL(null,t,r,!0,i,n)):(t.tag=0,ya&&i&&_5(t),Fo(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(IT(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=NDe(r),e=hu(r,e),a){case 0:t=IL(null,t,r,e,n);break e;case 1:t=SK(null,t,r,e,n);break e;case 11:t=xK(null,t,r,e,n);break e;case 14:t=EK(null,t,r,hu(r.type,e),n);break e}throw Error(ht(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:hu(r,a),IL(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:hu(r,a),SK(e,t,r,a,n);case 3:e:{if(Sde(t),e===null)throw Error(ht(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Gce(e,t),GA(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=y0(Error(ht(423)),t),t=CK(e,t,r,n,a);break e}else if(r!==a){a=y0(Error(ht(424)),t),t=CK(e,t,r,n,a);break e}else for(Wl=Zf(t.stateNode.containerInfo.firstChild),Xl=t,ya=!0,xu=null,n=Xce(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(g0(),r===a){t=Md(e,t,n);break e}Fo(e,t,r,n)}t=t.child}return t;case 5:return Qce(t),e===null&&SL(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,vL(r,a)?o=null:i!==null&&vL(r,i)&&(t.flags|=32),Ede(e,t),Fo(e,t,o,n),t.child;case 6:return e===null&&SL(t),null;case 13:return Cde(e,t,n);case 4:return B5(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=m0(t,null,r,n):Fo(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:hu(r,a),xK(e,t,r,a,n);case 7:return Fo(e,t,t.pendingProps,n),t.child;case 8:return Fo(e,t,t.pendingProps.children,n),t.child;case 12:return Fo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,na(VA,r._currentValue),r._currentValue=o,i!==null)if(Nu(i.value,o)){if(i.children===a.children&&!fl.current){t=Md(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ad(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),CL(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ht(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),CL(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Fo(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Fv(t,n),a=Ds(a),r=r(a),t.flags|=1,Fo(e,t,r,n),t.child;case 14:return r=t.type,a=hu(r,t.pendingProps),a=hu(r.type,a),EK(e,t,r,a,n);case 15:return bde(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:hu(r,a),IT(e,t),t.tag=1,pl(r)?(e=!0,HA(t)):e=!1,Fv(t,n),Yce(t,r,a),TL(t,r,a,n),OL(null,t,r,!0,e,n);case 19:return wde(e,t,n);case 22:return xde(e,t,n)}throw Error(ht(156,t.tag))};function zde(e,t){return fce(e,t)}function _De(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ks(e,t,n,r){return new _De(e,t,n,r)}function eB(e){return e=e.prototype,!(!e||!e.isReactComponent)}function NDe(e){if(typeof e=="function")return eB(e)?1:0;if(e!=null){if(e=e.$$typeof,e===b5)return 11;if(e===x5)return 14}return 2}function np(e,t){var n=e.alternate;return n===null?(n=ks(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function RT(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")eB(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case dv:return Wh(n.children,a,i,t);case y5:o=8,a|=8;break;case K$:return e=ks(12,n,t,a|2),e.elementType=K$,e.lanes=i,e;case X$:return e=ks(13,n,t,a),e.elementType=X$,e.lanes=i,e;case Q$:return e=ks(19,n,t,a),e.elementType=Q$,e.lanes=i,e;case Kue:return ZO(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case que:o=10;break e;case Yue:o=9;break e;case b5:o=11;break e;case x5:o=14;break e;case Sf:o=16,r=null;break e}throw Error(ht(130,e==null?e:typeof e,""))}return t=ks(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Wh(e,t,n,r){return e=ks(7,e,r,t),e.lanes=n,e}function ZO(e,t,n,r){return e=ks(22,e,r,t),e.elementType=Kue,e.lanes=n,e.stateNode={isHidden:!1},e}function BN(e,t,n){return e=ks(6,e,null,t),e.lanes=n,e}function zN(e,t,n){return t=ks(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DDe(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xN(0),this.expirationTimes=xN(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xN(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function tB(e,t,n,r,a,i,o,l,s){return e=new DDe(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ks(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},F5(i),e}function MDe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vde)}catch(e){console.error(e)}}Vde(),jue.exports=os;var di=jue.exports;const tI=Or(di),Wde=c5({__proto__:null,default:tI},[di]);var Gde,$K=di;Gde=$K.createRoot,$K.hydrateRoot;class sy{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const tE=typeof window>"u"||"Deno"in window;function Ss(){}function BDe(e,t){return typeof e=="function"?e(t):e}function zL(e){return typeof e=="number"&&e>=0&&e!==1/0}function qde(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sv(e,t,n){return hS(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function zDe(e,t,n){return hS(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function wf(e,t,n){return hS(e)?[{...t,queryKey:e},n]:[e||{},t]}function LK(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(hS(o)){if(r){if(t.queryHash!==iB(o,t.options))return!1}else if(!nI(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof a<"u"&&a!==t.state.fetchStatus||i&&!i(t))}function PK(e,t){const{exact:n,fetching:r,predicate:a,mutationKey:i}=e;if(hS(i)){if(!t.options.mutationKey)return!1;if(n){if(_h(t.options.mutationKey)!==_h(i))return!1}else if(!nI(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function iB(e,t){return((t==null?void 0:t.queryKeyHashFn)||_h)(e)}function _h(e){return JSON.stringify(e,(t,n)=>HL(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function nI(e,t){return Yde(e,t)}function Yde(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Yde(e[n],t[n])):!1}function Kde(e,t){if(e===t)return e;const n=FK(e)&&FK(t);if(n||HL(e)&&HL(t)){const r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,o=n?[]:{};let l=0;for(let s=0;s"u")return!0;const n=t.prototype;return!(!BK(n)||!n.hasOwnProperty("isPrototypeOf"))}function BK(e){return Object.prototype.toString.call(e)==="[object Object]"}function hS(e){return Array.isArray(e)}function Xde(e){return new Promise(t=>{setTimeout(t,e)})}function zK(e){Xde(0).then(e)}function HDe(){if(typeof AbortController=="function")return new AbortController}function jL(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Kde(e,t):t}class jDe extends sy{constructor(){super(),this.setup=t=>{if(!tE&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const aI=new jDe,HK=["online","offline"];class UDe extends sy{constructor(){super(),this.setup=t=>{if(!tE&&window.addEventListener){const n=()=>t();return HK.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{HK.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const iI=new UDe;function VDe(e){return Math.min(1e3*2**e,3e4)}function rk(e){return(e??"online")==="online"?iI.isOnline():!0}class Qde{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function _T(e){return e instanceof Qde}function Zde(e){let t=!1,n=0,r=!1,a,i,o;const l=new Promise((v,y)=>{i=v,o=y}),s=v=>{r||(p(new Qde(v)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!aI.isFocused()||e.networkMode!=="always"&&!iI.isOnline(),f=v=>{r||(r=!0,e.onSuccess==null||e.onSuccess(v),a==null||a(),i(v))},p=v=>{r||(r=!0,e.onError==null||e.onError(v),a==null||a(),o(v))},h=()=>new Promise(v=>{a=y=>{const b=r||!d();return b&&v(y),b},e.onPause==null||e.onPause()}).then(()=>{a=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let v;try{v=e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(f).catch(y=>{var b,x;if(r)return;const E=(b=e.retry)!=null?b:3,S=(x=e.retryDelay)!=null?x:VDe,C=typeof S=="function"?S(n,y):S,w=E===!0||typeof E=="number"&&n{if(d())return h()}).then(()=>{t?p(y):m()})})};return rk(e.networkMode)?m():h().then(m),{promise:l,cancel:s,continue:()=>(a==null?void 0:a())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const oB=console;function WDe(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const a=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},i=c=>{t?e.push(c):zK(()=>{n(c)})},o=c=>(...d)=>{i(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&zK(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:a,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Da=WDe();class Jde{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zL(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(tE?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class GDe extends Jde{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||oB,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||qDe(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=jL(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Ss).catch(Ss):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!qde(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,a;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const o=HDe(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};s(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(s(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=c.fetchOptions)==null?void 0:a.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const f=p=>{if(_T(p)&&p.silent||this.dispatch({type:"error",error:p}),!_T(p)){var h,m,v,y;(h=(m=this.cache.config).onError)==null||h.call(m,p,this),(v=(y=this.cache.config).onSettled)==null||v.call(y,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Zde({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:p=>{var h,m,v,y;if(typeof p>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(h=(m=this.cache.config).onSuccess)==null||h.call(m,p,this),(v=(y=this.cache.config).onSettled)==null||v.call(y,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(p,h)=>{this.dispatch({type:"failed",failureCount:p,error:h})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var a,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=t.meta)!=null?a:null,fetchStatus:rk(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return _T(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Da.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function qDe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class YDe extends sy{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var a;const i=n.queryKey,o=(a=n.queryHash)!=null?a:iB(i,n);let l=this.get(o);return l||(l=new GDe({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Da.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=wf(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(a=>LK(r,a))}findAll(t,n){const[r]=wf(t,n);return Object.keys(r).length>0?this.queries.filter(a=>LK(r,a)):this.queries}notify(t){Da.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){Da.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Da.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class KDe extends Jde{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||oB,this.observers=[],this.state=t.state||efe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var w;return this.retryer=Zde({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(I,T)=>{this.dispatch({type:"failed",failureCount:I,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(w=this.options.retry)!=null?w:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,a,i,o,l,s,u,c;if(!n){var d,f,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const I=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,this.state.variables));I!==this.state.context&&this.dispatch({type:"loading",context:I,variables:this.state.variables})}const w=await t();return await((r=(a=this.mutationCache.config).onSuccess)==null?void 0:r.call(a,w,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,w,this.state.variables,this.state.context)),await((l=(s=this.mutationCache.config).onSettled)==null?void 0:l.call(s,w,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,w,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:w}),w}catch(w){try{var m,v,y,b,x,E,S,C;throw await((m=(v=this.mutationCache.config).onError)==null?void 0:m.call(v,w,this.state.variables,this.state.context,this)),await((y=(b=this.options).onError)==null?void 0:y.call(b,w,this.state.variables,this.state.context)),await((x=(E=this.mutationCache.config).onSettled)==null?void 0:x.call(E,void 0,w,this.state.variables,this.state.context,this)),await((S=(C=this.options).onSettled)==null?void 0:S.call(C,void 0,w,this.state.variables,this.state.context)),w}finally{this.dispatch({type:"error",error:w})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!rk(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Da.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function efe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class XDe extends sy{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const a=new KDe({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(a),a}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Da.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>PK(t,n))}findAll(t){return this.mutations.filter(n=>PK(t,n))}notify(t){Da.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Da.batch(()=>n.reduce((r,a)=>r.then(()=>a.continue().catch(Ss)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function UL(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,a,i,o;const l=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,s=(r=e.fetchOptions)==null||(a=r.meta)==null?void 0:a.fetchMore,u=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",d=(s==null?void 0:s.direction)==="backward",f=((i=e.state.data)==null?void 0:i.pages)||[],p=((o=e.state.data)==null?void 0:o.pageParams)||[];let h=p,m=!1;const v=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var w;if((w=e.signal)!=null&&w.aborted)m=!0;else{var I;(I=e.signal)==null||I.addEventListener("abort",()=>{m=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),b=(C,w,I,T)=>(h=T?[w,...h]:[...h,w],T?[I,...C]:[...C,I]),x=(C,w,I,T)=>{if(m)return Promise.reject("Cancelled");if(typeof I>"u"&&!w&&C.length)return Promise.resolve(C);const A={queryKey:e.queryKey,pageParam:I,meta:e.options.meta};v(A);const O=y(A);return Promise.resolve(O).then(N=>b(C,I,N,T))};let E;if(!f.length)E=x([]);else if(c){const C=typeof u<"u",w=C?u:VL(e.options,f);E=x(f,C,w)}else if(d){const C=typeof u<"u",w=C?u:tfe(e.options,f);E=x(f,C,w,!0)}else{h=[];const C=typeof e.options.getNextPageParam>"u";E=(l&&f[0]?l(f[0],0,f):!0)?x([],C,p[0]):Promise.resolve(b([],p[0],f[0]));for(let I=1;I{if(l&&f[I]?l(f[I],I,f):!0){const O=C?p[I]:VL(e.options,T);return x(T,C,O)}return Promise.resolve(b(T,p[I],f[I]))})}return E.then(C=>({pages:C,pageParams:h}))}}}}function VL(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function tfe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function QDe(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=VL(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function ZDe(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=tfe(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class jK{constructor(t={}){this.queryCache=t.queryCache||new YDe,this.mutationCache=t.mutationCache||new XDe,this.logger=t.logger||oB,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=aI.subscribe(()=>{aI.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=iI.subscribe(()=>{iI.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=wf(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const a=Sv(t,n,r),i=this.getQueryData(a.queryKey);return i?Promise.resolve(i):this.fetchQuery(a)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const a=r.data;return[n,a]})}setQueryData(t,n,r){const a=this.queryCache.find(t),i=a==null?void 0:a.state.data,o=BDe(n,i);if(typeof o>"u")return;const l=Sv(t),s=this.defaultQueryOptions(l);return this.queryCache.build(this,s).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return Da.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=wf(t,n),a=this.queryCache;Da.batch(()=>{a.findAll(r).forEach(i=>{a.remove(i)})})}resetQueries(t,n,r){const[a,i]=wf(t,n,r),o=this.queryCache,l={type:"active",...a};return Da.batch(()=>(o.findAll(a).forEach(s=>{s.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,n,r){const[a,i={}]=wf(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=Da.batch(()=>this.queryCache.findAll(a).map(l=>l.cancel(i)));return Promise.all(o).then(Ss).catch(Ss)}invalidateQueries(t,n,r){const[a,i]=wf(t,n,r);return Da.batch(()=>{var o,l;if(this.queryCache.findAll(a).forEach(u=>{u.invalidate()}),a.refetchType==="none")return Promise.resolve();const s={...a,type:(o=(l=a.refetchType)!=null?l:a.type)!=null?o:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,n,r){const[a,i]=wf(t,n,r),o=Da.batch(()=>this.queryCache.findAll(a).filter(s=>!s.isDisabled()).map(s=>{var u;return s.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:a.refetchPage}})}));let l=Promise.all(o).then(Ss);return i!=null&&i.throwOnError||(l=l.catch(Ss)),l}fetchQuery(t,n,r){const a=Sv(t,n,r),i=this.defaultQueryOptions(a);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Ss).catch(Ss)}fetchInfiniteQuery(t,n,r){const a=Sv(t,n,r);return a.behavior=UL(),this.fetchQuery(a)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Ss).catch(Ss)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(a=>_h(t)===_h(a.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>nI(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(a=>_h(t)===_h(a.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>nI(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=iB(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class nfe extends sy{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),UK(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return WL(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return WL(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),rI(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&VK(this.currentQuery,a,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==a||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==a||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return e4e(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ss)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),tE||this.currentResult.isStale||!zL(this.options.staleTime))return;const n=qde(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(tE||this.options.enabled===!1||!zL(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||aI.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,a=this.options,i=this.currentResult,o=this.currentResultState,l=this.currentResultOptions,s=t!==r,u=s?t.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:p,errorUpdatedAt:h,fetchStatus:m,status:v}=d,y=!1,b=!1,x;if(n._optimisticResults){const I=this.hasListeners(),T=!I&&UK(t,n),A=I&&VK(t,r,n,a);(T||A)&&(m=rk(t.options.networkMode)?"fetching":"paused",f||(v="loading")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&v!=="error")x=c.data,f=c.dataUpdatedAt,v=c.status,y=!0;else if(n.select&&typeof d.data<"u")if(i&&d.data===(o==null?void 0:o.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(d.data),x=jL(i==null?void 0:i.data,x,n),this.selectResult=x,this.selectError=null}catch(I){this.selectError=I}else x=d.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&v==="loading"){let I;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))I=i.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof I<"u")try{I=n.select(I),this.selectError=null}catch(T){this.selectError=T}typeof I<"u"&&(v="success",x=jL(i==null?void 0:i.data,I,n),b=!0)}this.selectError&&(p=this.selectError,x=this.selectResult,h=Date.now(),v="error");const E=m==="fetching",S=v==="loading",C=v==="error";return{status:v,fetchStatus:m,isLoading:S,isSuccess:v==="success",isError:C,isInitialLoading:S&&E,data:x,dataUpdatedAt:f,error:p,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:E,isRefetching:E&&!S,isLoadingError:C&&d.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:b,isPreviousData:y,isRefetchError:C&&d.dataUpdatedAt!==0,isStale:lB(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,rI(r,n))return;this.currentResult=r;const a={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!this.trackedProps.size)return!0;const s=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(a.listeners=!0),this.notify({...a,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!_T(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Da.batch(()=>{if(t.onSuccess){var n,r,a,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(a=(i=this.options).onSettled)==null||a.call(i,this.currentResult.data,null)}else if(t.onError){var o,l,s,u;(o=(l=this.options).onError)==null||o.call(l,this.currentResult.error),(s=(u=this.options).onSettled)==null||s.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function JDe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function UK(e,t){return JDe(e,t)||e.state.dataUpdatedAt>0&&WL(e,t,t.refetchOnMount)}function WL(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&lB(e,t)}return!1}function VK(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&lB(e,n)}function lB(e,t){return e.isStaleByTime(t.staleTime)}function e4e(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!rI(e.getCurrentResult(),t)}class t4e extends nfe{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:UL()},n)}getOptimisticResult(t){return t.behavior=UL(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,a,i,o,l,s;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:f}=c,p=d&&((r=u.fetchMeta)==null||(a=r.fetchMore)==null?void 0:a.direction)==="forward",h=d&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:QDe(n,(l=u.data)==null?void 0:l.pages),hasPreviousPage:ZDe(n,(s=u.data)==null?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:f&&!p&&!h}}}let n4e=class extends sy{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),rI(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:efe(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Da.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,a,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(a=(i=this.mutateOptions).onSettled)==null||a.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,l,s,u;(o=(l=this.mutateOptions).onError)==null||o.call(l,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(u=this.mutateOptions).onSettled)==null||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var rfe={exports:{}},afe={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var x0=g;function r4e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var a4e=typeof Object.is=="function"?Object.is:r4e,i4e=x0.useState,o4e=x0.useEffect,l4e=x0.useLayoutEffect,s4e=x0.useDebugValue;function u4e(e,t){var n=t(),r=i4e({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return l4e(function(){a.value=n,a.getSnapshot=t,HN(a)&&i({inst:a})},[e,n,t]),o4e(function(){return HN(a)&&i({inst:a}),e(function(){HN(a)&&i({inst:a})})},[e]),s4e(n),n}function HN(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a4e(e,n)}catch{return!0}}function c4e(e,t){return t()}var d4e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c4e:u4e;afe.useSyncExternalStore=x0.useSyncExternalStore!==void 0?x0.useSyncExternalStore:d4e;rfe.exports=afe;var f4e=rfe.exports;const ife=f4e.useSyncExternalStore,WK=g.createContext(void 0),ofe=g.createContext(!1);function lfe(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=WK),window.ReactQueryClientContext):WK)}const $c=({context:e}={})=>{const t=g.useContext(lfe(e,g.useContext(ofe)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},p4e=({client:e,children:t,context:n,contextSharing:r=!1})=>{g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const a=lfe(n,r);return g.createElement(ofe.Provider,{value:!n&&r},g.createElement(a.Provider,{value:e},t))},sfe=g.createContext(!1),h4e=()=>g.useContext(sfe);sfe.Provider;function g4e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const m4e=g.createContext(g4e()),v4e=()=>g.useContext(m4e);function ufe(e,t){return typeof e=="function"?e(...t):!!e}const y4e=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},b4e=e=>{g.useEffect(()=>{e.clearReset()},[e])},x4e=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&ufe(n,[e.error,r]),E4e=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},S4e=(e,t)=>e.isLoading&&e.isFetching&&!t,C4e=(e,t,n)=>(e==null?void 0:e.suspense)&&S4e(t,n),w4e=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function cfe(e,t){const n=$c({context:e.context}),r=h4e(),a=v4e(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=Da.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Da.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Da.batchCalls(i.onSettled)),E4e(i),y4e(i,a),b4e(a);const[o]=g.useState(()=>new t(n,i)),l=o.getOptimisticResult(i);if(ife(g.useCallback(s=>{const u=r?()=>{}:o.subscribe(Da.batchCalls(s));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),g.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),C4e(i,l,r))throw w4e(i,o,a);if(x4e({result:l,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:o.trackResult(l)}function $s(e,t,n){const r=Sv(e,t,n);return cfe(r,nfe)}function Ya(e,t,n){const r=zDe(e,t,n),a=$c({context:r.context}),[i]=g.useState(()=>new n4e(a,r));g.useEffect(()=>{i.setOptions(r)},[i,r]);const o=ife(g.useCallback(s=>i.subscribe(Da.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=g.useCallback((s,u)=>{i.mutate(s,u).catch(T4e)},[i]);if(o.error&&ufe(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}function T4e(){}function A4e(e,t,n){const r=Sv(e,t,n);return cfe(r,t4e)}var I4e={exports:{}},jN={exports:{}},GK;function O4e(){return GK||(GK=1,function(e,t){(function(n,r){e.exports=r()})(We,function(){function n(m){return!isNaN(parseFloat(m))&&isFinite(m)}function r(m){return m.charAt(0).toUpperCase()+m.substring(1)}function a(m){return function(){return this[m]}}var i=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],l=["fileName","functionName","source"],s=["args"],u=["evalOrigin"],c=i.concat(o,l,s,u);function d(m){if(m)for(var v=0;v-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),f=d.match(/ (\(.+\)$)/);d=f?d.replace(f[0],""):d;var p=this.extractLocation(f?f[1]:d),h=f&&d||void 0,m=["eval",""].indexOf(p[0])>-1?void 0:p[0];return new r({functionName:h,fileName:m,lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseFFOrSafari:function(s){var u=s.stack.split(` +`).filter(function(c){return!c.match(o)},this);return u.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new r({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=c.match(d),p=f&&f[1]?f[1]:void 0,h=this.extractLocation(c.replace(d,""));return new r({functionName:p,fileName:h[0],lineNumber:h[1],columnNumber:h[2],source:c})},this)},parseOpera:function(s){return!s.stacktrace||s.message.indexOf(` +`)>-1&&s.message.split(` +`).length>s.stacktrace.split(` +`).length?this.parseOpera9(s):s.stack?this.parseOpera11(s):this.parseOpera10(s)},parseOpera9:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,c=s.message.split(` +`),d=[],f=2,p=c.length;f/,"$2").replace(/\([^)]*\)/g,"")||void 0,m;p.match(/\(([^)]*)\)/)&&(m=p.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var v=m===void 0||m==="[arguments not available]"?void 0:m.split(",");return new r({functionName:h,args:v,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})})(I4e);function hr(e,t){return{hookName:"",trace:[],resourcePath:null,legacyKey:!1}}var k4e=Error,R4e=EvalError,_4e=RangeError,N4e=ReferenceError,dfe=SyntaxError,gS=TypeError,D4e=URIError,M4e=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,n);if(o.value!==a||o.enumerable!==!0)return!1}return!0},qK=typeof Symbol<"u"&&Symbol,$4e=M4e,L4e=function(){return typeof qK!="function"||typeof Symbol!="function"||typeof qK("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$4e()},UN={__proto__:null,foo:{}},P4e=Object,F4e=function(){return{__proto__:UN}.foo===UN.foo&&!(UN instanceof P4e)},B4e="Function.prototype.bind called on incompatible ",z4e=Object.prototype.toString,H4e=Math.max,j4e="[object Function]",YK=function(t,n){for(var r=[],a=0;a"u"||!Mi?Jn:Mi(Uint8Array),qh={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Jn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Jn:ArrayBuffer,"%ArrayIteratorPrototype%":Em&&Mi?Mi([][Symbol.iterator]()):Jn,"%AsyncFromSyncIteratorPrototype%":Jn,"%AsyncFunction%":tv,"%AsyncGenerator%":tv,"%AsyncGeneratorFunction%":tv,"%AsyncIteratorPrototype%":tv,"%Atomics%":typeof Atomics>"u"?Jn:Atomics,"%BigInt%":typeof BigInt>"u"?Jn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Jn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Jn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Jn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Q4e,"%eval%":eval,"%EvalError%":Z4e,"%Float32Array%":typeof Float32Array>"u"?Jn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Jn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Jn:FinalizationRegistry,"%Function%":ffe,"%GeneratorFunction%":tv,"%Int8Array%":typeof Int8Array>"u"?Jn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Jn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Jn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Em&&Mi?Mi(Mi([][Symbol.iterator]())):Jn,"%JSON%":typeof JSON=="object"?JSON:Jn,"%Map%":typeof Map>"u"?Jn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Em||!Mi?Jn:Mi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Jn:Promise,"%Proxy%":typeof Proxy>"u"?Jn:Proxy,"%RangeError%":J4e,"%ReferenceError%":eMe,"%Reflect%":typeof Reflect>"u"?Jn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Jn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Em||!Mi?Jn:Mi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Jn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Em&&Mi?Mi(""[Symbol.iterator]()):Jn,"%Symbol%":Em?Symbol:Jn,"%SyntaxError%":E0,"%ThrowTypeError%":nMe,"%TypedArray%":aMe,"%TypeError%":zv,"%Uint8Array%":typeof Uint8Array>"u"?Jn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Jn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Jn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Jn:Uint32Array,"%URIError%":tMe,"%WeakMap%":typeof WeakMap>"u"?Jn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Jn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Jn:WeakSet};if(Mi)try{null.error}catch(e){var iMe=Mi(Mi(e));qh["%Error.prototype%"]=iMe}var oMe=function e(t){var n;if(t==="%AsyncFunction%")n=VN("async function () {}");else if(t==="%GeneratorFunction%")n=VN("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=VN("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Mi&&(n=Mi(a.prototype))}return qh[t]=n,n},KK={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},mS=sB,oI=X4e,lMe=mS.call(Function.call,Array.prototype.concat),sMe=mS.call(Function.apply,Array.prototype.splice),XK=mS.call(Function.call,String.prototype.replace),lI=mS.call(Function.call,String.prototype.slice),uMe=mS.call(Function.call,RegExp.prototype.exec),cMe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,dMe=/\\(\\)?/g,fMe=function(t){var n=lI(t,0,1),r=lI(t,-1);if(n==="%"&&r!=="%")throw new E0("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new E0("invalid intrinsic syntax, expected opening `%`");var a=[];return XK(t,cMe,function(i,o,l,s){a[a.length]=l?XK(s,dMe,"$1"):o||i}),a},pMe=function(t,n){var r=t,a;if(oI(KK,r)&&(a=KK[r],r="%"+a[0]+"%"),oI(qh,r)){var i=qh[r];if(i===tv&&(i=oMe(r)),typeof i>"u"&&!n)throw new zv("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new E0("intrinsic "+t+" does not exist!")},uy=function(t,n){if(typeof t!="string"||t.length===0)throw new zv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new zv('"allowMissing" argument must be a boolean');if(uMe(/^%?[^%]*%?$/,t)===null)throw new E0("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=fMe(t),a=r.length>0?r[0]:"",i=pMe("%"+a+"%",n),o=i.name,l=i.value,s=!1,u=i.alias;u&&(a=u[0],sMe(r,lMe([0,1],u)));for(var c=1,d=!0;c=r.length){var m=Gh(l,f);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[f]}else d=oI(l,f),l=l[f];d&&!s&&(qh[o]=l)}}return l},pfe={exports:{}},GN,QK;function uB(){if(QK)return GN;QK=1;var e=uy,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return GN=t,GN}var hMe=uy,NT=hMe("%Object.getOwnPropertyDescriptor%",!0);if(NT)try{NT([],"length")}catch{NT=null}var hfe=NT,ZK=uB(),gMe=dfe,Sm=gS,JK=hfe,mMe=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Sm("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Sm("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Sm("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Sm("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Sm("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Sm("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!JK&&JK(t,n);if(ZK)ZK(t,n,{configurable:o===null&&s?s.configurable:!o,enumerable:a===null&&s?s.enumerable:!a,value:r,writable:i===null&&s?s.writable:!i});else if(l||!a&&!i&&!o)t[n]=r;else throw new gMe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GL=uB(),gfe=function(){return!!GL};gfe.hasArrayLengthDefineBug=function(){if(!GL)return null;try{return GL([],"length",{value:1}).length!==1}catch{return!0}};var vMe=gfe,yMe=uy,eX=mMe,bMe=vMe(),tX=hfe,nX=gS,xMe=yMe("%Math.floor%"),EMe=function(t,n){if(typeof t!="function")throw new nX("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||xMe(n)!==n)throw new nX("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,i=!0;if("length"in t&&tX){var o=tX(t,"length");o&&!o.configurable&&(a=!1),o&&!o.writable&&(i=!1)}return(a||i||!r)&&(bMe?eX(t,"length",n,!0,!0):eX(t,"length",n)),t};(function(e){var t=sB,n=uy,r=EMe,a=gS,i=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(o,i),s=uB(),u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new a("a function is required");var p=l(t,o,arguments);return r(p,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return l(t,i,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(pfe);var SMe=pfe.exports,mfe=uy,vfe=SMe,CMe=vfe(mfe("String.prototype.indexOf")),wMe=function(t,n){var r=mfe(t,!!n);return typeof r=="function"&&CMe(t,".prototype.")>-1?vfe(r):r};const TMe={},AMe=Object.freeze(Object.defineProperty({__proto__:null,default:TMe},Symbol.toStringTag,{value:"Module"})),IMe=zO(AMe);var cB=typeof Map=="function"&&Map.prototype,qN=Object.getOwnPropertyDescriptor&&cB?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,sI=cB&&qN&&typeof qN.get=="function"?qN.get:null,rX=cB&&Map.prototype.forEach,dB=typeof Set=="function"&&Set.prototype,YN=Object.getOwnPropertyDescriptor&&dB?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,uI=dB&&YN&&typeof YN.get=="function"?YN.get:null,aX=dB&&Set.prototype.forEach,OMe=typeof WeakMap=="function"&&WeakMap.prototype,K1=OMe?WeakMap.prototype.has:null,kMe=typeof WeakSet=="function"&&WeakSet.prototype,X1=kMe?WeakSet.prototype.has:null,RMe=typeof WeakRef=="function"&&WeakRef.prototype,iX=RMe?WeakRef.prototype.deref:null,_Me=Boolean.prototype.valueOf,NMe=Object.prototype.toString,DMe=Function.prototype.toString,MMe=String.prototype.match,fB=String.prototype.slice,Bf=String.prototype.replace,$Me=String.prototype.toUpperCase,oX=String.prototype.toLowerCase,yfe=RegExp.prototype.test,lX=Array.prototype.concat,pc=Array.prototype.join,LMe=Array.prototype.slice,sX=Math.floor,qL=typeof BigInt=="function"?BigInt.prototype.valueOf:null,KN=Object.getOwnPropertySymbols,YL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,S0=typeof Symbol=="function"&&typeof Symbol.iterator=="object",_o=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===S0||"symbol")?Symbol.toStringTag:null,bfe=Object.prototype.propertyIsEnumerable,uX=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function cX(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||yfe.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-sX(-e):sX(e);if(r!==e){var a=String(r),i=fB.call(t,a.length+1);return Bf.call(a,n,"$&_")+"."+Bf.call(Bf.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Bf.call(t,n,"$&_")}var KL=IMe,dX=KL.custom,fX=Efe(dX)?dX:null,PMe=function e(t,n,r,a){var i=n||{};if(Tf(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Tf(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Tf(i,"customInspect")?i.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Tf(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Tf(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Cfe(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?cX(t,s):s}if(typeof t=="bigint"){var u=String(t)+"n";return l?cX(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return XL(t)?"[Array]":"[Object]";var d=t$e(i,r);if(typeof a>"u")a=[];else if(Sfe(a,t)>=0)return"[Circular]";function f(N,_,L){if(_&&(a=LMe.call(a),a.push(_)),L){var $={depth:i.depth};return Tf(i,"quoteStyle")&&($.quoteStyle=i.quoteStyle),e(N,$,r+1,a)}return e(N,i,r+1,a)}if(typeof t=="function"&&!pX(t)){var p=GMe(t),h=Cw(t,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(h.length>0?" { "+pc.call(h,", ")+" }":"")}if(Efe(t)){var m=S0?Bf.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):YL.call(t);return typeof t=="object"&&!S0?Mb(m):m}if(ZMe(t)){for(var v="<"+oX.call(String(t.nodeName)),y=t.attributes||[],b=0;b",v}if(XL(t)){if(t.length===0)return"[]";var x=Cw(t,f);return d&&!e$e(x)?"["+QL(x,d)+"]":"[ "+pc.call(x,", ")+" ]"}if(zMe(t)){var E=Cw(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!bfe.call(t,"cause")?"{ ["+String(t)+"] "+pc.call(lX.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+pc.call(E,", ")+" }"}if(typeof t=="object"&&o){if(fX&&typeof t[fX]=="function"&&KL)return KL(t,{depth:c-r});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(qMe(t)){var S=[];return rX&&rX.call(t,function(N,_){S.push(f(_,t,!0)+" => "+f(N,t))}),hX("Map",sI.call(t),S,d)}if(XMe(t)){var C=[];return aX&&aX.call(t,function(N){C.push(f(N,t))}),hX("Set",uI.call(t),C,d)}if(YMe(t))return XN("WeakMap");if(QMe(t))return XN("WeakSet");if(KMe(t))return XN("WeakRef");if(jMe(t))return Mb(f(Number(t)));if(VMe(t))return Mb(f(qL.call(t)));if(UMe(t))return Mb(_Me.call(t));if(HMe(t))return Mb(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===We)return"{ [object globalThis] }";if(!BMe(t)&&!pX(t)){var w=Cw(t,f),I=uX?uX(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",A=!I&&_o&&Object(t)===t&&_o in t?fB.call($p(t),8,-1):T?"Object":"",O=I||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",R=O+(A||T?"["+pc.call(lX.call([],A||[],T||[]),": ")+"] ":"");return w.length===0?R+"{}":d?R+"{"+QL(w,d)+"}":R+"{ "+pc.call(w,", ")+" }"}return String(t)};function xfe(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function FMe(e){return Bf.call(String(e),/"/g,""")}function XL(e){return $p(e)==="[object Array]"&&(!_o||!(typeof e=="object"&&_o in e))}function BMe(e){return $p(e)==="[object Date]"&&(!_o||!(typeof e=="object"&&_o in e))}function pX(e){return $p(e)==="[object RegExp]"&&(!_o||!(typeof e=="object"&&_o in e))}function zMe(e){return $p(e)==="[object Error]"&&(!_o||!(typeof e=="object"&&_o in e))}function HMe(e){return $p(e)==="[object String]"&&(!_o||!(typeof e=="object"&&_o in e))}function jMe(e){return $p(e)==="[object Number]"&&(!_o||!(typeof e=="object"&&_o in e))}function UMe(e){return $p(e)==="[object Boolean]"&&(!_o||!(typeof e=="object"&&_o in e))}function Efe(e){if(S0)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!YL)return!1;try{return YL.call(e),!0}catch{}return!1}function VMe(e){if(!e||typeof e!="object"||!qL)return!1;try{return qL.call(e),!0}catch{}return!1}var WMe=Object.prototype.hasOwnProperty||function(e){return e in this};function Tf(e,t){return WMe.call(e,t)}function $p(e){return NMe.call(e)}function GMe(e){if(e.name)return e.name;var t=MMe.call(DMe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Sfe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Cfe(fB.call(e,0,t.maxStringLength),t)+r}var a=Bf.call(Bf.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,JMe);return xfe(a,"single",t)}function JMe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+$Me.call(t.toString(16))}function Mb(e){return"Object("+e+")"}function XN(e){return e+" { ? }"}function hX(e,t,n,r){var a=r?QL(n,r):pc.call(n,", ");return e+" ("+t+") {"+a+"}"}function e$e(e){for(var t=0;t=0)return!1;return!0}function t$e(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=pc.call(Array(e.indent+1)," ");else return null;return{base:n,prev:pc.call(Array(t+1),n)}}function QL(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+pc.call(e,","+n)+` +`+t.prev}function Cw(e,t){var n=XL(e),r=[];if(n){r.length=e.length;for(var a=0;a1;){var n=t.pop(),r=n.obj[n.prop];if(vh(r)){for(var a=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===m$e.RFC1738&&(u===40||u===41)){l+=o.charAt(s);continue}if(u<128){l=l+nc[u];continue}if(u<2048){l=l+(nc[192|u>>6]+nc[128|u&63]);continue}if(u<55296||u>=57344){l=l+(nc[224|u>>12]+nc[128|u>>6&63]+nc[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|o.charCodeAt(s)&1023),l+=nc[240|u>>18]+nc[128|u>>12&63]+nc[128|u>>6&63]+nc[128|u&63]}return l},S$e=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],a=0;a"u"&&(x=0)}if(typeof s=="function"?y=s(n,y):y instanceof Date?y=d(y):r==="comma"&&dd(y)&&(y=DT.maybeMap(y,function($){return $ instanceof Date?d($):$})),y===null){if(i)return l&&!h?l(n,Eo.encoder,m,"key",f):n;y=""}if(R$e(y)||DT.isBuffer(y)){if(l){var C=h?n:l(n,Eo.encoder,m,"key",f);return[p(C)+"="+p(l(y,Eo.encoder,m,"value",f))]}return[p(n)+"="+p(String(y))]}var w=[];if(typeof y>"u")return w;var I;if(r==="comma"&&dd(y))h&&l&&(y=DT.maybeMap(y,l)),I=[{value:y.length>0?y.join(",")||null:void 0}];else if(dd(s))I=s;else{var T=Object.keys(y);I=u?T.sort(u):T}for(var A=a&&dd(y)&&y.length===1?n+"[]":n,O=0;O"u"?Eo.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Eo.charsetSentinel,delimiter:typeof t.delimiter>"u"?Eo.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Eo.encode,encoder:typeof t.encoder=="function"?t.encoder:Eo.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Eo.encodeValuesOnly,filter:i,format:r,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Eo.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Eo.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Eo.strictNullHandling}},D$e=function(e,t){var n=e,r=N$e(t),a,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):dd(r.filter)&&(i=r.filter,a=i);var o=[];if(typeof n!="object"||n===null)return"";var l;t&&t.arrayFormat in gX?l=t.arrayFormat:t&&"indices"in t?l=t.indices?"indices":"repeat":l="indices";var s=gX[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=s==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var c=Ife(),d=0;d0?h+p:""},C0=Afe,ZL=Object.prototype.hasOwnProperty,M$e=Array.isArray,Di={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:C0.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},$$e=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},kfe=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},L$e="utf8=%26%2310003%3B",P$e="utf8=%E2%9C%93",F$e=function(t,n){var r={__proto__:null},a=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=n.parameterLimit===1/0?void 0:n.parameterLimit,o=a.split(n.delimiter,i),l=-1,s,u=n.charset;if(n.charsetSentinel)for(s=0;s-1&&(h=M$e(h)?[h]:h),ZL.call(r,p)?r[p]=C0.combine(r[p],h):r[p]=h}return r},B$e=function(e,t,n,r){for(var a=r?t:kfe(t,n),i=e.length-1;i>=0;--i){var o,l=e[i];if(l==="[]"&&n.parseArrays)o=[].concat(a);else{o=n.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,u=parseInt(s,10);!n.parseArrays&&s===""?o={0:a}:!isNaN(u)&&l!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[],o[u]=a):s!=="__proto__"&&(o[s]=a)}a=o}return a},z$e=function(t,n,r,a){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&o.exec(i),u=s?i.slice(0,s.index):i,c=[];if(u){if(!r.plainObjects&&ZL.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var d=0;r.depth>0&&(s=l.exec(i))!==null&&d"u"?Di.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Di.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Di.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Di.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Di.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Di.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Di.comma,decoder:typeof t.decoder=="function"?t.decoder:Di.decoder,delimiter:typeof t.delimiter=="string"||C0.isRegExp(t.delimiter)?t.delimiter:Di.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Di.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Di.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Di.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Di.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Di.strictNullHandling}},j$e=function(e,t){var n=H$e(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?F$e(e,n):e,a=n.plainObjects?Object.create(null):{},i=Object.keys(r),o=0;o0&&n(l)?t>1?mB(l,t-1,n,r,a):Rfe(a,l):r||(a[a.length]=l)}return a}function vB(e){return e}function cLe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var xX=Math.max;function dLe(e,t,n){return t=xX(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=xX(r.length-t,0),o=Array(i);++a0){if(++t>=DLe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var PLe=LLe(NLe);const FLe=PLe;function yB(e,t){return FLe(dLe(e,t,vB),e+"")}var BLe=Fg(Object,"create");const nE=BLe;function zLe(){this.__data__=nE?nE(null):{},this.size=0}function HLe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jLe="__lodash_hash_undefined__",ULe=Object.prototype,VLe=ULe.hasOwnProperty;function WLe(e){var t=this.__data__;if(nE){var n=t[e];return n===jLe?void 0:n}return VLe.call(t,e)?t[e]:void 0}var GLe=Object.prototype,qLe=GLe.hasOwnProperty;function YLe(e){var t=this.__data__;return nE?t[e]!==void 0:qLe.call(t,e)}var KLe="__lodash_hash_undefined__";function XLe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nE&&t===void 0?KLe:t,this}function gg(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}function rPe(e,t){var n=this.__data__,r=ak(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}function Lfe(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=CPe){var u=t?null:SPe(e);if(u)return EB(u);o=!1,a=xB,s=new w0}else s=t?[]:l;e:for(;++r-1&&e%1==0&&e<=wPe}function CB(e){return e!=null&&SB(e.length)&&!Mfe(e)}function Z1(e){return pg(e)&&CB(e)}function Ffe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var TPe=yB(function(e){var t=Ffe(e);return t=typeof t=="function"?t:void 0,Pfe(mB(e,1,Z1,!0),void 0,t)});const Bfe=TPe;function wB(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n=APe&&(i=xB,o=!1,t=new w0(t));e:for(;++al))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&WPe?new w0:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e=this._config.preview;if(i)r.postMessage({results:N,workerId:s.WORKER_ID,finished:L});else if(w(this._config.chunk)&&!A){if(this._config.chunk(N,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);N=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(N.data),this._completeResults.errors=this._completeResults.errors.concat(N.errors),this._completeResults.meta=N.meta),this._completed||!L||!w(this._config.complete)||N&&N.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),L||N&&N.meta.paused||this._nextChunk(),N}this._halted=!0},this._sendError=function(T){w(this._config.error)?this._config.error(T):i&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:T,finished:!1})}}function d(I){var T;(I=I||{}).chunkSize||(I.chunkSize=s.RemoteChunkSize),c.call(this,I),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(A){this._input=A,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(T=new XMLHttpRequest,this._config.withCredentials&&(T.withCredentials=this._config.withCredentials),a||(T.onload=C(this._chunkLoaded,this),T.onerror=C(this._chunkError,this)),T.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var A=this._config.downloadRequestHeaders;for(var O in A)T.setRequestHeader(O,A[O])}if(this._config.chunkSize){var R=this._start+this._config.chunkSize-1;T.setRequestHeader("Range","bytes="+this._start+"-"+R)}try{T.send(this._config.downloadRequestBody)}catch(N){this._chunkError(N.message)}a&&T.status===0&&this._chunkError()}},this._chunkLoaded=function(){T.readyState===4&&(T.status<200||400<=T.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:T.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(A){var O=A.getResponseHeader("Content-Range");return O===null?-1:parseInt(O.substring(O.lastIndexOf("/")+1))}(T),this.parseChunk(T.responseText)))},this._chunkError=function(A){var O=T.statusText||A;this._sendError(new Error(O))}}function f(I){var T,A;(I=I||{}).chunkSize||(I.chunkSize=s.LocalChunkSize),c.call(this,I);var O=typeof FileReader<"u";this.stream=function(R){this._input=R,A=R.slice||R.webkitSlice||R.mozSlice,O?((T=new FileReader).onload=C(this._chunkLoaded,this),T.onerror=C(this._chunkError,this)):T=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(R.target.result)},this._chunkError=function(){this._sendError(T.error)}}function p(I){var T;c.call(this,I=I||{}),this.stream=function(A){return T=A,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var A,O=this._config.chunkSize;return O?(A=T.substring(0,O),T=T.substring(O)):(A=T,T=""),this._finished=!T,this.parseChunk(A)}}}function h(I){c.call(this,I=I||{});var T=[],A=!0,O=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(R){this._input=R,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){O&&T.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),T.length?this.parseChunk(T.shift()):A=!0},this._streamData=C(function(R){try{T.push(typeof R=="string"?R:R.toString(this._config.encoding)),A&&(A=!1,this._checkIsFinished(),this.parseChunk(T.shift()))}catch(N){this._streamError(N)}},this),this._streamError=C(function(R){this._streamCleanUp(),this._sendError(R)},this),this._streamEnd=C(function(){this._streamCleanUp(),O=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function m(I){var T,A,O,R=Math.pow(2,53),N=-R,_=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,L=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,$=this,k=0,P=0,B=!1,F=!1,D=[],j={data:[],errors:[],meta:{}};if(w(I.step)){var z=I.step;I.step=function(Z){if(j=Z,W())G();else{if(G(),j.data.length===0)return;k+=Z.data.length,I.preview&&k>I.preview?A.abort():(j.data=j.data[0],z(j,$))}}}function V(Z){return I.skipEmptyLines==="greedy"?Z.join("").trim()==="":Z.length===1&&Z[0].length===0}function G(){return j&&O&&(J("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),O=!1),I.skipEmptyLines&&(j.data=j.data.filter(function(Z){return!V(Z)})),W()&&function(){if(!j)return;function Z(ee,ae){w(I.transformHeader)&&(ee=I.transformHeader(ee,ae)),D.push(ee)}if(Array.isArray(j.data[0])){for(var K=0;W()&&K=D.length?"__parsed_extra":D[te]),I.transform&&(ve=I.transform(ve,se)),ve=Y(se,ve),se==="__parsed_extra"?(re[se]=re[se]||[],re[se].push(ve)):re[se]=ve}return I.header&&(te>D.length?J("FieldMismatch","TooManyFields","Too many fields: expected "+D.length+" fields but parsed "+te,P+ae):te=xe.length/2?`\r +`:"\r"}(Z,ae)),O=!1,I.delimiter)w(I.delimiter)&&(I.delimiter=I.delimiter(Z),j.meta.delimiter=I.delimiter);else{var te=function(se,ve,ge,xe,me){var de,Ce,Ie,ke;me=me||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var Te=0;Te=_)return Re(!0)}else for(pe=k,k++;;){if((pe=B.indexOf(T,pe+1))===-1)return D||J.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Y.length,index:k}),Ae();if(pe===j-1)return Ae(B.substring(k,pe).replace(Te,T));if(T!==$||B[pe+1]!==$){if(T===$||pe===0||B[pe-1]!==$){Ie!==-1&&Ie=_)return Re(!0);break}J.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Y.length,index:k}),pe++}}else pe++}return Ae();function we(Me){Y.push(Me),K=k}function ue(Me){var $e=0;if(Me!==-1){var Fe=B.substring(pe+1,Me);Fe&&Fe.trim()===""&&($e=Fe.length)}return $e}function Ae(Me){return D||(Me===void 0&&(Me=B.substring(k)),Z.push(Me),k=j,we(Z),W&&Be()),Re()}function _e(Me){k=Me,we(Z),Z=[],ke=B.indexOf(O,k)}function Re(Me){return{data:Y,errors:J,meta:{delimiter:A,linebreak:O,aborted:P,truncated:!!Me,cursor:K+(F||0)}}}function Be(){N(Re()),Y=[],J=[]}},this.abort=function(){P=!0},this.getCharIndex=function(){return k}}function b(I){var T=I.data,A=o[T.workerId],O=!1;if(T.error)A.userError(T.error,T.file);else if(T.results&&T.results.data){var R={abort:function(){O=!0,x(T.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:E,resume:E};if(w(A.userStep)){for(var N=0;N=t||w<0||d&&I>=i}function y(){var C=rD();if(v(C))return b(C);l=setTimeout(y,m(C))}function b(C){return l=void 0,f&&r?p(C):(r=a=void 0,o)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function E(){return l===void 0?o:b(rD())}function S(){var C=rD(),w=v(C);if(r=arguments,a=this,s=C,w){if(l===void 0)return h(s);if(d)return clearTimeout(l),l=setTimeout(y,t),p(s)}return l===void 0&&(l=setTimeout(y,t)),o}return S.cancel=x,S.flush=E,S}function MFe(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++rg8e(e,"name",{value:t,configurable:!0}),aD=ye(e=>e/1e3,"userFriendlySecond"),m8e=ye((e,t=n=>n)=>{let[n,...r]=e;return r.map(a=>$Pe(MPe(n,a))).map((a,i,o)=>t.call(void 0,a,i,o))},"importCSVMapper"),v8e=ye((e="",t)=>{let n=vpe(e);return t==="singular"?cI.singular(n):cI.plural(n)},"userFriendlyResourceName");ye((e={})=>e!=null&&e.id?{...e,id:decodeURIComponent(e.id)}:e,"handleUseParams");var Ct=ye((...e)=>e.find(t=>typeof t<"u"),"pickNotDeprecated");function oc(e,t){return e.findIndex((n,r)=>r<=e.length-t.length&&t.every((a,i)=>e[r+i]===a))}ye(oc,"arrayFindIndex");function ape(e){if(e[0]==="data"){let t=e.slice(1);if(t[2]==="many")t[2]="getMany";else if(t[2]==="infinite")t[2]="list";else if(t[2]==="one")t[2]="detail";else if(t[1]==="custom"){let n={...t[2]};return delete n.method,delete n.url,[t[0],t[1],t[2].method,t[2].url,n]}return t}if(e[0]==="audit"&&e[2]==="list")return["logList",e[1],e[3]];if(e[0]==="access"&&e.length===4)return["useCan",{resource:e[1],action:e[2],...e[3]}];if(e[0]==="auth"){if(oc(e,["auth","login"])!==-1)return["useLogin"];if(oc(e,["auth","logout"])!==-1)return["useLogout"];if(oc(e,["auth","identity"])!==-1)return["getUserIdentity"];if(oc(e,["auth","register"])!==-1)return["useRegister"];if(oc(e,["auth","forgotPassword"])!==-1)return["useForgotPassword"];if(oc(e,["auth","check"])!==-1)return["useAuthenticated",e[2]];if(oc(e,["auth","onError"])!==-1)return["useCheckError"];if(oc(e,["auth","permissions"])!==-1)return["usePermissions"];if(oc(e,["auth","updatePassword"])!==-1)return["useUpdatePassword"]}return e}ye(ape,"convertToLegacy");var ts=class{constructor(t=[]){this.segments=[],this.segments=t}key(){return this.segments}legacy(){return ape(this.segments)}get(t){return t?this.legacy():this.segments}};ye(ts,"BaseKeyBuilder");var Kd=class extends ts{constructor(t){super(t)}params(t){return new ts([...this.segments,t])}};ye(Kd,"ParamsKeyBuilder");var ipe=class extends ts{constructor(e){super(e)}id(e){return new Kd([...this.segments,e?String(e):void 0])}};ye(ipe,"DataIdRequiringKeyBuilder");var ope=class extends ts{constructor(e){super(e)}ids(...e){return new Kd([...this.segments,...e.length?[e.map(t=>String(t))]:[]])}};ye(ope,"DataIdsRequiringKeyBuilder");var lpe=class extends ts{constructor(e){super(e)}action(e){if(e==="one")return new ipe([...this.segments,e]);if(e==="many")return new ope([...this.segments,e]);if(["list","infinite"].includes(e))return new Kd([...this.segments,e]);throw new Error("Invalid action type")}};ye(lpe,"DataResourceKeyBuilder");var spe=class extends ts{constructor(e){super(e)}resource(e){return new lpe([...this.segments,e])}mutation(e){return new Kd([...e==="custom"?this.segments:[this.segments[0]],e])}};ye(spe,"DataKeyBuilder");var upe=class extends ts{constructor(e){super(e)}action(e){return new Kd([...this.segments,e])}};ye(upe,"AuthKeyBuilder");var cpe=class extends ts{constructor(e){super(e)}action(e){return new Kd([...this.segments,e])}};ye(cpe,"AccessResourceKeyBuilder");var dpe=class extends ts{constructor(e){super(e)}resource(e){return new cpe([...this.segments,e])}};ye(dpe,"AccessKeyBuilder");var fpe=class extends ts{constructor(e){super(e)}action(e){return new Kd([...this.segments,e])}};ye(fpe,"AuditActionKeyBuilder");var ppe=class extends ts{constructor(e){super(e)}resource(e){return new fpe([...this.segments,e])}action(e){return new Kd([...this.segments,e])}};ye(ppe,"AuditKeyBuilder");var hpe=class extends ts{constructor(t){super(t)}data(t){return new spe(["data",t||"default"])}auth(){return new upe(["auth"])}access(){return new dpe(["access"])}audit(){return new ppe(["audit"])}};ye(hpe,"KeyBuilder");var dh=ye(()=>new hpe([]),"keys"),y8e=ye((e,t,n,r)=>{let a=t||"default",i={all:[a],resourceAll:[a,e||""],list:o=>[...i.resourceAll,"list",{...o,...Ct(n,r)||{}}],many:o=>[...i.resourceAll,"getMany",o&&o.map(String),{...Ct(n,r)||{}}].filter(l=>l!==void 0),detail:o=>[...i.resourceAll,"detail",o==null?void 0:o.toString(),{...Ct(n,r)||{}}],logList:o=>["logList",e,o,r].filter(l=>l!==void 0)};return i},"queryKeys"),uk=ye(e=>(t,n,r,a)=>{let i=n||"default";return{all:dh().data(i).get(e),resourceAll:dh().data(n).resource(t??"").get(e),list:o=>dh().data(n).resource(t??"").action("list").params({...o,...Ct(r,a)||{}}).get(e),many:o=>dh().data(n).resource(t??"").action("many").ids(...o??[]).params({...Ct(r,a)||{}}).get(e),detail:o=>dh().data(n).resource(t??"").action("one").id(o??"").params({...Ct(r,a)||{}}).get(e),logList:o=>[...dh().audit().resource(t).action("list").params(o).get(e),a].filter(l=>l!==void 0)}},"queryKeysReplacement"),b8e=ye((e,t)=>!e||!t?!1:!!e.find(n=>n===t),"hasPermission"),OB=ye(e=>e.startsWith(":"),"isParameter"),T0=ye(e=>e.split("/").filter(t=>t!==""),"splitToSegments"),x8e=ye((e,t)=>{let n=T0(e),r=T0(t);return n.length===r.length},"isSegmentCountsSame"),$d=ye(e=>e.replace(/^\/|\/$/g,""),"removeLeadingTrailingSlashes"),E8e=ye((e,t)=>{let n=$d(e),r=$d(t);if(!x8e(n,r))return!1;let a=T0(n);return T0(r).every((i,o)=>OB(i)||i===a[o])},"checkBySegments"),S8e=ye((e,t,n)=>{let r=$d(n||""),a=`${r}${r?"/":""}${e}`;return t==="list"?a=`${a}`:t==="create"?a=`${a}/create`:t==="edit"?a=`${a}/edit/:id`:t==="show"?a=`${a}/show/:id`:t==="clone"&&(a=`${a}/clone/:id`),`/${a.replace(/^\//,"")}`},"getDefaultActionPath"),vp=ye((e,t)=>{var n,r;let a=Ct((n=e.meta)==null?void 0:n.parent,(r=e.options)==null?void 0:r.parent,e.parentName);return a?t.find(i=>(i.identifier??i.name)===a)??{name:a}:void 0},"getParentResource"),gpe=ye((e,t,n)=>{let r=[],a=vp(e,t);for(;a;)r.push(a),a=vp(a,t);if(r.length!==0)return`/${r.reverse().map(i=>{var o;let l=n?((o=i.options)==null?void 0:o.route)??i.name:i.name;return $d(l)}).join("/")}`},"getParentPrefixForResource"),zl=ye((e,t,n)=>{let r=[],a=["list","show","edit","create","clone"],i=gpe(e,t,n);return a.forEach(o=>{var l,s;let u=n&&o==="clone"?e.create:e[o],c;typeof u=="function"||n?c=S8e(n?((l=e.meta)==null?void 0:l.route)??((s=e.options)==null?void 0:s.route)??e.name:e.name,o,n?i:void 0):typeof u=="string"?c=u:typeof u=="object"&&(c=u.path),c&&r.push({action:o,resource:e,route:`/${c.replace(/^\//,"")}`})}),r},"getActionRoutesFromResource"),C8e=ye(e=>{var t;if(e.length===0)return;if(e.length===1)return e[0];let n=e.map(i=>({...i,splitted:T0($d(i.route))})),r=((t=n[0])==null?void 0:t.splitted.length)??0,a=[...n];for(let i=0;i!OB(l.splitted[i]));if(o.length!==0){if(o.length===1){a=o;break}a=o}}return a[0]},"pickMatchedRoute"),mpe=ye((e,t)=>{let n=t.flatMap(a=>zl(a,t)).filter(a=>E8e(e,a.route)),r=C8e(n);return{found:!!r,resource:r==null?void 0:r.resource,action:r==null?void 0:r.action,matchedRoute:r==null?void 0:r.route}},"matchResourceFromRoute"),w8e=ye((e,t)=>{var n;let r,a=gpe(e,t,!0);if(a){let i=Ct(e.meta,e.options);r=`${a}/${(i==null?void 0:i.route)??e.name}`}else r=((n=e.options)==null?void 0:n.route)??e.name;return`/${r.replace(/^\//,"")}`},"routeGenerator");ye(e=>{var t;let n=[],r={},a={},i,o;for(let l=0;l(e=e.replace(/([a-z]{1})([A-Z]{1})/g,"$1-$2"),e=e.replace(/([A-Z]{1})([A-Z]{1})([a-z]{1})/g,"$1-$2$3"),e=e.toLowerCase().replace(/[_-]+/g," ").replace(/\s{2,}/g," ").trim(),e=e.charAt(0).toUpperCase()+e.slice(1),e),"humanizeString"),ype=ye(({children:e})=>M.createElement("div",null,e),"DefaultLayout"),Jo={mutationMode:"pessimistic",syncWithLocation:!1,undoableTimeout:5e3,warnWhenUnsavedChanges:!1,liveMode:"off",redirect:{afterCreate:"list",afterClone:"list",afterEdit:"list"},overtime:{interval:1e3},textTransformers:{humanize:vpe,plural:cI.plural,singular:cI.singular},disableServerSideValidation:!1},Lp=M.createContext({hasDashboard:!1,mutationMode:"pessimistic",warnWhenUnsavedChanges:!1,syncWithLocation:!1,undoableTimeout:5e3,Title:void 0,Sider:void 0,Header:void 0,Footer:void 0,Layout:ype,OffLayoutArea:void 0,liveMode:"off",onLiveEvent:void 0,options:Jo}),T8e=ye(({hasDashboard:e,mutationMode:t,warnWhenUnsavedChanges:n,syncWithLocation:r,undoableTimeout:a,children:i,DashboardPage:o,Title:l,Layout:s=ype,Header:u,Sider:c,Footer:d,OffLayoutArea:f,LoginPage:p=x5e,catchAll:h,liveMode:m="off",onLiveEvent:v,options:y})=>M.createElement(Lp.Provider,{value:{__initialized:!0,hasDashboard:e,mutationMode:t,warnWhenUnsavedChanges:n,syncWithLocation:r,Title:l,undoableTimeout:a,Layout:s,Header:u,Sider:c,Footer:d,OffLayoutArea:f,DashboardPage:o,LoginPage:p,catchAll:h,liveMode:m,onLiveEvent:v,options:y}},i),"RefineContextProvider"),A8e=ye(({options:e,disableTelemetry:t,liveMode:n,mutationMode:r,reactQueryClientConfig:a,reactQueryDevtoolConfig:i,syncWithLocation:o,undoableTimeout:l,warnWhenUnsavedChanges:s}={})=>{var u,c,d,f,p,h,m,v;let y={breadcrumb:e==null?void 0:e.breadcrumb,mutationMode:(e==null?void 0:e.mutationMode)??r??Jo.mutationMode,undoableTimeout:(e==null?void 0:e.undoableTimeout)??l??Jo.undoableTimeout,syncWithLocation:(e==null?void 0:e.syncWithLocation)??o??Jo.syncWithLocation,warnWhenUnsavedChanges:(e==null?void 0:e.warnWhenUnsavedChanges)??s??Jo.warnWhenUnsavedChanges,liveMode:(e==null?void 0:e.liveMode)??n??Jo.liveMode,redirect:{afterCreate:((u=e==null?void 0:e.redirect)==null?void 0:u.afterCreate)??Jo.redirect.afterCreate,afterClone:((c=e==null?void 0:e.redirect)==null?void 0:c.afterClone)??Jo.redirect.afterClone,afterEdit:((d=e==null?void 0:e.redirect)==null?void 0:d.afterEdit)??Jo.redirect.afterEdit},overtime:(e==null?void 0:e.overtime)??Jo.overtime,textTransformers:{humanize:((f=e==null?void 0:e.textTransformers)==null?void 0:f.humanize)??Jo.textTransformers.humanize,plural:((p=e==null?void 0:e.textTransformers)==null?void 0:p.plural)??Jo.textTransformers.plural,singular:((h=e==null?void 0:e.textTransformers)==null?void 0:h.singular)??Jo.textTransformers.singular},disableServerSideValidation:(e==null?void 0:e.disableServerSideValidation)??Jo.disableServerSideValidation,projectId:e==null?void 0:e.projectId,useNewQueryKeys:e==null?void 0:e.useNewQueryKeys},b=(e==null?void 0:e.disableTelemetry)??t??!1,x={clientConfig:((m=e==null?void 0:e.reactQuery)==null?void 0:m.clientConfig)??a??{},devtoolConfig:((v=e==null?void 0:e.reactQuery)==null?void 0:v.devtoolConfig)??i??{}};return{optionsWithDefaults:y,disableTelemetryWithDefault:b,reactQueryWithDefaults:x}},"handleRefineOptions"),I8e=ye(({redirectFromProps:e,action:t,redirectOptions:n})=>{if(e||e===!1)return e;switch(t){case"clone":return n.afterClone;case"create":return n.afterCreate;case"edit":return n.afterEdit;default:return!1}},"redirectPage"),VX=ye(async(e,t,n)=>{let r=[];for(let[a,i]of e.entries())try{let o=await i();r.push(t(o,a))}catch(o){r.push(n(o,a))}return r},"sequentialPromises"),So=ye((e,t=[],n=!1)=>{if(!e)return;if(n)return t.find(i=>$d(i.route??"")===$d(e))||t.find(i=>i.name===e);let r=t.find(a=>a.identifier===e);return r||(r=t.find(a=>a.name===e)),r},"pickResource"),cr=ye((e,t,n)=>{if(t)return t;let r=So(e,n),a=Ct(r==null?void 0:r.meta,r==null?void 0:r.options);return a!=null&&a.dataProviderName?a.dataProviderName:"default"},"pickDataProvider"),ck=ye(async e=>({data:(await Promise.all(e)).map(t=>t.data)}),"handleMultiple"),O8e=ye(e=>{let{pagination:t,cursor:n}=e;if(n!=null&&n.next)return n.next;let r=(t==null?void 0:t.current)||1,a=(t==null?void 0:t.pageSize)||10,i=Math.ceil((e.total||0)/a);return r{let{pagination:t,cursor:n}=e;if(n!=null&&n.prev)return n.prev;let r=(t==null?void 0:t.current)||1;return r===1?void 0:r-1},"getPreviousPageParam"),R8e=ye(e=>{let t=[];return e.forEach(n=>{var r,a;t.push({...n,label:((r=n.meta)==null?void 0:r.label)??((a=n.options)==null?void 0:a.label),route:w8e(n,e),canCreate:!!n.create,canEdit:!!n.edit,canShow:!!n.show,canDelete:n.canDelete})}),t},"legacyResourceTransform"),_8e=ye(e=>T0($d(e)).flatMap(t=>OB(t)?[t.slice(1)]:[]),"pickRouteParams"),N8e=ye((e,t={})=>e.reduce((n,r)=>{let a=t[r];return typeof a<"u"&&(n[r]=a),n},{}),"prepareRouteParams"),xs=ye((e,t={},n={},r={})=>{let a=_8e(e),i=N8e(a,{...t,...typeof(n==null?void 0:n.id)<"u"?{id:n.id}:{},...typeof(n==null?void 0:n.action)<"u"?{action:n.action}:{},...typeof(n==null?void 0:n.resource)<"u"?{resource:n.resource}:{},...n==null?void 0:n.params,...r});return e.replace(/:([^\/]+)/g,(o,l)=>{let s=i[l];return typeof s<"u"?`${s}`:o})},"composeRoute"),bpe=M.createContext({}),D8e=ye(({children:e,isProvided:t,...n})=>{let{replace:r}=pa(),a=ye(async s=>{var u;try{return await((u=n.login)==null?void 0:u.call(n,s))}catch(c){return Promise.reject(c)}},"loginFunc"),i=ye(async s=>{var u;try{return await((u=n.register)==null?void 0:u.call(n,s))}catch(c){return Promise.reject(c)}},"registerFunc"),o=ye(async s=>{var u;try{return await((u=n.logout)==null?void 0:u.call(n,s))}catch(c){return Promise.reject(c)}},"logoutFunc"),l=ye(async s=>{var u;try{return await((u=n.checkAuth)==null?void 0:u.call(n,s)),Promise.resolve()}catch(c){return c!=null&&c.redirectPath&&r(c.redirectPath),Promise.reject(c)}},"checkAuthFunc");return M.createElement(bpe.Provider,{value:{...n,login:a,logout:o,checkAuth:l,register:i,isProvided:t}},e)},"LegacyAuthContextProvider"),xpe=M.createContext({}),M8e=ye(({children:e,isProvided:t,...n})=>{let r=ye(async u=>{var c;try{return await((c=n.login)==null?void 0:c.call(n,u))}catch(d){return console.warn("Unhandled Error in login: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleLogin"),a=ye(async u=>{var c;try{return await((c=n.register)==null?void 0:c.call(n,u))}catch(d){return console.warn("Unhandled Error in register: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleRegister"),i=ye(async u=>{var c;try{return await((c=n.logout)==null?void 0:c.call(n,u))}catch(d){return console.warn("Unhandled Error in logout: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleLogout"),o=ye(async u=>{var c;try{let d=await((c=n.check)==null?void 0:c.call(n,u));return Promise.resolve(d)}catch(d){return console.warn("Unhandled Error in check: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleCheck"),l=ye(async u=>{var c;try{let d=await((c=n.forgotPassword)==null?void 0:c.call(n,u));return Promise.resolve(d)}catch(d){return console.warn("Unhandled Error in forgotPassword: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleForgotPassword"),s=ye(async u=>{var c;try{let d=await((c=n.updatePassword)==null?void 0:c.call(n,u));return Promise.resolve(d)}catch(d){return console.warn("Unhandled Error in updatePassword: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleUpdatePassword");return M.createElement(xpe.Provider,{value:{...n,login:r,logout:i,check:o,register:a,forgotPassword:l,updatePassword:s,isProvided:t}},e)},"AuthBindingsContextProvider"),zs=ye(()=>M.useContext(bpe),"useLegacyAuthContext"),Uu=ye(()=>M.useContext(xpe),"useAuthBindingsContext"),Wr=ye(()=>{let e=zs(),t=Uu();return t.isProvided?{isLegacy:!1,...t}:e.isProvided?{isLegacy:!0,...e,check:e.checkAuth,onError:e.checkError,getIdentity:e.getUserIdentity}:null},"useActiveAuthProvider"),Epe=ye(({hasPagination:e,pagination:t,configPagination:n}={})=>{let r=e===!1?"off":"server",a=(t==null?void 0:t.mode)??r,i=Ct(t==null?void 0:t.current,n==null?void 0:n.current)??1,o=Ct(t==null?void 0:t.pageSize,n==null?void 0:n.pageSize)??10;return{current:i,pageSize:o,mode:a}},"handlePaginationParams"),WX=ye(e=>{let[t,n]=g.useState(!1);return g.useEffect(()=>{let r=window.matchMedia(e);r.matches!==t&&n(r.matches);let a=ye(()=>n(r.matches),"listener");return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[t,e]),t},"useMediaQuery"),iD=ye((e,t,n,r)=>{let a=r?e(t,r,n):e(t,n);return a===t||typeof a>"u"?n??t:a},"safeTranslate");function Spe(e,t,n,r,a){var i;let o={create:"Create new ",clone:`#${r??""} Clone `,edit:`#${r??""} Edit `,show:`#${r??""} Show `,list:""},l=(t==null?void 0:t.identifier)??(t==null?void 0:t.name),s=(t==null?void 0:t.label)??((i=t==null?void 0:t.meta)==null?void 0:i.label)??v8e(l,n==="list"?"plural":"singular"),u=a??s,c=iD(e,"documentTitle.default","refine"),d=iD(e,"documentTitle.suffix"," | refine"),f=c;return n&&l&&(f=iD(e,`documentTitle.${l}.${n}`,`${o[n]??""}${u}${d}`,{id:r})),f}ye(Spe,"generateDefaultDocumentTitle");var Bg=ye(()=>{let{mutationMode:e,undoableTimeout:t}=g.useContext(Lp);return{mutationMode:e,undoableTimeout:t}},"useMutationMode"),Cpe=M.createContext({}),$8e=ye(({children:e})=>{let[t,n]=g.useState(!1);return M.createElement(Cpe.Provider,{value:{warnWhen:t,setWarnWhen:n}},e)},"UnsavedWarnContextProvider"),Pc=ye(()=>{let{warnWhenUnsavedChanges:e}=g.useContext(Lp),{warnWhen:t,setWarnWhen:n}=g.useContext(Cpe);return{warnWhenUnsavedChanges:e,warnWhen:!!t,setWarnWhen:n??(()=>{})}},"useWarnAboutChange"),L8e=ye(()=>{let{syncWithLocation:e}=g.useContext(Lp);return{syncWithLocation:e}},"useSyncWithLocation"),kB=ye(()=>{let{Title:e}=g.useContext(Lp);return e},"useTitle"),Aa=ye(()=>{let{Footer:e,Header:t,Layout:n,OffLayoutArea:r,Sider:a,Title:i,hasDashboard:o,mutationMode:l,syncWithLocation:s,undoableTimeout:u,warnWhenUnsavedChanges:c,DashboardPage:d,LoginPage:f,catchAll:p,options:h,__initialized:m}=g.useContext(Lp);return{__initialized:m,Footer:e,Header:t,Layout:n,OffLayoutArea:r,Sider:a,Title:i,hasDashboard:o,mutationMode:l,syncWithLocation:s,undoableTimeout:u,warnWhenUnsavedChanges:c,DashboardPage:d,LoginPage:f,catchAll:p,options:h}},"useRefineContext"),Fc=ye(()=>{let{options:{textTransformers:e}}=Aa();return ye((t="",n)=>{let r=e.humanize(t);return n==="singular"?e.singular(r):e.plural(r)},"getFriendlyName")},"useUserFriendlyName"),GX=ye(e=>typeof e=="object"&&e!==null,"isNested"),P8e=ye(e=>Array.isArray(e),"isArray"),aP=ye((e,t="")=>GX(e)?Object.keys(e).reduce((n,r)=>{let a=t.length?t+".":"";return GX(e[r])&&Object.keys(e[r]).length&&(P8e(e[r])&&e[r].length?e[r].forEach((i,o)=>{Object.assign(n,aP(i,a+r+"."+o))}):Object.assign(n,aP(e[r],a+r))),n[a+r]=e[r],n},{}):{[t]:e},"flattenObjectKeys"),qX=ye(e=>e.split(".").map(t=>isNaN(Number(t))?t:Number(t)),"propertyPathToArray"),F8e=ye((e,t,n)=>{if(typeof window>"u")return;let r=new Blob([t],{type:n}),a=document.createElement("a");a.setAttribute("visibility","hidden"),a.download=e;let i=URL.createObjectURL(r);a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a),setTimeout(()=>{URL.revokeObjectURL(i)})},"downloadInBrowser"),wpe=ye(e=>{let{current:t,pageSize:n,sorter:r,sorters:a,filters:i}=fg.parse(e.substring(1));return{parsedCurrent:t&&Number(t),parsedPageSize:n&&Number(n),parsedSorter:Ct(a,r)??[],parsedFilters:i??[]}},"parseTableParams");ye(e=>{let t=fg.stringify(e);return wpe(`/${t}`)},"parseTableParamsFromQuery");var YX=ye(e=>{let t={skipNulls:!0,arrayFormat:"indices",encode:!1},{pagination:n,sorter:r,sorters:a,filters:i,...o}=e;return fg.stringify({...o,...n||{},sorters:Ct(a,r),filters:i},t)},"stringifyTableParams"),Tpe=ye((e,t)=>e.operator!=="and"&&e.operator!=="or"&&t.operator!=="and"&&t.operator!=="or"?("field"in e?e.field:void 0)==("field"in t?t.field:void 0)&&e.operator==t.operator:("key"in e?e.key:void 0)==("key"in t?t.key:void 0)&&e.operator==t.operator,"compareFilters"),Ape=ye((e,t)=>e.field==t.field,"compareSorters"),Iw=ye((e,t,n=[])=>(t.filter(r=>(r.operator==="or"||r.operator==="and")&&!r.key).length>1&&mg(!0,`[conditionalFilters]: You have created multiple Conditional Filters at the top level, this requires the key parameter. +For more information, see https://refine.dev/docs/advanced-tutorials/data-provider/handling-filters/#top-level-multiple-conditional-filters-usage`),Bfe(e,t,n,Tpe).filter(r=>r.value!==void 0&&r.value!==null&&(r.operator!=="or"||r.operator==="or"&&r.value.length!==0)&&(r.operator!=="and"||r.operator==="and"&&r.value.length!==0))),"unionFilters"),KX=ye((e,t)=>Bfe(e,t,Ape).filter(n=>n.order!==void 0&&n.order!==null),"unionSorters"),XX=ye((e,t)=>[...Cv(t,e,Tpe),...e],"setInitialFilters"),QX=ye((e,t)=>[...Cv(t,e,Ape),...e],"setInitialSorters"),B8e=ye((e,t)=>{if(!t)return;let n=t.find(r=>r.field===e);if(n)return n.order},"getDefaultSortOrder"),Ipe=ye((e,t,n="eq")=>{let r=t==null?void 0:t.find(a=>{if(a.operator!=="or"&&a.operator!=="and"&&"field"in a){let{operator:i,field:o}=a;return o===e&&i===n}});if(r)return r.value||[]},"getDefaultFilter");ye(e=>new Promise((t,n)=>{let r=new FileReader,a=ye(()=>{r.result&&(r.removeEventListener("load",a,!1),t(r.result))},"resultHandler");r.addEventListener("load",a,!1),r.readAsDataURL(e.originFileObj),r.onerror=i=>(r.removeEventListener("load",a,!1),n(i))}),"file2Base64");var ia=ye(()=>{let{options:{useNewQueryKeys:e}}=Aa();return{keys:dh,preferLegacyKeys:!e}},"useKeys");function z8e({v3LegacyAuthProviderCompatible:e=!1,options:t}={}){let{getPermissions:n}=zs(),{getPermissions:r}=Uu(),{keys:a,preferLegacyKeys:i}=ia(),o=$s({queryKey:a().auth().action("permissions").get(i),queryFn:r??(()=>Promise.resolve(void 0)),enabled:!e&&!!r,...e?{}:t,meta:{...e?{}:t==null?void 0:t.meta,...hr()}}),l=$s({queryKey:[...a().auth().action("permissions").get(i),"v3LegacyAuthProviderCompatible"],queryFn:n??(()=>Promise.resolve(void 0)),enabled:e&&!!n,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...hr()}});return e?l:o}ye(z8e,"usePermissions");function fy({v3LegacyAuthProviderCompatible:e=!1,queryOptions:t}={}){let{getUserIdentity:n}=zs(),{getIdentity:r}=Uu(),{keys:a,preferLegacyKeys:i}=ia(),o=$s({queryKey:a().auth().action("identity").get(i),queryFn:r??(()=>Promise.resolve({})),enabled:!e&&!!r,retry:!1,...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...hr()}}),l=$s({queryKey:[...a().auth().action("identity").get(i),"v3LegacyAuthProviderCompatible"],queryFn:n??(()=>Promise.resolve({})),enabled:e&&!!n,retry:!1,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...hr()}});return e?l:o}ye(fy,"useGetIdentity");var RB=ye(()=>{let e=$c(),{keys:t,preferLegacyKeys:n}=ia();return ye(async()=>{await Promise.all(["check","identity","permissions"].map(r=>e.invalidateQueries(t().auth().action(r).get(n))))},"invalidate")},"useInvalidateAuthStore");function A0({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=RB(),r=Gn(),a=Ii(),{push:i}=pa(),{open:o,close:l}=zg(),{logout:s}=zs(),{logout:u}=Uu(),{keys:c,preferLegacyKeys:d}=ia(),f=Ya({mutationKey:c().auth().action("logout").get(d),mutationFn:u,onSuccess:async(h,m)=>{let{success:v,error:y,redirectTo:b,successNotification:x}=h,{redirectPath:E}=m??{},S=E??b;v&&(l==null||l("useLogout-error"),x&&(o==null||o(H8e(x)))),(y||!v)&&(o==null||o(oD(y))),S!==!1&&(r==="legacy"?i(S??"/login"):S&&a({to:S})),await n()},onError:h=>{o==null||o(oD(h))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...hr()}}),p=Ya({mutationKey:[...c().auth().action("logout").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:s,onSuccess:async(h,m)=>{let v=(m==null?void 0:m.redirectPath)??h;if(v!==!1){if(v){r==="legacy"?i(v):a({to:v});return}r==="legacy"?i("/login"):a({to:"/login"}),await n()}},onError:h=>{o==null||o(oD(h))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...hr()}});return e?p:f}ye(A0,"useLogout");var oD=ye(e=>({key:"useLogout-error",type:"error",message:(e==null?void 0:e.name)||"Logout Error",description:(e==null?void 0:e.message)||"Something went wrong during logout"}),"buildNotification"),H8e=ye(e=>({message:e.message,description:e.description,key:"logout-success",type:"success"}),"buildSuccessNotification");function vS({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=RB(),r=Gn(),a=Ii(),{replace:i}=pa(),o=ss(),{useLocation:l}=Fr(),{search:s}=l(),{close:u,open:c}=zg(),{login:d}=zs(),{login:f}=Uu(),{keys:p,preferLegacyKeys:h}=ia(),m=M.useMemo(()=>{var b;return r==="legacy"?fg.parse(s,{ignoreQueryPrefix:!0}).to:(b=o.params)==null?void 0:b.to},[r,o.params,s]),v=Ya({mutationKey:p().auth().action("login").get(h),mutationFn:f,onSuccess:async({success:b,redirectTo:x,error:E,successNotification:S})=>{b&&(u==null||u("login-error"),S&&(c==null||c(j8e(S)))),(E||!b)&&(c==null||c(lD(E))),m&&b?r==="legacy"?i(m):a({to:m,type:"replace"}):x?r==="legacy"?i(x):a({to:x,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:b=>{c==null||c(lD(b))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...hr()}}),y=Ya({mutationKey:[...p().auth().action("login").get(h),"v3LegacyAuthProviderCompatible"],mutationFn:d,onSuccess:async b=>{m&&i(m),b!==!1&&!m&&(typeof b=="string"?r==="legacy"?i(b):a({to:b,type:"replace"}):r==="legacy"?i("/"):a({to:"/",type:"replace"})),await n(),u==null||u("login-error")},onError:b=>{c==null||c(lD(b))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...hr()}});return e?y:v}ye(vS,"useLogin");var lD=ye(e=>({message:(e==null?void 0:e.name)||"Login Error",description:(e==null?void 0:e.message)||"Invalid credentials",key:"login-error",type:"error"}),"buildNotification"),j8e=ye(e=>({message:e.message,description:e.description,key:"login-success",type:"success"}),"buildSuccessNotification");function _B({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=RB(),r=Gn(),a=Ii(),{replace:i}=pa(),{register:o}=zs(),{register:l}=Uu(),{close:s,open:u}=zg(),{keys:c,preferLegacyKeys:d}=ia(),f=Ya({mutationKey:c().auth().action("register").get(d),mutationFn:l,onSuccess:async({success:h,redirectTo:m,error:v,successNotification:y})=>{h&&(s==null||s("register-error"),y&&(u==null||u(U8e(y)))),(v||!h)&&(u==null||u(sD(v))),m?r==="legacy"?i(m):a({to:m,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:h=>{u==null||u(sD(h))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...hr()}}),p=Ya({mutationKey:[...c().auth().action("register").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:o,onSuccess:async h=>{h!==!1&&(h?r==="legacy"?i(h):a({to:h,type:"replace"}):r==="legacy"?i("/"):a({to:"/",type:"replace"}),await n(),s==null||s("register-error"))},onError:h=>{u==null||u(sD(h))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...hr()}});return e?p:f}ye(_B,"useRegister");var sD=ye(e=>({message:(e==null?void 0:e.name)||"Register Error",description:(e==null?void 0:e.message)||"Error while registering",key:"register-error",type:"error"}),"buildNotification"),U8e=ye(e=>({message:e.message,description:e.description,key:"register-success",type:"success"}),"buildSuccessNotification");function NB({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=Gn(),r=Ii(),{replace:a}=pa(),{forgotPassword:i}=zs(),{forgotPassword:o}=Uu(),{close:l,open:s}=zg(),{keys:u,preferLegacyKeys:c}=ia(),d=Ya({mutationKey:u().auth().action("forgotPassword").get(c),mutationFn:o,onSuccess:({success:p,redirectTo:h,error:m,successNotification:v})=>{p&&(l==null||l("forgot-password-error"),v&&(s==null||s(V8e(v)))),(m||!p)&&(s==null||s(uD(m))),h&&(n==="legacy"?a(h):r({to:h,type:"replace"}))},onError:p=>{s==null||s(uD(p))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...hr()}}),f=Ya({mutationKey:[...u().auth().action("forgotPassword").get(c),"v3LegacyAuthProviderCompatible"],mutationFn:i,onSuccess:p=>{p!==!1&&p&&(n==="legacy"?a(p):r({to:p,type:"replace"})),l==null||l("forgot-password-error")},onError:p=>{s==null||s(uD(p))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...hr()}});return e?f:d}ye(NB,"useForgotPassword");var uD=ye(e=>({message:(e==null?void 0:e.name)||"Forgot Password Error",description:(e==null?void 0:e.message)||"Error while resetting password",key:"forgot-password-error",type:"error"}),"buildNotification"),V8e=ye(e=>({message:e.message,description:e.description,key:"forgot-password-success",type:"success"}),"buildSuccessNotification");function DB({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=Gn(),r=Ii(),{replace:a}=pa(),{updatePassword:i}=zs(),{updatePassword:o}=Uu(),{close:l,open:s}=zg(),{keys:u,preferLegacyKeys:c}=ia(),d=ss(),{useLocation:f}=Fr(),{search:p}=f(),h=M.useMemo(()=>n==="legacy"?fg.parse(p,{ignoreQueryPrefix:!0})??{}:d.params??{},[p,d,n]),m=Ya({mutationKey:u().auth().action("updatePassword").get(c),mutationFn:async y=>o==null?void 0:o({...h,...y}),onSuccess:({success:y,redirectTo:b,error:x,successNotification:E})=>{y&&(l==null||l("update-password-error"),E&&(s==null||s(W8e(E)))),(x||!y)&&(s==null||s(cD(x))),b&&(n==="legacy"?a(b):r({to:b,type:"replace"}))},onError:y=>{s==null||s(cD(y))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...hr()}}),v=Ya({mutationKey:[...u().auth().action("updatePassword").get(c),"v3LegacyAuthProviderCompatible"],mutationFn:async y=>i==null?void 0:i({...h,...y}),onSuccess:y=>{y!==!1&&y&&(n==="legacy"?a(y):r({to:y,type:"replace"})),l==null||l("update-password-error")},onError:y=>{s==null||s(cD(y))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...hr()}});return e?v:m}ye(DB,"useUpdatePassword");var cD=ye(e=>({message:(e==null?void 0:e.name)||"Update Password Error",description:(e==null?void 0:e.message)||"Error while updating password",key:"update-password-error",type:"error"}),"buildNotification"),W8e=ye(e=>({message:e.message,description:e.description,key:"update-password-success",type:"success"}),"buildSuccessNotification");function Ope({v3LegacyAuthProviderCompatible:e=!1,params:t}={}){let{checkAuth:n}=zs(),{check:r}=Uu(),{keys:a,preferLegacyKeys:i}=ia(),o=$s({queryKey:a().auth().action("check").params(t).get(i),queryFn:async()=>await(r==null?void 0:r(t))??{},retry:!1,enabled:!e,meta:{...hr()}}),l=$s({queryKey:[...a().auth().action("check").params(t).get(i),"v3LegacyAuthProviderCompatible"],queryFn:async()=>await(n==null?void 0:n(t))??{},retry:!1,enabled:e,meta:{...hr()}});return e?l:o}ye(Ope,"useIsAuthenticated");function Hs({v3LegacyAuthProviderCompatible:e=!1}={}){let t=Gn(),n=Ii(),{replace:r}=pa(),{checkError:a}=zs(),{onError:i}=Uu(),{keys:o,preferLegacyKeys:l}=ia(),{mutate:s}=A0({v3LegacyAuthProviderCompatible:!!e}),{mutate:u}=A0({v3LegacyAuthProviderCompatible:!!e}),c=Ya({mutationKey:o().auth().action("onError").get(l),mutationFn:i,onSuccess:({logout:f,redirectTo:p})=>{if(f){u({redirectPath:p});return}if(p){t==="legacy"?r(p):n({to:p,type:"replace"});return}},meta:{...hr()}}),d=Ya({mutationKey:[...o().auth().action("onError").get(l),"v3LegacyAuthProviderCompatible"],mutationFn:a,onError:f=>{s({redirectPath:f})},meta:{...hr()}});return e?d:c}ye(Hs,"useOnError");var dk=ye(()=>{let{isProvided:e}=zs(),{isProvided:t}=Uu();return!!(t||e)},"useIsExistAuthentication"),Mo=ye(({isLoading:e,interval:t,onInterval:n})=>{let[r,a]=g.useState(void 0),{options:i}=Aa(),{overtime:o}=i,l=t??o.interval,s=n??(o==null?void 0:o.onInterval);return g.useEffect(()=>{let u;return e&&(u=setInterval(()=>{a(c=>c===void 0?l:c+l)},l)),()=>{clearInterval(u),a(void 0)}},[e,l]),g.useEffect(()=>{s&&r&&s(r)},[r]),{elapsedTime:r}},"useLoadingOvertime"),yp=ye(({resource:e,config:t,filters:n,hasPagination:r,pagination:a,sorters:i,queryOptions:o,successNotification:l,errorNotification:s,meta:u,metaData:c,liveMode:d,onLiveEvent:f,liveParams:p,dataProviderName:h,overtimeOptions:m}={})=>{let{resources:v,resource:y,identifier:b}=xn(e),x=bl(),E=on(),S=Wr(),{mutate:C}=Hs({v3LegacyAuthProviderCompatible:!!(S!=null&&S.isLegacy)}),w=Us(),I=Wi(),{keys:T,preferLegacyKeys:A}=ia(),O=cr(b,h,v),R=Ct(u,c),N=Ct(n,t==null?void 0:t.filters),_=Ct(i,t==null?void 0:t.sort),L=Ct(r,t==null?void 0:t.hasPagination),$=Epe({pagination:a,configPagination:t==null?void 0:t.pagination,hasPagination:L}),k=$.mode==="server",P=I({resource:y,meta:R}),B={meta:P,metaData:P,filters:N,hasPagination:k,pagination:$,sorters:_,config:{...t,sort:_}},F=(o==null?void 0:o.enabled)===void 0||(o==null?void 0:o.enabled)===!0,{getList:D}=x(O);fk({resource:b,types:["*"],params:{meta:P,metaData:P,pagination:$,hasPagination:k,sort:_,sorters:_,filters:N,subscriptionType:"useList",...p},channel:`resources/${y==null?void 0:y.name}`,enabled:F,liveMode:d,onLiveEvent:f,dataProviderName:O,meta:{...u,dataProviderName:h}});let j=$s({queryKey:T().data(O).resource(b??"").action("list").params({...R||{},filters:N,hasPagination:k,...k&&{pagination:$},...i&&{sorters:i},...(t==null?void 0:t.sort)&&{sort:t==null?void 0:t.sort}}).get(A),queryFn:({queryKey:V,pageParam:G,signal:W})=>D({resource:(y==null?void 0:y.name)??"",pagination:$,hasPagination:k,filters:N,sort:_,sorters:_,meta:{...P,queryContext:{queryKey:V,pageParam:G,signal:W}},metaData:{...P,queryContext:{queryKey:V,pageParam:G,signal:W}}}),...o,enabled:typeof(o==null?void 0:o.enabled)<"u"?o==null?void 0:o.enabled:!!(y!=null&&y.name),select:V=>{var G;let W=V,{current:Y,mode:J,pageSize:Z}=$;return J==="client"&&(W={...W,data:W.data.slice((Y-1)*Z,Y*Z),total:W.total}),o!=null&&o.select?(G=o==null?void 0:o.select)==null?void 0:G.call(o,W):W},onSuccess:V=>{var G;(G=o==null?void 0:o.onSuccess)==null||G.call(o,V);let W=typeof l=="function"?l(V,B,b):l;w(W)},onError:V=>{var G;C(V),(G=o==null?void 0:o.onError)==null||G.call(o,V);let W=typeof s=="function"?s(V,B,b):s;w(W,{key:`${b}-useList-notification`,message:E("notifications.error",{statusCode:V.statusCode},`Error (status code: ${V.statusCode})`),description:V.message,type:"error"})},meta:{...o==null?void 0:o.meta,...hr()}}),{elapsedTime:z}=Mo({isLoading:j.isFetching,interval:m==null?void 0:m.interval,onInterval:m==null?void 0:m.onInterval});return{...j,overtime:{elapsedTime:z}}},"useList"),kpe=ye(({resource:e,id:t,queryOptions:n,successNotification:r,errorNotification:a,meta:i,metaData:o,liveMode:l,onLiveEvent:s,liveParams:u,dataProviderName:c,overtimeOptions:d})=>{let{resources:f,resource:p,identifier:h}=xn(e),m=bl(),v=on(),y=Wr(),{mutate:b}=Hs({v3LegacyAuthProviderCompatible:!!(y!=null&&y.isLegacy)}),x=Us(),E=Wi(),{keys:S,preferLegacyKeys:C}=ia(),w=Ct(i,o),I=cr(h,c,f),{getOne:T}=m(I),A=E({resource:p,meta:w});fk({resource:h,types:["*"],channel:`resources/${p==null?void 0:p.name}`,params:{ids:t?[t]:[],id:t,meta:A,metaData:A,subscriptionType:"useOne",...u},enabled:typeof(n==null?void 0:n.enabled)<"u"?n==null?void 0:n.enabled:typeof(p==null?void 0:p.name)<"u"&&typeof t<"u",liveMode:l,onLiveEvent:s,dataProviderName:I,meta:{...i,dataProviderName:c}});let O=$s({queryKey:S().data(I).resource(h??"").action("one").id(t??"").params({...w||{}}).get(C),queryFn:({queryKey:N,pageParam:_,signal:L})=>T({resource:(p==null?void 0:p.name)??"",id:t,meta:{...A,queryContext:{queryKey:N,pageParam:_,signal:L}},metaData:{...A,queryContext:{queryKey:N,pageParam:_,signal:L}}}),...n,enabled:typeof(n==null?void 0:n.enabled)<"u"?n==null?void 0:n.enabled:typeof t<"u",onSuccess:N=>{var _;(_=n==null?void 0:n.onSuccess)==null||_.call(n,N);let L=typeof r=="function"?r(N,{id:t,...A},h):r;x(L)},onError:N=>{var _;b(N),(_=n==null?void 0:n.onError)==null||_.call(n,N);let L=typeof a=="function"?a(N,{id:t,...A},h):a;x(L,{key:`${t}-${h}-getOne-notification`,message:v("notifications.error",{statusCode:N.statusCode},`Error (status code: ${N.statusCode})`),description:N.message,type:"error"})},meta:{...n==null?void 0:n.meta,...hr()}}),{elapsedTime:R}=Mo({isLoading:O.isFetching,interval:d==null?void 0:d.interval,onInterval:d==null?void 0:d.onInterval});return{...O,overtime:{elapsedTime:R}}},"useOne"),G8e=ye(({resource:e,ids:t,queryOptions:n,successNotification:r,errorNotification:a,meta:i,metaData:o,liveMode:l,onLiveEvent:s,liveParams:u,dataProviderName:c,overtimeOptions:d})=>{let{resources:f,resource:p,identifier:h}=xn(e),m=bl(),v=on(),y=Wr(),{mutate:b}=Hs({v3LegacyAuthProviderCompatible:!!(y!=null&&y.isLegacy)}),x=Us(),E=Wi(),{keys:S,preferLegacyKeys:C}=ia(),w=Ct(i,o),I=cr(h,c,f),T=(n==null?void 0:n.enabled)===void 0||(n==null?void 0:n.enabled)===!0,{getMany:A,getOne:O}=m(I),R=E({resource:p,meta:w});fk({resource:h,types:["*"],params:{ids:t,meta:R,metaData:R,subscriptionType:"useMany",...u},channel:`resources/${p.name}`,enabled:T,liveMode:l,onLiveEvent:s,dataProviderName:I,meta:{...i,dataProviderName:c}});let N=$s({queryKey:S().data(I).resource(h).action("many").ids(...t).params({...w||{}}).get(C),queryFn:({queryKey:L,pageParam:$,signal:k})=>A?A({resource:p==null?void 0:p.name,ids:t,meta:{...R,queryContext:{queryKey:L,pageParam:$,signal:k}},metaData:{...R,queryContext:{queryKey:L,pageParam:$,signal:k}}}):ck(t.map(P=>O({resource:p==null?void 0:p.name,id:P,meta:{...R,queryContext:{queryKey:L,pageParam:$,signal:k}},metaData:{...R,queryContext:{queryKey:L,pageParam:$,signal:k}}}))),...n,onSuccess:L=>{var $;($=n==null?void 0:n.onSuccess)==null||$.call(n,L);let k=typeof r=="function"?r(L,t,h):r;x(k)},onError:L=>{var $;b(L),($=n==null?void 0:n.onError)==null||$.call(n,L);let k=typeof a=="function"?a(L,t,h):a;x(k,{key:`${t[0]}-${h}-getMany-notification`,message:v("notifications.error",{statusCode:L.statusCode},`Error (status code: ${L.statusCode})`),description:L.message,type:"error"})},meta:{...n==null?void 0:n.meta,...hr()}}),{elapsedTime:_}=Mo({isLoading:N.isFetching,interval:d==null?void 0:d.interval,onInterval:d==null?void 0:d.onInterval});return{...N,overtime:{elapsedTime:_}}},"useMany"),Rpe=M.createContext({notifications:[],notificationDispatch:()=>!1}),q8e=[],Y8e=ye((e,t)=>{switch(t.type){case"ADD":return[...e.filter(n=>!(zf(n.id,t.payload.id)&&n.resource==t.payload.resource)),{...t.payload,isRunning:!0}];case"REMOVE":return e.filter(n=>!(zf(n.id,t.payload.id)&&n.resource==t.payload.resource));case"DECREASE_NOTIFICATION_SECOND":return e.map(n=>zf(n.id,t.payload.id)&&n.resource==t.payload.resource?{...n,seconds:t.payload.seconds-1e3}:n);default:return e}},"undoableQueueReducer"),K8e=ye(({children:e})=>{let[t,n]=g.useReducer(Y8e,q8e),r={notifications:t,notificationDispatch:n};return M.createElement(Rpe.Provider,{value:r},e,typeof window<"u"&&t.map(a=>M.createElement(V5e,{key:`${a.id}-${a.resource}-queue`,notification:a})))},"UndoableQueueContextProvider"),iP=ye(({mutationOptions:e,overtimeOptions:t}={})=>{let{resources:n,select:r}=xn(),a=$c(),i=bl(),{mutationMode:o,undoableTimeout:l}=Bg(),s=on(),u=Wr(),{mutate:c}=Hs({v3LegacyAuthProviderCompatible:!!(u!=null&&u.isLegacy)}),d=py(),{log:f}=gy(),{notificationDispatch:p}=ES(),h=Us(),m=js(),v=Wi(),{options:{textTransformers:y}}=Aa(),{keys:b,preferLegacyKeys:x}=ia(),E=Ya({mutationFn:({id:C,values:w,resource:I,mutationMode:T,undoableTimeout:A,onCancel:O,meta:R,metaData:N,dataProviderName:_})=>{let{resource:L,identifier:$}=r(I),k=v({resource:L,meta:Ct(R,N)}),P=T??o,B=A??l;return P!=="undoable"?i(cr($,_,n)).update({resource:L.name,id:C,variables:w,meta:k,metaData:k}):new Promise((F,D)=>{let j=ye(()=>{i(cr($,_,n)).update({resource:L.name,id:C,variables:w,meta:k,metaData:k}).then(V=>F(V)).catch(V=>D(V))},"doMutation"),z=ye(()=>{D({message:"mutationCancelled"})},"cancelMutation");O&&O(z),p({type:"ADD",payload:{id:C,resource:$,cancelMutation:z,doMutation:j,seconds:B,isSilent:!!O}})})},onMutate:async({resource:C,id:w,mutationMode:I,values:T,dataProviderName:A,meta:O,metaData:R,optimisticUpdateMap:N={list:!0,many:!0,detail:!0}})=>{let{identifier:_}=r(C),{gqlMutation:L,gqlQuery:$,...k}=Ct(O,R)??{},P=uk(x)(_,cr(_,A,n),k),B=b().data(cr(_,A,n)).resource(_),F=a.getQueriesData(B.get(x)),D=I??o;return await a.cancelQueries(B.get(x),void 0,{silent:!0}),D!=="pessimistic"&&(N.list&&a.setQueriesData(B.action("list").params(k??{}).get(x),j=>{if(typeof N.list=="function")return N.list(j,T,w);if(!j)return null;let z=j.data.map(V=>{var G;return((G=V.id)==null?void 0:G.toString())===(w==null?void 0:w.toString())?{id:w,...V,...T}:V});return{...j,data:z}}),N.many&&a.setQueriesData(B.action("many").get(x),j=>{if(typeof N.many=="function")return N.many(j,T,w);if(!j)return null;let z=j.data.map(V=>{var G;return((G=V.id)==null?void 0:G.toString())===(w==null?void 0:w.toString())&&(V={id:w,...V,...T}),V});return{...j,data:z}}),N.detail&&a.setQueriesData(B.action("one").id(w).params(k??{}).get(x),j=>typeof N.detail=="function"?N.detail(j,T,w):j?{...j,data:{...j.data,...T}}:null)),{previousQueries:F,queryKey:P}},onSettled:(C,w,{id:I,resource:T,dataProviderName:A,invalidates:O=["list","many","detail"]})=>{let{identifier:R}=r(T);m({resource:R,dataProviderName:cr(R,A,n),invalidates:O,id:I}),p({type:"REMOVE",payload:{id:I,resource:R}})},onSuccess:(C,{id:w,resource:I,successNotification:T,dataProviderName:A,values:O,meta:R,metaData:N},_)=>{var L;let{resource:$,identifier:k}=r(I),P=y.singular(k),B=cr(k,A,n),F=v({resource:$,meta:Ct(R,N)}),D=typeof T=="function"?T(C,{id:w,values:O},k):T;h(D,{key:`${w}-${k}-notification`,description:s("notifications.success","Successful"),message:s("notifications.editSuccess",{resource:s(`${k}.${k}`,P)},`Successfully updated ${P}`),type:"success"}),d==null||d({channel:`resources/${$.name}`,type:"updated",payload:{ids:(L=C.data)!=null&&L.id?[C.data.id]:void 0},date:new Date,meta:{...F,dataProviderName:B}});let j;if(_){let Y=a.getQueryData(_.queryKey.detail(w));j=Object.keys(O||{}).reduce((J,Z)=>{var K;return J[Z]=(K=Y==null?void 0:Y.data)==null?void 0:K[Z],J},{})}let{fields:z,operation:V,variables:G,...W}=F||{};f==null||f.mutate({action:"update",resource:$.name,data:O,previousData:j,meta:{id:w,dataProviderName:B,...W}})},onError:(C,{id:w,resource:I,errorNotification:T,values:A},O)=>{let{identifier:R}=r(I);if(O)for(let N of O.previousQueries)a.setQueryData(N[0],N[1]);if(C.message!=="mutationCancelled"){c==null||c(C);let N=y.singular(R),_=typeof T=="function"?T(C,{id:w,values:A},R):T;h(_,{key:`${w}-${R}-notification`,message:s("notifications.editError",{resource:s(`${R}.${R}`,N),statusCode:C.statusCode},`Error when updating ${N} (status code: ${C.statusCode})`),description:C.message,type:"error"})}},mutationKey:b().data().mutation("update").get(x),...e,meta:{...e==null?void 0:e.meta,...hr()}}),{elapsedTime:S}=Mo({isLoading:E.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...E,overtime:{elapsedTime:S}}},"useUpdate"),_pe=ye(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Wr(),{mutate:r}=Hs({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),a=bl(),i=js(),{resources:o,select:l}=xn(),s=on(),u=py(),{log:c}=gy(),d=Us(),f=Wi(),{options:{textTransformers:p}}=Aa(),{keys:h,preferLegacyKeys:m}=ia(),v=Ya({mutationFn:({resource:b,values:x,meta:E,metaData:S,dataProviderName:C})=>{let{resource:w,identifier:I}=l(b),T=f({resource:w,meta:Ct(E,S)});return a(cr(I,C,o)).create({resource:w.name,variables:x,meta:T,metaData:T})},onSuccess:(b,{resource:x,successNotification:E,dataProviderName:S,invalidates:C=["list","many"],values:w,meta:I,metaData:T})=>{var A,O;let{resource:R,identifier:N}=l(x),_=p.singular(N),L=cr(N,S,o),$=f({resource:R,meta:Ct(I,T)}),k=typeof E=="function"?E(b,w,N):E;d(k,{key:`create-${N}-notification`,message:s("notifications.createSuccess",{resource:s(`${N}.${N}`,_)},`Successfully created ${_}`),description:s("notifications.success","Success"),type:"success"}),i({resource:N,dataProviderName:L,invalidates:C}),u==null||u({channel:`resources/${R.name}`,type:"created",payload:{ids:(A=b==null?void 0:b.data)!=null&&A.id?[b.data.id]:void 0},date:new Date,meta:{...$,dataProviderName:L}});let{fields:P,operation:B,variables:F,...D}=$||{};c==null||c.mutate({action:"create",resource:R.name,data:w,meta:{dataProviderName:L,id:((O=b==null?void 0:b.data)==null?void 0:O.id)??void 0,...D}})},onError:(b,{resource:x,errorNotification:E,values:S})=>{r(b);let{identifier:C}=l(x),w=p.singular(C),I=typeof E=="function"?E(b,S,C):E;d(I,{key:`create-${C}-notification`,description:b.message,message:s("notifications.createError",{resource:s(`${C}.${C}`,w),statusCode:b.statusCode},`There was an error creating ${w} (status code: ${b.statusCode})`),type:"error"})},mutationKey:h().data().mutation("create").get(m),...e,meta:{...e==null?void 0:e.meta,...hr()}}),{elapsedTime:y}=Mo({isLoading:v.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...v,overtime:{elapsedTime:y}}},"useCreate"),MB=ye(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Wr(),{mutate:r}=Hs({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),a=bl(),{resources:i,select:o}=xn(),l=$c(),{mutationMode:s,undoableTimeout:u}=Bg(),{notificationDispatch:c}=ES(),d=on(),f=py(),{log:p}=gy(),h=Us(),m=js(),v=Wi(),{options:{textTransformers:y}}=Aa(),{keys:b,preferLegacyKeys:x}=ia(),E=Ya({mutationFn:({id:C,mutationMode:w,undoableTimeout:I,resource:T,onCancel:A,meta:O,metaData:R,dataProviderName:N,values:_})=>{let{resource:L,identifier:$}=o(T),k=v({resource:L,meta:Ct(O,R)}),P=w??s,B=I??u;return P!=="undoable"?a(cr($,N,i)).deleteOne({resource:L.name,id:C,meta:k,metaData:k,variables:_}):new Promise((F,D)=>{let j=ye(()=>{a(cr($,N,i)).deleteOne({resource:L.name,id:C,meta:k,metaData:k,variables:_}).then(V=>F(V)).catch(V=>D(V))},"doMutation"),z=ye(()=>{D({message:"mutationCancelled"})},"cancelMutation");A&&A(z),c({type:"ADD",payload:{id:C,resource:$,cancelMutation:z,doMutation:j,seconds:B,isSilent:!!A}})})},onMutate:async({id:C,resource:w,mutationMode:I,dataProviderName:T,meta:A,metaData:O})=>{let{identifier:R}=o(w),{gqlMutation:N,gqlQuery:_,...L}=Ct(A,O)??{},$=uk(x)(R,cr(R,T,i),L),k=b().data(cr(R,T,i)).resource(R),P=I??s;await l.cancelQueries(k.get(x),void 0,{silent:!0});let B=l.getQueriesData(k.get(x));return P!=="pessimistic"&&(l.setQueriesData(k.action("list").params(L??{}).get(x),F=>F?{data:F.data.filter(D=>{var j;return((j=D.id)==null?void 0:j.toString())!==C.toString()}),total:F.total-1}:null),l.setQueriesData(k.action("many").get(x),F=>{if(!F)return null;let D=F.data.filter(j=>{var z;return((z=j.id)==null?void 0:z.toString())!==(C==null?void 0:C.toString())});return{...F,data:D}})),{previousQueries:B,queryKey:$}},onSettled:(C,w,{id:I,resource:T,dataProviderName:A,invalidates:O=["list","many"]})=>{let{identifier:R}=o(T);m({resource:R,dataProviderName:cr(R,A,i),invalidates:O}),c({type:"REMOVE",payload:{id:I,resource:R}})},onSuccess:(C,{id:w,resource:I,successNotification:T,dataProviderName:A,meta:O,metaData:R},N)=>{let{resource:_,identifier:L}=o(I),$=y.singular(L),k=cr(L,A,i),P=v({resource:_,meta:Ct(O,R)});l.removeQueries(N==null?void 0:N.queryKey.detail(w));let B=typeof T=="function"?T(C,w,L):T;h(B,{key:`${w}-${L}-notification`,description:d("notifications.success","Success"),message:d("notifications.deleteSuccess",{resource:d(`${L}.${L}`,$)},`Successfully deleted a ${$}`),type:"success"}),f==null||f({channel:`resources/${_.name}`,type:"deleted",payload:{ids:[w]},date:new Date,meta:{...P,dataProviderName:k}});let{fields:F,operation:D,variables:j,...z}=P||{};p==null||p.mutate({action:"delete",resource:_.name,meta:{id:w,dataProviderName:k,...z}}),l.removeQueries(N==null?void 0:N.queryKey.detail(w))},onError:(C,{id:w,resource:I,errorNotification:T},A)=>{let{identifier:O}=o(I);if(A)for(let R of A.previousQueries)l.setQueryData(R[0],R[1]);if(C.message!=="mutationCancelled"){r(C);let R=y.singular(O),N=typeof T=="function"?T(C,w,O):T;h(N,{key:`${w}-${O}-notification`,message:d("notifications.deleteError",{resource:R,statusCode:C.statusCode},`Error (status code: ${C.statusCode})`),description:C.message,type:"error"})}},mutationKey:b().data().mutation("delete").get(x),...e,meta:{...e==null?void 0:e.meta,...hr()}}),{elapsedTime:S}=Mo({isLoading:E.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...E,overtime:{elapsedTime:S}}},"useDelete"),X8e=ye(({mutationOptions:e,overtimeOptions:t}={})=>{let n=bl(),{resources:r,select:a}=xn(),i=on(),o=py(),l=Us(),s=js(),{log:u}=gy(),c=Wi(),{options:{textTransformers:d}}=Aa(),{keys:f,preferLegacyKeys:p}=ia(),h=Ya({mutationFn:({resource:v,values:y,meta:b,metaData:x,dataProviderName:E})=>{let{resource:S,identifier:C}=a(v),w=c({resource:S,meta:Ct(b,x)}),I=n(cr(C,E,r));return I.createMany?I.createMany({resource:S.name,variables:y,meta:w,metaData:w}):ck(y.map(T=>I.create({resource:S.name,variables:T,meta:w,metaData:w})))},onSuccess:(v,{resource:y,successNotification:b,dataProviderName:x,invalidates:E=["list","many"],values:S,meta:C,metaData:w})=>{let{resource:I,identifier:T}=a(y),A=d.plural(T),O=cr(T,x,r),R=c({resource:I,meta:Ct(C,w)}),N=typeof b=="function"?b(v,S,T):b;l(N,{key:`createMany-${T}-notification`,message:i("notifications.createSuccess",{resource:i(`${T}.${T}`,T)},`Successfully created ${A}`),description:i("notifications.success","Success"),type:"success"}),s({resource:T,dataProviderName:O,invalidates:E});let _=v==null?void 0:v.data.filter(B=>(B==null?void 0:B.id)!==void 0).map(B=>B.id);o==null||o({channel:`resources/${I.name}`,type:"created",payload:{ids:_},date:new Date,meta:{...R,dataProviderName:O}});let{fields:L,operation:$,variables:k,...P}=R||{};u==null||u.mutate({action:"createMany",resource:I.name,data:S,meta:{dataProviderName:O,ids:_,...P}})},onError:(v,{resource:y,errorNotification:b,values:x})=>{let{identifier:E}=a(y),S=typeof b=="function"?b(v,x,E):b;l(S,{key:`createMany-${E}-notification`,description:v.message,message:i("notifications.createError",{resource:i(`${E}.${E}`,E),statusCode:v.statusCode},`There was an error creating ${E} (status code: ${v.statusCode}`),type:"error"})},mutationKey:f().data().mutation("createMany").get(p),...e,meta:{...e==null?void 0:e.meta,...hr()}}),{elapsedTime:m}=Mo({isLoading:h.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...h,overtime:{elapsedTime:m}}},"useCreateMany");ye(({mutationOptions:e,overtimeOptions:t}={})=>{let{resources:n,select:r}=xn(),a=$c(),i=bl(),o=on(),{mutationMode:l,undoableTimeout:s}=Bg(),u=Wr(),{mutate:c}=Hs({v3LegacyAuthProviderCompatible:!!(u!=null&&u.isLegacy)}),{notificationDispatch:d}=ES(),f=py(),p=Us(),h=js(),{log:m}=gy(),v=Wi(),{options:{textTransformers:y}}=Aa(),{keys:b,preferLegacyKeys:x}=ia(),E=Ya({mutationFn:({ids:C,values:w,resource:I,onCancel:T,mutationMode:A,undoableTimeout:O,meta:R,metaData:N,dataProviderName:_})=>{let{resource:L,identifier:$}=r(I),k=v({resource:L,meta:Ct(R,N)}),P=A??l,B=O??s,F=i(cr($,_,n)),D=ye(()=>F.updateMany?F.updateMany({resource:L.name,ids:C,variables:w,meta:k,metaData:k}):ck(C.map(j=>F.update({resource:L.name,id:j,variables:w,meta:k,metaData:k}))),"mutationFn");return P!=="undoable"?D():new Promise((j,z)=>{let V=ye(()=>{D().then(W=>j(W)).catch(W=>z(W))},"doMutation"),G=ye(()=>{z({message:"mutationCancelled"})},"cancelMutation");T&&T(G),d({type:"ADD",payload:{id:C,resource:$,cancelMutation:G,doMutation:V,seconds:B,isSilent:!!T}})})},onMutate:async({resource:C,ids:w,values:I,mutationMode:T,dataProviderName:A,meta:O,metaData:R,optimisticUpdateMap:N={list:!0,many:!0,detail:!0}})=>{let{identifier:_}=r(C),{gqlMutation:L,gqlQuery:$,...k}=Ct(O,R)??{},P=uk(x)(_,cr(_,A,n),k),B=b().data(cr(_,A,n)).resource(_),F=T??l;await a.cancelQueries(B.get(x),void 0,{silent:!0});let D=a.getQueriesData(B.get(x));if(F!=="pessimistic"&&(N.list&&a.setQueriesData(B.action("list").params(k??{}).get(x),j=>{if(typeof N.list=="function")return N.list(j,I,w);if(!j)return null;let z=j.data.map(V=>V.id!==void 0&&w.filter(G=>G!==void 0).map(String).includes(V.id.toString())?{...V,...I}:V);return{...j,data:z}}),N.many&&a.setQueriesData(B.action("many").get(x),j=>{if(typeof N.many=="function")return N.many(j,I,w);if(!j)return null;let z=j.data.map(V=>V.id!==void 0&&w.filter(G=>G!==void 0).map(String).includes(V.id.toString())?{...V,...I}:V);return{...j,data:z}}),N.detail))for(let j of w)a.setQueriesData(B.action("one").id(j).params(k??{}).get(x),z=>{if(typeof N.detail=="function")return N.detail(z,I,j);if(!z)return null;let V={...z.data,...I};return{...z,data:V}});return{previousQueries:D,queryKey:P}},onSettled:(C,w,{ids:I,resource:T,dataProviderName:A})=>{let{identifier:O}=r(T);h({resource:O,invalidates:["list","many"],dataProviderName:cr(O,A,n)}),I.forEach(R=>h({resource:O,invalidates:["detail"],dataProviderName:cr(O,A,n),id:R})),d({type:"REMOVE",payload:{id:I,resource:O}})},onSuccess:(C,{ids:w,resource:I,meta:T,metaData:A,dataProviderName:O,successNotification:R,values:N},_)=>{let{resource:L,identifier:$}=r(I),k=y.singular($),P=cr($,O,n),B=v({resource:L,meta:Ct(T,A)}),F=typeof R=="function"?R(C,{ids:w,values:N},$):R;p(F,{key:`${w}-${$}-notification`,description:o("notifications.success","Successful"),message:o("notifications.editSuccess",{resource:o(`${$}.${$}`,$)},`Successfully updated ${k}`),type:"success"}),f==null||f({channel:`resources/${L.name}`,type:"updated",payload:{ids:w.map(String)},date:new Date,meta:{...B,dataProviderName:P}});let D=[];_&&w.forEach(W=>{let Y=a.getQueryData(_.queryKey.detail(W));D.push(Object.keys(N||{}).reduce((J,Z)=>{var K;return J[Z]=(K=Y==null?void 0:Y.data)==null?void 0:K[Z],J},{}))});let{fields:j,operation:z,variables:V,...G}=B||{};m==null||m.mutate({action:"updateMany",resource:L.name,data:N,previousData:D,meta:{ids:w,dataProviderName:P,...G}})},onError:(C,{ids:w,resource:I,errorNotification:T,values:A},O)=>{let{identifier:R}=r(I);if(O)for(let N of O.previousQueries)a.setQueryData(N[0],N[1]);if(C.message!=="mutationCancelled"){c==null||c(C);let N=y.singular(R),_=typeof T=="function"?T(C,{ids:w,values:A},R):T;p(_,{key:`${w}-${R}-updateMany-error-notification`,message:o("notifications.editError",{resource:N,statusCode:C.statusCode},`Error when updating ${N} (status code: ${C.statusCode})`),description:C.message,type:"error"})}},mutationKey:b().data().mutation("updateMany").get(x),...e,meta:{...e==null?void 0:e.meta,...hr()}}),{elapsedTime:S}=Mo({isLoading:E.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...E,overtime:{elapsedTime:S}}},"useUpdateMany");ye(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Wr(),{mutate:r}=Hs({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),{mutationMode:a,undoableTimeout:i}=Bg(),o=bl(),{notificationDispatch:l}=ES(),s=on(),u=py(),c=Us(),d=js(),{log:f}=gy(),{resources:p,select:h}=xn(),m=$c(),v=Wi(),{options:{textTransformers:y}}=Aa(),{keys:b,preferLegacyKeys:x}=ia(),E=Ya({mutationFn:({resource:C,ids:w,mutationMode:I,undoableTimeout:T,onCancel:A,meta:O,metaData:R,dataProviderName:N,values:_})=>{let{resource:L,identifier:$}=h(C),k=v({resource:L,meta:Ct(O,R)}),P=I??a,B=T??i,F=o(cr($,N,p)),D=ye(()=>F.deleteMany?F.deleteMany({resource:L.name,ids:w,meta:k,metaData:k,variables:_}):ck(w.map(j=>F.deleteOne({resource:L.name,id:j,meta:k,metaData:k,variables:_}))),"mutationFn");return P!=="undoable"?D():new Promise((j,z)=>{let V=ye(()=>{D().then(W=>j(W)).catch(W=>z(W))},"doMutation"),G=ye(()=>{z({message:"mutationCancelled"})},"cancelMutation");A&&A(G),l({type:"ADD",payload:{id:w,resource:$,cancelMutation:G,doMutation:V,seconds:B,isSilent:!!A}})})},onMutate:async({ids:C,resource:w,mutationMode:I,dataProviderName:T,meta:A,metaData:O})=>{let{identifier:R}=h(w),{gqlMutation:N,gqlQuery:_,...L}=Ct(A,O)??{},$=uk(x)(R,cr(R,T,p),L),k=b().data(cr(R,T,p)).resource(R),P=I??a;await m.cancelQueries(k.get(x),void 0,{silent:!0});let B=m.getQueriesData(k.get(x));if(P!=="pessimistic"){m.setQueriesData(k.action("list").params(L??{}).get(x),F=>F?{data:F.data.filter(D=>D.id&&!C.map(String).includes(D.id.toString())),total:F.total-1}:null),m.setQueriesData(k.action("many").get(x),F=>{if(!F)return null;let D=F.data.filter(j=>j.id?!C.map(String).includes(j.id.toString()):!1);return{...F,data:D}});for(let F of C)m.setQueriesData(k.action("one").id(F).params(L).get(x),D=>!D||D.data.id==F?null:{...D})}return{previousQueries:B,queryKey:$}},onSettled:(C,w,{resource:I,ids:T,dataProviderName:A,invalidates:O=["list","many"]})=>{let{identifier:R}=h(I);d({resource:R,dataProviderName:cr(R,A,p),invalidates:O}),l({type:"REMOVE",payload:{id:T,resource:R}})},onSuccess:(C,{ids:w,resource:I,meta:T,metaData:A,dataProviderName:O,successNotification:R},N)=>{let{resource:_,identifier:L}=h(I),$=cr(L,O,p),k=v({resource:_,meta:Ct(T,A)});w.forEach(z=>m.removeQueries(N==null?void 0:N.queryKey.detail(z)));let P=typeof R=="function"?R(C,w,L):R;c(P,{key:`${w}-${L}-notification`,description:s("notifications.success","Success"),message:s("notifications.deleteSuccess",{resource:s(`${L}.${L}`,L)},`Successfully deleted ${L}`),type:"success"}),u==null||u({channel:`resources/${_.name}`,type:"deleted",payload:{ids:w},date:new Date,meta:{...k,dataProviderName:$}});let{fields:B,operation:F,variables:D,...j}=k||{};f==null||f.mutate({action:"deleteMany",resource:_.name,meta:{ids:w,dataProviderName:$,...j}}),w.forEach(z=>m.removeQueries(N==null?void 0:N.queryKey.detail(z)))},onError:(C,{ids:w,resource:I,errorNotification:T},A)=>{let{identifier:O}=h(I);if(A)for(let R of A.previousQueries)m.setQueryData(R[0],R[1]);if(C.message!=="mutationCancelled"){r(C);let R=y.singular(O),N=typeof T=="function"?T(C,w,O):T;c(N,{key:`${w}-${O}-notification`,message:s("notifications.deleteError",{resource:R,statusCode:C.statusCode},`Error (status code: ${C.statusCode})`),description:C.message,type:"error"})}},mutationKey:b().data().mutation("deleteMany").get(x),...e,meta:{...e==null?void 0:e.meta,...hr()}}),{elapsedTime:S}=Mo({isLoading:E.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...E,overtime:{elapsedTime:S}}},"useDeleteMany");ye(e=>{var t;let n=bl(),{resource:r}=xn(),{getApiUrl:a}=n(e??((t=Ct(r==null?void 0:r.meta,r==null?void 0:r.options))==null?void 0:t.dataProviderName));return a()},"useApiUrl");var Q8e=ye(({url:e,method:t,config:n,queryOptions:r,successNotification:a,errorNotification:i,meta:o,metaData:l,dataProviderName:s,overtimeOptions:u})=>{let c=bl(),d=Wr(),{mutate:f}=Hs({v3LegacyAuthProviderCompatible:!!(d!=null&&d.isLegacy)}),p=on(),h=Us(),m=Wi(),{keys:v,preferLegacyKeys:y}=ia(),b=Ct(o,l),{custom:x}=c(s),E=m({meta:b});if(x){let S=$s({queryKey:v().data(s).mutation("custom").params({method:t,url:e,...n,...b||{}}).get(y),queryFn:({queryKey:w,pageParam:I,signal:T})=>x({url:e,method:t,...n,meta:{...E,queryContext:{queryKey:w,pageParam:I,signal:T}},metaData:{...E,queryContext:{queryKey:w,pageParam:I,signal:T}}}),...r,onSuccess:w=>{var I;(I=r==null?void 0:r.onSuccess)==null||I.call(r,w);let T=typeof a=="function"?a(w,{...n,...E}):a;h(T)},onError:w=>{var I;f(w),(I=r==null?void 0:r.onError)==null||I.call(r,w);let T=typeof i=="function"?i(w,{...n,...E}):i;h(T,{key:`${t}-notification`,message:p("notifications.error",{statusCode:w.statusCode},`Error (status code: ${w.statusCode})`),description:w.message,type:"error"})},meta:{...r==null?void 0:r.meta,...hr()}}),{elapsedTime:C}=Mo({isLoading:S.isFetching,interval:u==null?void 0:u.interval,onInterval:u==null?void 0:u.onInterval});return{...S,overtime:{elapsedTime:C}}}else throw Error("Not implemented custom on data provider.")},"useCustom");ye(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Wr(),{mutate:r}=Hs({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),a=Us(),i=bl(),o=on(),l=Wi(),{keys:s,preferLegacyKeys:u}=ia(),c=Ya(({url:f,method:p,values:h,meta:m,metaData:v,dataProviderName:y,config:b})=>{let x=l({meta:Ct(m,v)}),{custom:E}=i(y);if(E)return E({url:f,method:p,payload:h,meta:x,metaData:x,headers:{...b==null?void 0:b.headers}});throw Error("Not implemented custom on data provider.")},{onSuccess:(f,{successNotification:p,config:h,meta:m,metaData:v})=>{let y=typeof p=="function"?p(f,{...h,...Ct(m,v)||{}}):p;a(y)},onError:(f,{errorNotification:p,method:h,config:m,meta:v,metaData:y})=>{r(f);let b=typeof p=="function"?p(f,{...m,...Ct(v,y)||{}}):p;a(b,{key:`${h}-notification`,message:o("notifications.error",{statusCode:f.statusCode},`Error (status code: ${f.statusCode})`),description:f.message,type:"error"})},mutationKey:s().data().mutation("customMutation").get(u),...e,meta:{...e==null?void 0:e.meta,...hr()}}),{elapsedTime:d}=Mo({isLoading:c.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...c,overtime:{elapsedTime:d}}},"useCustomMutation");var Z8e=ye(()=>({}),"defaultDataProvider"),$B=M.createContext(Z8e()),J8e=ye(({children:e,...t})=>{let n;return!t.getList||!t.getOne?n=t:n={default:t},M.createElement($B.Provider,{value:n},e)},"DataContextProvider"),bl=ye(()=>{let e=g.useContext($B);return g.useCallback(t=>{if(t){if(!(e!=null&&e[t]))throw new Error(`"${t}" Data provider not found`);return e[t]}if(e.default)return e.default;throw new Error('There is no "default" data provider. Please pass dataProviderName.')},[e])},"useDataProvider");ye(({resource:e,config:t,filters:n,hasPagination:r,pagination:a,sorters:i,queryOptions:o,successNotification:l,errorNotification:s,meta:u,metaData:c,liveMode:d,onLiveEvent:f,liveParams:p,dataProviderName:h,overtimeOptions:m})=>{let{resources:v,resource:y,identifier:b}=xn(e),x=bl(),E=on(),S=Wr(),{mutate:C}=Hs({v3LegacyAuthProviderCompatible:!!(S!=null&&S.isLegacy)}),w=Us(),I=Wi(),{keys:T,preferLegacyKeys:A}=ia(),O=cr(b,h,v),R=Ct(u,c),N=Ct(n,t==null?void 0:t.filters),_=Ct(i,t==null?void 0:t.sort),L=Ct(r,t==null?void 0:t.hasPagination),$=Epe({pagination:a,configPagination:t==null?void 0:t.pagination,hasPagination:L}),k=$.mode==="server",P={meta:R,metaData:R,filters:N,hasPagination:k,pagination:$,sorters:_,config:{...t,sort:_}},B=(o==null?void 0:o.enabled)===void 0||(o==null?void 0:o.enabled)===!0,F=I({resource:y,meta:R}),{getList:D}=x(O);fk({resource:b,types:["*"],params:{meta:F,metaData:F,pagination:$,hasPagination:k,sort:_,sorters:_,filters:N,subscriptionType:"useList",...p},channel:`resources/${y.name}`,enabled:B,liveMode:d,onLiveEvent:f,dataProviderName:O,meta:{...F,dataProviderName:h}});let j=A4e({queryKey:T().data(O).resource(b).action("infinite").params({...R||{},filters:N,hasPagination:k,...k&&{pagination:$},...i&&{sorters:i},...(t==null?void 0:t.sort)&&{sort:t==null?void 0:t.sort}}).get(A),queryFn:({queryKey:V,pageParam:G,signal:W})=>{let Y={...$,current:G};return D({resource:y.name,pagination:Y,hasPagination:k,filters:N,sort:_,sorters:_,meta:{...F,queryContext:{queryKey:V,pageParam:G,signal:W}},metaData:{...F,queryContext:{queryKey:V,pageParam:G,signal:W}}}).then(({data:J,total:Z,...K})=>({data:J,total:Z,pagination:Y,...K}))},getNextPageParam:V=>O8e(V),getPreviousPageParam:V=>k8e(V),...o,onSuccess:V=>{var G;(G=o==null?void 0:o.onSuccess)==null||G.call(o,V);let W=typeof l=="function"?l(V,P,b):l;w(W)},onError:V=>{var G;C(V),(G=o==null?void 0:o.onError)==null||G.call(o,V);let W=typeof s=="function"?s(V,P,b):s;w(W,{key:`${b}-useInfiniteList-notification`,message:E("notifications.error",{statusCode:V.statusCode},`Error (status code: ${V.statusCode})`),description:V.message,type:"error"})},meta:{...o==null?void 0:o.meta,...hr()}}),{elapsedTime:z}=Mo({isLoading:j.isFetching,interval:m==null?void 0:m.interval,onInterval:m==null?void 0:m.onInterval});return{...j,overtime:{elapsedTime:z}}},"useInfiniteList");var yS=M.createContext(void 0),e5e=ye(({liveProvider:e,children:t})=>M.createElement(yS.Provider,{value:e},t),"LiveContextProvider"),t5e=ye(e=>{let t=g.useRef(e);return zf(t.current,e)||(t.current=e),t.current},"useMemoized"),Npe=ye((e,t)=>{let n=t5e(t);return g.useMemo(e,n)},"useDeepMemo"),bS=M.createContext({resources:[]}),n5e=ye(({resources:e,children:t})=>{let n=Npe(()=>R8e(e??[]),[e]);return M.createElement(bS.Provider,{value:{resources:n}},t)},"ResourceContextProvider"),Dpe=M.createContext("new"),r5e=Dpe.Provider,Gn=ye(()=>M.useContext(Dpe),"useRouterType"),Mpe={},xS=g.createContext(Mpe),a5e=ye(({children:e,router:t})=>M.createElement(xS.Provider,{value:t??Mpe},e),"RouterBindingsProvider"),i5e=ye(()=>{let e=g.useContext(xS);return M.useMemo(()=>(e==null?void 0:e.parse)??(()=>()=>({})),[e==null?void 0:e.parse])()},"useParse"),ss=ye(()=>{let e=i5e();return M.useMemo(()=>e(),[e])},"useParsed");function xn(e){let{resources:t}=g.useContext(bS),n=Gn(),r=ss(),a={resourceName:e&&typeof e!="string"?e.resourceName:e,resourceNameOrRouteName:e&&typeof e!="string"?e.resourceNameOrRouteName:e,recordItemId:e&&typeof e!="string"?e.recordItemId:void 0},i=ye((d,f=!0)=>{let p=So(d,t,n==="legacy");if(p)return{resource:p,identifier:p.identifier??p.name};if(f){let h={name:d,identifier:d},m=h.identifier??h.name;return{resource:h,identifier:m}}},"select"),o=o5e(),{useParams:l}=Fr(),s=l();if(n==="legacy"){let d=a.resourceNameOrRouteName?a.resourceNameOrRouteName:s.resource,f=d?o(d):void 0,p=(a==null?void 0:a.recordItemId)??s.id,h=s.action,m=(a==null?void 0:a.resourceName)??(f==null?void 0:f.name),v=(f==null?void 0:f.identifier)??(f==null?void 0:f.name);return{resources:t,resource:f,resourceName:m,id:p,action:h,select:i,identifier:v}}let u,c=typeof e=="string"?e:a==null?void 0:a.resourceNameOrRouteName;if(c){let d=So(c,t);d?u=d:u={name:c}}else r!=null&&r.resource&&(u=r.resource);return{resources:t,resource:u,resourceName:u==null?void 0:u.name,id:r.id,action:r.action,select:i,identifier:(u==null?void 0:u.identifier)??(u==null?void 0:u.name)}}ye(xn,"useResource");var o5e=ye(()=>{let{resources:e}=g.useContext(bS);return g.useCallback(t=>So(t,e,!0)||{name:t,route:t},[e])},"useResourceWithRoute"),js=ye(()=>{let{resources:e}=xn(),t=$c(),{keys:n,preferLegacyKeys:r}=ia();return g.useCallback(async({resource:a,dataProviderName:i,invalidates:o,id:l,invalidationFilters:s={type:"all",refetchType:"active"},invalidationOptions:u={cancelRefetch:!1}})=>{if(o===!1)return;let c=cr(a,i,e),d=n().data(c).resource(a??"");await Promise.all(o.map(f=>{switch(f){case"all":return t.invalidateQueries(n().data(c).get(r),s,u);case"list":return t.invalidateQueries(d.action("list").get(r),s,u);case"many":return t.invalidateQueries(d.action("many").get(r),s,u);case"resourceAll":return t.invalidateQueries(d.get(r),s,u);case"detail":return t.invalidateQueries(d.action("one").id(l||"").get(r),s,u);default:return}}))},[])},"useInvalidate"),fk=ye(({resource:e,params:t,channel:n,types:r,enabled:a=!0,liveMode:i,onLiveEvent:o,dataProviderName:l,meta:s})=>{var u;let{resource:c,identifier:d}=xn(e),f=g.useContext(yS),{liveMode:p,onLiveEvent:h}=g.useContext(Lp),m=i??p,v=js(),y=l??(s==null?void 0:s.dataProviderName)??((u=c==null?void 0:c.meta)==null?void 0:u.dataProviderName);g.useEffect(()=>{let b,x=ye(E=>{m==="auto"&&v({resource:d,dataProviderName:y,invalidates:["resourceAll"],invalidationFilters:{type:"active",refetchType:"active"},invalidationOptions:{cancelRefetch:!1}}),o==null||o(E),h==null||h(E)},"callback");return m&&m!=="off"&&a&&(b=f==null?void 0:f.subscribe({channel:n,params:{resource:c==null?void 0:c.name,...t},types:r,callback:x,dataProviderName:y,meta:{...s,dataProviderName:y}})),()=>{b&&(f==null||f.unsubscribe(b))}},[a])},"useResourceSubscription"),LB=ye(e=>{let{liveMode:t}=g.useContext(Lp);return e??t},"useLiveMode");ye(({params:e,channel:t,types:n=["*"],enabled:r=!0,onLiveEvent:a,dataProviderName:i="default",meta:o})=>{let l=g.useContext(yS);g.useEffect(()=>{let s;return r&&(s=l==null?void 0:l.subscribe({channel:t,params:e,types:n,callback:a,dataProviderName:i,meta:{...o,dataProviderName:i}})),()=>{s&&(l==null||l.unsubscribe(s))}},[r])},"useSubscription");var py=ye(()=>{let e=g.useContext(yS);return e==null?void 0:e.publish},"usePublish"),ES=ye(()=>{let{notifications:e,notificationDispatch:t}=g.useContext(Rpe);return{notifications:e,notificationDispatch:t}},"useCancelNotification"),PB=g.createContext({}),l5e=ye(({open:e,close:t,children:n})=>M.createElement(PB.Provider,{value:{open:e,close:t}},n),"NotificationContextProvider"),zg=ye(()=>{let{open:e,close:t}=g.useContext(PB);return{open:e,close:t}},"useNotification"),Us=ye(()=>{let{open:e}=zg();return g.useCallback((t,n)=>{t!==!1&&(t?e==null||e(t):n&&(e==null||e(n)))},[])},"useHandleNotification"),hy=M.createContext({}),s5e=ye(({children:e,i18nProvider:t})=>M.createElement(hy.Provider,{value:{i18nProvider:t}},e),"TranslationContextProvider");ye(()=>{let{i18nProvider:e}=g.useContext(hy);return g.useCallback(t=>e==null?void 0:e.changeLocale(t),[])},"useSetLocale");var on=ye(()=>{let{i18nProvider:e}=g.useContext(hy);return g.useMemo(()=>{function t(n,r,a){return(e==null?void 0:e.translate(n,r,a))??a??(typeof r=="string"&&typeof a>"u"?r:n)}return ye(t,"translate"),t},[e])},"useTranslate");ye(()=>{let{i18nProvider:e}=g.useContext(hy);return g.useCallback(()=>e==null?void 0:e.getLocale(),[])},"useGetLocale");ye(({resourceName:e,resource:t,sorter:n,sorters:r,filters:a,maxItemCount:i,pageSize:o=20,mapData:l=ye(m=>m,"mapData"),exportOptions:s,unparseConfig:u,meta:c,metaData:d,dataProviderName:f,onError:p,download:h}={})=>{let[m,v]=g.useState(!1),y=bl(),b=Wi(),{resource:x,resources:E,identifier:S}=xn(Ct(t,e)),C=`${Fc()(S,"plural")}-${new Date().toLocaleString()}`,{getList:w}=y(cr(S,f,E)),I=b({resource:x,meta:Ct(c,d)});return{isLoading:m,triggerExport:ye(async()=>{v(!0);let T=[],A=1,O=!0;for(;O;)try{let{data:L,total:$}=await w({resource:(x==null?void 0:x.name)??"",filters:a,sort:Ct(r,n),sorters:Ct(r,n),pagination:{current:A,pageSize:o,mode:"server"},meta:I,metaData:I});A++,T.push(...L),i&&T.length>=i&&(T=T.slice(0,i),O=!1),$===T.length&&(O=!1)}catch(L){v(!1),O=!1,p==null||p(L);return}let R=typeof u<"u"&&u!==null;mg(R&&typeof s<"u"&&s!==null,`[useExport]: resource: "${S}" + +Both \`unparseConfig\` and \`exportOptions\` are set, \`unparseConfig\` will take precedence`);let N={filename:C,useKeysAsHeaders:!0,useBom:!0,title:"My Generated Report",quoteStrings:'"',...s};mg((s==null?void 0:s.decimalSeparator)!==void 0,`[useExport]: resource: "${S}" + +Use of \`decimalSeparator\` no longer supported, please use \`mapData\` instead. + +See https://refine.dev/docs/api-reference/core/hooks/import-export/useExport/`),R?u={quotes:!0,...u}:u={columns:N.useKeysAsHeaders?void 0:N.headers,delimiter:N.fieldSeparator,header:N.showLabels||N.useKeysAsHeaders,quoteChar:N.quoteStrings,quotes:!0};let _=Qfe.unparse(T.map(l),u);if(N.showTitle&&(_=N.title+`\r + +`+_),typeof window<"u"&&_.length>0&&(h??!0)){let L=N.useTextFile?".txt":".csv",$=`text/${N.useTextFile?"plain":"csv"};charset=utf8;`,k=`${(N.filename??"download").replace(/ /g,"_")}${L}`;F8e(k,`${N!=null&&N.useBom?"\uFEFF":""}${_}`,$)}return v(!1),_},"triggerExport")}},"useExport");var u5e=ye(({resource:e,action:t,id:n,onMutationSuccess:r,onMutationError:a,redirect:i,successNotification:o,errorNotification:l,meta:s,metaData:u,queryMeta:c,mutationMeta:d,mutationMode:f,liveMode:p,onLiveEvent:h,liveParams:m,undoableTimeout:v,dataProviderName:y,invalidates:b,queryOptions:x,createMutationOptions:E,updateMutationOptions:S,overtimeOptions:C,autoSave:w,optimisticUpdateMap:I}={})=>{let T=js(),{options:A}=Aa(),O=Wi(),{resource:R,id:N,action:_,identifier:L}=xn(e),{identifier:$}=xn(),k=ye(()=>e&&e!==$?n:n??N,"getDefaultId")(),[P,B]=M.useState(k);M.useEffect(()=>{B(k)},[k]);let F=ye(()=>t||(_==="edit"||_==="clone"?_:"create"),"getAction")(),D=O({resource:R,meta:Ct(s,u)}),{mutationMode:j}=Bg(),z=f??j,V=F==="create",G=F==="edit",W=F==="clone";mg((W||G)&&!!e&&!n&&(x==null?void 0:x.enabled)!==!1,`[useForm]: action: "${F}", resource: "${L}", id: ${P} + +If you don't use the \`setId\` method to set the \`id\`, you should pass the \`id\` prop to \`useForm\`. Otherwise, \`useForm\` will not be able to infer the \`id\` from the current URL. + +See https://refine.dev/docs/api-reference/core/hooks/useForm/#resource`);let Y=I8e({redirectFromProps:i,action:F,redirectOptions:A.redirect}),J=kpe({resource:L,id:P??"",queryOptions:{enabled:P!==void 0&&(G||W),...x},liveMode:p,onLiveEvent:h,liveParams:m,meta:{...D,...c},metaData:{...D,...c},dataProviderName:y}),{isFetching:Z}=J,K=_pe({mutationOptions:E}),{mutate:ee,isLoading:ae}=K,te=iP({mutationOptions:S}),{mutate:re,isLoading:se}=te,ve=iP({}),{setWarnWhen:ge}=Pc(),xe=c5e(),me=ye(async Te=>{ge(!1);let pe=ye(Se=>{xe({redirect:Y,resource:R,id:Se,meta:Ct(s,u)})},"onSuccess");return z!=="pessimistic"&&setTimeout(()=>{pe()}),new Promise((Se,Ee)=>{if(z!=="pessimistic"&&Se(),!!R)return ee({values:Te,resource:L??R.name,successNotification:o,errorNotification:l,meta:{...D,...d},metaData:{...D,...d},dataProviderName:y,invalidates:b},{onSuccess:(we,ue,Ae)=>{var _e;r&&r(we,Te,Ae);let Re=(_e=we==null?void 0:we.data)==null?void 0:_e.id;pe(Re),Se(we)},onError:(we,ue,Ae)=>{if(a)return a(we,Te,Ae);Ee()}})})},"onFinishCreate");M.useEffect(()=>()=>{w!=null&&w.invalidateOnUnmount&&ve.status==="success"&&T({id:P,invalidates:b||["list","many","detail"],dataProviderName:y,resource:L})},[w==null?void 0:w.invalidateOnUnmount,ve.status]);let de=ye(Te=>{if(!R||!G)return;let pe={id:P??"",values:Te,resource:L??R.name,successNotification:!1,errorNotification:!1,meta:{...D,...d},metaData:{...D,...d},dataProviderName:y,invalidates:[],mutationMode:"pessimistic"};return ve.mutate(pe,{onSuccess:(Se,Ee,we)=>{r&&r(Se,Te,we,!0)},onError:(Se,Ee,we)=>{if(a)return a(Se,Te,we,!0)}})},"onFinishAutoSaveMutation"),Ce=Zfe(Te=>de(Te),(w==null?void 0:w.debounce)||1e3),Ie=V||W?{formLoading:Z||ae,mutationResult:K,onFinish:me}:{formLoading:Z||se,mutationResult:te,onFinish:ye(async Te=>{if(ge(!1),!R)return;let pe={id:P??"",values:Te,resource:L??R.name,mutationMode:z,undoableTimeout:v,successNotification:o,errorNotification:l,meta:{...D,...d},metaData:{...D,...d},dataProviderName:y,invalidates:b,optimisticUpdateMap:I},Se=ye(()=>{xe({redirect:Y,resource:R,id:P,meta:Ct(s,u)})},"onSuccess");return z!=="pessimistic"&&setTimeout(()=>{Se()}),new Promise((Ee,we)=>(z!=="pessimistic"&&Ee(),setTimeout(()=>{re(pe,{onSuccess:(ue,Ae,_e)=>{r&&r(ue,Te,_e),z==="pessimistic"&&Se(),Ee(ue)},onError:(ue,Ae,_e)=>{if(a)return a(ue,Te,_e);we()}})})))},"onFinishUpdate")},{elapsedTime:ke}=Mo({isLoading:Ie.mutationResult.isLoading||J.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{...Ie,queryResult:J,onFinishAutoSave:Ce,autoSaveProps:{status:ve.status,data:ve.data,error:ve.error},id:P,setId:B,redirect:(Te,pe)=>{xe({redirect:Te!==void 0?Te:G?"list":"edit",resource:R,id:pe??P,meta:Ct(s,u)})},overtime:{elapsedTime:ke}}},"useForm"),c5e=ye(()=>{let{show:e,edit:t,list:n,create:r}=pa();return g.useCallback(({redirect:a,resource:i,id:o,meta:l={}})=>{if(a&&i)return i.show&&a==="show"&&o?e(i,o,void 0,l):i.edit&&a==="edit"&&o?t(i,o,void 0,l):i.create&&a==="create"?r(i,void 0,l):n(i,"push",l)},[])},"useRedirectionAfterSubmission"),pk=ye(()=>{let e=Gn(),{resource:t,resources:n}=xn(),r=ss();return M.useCallback(({resource:a,action:i,meta:o})=>{var l;let s=a||t;if(!s)return;let u=(l=zl(s,n,e==="legacy").find(c=>c.action===i))==null?void 0:l.route;return u?xs(u,s==null?void 0:s.meta,r,o):void 0},[n,t,r])},"useGetToPath"),Ii=ye(()=>{let e=g.useContext(xS),{select:t}=xn(),n=pk(),r=M.useMemo(()=>(e==null?void 0:e.go)??(()=>()=>{}),[e==null?void 0:e.go])();return g.useCallback(a=>{if(typeof a.to!="object")return r({...a,to:a.to});let{resource:i}=t(a.to.resource);d5e(a.to,i);let o=n({resource:i,action:a.to.action,meta:{id:a.to.id,...a.to.meta}});return r({...a,to:o})},[t,r])},"useGo"),d5e=ye((e,t)=>{if(!(e!=null&&e.action)||!(e!=null&&e.resource))throw new Error('[useGo]: "action" or "resource" is required.');if(["edit","show","clone"].includes(e==null?void 0:e.action)&&!e.id)throw new Error(`[useGo]: [action: ${e.action}] requires an "id" for resource [resource: ${e.resource}]`);if(!t[e.action])throw new Error(`[useGo]: [action: ${e.action}] is not defined for [resource: ${e.resource}]`)},"handleResourceErrors"),hk=ye(()=>{let e=g.useContext(xS);return M.useMemo(()=>(e==null?void 0:e.back)??(()=>()=>{}),[e==null?void 0:e.back])()},"useBack"),pa=ye(()=>{let{resources:e}=xn(),t=Gn(),{useHistory:n}=Fr(),r=n(),a=ss(),i=Ii(),o=hk(),l=ye((p,h="push")=>{t==="legacy"?r[h](p):i({to:p,type:h})},"handleUrl"),s=ye((p,h={})=>{var m;if(t==="legacy"){let v=typeof p=="string"?So(p,e,!0)??{name:p,route:p}:p,y=zl(v,e,!0).find(b=>b.action==="create");return y?xs(y.route,v==null?void 0:v.meta,a,h):""}else{let v=typeof p=="string"?So(p,e)??{name:p}:p,y=(m=zl(v,e).find(b=>b.action==="create"))==null?void 0:m.route;return y?i({to:xs(y,v==null?void 0:v.meta,a,h),type:"path"}):""}},"createUrl"),u=ye((p,h,m={})=>{var v;let y=encodeURIComponent(h);if(t==="legacy"){let b=typeof p=="string"?So(p,e,!0)??{name:p,route:p}:p,x=zl(b,e,!0).find(E=>E.action==="edit");return x?xs(x.route,b==null?void 0:b.meta,a,{...m,id:y}):""}else{let b=typeof p=="string"?So(p,e)??{name:p}:p,x=(v=zl(b,e).find(E=>E.action==="edit"))==null?void 0:v.route;return x?i({to:xs(x,b==null?void 0:b.meta,a,{...m,id:y}),type:"path"}):""}},"editUrl"),c=ye((p,h,m={})=>{var v;let y=encodeURIComponent(h);if(t==="legacy"){let b=typeof p=="string"?So(p,e,!0)??{name:p,route:p}:p,x=zl(b,e,!0).find(E=>E.action==="clone");return x?xs(x.route,b==null?void 0:b.meta,a,{...m,id:y}):""}else{let b=typeof p=="string"?So(p,e)??{name:p}:p,x=(v=zl(b,e).find(E=>E.action==="clone"))==null?void 0:v.route;return x?i({to:xs(x,b==null?void 0:b.meta,a,{...m,id:y}),type:"path"}):""}},"cloneUrl"),d=ye((p,h,m={})=>{var v;let y=encodeURIComponent(h);if(t==="legacy"){let b=typeof p=="string"?So(p,e,!0)??{name:p,route:p}:p,x=zl(b,e,!0).find(E=>E.action==="show");return x?xs(x.route,b==null?void 0:b.meta,a,{...m,id:y}):""}else{let b=typeof p=="string"?So(p,e)??{name:p}:p,x=(v=zl(b,e).find(E=>E.action==="show"))==null?void 0:v.route;return x?i({to:xs(x,b==null?void 0:b.meta,a,{...m,id:y}),type:"path"}):""}},"showUrl"),f=ye((p,h={})=>{var m;if(t==="legacy"){let v=typeof p=="string"?So(p,e,!0)??{name:p,route:p}:p,y=zl(v,e,!0).find(b=>b.action==="list");return y?xs(y.route,v==null?void 0:v.meta,a,h):""}else{let v=typeof p=="string"?So(p,e)??{name:p}:p,y=(m=zl(v,e).find(b=>b.action==="list"))==null?void 0:m.route;return y?i({to:xs(y,v==null?void 0:v.meta,a,h),type:"path"}):""}},"listUrl");return{create:ye((p,h="push",m={})=>{l(s(p,m),h)},"create"),createUrl:s,edit:ye((p,h,m="push",v={})=>{l(u(p,h,v),m)},"edit"),editUrl:u,clone:ye((p,h,m="push",v={})=>{l(c(p,h,v),m)},"clone"),cloneUrl:c,show:ye((p,h,m="push",v={})=>{l(d(p,h,v),m)},"show"),showUrl:d,list:ye((p,h="push",m={})=>{l(f(p,m),h)},"list"),listUrl:f,push:ye((p,...h)=>{t==="legacy"?r.push(p,...h):i({to:p,type:"push"})},"push"),replace:ye((p,...h)=>{t==="legacy"?r.replace(p,...h):i({to:p,type:"replace"})},"replace"),goBack:ye(()=>{t==="legacy"?r.goBack():o()},"goBack")}},"useNavigation");ye(({resource:e,id:t,successNotification:n,errorNotification:r,meta:a,metaData:i,liveMode:o,onLiveEvent:l,dataProviderName:s,queryOptions:u,overtimeOptions:c}={})=>{let{resource:d,id:f,identifier:p}=xn(e),{identifier:h}=xn(),m=Wi(),v=ye(()=>e&&e!==h?t:t??f,"getDefaultId")(),[y,b]=g.useState(v);M.useEffect(()=>{b(v)},[v]);let x=m({resource:d,meta:Ct(a,i)});mg(!!e&&!t,`[useShow]: resource: "${p}", id: ${t} + +If you don't use the \`setShowId\` method to set the \`showId\`, you should pass the \`id\` prop to \`useShow\`. Otherwise, \`useShow\` will not be able to infer the \`id\` from the current URL. + +See https://refine.dev/docs/api-reference/core/hooks/show/useShow/#resource`);let E=kpe({resource:p,id:y??"",queryOptions:{enabled:y!==void 0,...u},successNotification:n,errorNotification:r,meta:x,metaData:x,liveMode:o,onLiveEvent:l,dataProviderName:s}),{elapsedTime:S}=Mo({isLoading:E.isFetching,interval:c==null?void 0:c.interval,onInterval:c==null?void 0:c.onInterval});return{queryResult:E,showId:y,setShowId:b,overtime:{elapsedTime:S}}},"useShow");var f5e=ye(({resourceName:e,resource:t,mapData:n=ye(c=>c,"mapData"),paparseOptions:r,batchSize:a=Number.MAX_SAFE_INTEGER,onFinish:i,meta:o,metaData:l,onProgress:s,dataProviderName:u}={})=>{let[c,d]=g.useState(0),[f,p]=g.useState(0),[h,m]=g.useState(!1),{resource:v,identifier:y}=xn(t??e),b=Wi(),x=X8e(),E=_pe(),S=b({resource:v,meta:Ct(o,l)}),C;a===1?C=E:C=x;let w=ye(()=>{p(0),d(0),m(!1)},"handleCleanup"),I=ye(A=>{let O={succeeded:A.filter(R=>R.type==="success"),errored:A.filter(R=>R.type==="error")};i==null||i(O),m(!1)},"handleFinish");g.useEffect(()=>{s==null||s({totalAmount:f,processedAmount:c})},[f,c]);let T=ye(({file:A})=>(w(),new Promise(O=>{m(!0),Qfe.parse(A,{complete:async({data:R})=>{let N=m8e(R,n);if(p(N.length),a===1){let _=N.map($=>ye(async()=>({response:await E.mutateAsync({resource:y??"",values:$,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:S,metaData:S}),value:$}),"fn")),L=await VX(_,({response:$,value:k})=>(d(P=>P+1),{response:[$.data],type:"success",request:[k]}),($,k)=>({response:[$],type:"error",request:[N[k]]}));O(L)}else{let _=HFe(N,a),L=_.map(k=>ye(async()=>({response:await x.mutateAsync({resource:y??"",values:k,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:S,metaData:S}),value:k,currentBatchLength:k.length}),"fn")),$=await VX(L,({response:k,currentBatchLength:P,value:B})=>(d(F=>F+P),{response:k.data,type:"success",request:B}),(k,P)=>({response:[k],type:"error",request:_[P]}));O($)}},...r})}).then(O=>(I(O),O))),"handleChange");return{inputProps:{type:"file",accept:".csv",onChange:A=>{A.target.files&&A.target.files.length>0&&T({file:A.target.files[0]})}},mutationResult:C,isLoading:h,handleChange:T}},"useImport"),$pe=ye(({defaultVisible:e=!1}={})=>{let[t,n]=g.useState(e),r=g.useCallback(()=>n(!0),[t]),a=g.useCallback(()=>n(!1),[t]);return{visible:t,show:r,close:a}},"useModal"),Lpe=ye(({resource:e,action:t,meta:n,legacy:r})=>pk()({resource:e,action:t,meta:n,legacy:r}),"useToPath"),Oi=ye(()=>{let e=g.useContext(xS);return e!=null&&e.Link?e.Link:ye(({to:t,...n})=>M.createElement("a",{href:t,...n}),"FallbackLink")},"useLink"),Af={useHistory:()=>!1,useLocation:()=>!1,useParams:()=>({}),Prompt:()=>null,Link:()=>null},p5e=M.createContext(Af),FB=p5e,h5e=ye(({children:e,useHistory:t,useLocation:n,useParams:r,Prompt:a,Link:i,routes:o})=>M.createElement(FB.Provider,{value:{useHistory:t??Af.useHistory,useLocation:n??Af.useLocation,useParams:r??Af.useParams,Prompt:a??Af.Prompt,Link:i??Af.Link,routes:o??Af.routes}},e),"LegacyRouterContextProvider"),Fr=ye(()=>{let e=g.useContext(FB),{useHistory:t,useLocation:n,useParams:r,Prompt:a,Link:i,routes:o}=e??Af;return{useHistory:t,useLocation:n,useParams:r,Prompt:a,Link:i,routes:o}},"useRouterContext"),Bc=M.createContext({options:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1}}}),g5e=ye(({can:e,children:t,options:n})=>M.createElement(Bc.Provider,{value:{can:e,options:n?{...n,buttons:{enableAccessControl:!0,hideIfUnauthorized:!1,...n.buttons}}:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1},queryOptions:void 0}}},t),"AccessControlContextProvider"),BB=ye(e=>{if(!e)return;let{icon:t,list:n,edit:r,create:a,show:i,clone:o,children:l,meta:s,options:u,...c}=e,{icon:d,...f}=s??{},{icon:p,...h}=u??{};return{...c,...s?{meta:f}:{},...u?{options:h}:{}}},"sanitizeResource"),Hg=ye(({action:e,resource:t,params:n,queryOptions:r})=>{let{can:a,options:i}=g.useContext(Bc),{keys:o,preferLegacyKeys:l}=ia(),{queryOptions:s}=i||{},u={...s,...r},{resource:c,...d}=n??{},f=BB(c),p=$s({queryKey:o().access().resource(t).action(e).params({params:{...d,resource:f},enabled:u==null?void 0:u.enabled}).get(l),queryFn:()=>(a==null?void 0:a({action:e,resource:t,params:{...d,resource:f}}))??Promise.resolve({can:!0}),enabled:typeof a<"u",...u,meta:{...u==null?void 0:u.meta,...hr()},retry:!1});return typeof a>"u"?{data:{can:!0}}:p},"useCan"),m5e=ye(()=>{let{can:e}=M.useContext(Bc);return{can:M.useMemo(()=>e?ye(async({params:t,...n})=>{let r=t!=null&&t.resource?BB(t.resource):void 0;return e({...n,...t?{params:{...t,resource:r}}:{}})},"canWithSanitizedResource"):void 0,[e])}},"useCanWithoutCache"),zB=ye(e=>{let[t,n]=g.useState([]),[r,a]=g.useState([]),[i,o]=g.useState([]),{resource:l,sort:s,sorters:u,filters:c=[],optionLabel:d="title",optionValue:f="id",debounce:p=300,successNotification:h,errorNotification:m,defaultValueQueryOptions:v,queryOptions:y,fetchSize:b,pagination:x,hasPagination:E=!1,liveMode:S,defaultValue:C=[],onLiveEvent:w,onSearch:I,liveParams:T,meta:A,metaData:O,dataProviderName:R,overtimeOptions:N}=e,{resource:_,identifier:L}=xn(l),$=Wi()({resource:_,meta:Ct(A,O)}),k=Array.isArray(C)?C:[C],P=g.useCallback(W=>{o(W.data.map(Y=>({label:E1(Y,d),value:E1(Y,f)})))},[d,f]),B=v??y,F=G8e({resource:L,ids:k,queryOptions:{...B,enabled:k.length>0&&((B==null?void 0:B.enabled)??!0),onSuccess:W=>{var Y;P(W),(Y=B==null?void 0:B.onSuccess)==null||Y.call(B,W)}},meta:$,metaData:$,liveMode:"off",dataProviderName:R}),D=g.useCallback(W=>{a(W.data.map(Y=>({label:E1(Y,d),value:E1(Y,f)})))},[d,f]),j=yp({resource:L,sorters:Ct(u,s),filters:c.concat(t),pagination:{current:x==null?void 0:x.current,pageSize:(x==null?void 0:x.pageSize)??b,mode:x==null?void 0:x.mode},hasPagination:E,queryOptions:{...y,onSuccess:W=>{var Y;D(W),(Y=y==null?void 0:y.onSuccess)==null||Y.call(y,W)}},successNotification:h,errorNotification:m,meta:$,metaData:$,liveMode:S,liveParams:T,onLiveEvent:w,dataProviderName:R}),z=ye(W=>{if(I){n(I(W));return}if(W)n([{field:d,operator:"contains",value:W}]);else{n([]);return}},"onSearch"),{elapsedTime:V}=Mo({isLoading:j.isFetching||F.isFetching,interval:N==null?void 0:N.interval,onInterval:N==null?void 0:N.onInterval}),G=g.useMemo(()=>h8e([...r,...i],"value"),[r,i]);return{queryResult:j,defaultValueQueryResult:F,options:G,onSearch:Zfe(z,p),overtime:{elapsedTime:V}}},"useSelect"),ZX=[],JX=[];function HB({initialCurrent:e,initialPageSize:t,hasPagination:n=!0,pagination:r,initialSorter:a,permanentSorter:i=JX,defaultSetFilterBehavior:o,initialFilter:l,permanentFilter:s=ZX,filters:u,sorters:c,syncWithLocation:d,resource:f,successNotification:p,errorNotification:h,queryOptions:m,liveMode:v,onLiveEvent:y,liveParams:b,meta:x,metaData:E,dataProviderName:S,overtimeOptions:C}={}){var w,I,T,A,O;let{syncWithLocation:R}=L8e(),N=d??R,_=LB(v),L=Gn(),{useLocation:$}=Fr(),{search:k,pathname:P}=$(),B=Wi(),F=ss(),D=((u==null?void 0:u.mode)||"server")==="server",j=((c==null?void 0:c.mode)||"server")==="server",z=n===!1?"off":"server",V=((r==null?void 0:r.mode)??z)!=="off",G=Ct(r==null?void 0:r.current,e),W=Ct(r==null?void 0:r.pageSize,t),Y=Ct(x,E),{parsedCurrent:J,parsedPageSize:Z,parsedSorter:K,parsedFilters:ee}=wpe(k??"?"),ae=Ct(u==null?void 0:u.initial,l),te=Ct(u==null?void 0:u.permanent,s)??ZX,re=Ct(c==null?void 0:c.initial,a),se=Ct(c==null?void 0:c.permanent,i)??JX,ve=Ct(u==null?void 0:u.defaultBehavior,o)??"merge",ge,xe,me,de;N?(ge=((w=F==null?void 0:F.params)==null?void 0:w.current)||J||G||1,xe=((I=F==null?void 0:F.params)==null?void 0:I.pageSize)||Z||W||10,me=((T=F==null?void 0:F.params)==null?void 0:T.sorters)||(K.length?K:re),de=((A=F==null?void 0:F.params)==null?void 0:A.filters)||(ee.length?ee:ae)):(ge=G||1,xe=W||10,me=re,de=ae);let{replace:Ce}=pa(),Ie=Ii(),{resource:ke,identifier:Te}=xn(f),pe=B({resource:ke,meta:Y});M.useEffect(()=>{mg(typeof Te>"u","useTable: `resource` is not defined.")},[Te]);let[Se,Ee]=g.useState(QX(se,me??[])),[we,ue]=g.useState(XX(te,de??[])),[Ae,_e]=g.useState(ge),[Re,Be]=g.useState(xe),Me=ye(({pagination:{current:Je,pageSize:je},sorter:Ze,filters:Xe})=>{if(L==="new")return Ie({type:"path",options:{keepHash:!0,keepQuery:!0},query:{...V?{current:Je,pageSize:je}:{},sorters:Ze,filters:Xe,...$e()}})??"";{let Ye=fg.parse(k==null?void 0:k.substring(1)),at=YX({pagination:{pageSize:je,current:Je},sorters:Se??Ze,filters:Xe,...Ye});return`${P??""}?${at??""}`}},"createLinkForSyncWithLocation");g.useEffect(()=>{k===""&&(_e(ge),Be(xe),Ee(QX(se,me??[])),ue(XX(te,de??[])))},[k]);let $e=ye(()=>{if(L==="new"){let{sorters:Je,filters:je,pageSize:Ze,current:Xe,...Ye}=(F==null?void 0:F.params)??{};return Ye}else{let{sorter:Je,filters:je,pageSize:Ze,current:Xe,...Ye}=fg.parse(k,{ignoreQueryPrefix:!0});return Ye}},"currentQueryParams");g.useEffect(()=>{if(N){let Je=$e();if(L==="new")Ie({type:"replace",options:{keepQuery:!0},query:{...V?{pageSize:Re,current:Ae}:{},sorters:Cv(Se,se,zf),filters:Cv(we,te,zf)}});else{let je=YX({...V?{pagination:{pageSize:Re,current:Ae}}:{},sorters:Cv(Se,se,zf),filters:Cv(we,te,zf),...Je});return Ce==null?void 0:Ce(`${P}?${je}`,void 0,{shallow:!0})}}},[N,Ae,Re,Se,we]);let Fe=yp({resource:Te,hasPagination:n,pagination:{current:Ae,pageSize:Re,mode:r==null?void 0:r.mode},filters:D?Iw(te,we):void 0,sorters:j?KX(se,Se):void 0,queryOptions:m,successNotification:p,errorNotification:h,meta:pe,metaData:pe,liveMode:_,liveParams:b,onLiveEvent:y,dataProviderName:S}),He=ye(Je=>{ue(je=>Iw(te,Je,je))},"setFiltersAsMerge"),Le=ye(Je=>{ue(Iw(te,Je))},"setFiltersAsReplace"),Ke=ye(Je=>{ue(je=>Iw(te,Je(je)))},"setFiltersWithSetter"),ft=ye((Je,je=ve)=>{typeof Je=="function"?Ke(Je):je==="replace"?Le(Je):He(Je)},"setFiltersFn"),gt=ye(Je=>{Ee(()=>KX(se,Je))},"setSortWithUnion"),{elapsedTime:Nt}=Mo({isLoading:Fe.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{tableQueryResult:Fe,sorters:Se,setSorters:gt,sorter:Se,setSorter:gt,filters:we,setFilters:ft,current:Ae,setCurrent:_e,pageSize:Re,setPageSize:Be,pageCount:Re?Math.ceil((((O=Fe.data)==null?void 0:O.total)??0)/Re):1,createLinkForSyncWithLocation:Me,overtime:{elapsedTime:Nt}}}ye(HB,"useTable");var gk=M.createContext({}),v5e=ye(({create:e,get:t,update:n,children:r})=>M.createElement(gk.Provider,{value:{create:e,get:t,update:n}},r),"AuditLogContextProvider"),gy=ye(({logMutationOptions:e,renameMutationOptions:t}={})=>{let n=$c(),r=g.useContext(gk),{keys:a,preferLegacyKeys:i}=ia(),o=Wr(),{resources:l}=g.useContext(bS),{data:s,refetch:u,isLoading:c}=fy({v3LegacyAuthProviderCompatible:!!(o!=null&&o.isLegacy),queryOptions:{enabled:!!(r!=null&&r.create)}}),d=Ya(async p=>{var h,m,v,y,b;let x=So(p.resource,l),E=Ct((h=x==null?void 0:x.meta)==null?void 0:h.audit,(m=x==null?void 0:x.options)==null?void 0:m.audit,(y=(v=x==null?void 0:x.options)==null?void 0:v.auditLog)==null?void 0:y.permissions);if(E&&!b8e(E,p.action))return;let S;return c&&r!=null&&r.create&&(S=await u()),await((b=r.create)==null?void 0:b.call(r,{...p,author:s??(S==null?void 0:S.data)}))},{mutationKey:a().audit().action("log").get(),...e,meta:{...e==null?void 0:e.meta,...hr()}}),f=Ya(async p=>{var h;return await((h=r.update)==null?void 0:h.call(r,p))},{onSuccess:p=>{p!=null&&p.resource&&n.invalidateQueries(a().audit().resource((p==null?void 0:p.resource)??"").action("list").get(i))},mutationKey:a().audit().action("rename").get(),...t,meta:{...t==null?void 0:t.meta,...hr()}});return{log:d,rename:f}},"useLog");ye(({resource:e,action:t,meta:n,author:r,metaData:a,queryOptions:i})=>{let{get:o}=g.useContext(gk),{keys:l,preferLegacyKeys:s}=ia();return $s({queryKey:l().audit().resource(e).action("list").params(n).get(s),queryFn:()=>(o==null?void 0:o({resource:e,action:t,author:r,meta:n,metaData:a}))??Promise.resolve([]),enabled:typeof o<"u",...i,retry:!1,meta:{...i==null?void 0:i.meta,...hr()}})},"useLogList");var y5e=ye(({meta:e={}}={})=>{let t=Gn(),{i18nProvider:n}=g.useContext(hy),r=ss(),a=on(),{resources:i,resource:o,action:l}=xn(),{options:{textTransformers:s}}=Aa(),u=[];if(!(o!=null&&o.name))return{breadcrumbs:u};let c=ye(d=>{var f,p,h,m,v,y;let b=typeof d=="string"?So(d,i,t==="legacy")??{name:d}:d;if(b){let x=Ct((f=b==null?void 0:b.meta)==null?void 0:f.parent,b==null?void 0:b.parentName);x&&c(x);let E=zl(b,i,t==="legacy").find(w=>w.action==="list"),S=(p=E==null?void 0:E.resource)!=null&&p.list?E==null?void 0:E.route:void 0,C=S?t==="legacy"?S:xs(S,b==null?void 0:b.meta,r,e):void 0;u.push({label:Ct((h=b.meta)==null?void 0:h.label,(m=b.options)==null?void 0:m.label)??a(`${b.name}.${b.name}`,s.humanize(b.name)),href:C,icon:Ct((v=b.meta)==null?void 0:v.icon,(y=b.options)==null?void 0:y.icon,b.icon)})}},"addBreadcrumb");if(c(o),l&&l!=="list"){let d=`actions.${l}`,f=a(d);typeof n<"u"&&f===d?(mg(!0,`[useBreadcrumb]: Breadcrumb missing translate key for the "${l}" action. Please add "actions.${l}" key to your translation file. +For more information, see https://refine.dev/docs/api-reference/core/hooks/useBreadcrumb/#i18n-support`),u.push({label:a(`buttons.${l}`,s.humanize(l))})):u.push({label:a(d,s.humanize(l))})}return{breadcrumbs:u}},"useBreadcrumb"),$T=ye((e,t,n=!1)=>{let r=[],a=vp(e,t);for(;a;)r.push(a),a=vp(a,t);return r.reverse(),`/${[...r,e].map(i=>$d((n?i.route:void 0)??i.identifier??i.name)).join("/").replace(/^\//,"")}`},"createResourceKey"),b5e=ye((e,t=!1)=>{let n={item:{name:"__root__"},children:{}};e.forEach(a=>{let i=[],o=vp(a,e);for(;o;)i.push(o),o=vp(o,e);i.reverse();let l=n;i.forEach(u=>{let c=(t?u.route:void 0)??u.identifier??u.name;l.children[c]||(l.children[c]={item:u,children:{}}),l=l.children[c]});let s=(t?a.route:void 0)??a.identifier??a.name;l.children[s]||(l.children[s]={item:a,children:{}})});let r=ye(a=>{let i=[];return Object.keys(a.children).forEach(o=>{let l=$T(a.children[o].item,e,t),s={...a.children[o].item,key:l,children:r(a.children[o])};i.push(s)}),i},"flatten");return r(n)},"createTree"),eQ=ye(e=>e.split("?")[0].split("#")[0].replace(/(.+)(\/$)/,"$1"),"getCleanPath"),jB=ye(({meta:e,hideOnMissingParameter:t}={hideOnMissingParameter:!0})=>{let n=on(),r=pk(),a=Gn(),{resource:i,resources:o}=xn(),{pathname:l}=ss(),{useLocation:s}=Fr(),{pathname:u}=s(),c=Fc(),d=`/${((a==="legacy"?eQ(u):l?eQ(l):void 0)??"").replace(/^\//,"")}`,f=i?$T(i,o,a==="legacy"):d??"",p=M.useMemo(()=>{if(!i)return[];let v=vp(i,o),y=[$T(i,o)];for(;v;)y.push($T(v,o)),v=vp(v,o);return y},[]),h=M.useCallback(v=>{var y,b,x,E,S,C;if((((y=v==null?void 0:v.meta)==null?void 0:y.hide)??((b=v==null?void 0:v.options)==null?void 0:b.hide))||!(v!=null&&v.list)&&v.children.length===0)return;let w=v.list?r({resource:v,action:"list",legacy:a==="legacy",meta:e}):void 0;if(!(t&&w&&w.match(/(\/|^):(.+?)(\/|$){1}/)))return{...v,route:w,icon:Ct((x=v.meta)==null?void 0:x.icon,(E=v.options)==null?void 0:E.icon,v.icon),label:Ct((S=v==null?void 0:v.meta)==null?void 0:S.label,(C=v==null?void 0:v.options)==null?void 0:C.label)??n(`${v.name}.${v.name}`,c(v.name,"plural"))}},[a,e,r,n,t]),m=M.useMemo(()=>{let v=b5e(o,a==="legacy"),y=ye(b=>b.flatMap(x=>{let E=y(x.children),S=h({...x,children:E});return S?[S]:[]}),"prepare");return y(v)},[o,a,h]);return{defaultOpenKeys:p,selectedKey:f,menuItems:m}},"useMenu"),Wi=ye(()=>{let{params:e}=ss();return ye(({resource:t,meta:n}={})=>{let{meta:r}=BB(t)??{meta:{}},{filters:a,sorters:i,current:o,pageSize:l,...s}=e??{};return{...r,...s,...n}},"getMetaFn")},"useMeta");ye(()=>{let[e,t]=g.useState(),n=on(),{push:r}=pa(),a=Ii(),i=Gn(),{resource:o,action:l}=xn();return g.useEffect(()=>{o&&l&&t(n("pages.error.info",{action:l,resource:o.name},`You may have forgotten to add the "${l}" component to "${o.name}" resource.`))},[o,l]),M.createElement(M.Fragment,null,M.createElement("h1",null,n("pages.error.404",void 0,"Sorry, the page you visited does not exist.")),e&&M.createElement("p",null,e),M.createElement("button",{onClick:()=>{i==="legacy"?r("/"):a({to:"/"})}},n("pages.error.backHome",void 0,"Back Home")))},"ErrorComponent");var x5e=ye(()=>{let[e,t]=g.useState(""),[n,r]=g.useState(""),a=on(),i=Wr(),{mutate:o}=vS({v3LegacyAuthProviderCompatible:!!(i!=null&&i.isLegacy)});return M.createElement(M.Fragment,null,M.createElement("h1",null,a("pages.login.title","Sign in your account")),M.createElement("form",{onSubmit:l=>{l.preventDefault(),o({username:e,password:n})}},M.createElement("table",null,M.createElement("tbody",null,M.createElement("tr",null,M.createElement("td",null,a("pages.login.username",void 0,"username"),":"),M.createElement("td",null,M.createElement("input",{type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",autoFocus:!0,required:!0,value:e,onChange:l=>t(l.target.value)}))),M.createElement("tr",null,M.createElement("td",null,a("pages.login.password",void 0,"password"),":"),M.createElement("td",null,M.createElement("input",{type:"password",required:!0,size:20,value:n,onChange:l=>r(l.target.value)}))))),M.createElement("br",null),M.createElement("input",{type:"submit",value:"login"})))},"LoginPage"),E5e=ye(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:a,wrapperProps:i,renderContent:o,formProps:l,title:s=void 0,hideForm:u})=>{let c=Gn(),d=Oi(),{Link:f}=Fr(),p=c==="legacy"?f:d,[h,m]=g.useState(""),[v,y]=g.useState(""),[b,x]=g.useState(!1),E=on(),S=Wr(),{mutate:C}=vS({v3LegacyAuthProviderCompatible:!!(S!=null&&S.isLegacy)}),w=ye((A,O)=>M.createElement(p,{to:A},O),"renderLink"),I=ye(()=>e?e.map(A=>M.createElement("div",{key:A.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},M.createElement("button",{onClick:()=>C({providerName:A.name}),style:{display:"flex",alignItems:"center"}},A==null?void 0:A.icon,A.label??M.createElement("label",null,A.label)))):null,"renderProviders"),T=M.createElement("div",{...a},M.createElement("h1",{style:{textAlign:"center"}},E("pages.login.title","Sign in to your account")),I(),!u&&M.createElement(M.Fragment,null,M.createElement("hr",null),M.createElement("form",{onSubmit:A=>{A.preventDefault(),C({email:h,password:v,remember:b})},...l},M.createElement("div",{style:{display:"flex",flexDirection:"column",padding:25}},M.createElement("label",{htmlFor:"email-input"},E("pages.login.fields.email","Email")),M.createElement("input",{id:"email-input",name:"email",type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",required:!0,value:h,onChange:A=>m(A.target.value)}),M.createElement("label",{htmlFor:"password-input"},E("pages.login.fields.password","Password")),M.createElement("input",{id:"password-input",type:"password",name:"password",required:!0,size:20,value:v,onChange:A=>y(A.target.value)}),r??M.createElement(M.Fragment,null,M.createElement("label",{htmlFor:"remember-me-input"},E("pages.login.buttons.rememberMe","Remember me"),M.createElement("input",{id:"remember-me-input",name:"remember",type:"checkbox",size:20,checked:b,value:b.toString(),onChange:()=>{x(!b)}}))),M.createElement("br",null),n??w("/forgot-password",E("pages.login.buttons.forgotPassword","Forgot password?")),M.createElement("input",{type:"submit",value:E("pages.login.signin","Sign in")}),t??M.createElement("span",null,E("pages.login.buttons.noAccount","Don’t have an account?")," ",w("/register",E("pages.login.register","Sign up")))))),t!==!1&&u&&M.createElement("div",{style:{textAlign:"center"}},E("pages.login.buttons.noAccount","Don’t have an account?")," ",w("/register",E("pages.login.register","Sign up"))));return M.createElement("div",{...i},o?o(T,s):T)},"LoginPage"),S5e=ye(({providers:e,loginLink:t,wrapperProps:n,contentProps:r,renderContent:a,formProps:i,title:o=void 0,hideForm:l})=>{let s=Gn(),u=Oi(),{Link:c}=Fr(),d=s==="legacy"?c:u,[f,p]=g.useState(""),[h,m]=g.useState(""),v=on(),y=Wr(),{mutate:b,isLoading:x}=_B({v3LegacyAuthProviderCompatible:!!(y!=null&&y.isLegacy)}),E=ye((w,I)=>M.createElement(d,{to:w},I),"renderLink"),S=ye(()=>e?e.map(w=>M.createElement("div",{key:w.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},M.createElement("button",{onClick:()=>b({providerName:w.name}),style:{display:"flex",alignItems:"center"}},w==null?void 0:w.icon,w.label??M.createElement("label",null,w.label)))):null,"renderProviders"),C=M.createElement("div",{...r},M.createElement("h1",{style:{textAlign:"center"}},v("pages.register.title","Sign up for your account")),S(),!l&&M.createElement(M.Fragment,null,M.createElement("hr",null),M.createElement("form",{onSubmit:w=>{w.preventDefault(),b({email:f,password:h})},...i},M.createElement("div",{style:{display:"flex",flexDirection:"column",padding:25}},M.createElement("label",{htmlFor:"email-input"},v("pages.register.fields.email","Email")),M.createElement("input",{id:"email-input",name:"email",type:"email",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",required:!0,value:f,onChange:w=>p(w.target.value)}),M.createElement("label",{htmlFor:"password-input"},v("pages.register.fields.password","Password")),M.createElement("input",{id:"password-input",name:"password",type:"password",required:!0,size:20,value:h,onChange:w=>m(w.target.value)}),M.createElement("input",{type:"submit",value:v("pages.register.buttons.submit","Sign up"),disabled:x}),t??M.createElement(M.Fragment,null,M.createElement("span",null,v("pages.login.buttons.haveAccount","Have an account?")," ",E("/login",v("pages.login.signin","Sign in"))))))),t!==!1&&l&&M.createElement("div",{style:{textAlign:"center"}},v("pages.login.buttons.haveAccount","Have an account?")," ",E("/login",v("pages.login.signin","Sign in"))));return M.createElement("div",{...n},a?a(C,o):C)},"RegisterPage"),C5e=ye(({loginLink:e,wrapperProps:t,contentProps:n,renderContent:r,formProps:a,title:i=void 0})=>{let o=on(),l=Gn(),s=Oi(),{Link:u}=Fr(),c=l==="legacy"?u:s,[d,f]=g.useState(""),{mutate:p,isLoading:h}=NB(),m=ye((y,b)=>M.createElement(c,{to:y},b),"renderLink"),v=M.createElement("div",{...n},M.createElement("h1",{style:{textAlign:"center"}},o("pages.forgotPassword.title","Forgot your password?")),M.createElement("hr",null),M.createElement("form",{onSubmit:y=>{y.preventDefault(),p({email:d})},...a},M.createElement("div",{style:{display:"flex",flexDirection:"column",padding:25}},M.createElement("label",{htmlFor:"email-input"},o("pages.forgotPassword.fields.email","Email")),M.createElement("input",{id:"email-input",name:"email",type:"mail",autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",required:!0,value:d,onChange:y=>f(y.target.value)}),M.createElement("input",{type:"submit",disabled:h,value:o("pages.forgotPassword.buttons.submit","Send reset instructions")}),M.createElement("br",null),e??M.createElement("span",null,o("pages.register.buttons.haveAccount","Have an account? ")," ",m("/login",o("pages.login.signin","Sign in"))))));return M.createElement("div",{...t},r?r(v,i):v)},"ForgotPasswordPage"),w5e=ye(({wrapperProps:e,contentProps:t,renderContent:n,formProps:r,title:a=void 0})=>{let i=on(),o=Wr(),{mutate:l,isLoading:s}=DB({v3LegacyAuthProviderCompatible:!!(o!=null&&o.isLegacy)}),[u,c]=g.useState(""),[d,f]=g.useState(""),p=M.createElement("div",{...t},M.createElement("h1",{style:{textAlign:"center"}},i("pages.updatePassword.title","Update Password")),M.createElement("hr",null),M.createElement("form",{onSubmit:h=>{h.preventDefault(),l({password:u,confirmPassword:d})},...r},M.createElement("div",{style:{display:"flex",flexDirection:"column",padding:25}},M.createElement("label",{htmlFor:"password-input"},i("pages.updatePassword.fields.password","New Password")),M.createElement("input",{id:"password-input",name:"password",type:"password",required:!0,size:20,value:u,onChange:h=>c(h.target.value)}),M.createElement("label",{htmlFor:"confirm-password-input"},i("pages.updatePassword.fields.confirmPassword","Confirm New Password")),M.createElement("input",{id:"confirm-password-input",name:"confirmPassword",type:"password",required:!0,size:20,value:d,onChange:h=>f(h.target.value)}),M.createElement("input",{type:"submit",disabled:s,value:i("pages.updatePassword.buttons.submit","Update")}))));return M.createElement("div",{...e},n?n(p,a):p)},"UpdatePasswordPage");ye(e=>{let{type:t}=e;return M.createElement(M.Fragment,null,ye(()=>{switch(t){case"register":return M.createElement(S5e,{...e});case"forgotPassword":return M.createElement(C5e,{...e});case"updatePassword":return M.createElement(w5e,{...e});default:return M.createElement(E5e,{...e})}},"renderView")())},"AuthPage");var T5e=ye(()=>M.createElement(M.Fragment,null,M.createElement("h1",null,"Welcome on board"),M.createElement("p",null,"Your configuration is completed."),M.createElement("p",null,"Now you can get started by adding your resources to the"," ",M.createElement("code",null,"`resources`")," property of ",M.createElement("code",null,"``")),M.createElement("div",{style:{display:"flex",gap:8}},M.createElement("a",{href:"https://refine.dev",target:"_blank",rel:"noreferrer"},M.createElement("button",null,"Documentation")),M.createElement("a",{href:"https://refine.dev/examples",target:"_blank",rel:"noreferrer"},M.createElement("button",null,"Examples")),M.createElement("a",{href:"https://discord.gg/refine",target:"_blank",rel:"noreferrer"},M.createElement("button",null,"Community")))),"ReadyPage"),A5e=[{title:"Documentation",description:"Learn about the technical details of using Refine in your projects.",link:"https://refine.dev/docs",iconUrl:"https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/book.svg"},{title:"Tutorial",description:"Learn how to use Refine by building a fully-functioning CRUD app, from scratch to full launch.",link:"https://refine.dev/tutorial",iconUrl:"https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/hat.svg"},{title:"Templates",description:"Explore a range of pre-built templates, perfect everything from admin panels to dashboards and CRMs.",link:"https://refine.dev/templates",iconUrl:"https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/application.svg"},{title:"Community",description:"Join our Discord community and keep up with the latest news.",link:"https://discord.gg/refine",iconUrl:"https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/discord.svg"}],I5e=ye(()=>{let e=WX("(max-width: 1010px)"),t=WX("(max-width: 650px)"),n=ye(()=>t?"1, 280px":e?"2, 280px":"4, 1fr","getGridTemplateColumns"),r=ye(()=>t?"32px":e?"40px":"48px","getHeaderFontSize"),a=ye(()=>t?"16px":e?"20px":"24px","getSubHeaderFontSize");return M.createElement("div",{style:{position:"fixed",zIndex:10,inset:0,overflow:"auto",width:"100dvw",height:"100dvh"}},M.createElement("div",{style:{overflow:"hidden",position:"relative",backgroundSize:"cover",backgroundRepeat:"no-repeat",background:t?"url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/landing-noise.webp), radial-gradient(88.89% 50% at 50% 100%, rgba(38, 217, 127, 0.10) 0%, rgba(38, 217, 127, 0.00) 100%), radial-gradient(88.89% 50% at 50% 0%, rgba(71, 235, 235, 0.15) 0%, rgba(71, 235, 235, 0.00) 100%), #1D1E30":e?"url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/landing-noise.webp), radial-gradient(66.67% 50% at 50% 100%, rgba(38, 217, 127, 0.10) 0%, rgba(38, 217, 127, 0.00) 100%), radial-gradient(66.67% 50% at 50% 0%, rgba(71, 235, 235, 0.15) 0%, rgba(71, 235, 235, 0.00) 100%), #1D1E30":"url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/landing-noise.webp), radial-gradient(35.56% 50% at 50% 100%, rgba(38, 217, 127, 0.12) 0%, rgba(38, 217, 127, 0) 100%), radial-gradient(35.56% 50% at 50% 0%, rgba(71, 235, 235, 0.18) 0%, rgba(71, 235, 235, 0) 100%), #1D1E30",minHeight:"100%",minWidth:"100%",fontFamily:"Arial",color:"#FFFFFF"}},M.createElement("div",{style:{zIndex:2,position:"absolute",width:t?"400px":"800px",height:"552px",opacity:"0.5",background:"url(https://refine.ams3.cdn.digitaloceanspaces.com/assets/welcome-page-hexagon.png)",backgroundRepeat:"no-repeat",backgroundSize:"contain",top:"0",left:"50%",transform:"translateX(-50%)"}}),M.createElement("div",{style:{height:t?"40px":"80px"}}),M.createElement("div",{style:{display:"flex",justifyContent:"center"}},M.createElement("div",{style:{backgroundRepeat:"no-repeat",backgroundSize:t?"112px 58px":"224px 116px",backgroundImage:"url(https://refine.ams3.cdn.digitaloceanspaces.com/assets/refine-logo.svg)",width:t?112:224,height:t?58:116}})),M.createElement("div",{style:{height:t?"120px":e?"200px":"30vh",minHeight:t?"120px":"200px"}}),M.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"16px",textAlign:"center"}},M.createElement("h1",{style:{fontSize:r(),fontWeight:700,margin:"0px"}},"Welcome Aboard!"),M.createElement("h4",{style:{fontSize:a(),fontWeight:400,margin:"0px"}},"Your configuration is completed.")),M.createElement("div",{style:{height:"64px"}}),M.createElement("div",{style:{display:"grid",gridTemplateColumns:`repeat(${n()})`,justifyContent:"center",gap:"48px",paddingRight:"16px",paddingLeft:"16px",paddingBottom:"32px",maxWidth:"976px",margin:"auto"}},A5e.map(i=>M.createElement(O5e,{key:`welcome-page-${i.title}`,card:i})))))},"ConfigSuccessPage"),O5e=ye(({card:e})=>{let{title:t,description:n,iconUrl:r,link:a}=e,[i,o]=g.useState(!1);return M.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}},M.createElement("div",{style:{display:"flex",alignItems:"center"}},M.createElement("a",{onPointerEnter:()=>o(!0),onPointerLeave:()=>o(!1),style:{display:"flex",alignItems:"center",color:"#fff",textDecoration:"none"},href:a},M.createElement("div",{style:{width:"16px",height:"16px",backgroundPosition:"center",backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundImage:`url(${r})`}}),M.createElement("span",{style:{fontSize:"16px",fontWeight:700,marginLeft:"13px",marginRight:"14px"}},t),M.createElement("svg",{style:{transition:"transform 0.5s ease-in-out, opacity 0.2s ease-in-out",...i&&{transform:"translateX(4px)",opacity:1}},width:"12",height:"8",fill:"none",opacity:"0.5",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{d:"M7.293.293a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-3 3a1 1 0 0 1-1.414-1.414L8.586 5H1a1 1 0 0 1 0-2h7.586L7.293 1.707a1 1 0 0 1 0-1.414Z",fill:"#fff"})))),M.createElement("span",{style:{fontSize:"12px",opacity:.5,lineHeight:"16px"}},n))},"Card"),k5e=ye(()=>M.createElement("div",{style:{position:"fixed",zIndex:11,inset:0,overflow:"auto",width:"100dvw",height:"100dvh"}},M.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",padding:"24px",background:"#14141FBF",backdropFilter:"blur(3px)"}},M.createElement("div",{style:{maxWidth:"640px",width:"100%",background:"#1D1E30",borderRadius:"16px",border:"1px solid #303450",boxShadow:"0px 0px 120px -24px #000000"}},M.createElement("div",{style:{padding:"16px 20px",borderBottom:"1px solid #303450",display:"flex",alignItems:"center",gap:"8px",position:"relative"}},M.createElement(_5e,{style:{position:"absolute",left:0,top:0}}),M.createElement("div",{style:{lineHeight:"24px",fontSize:"16px",color:"#FFFFFF",display:"flex",alignItems:"center",gap:"16px"}},M.createElement(N5e,null),M.createElement("span",{style:{fontWeight:400}},"Configuration Error"))),M.createElement("div",{style:{padding:"20px",color:"#A3ADC2",lineHeight:"20px",fontSize:"14px",display:"flex",flexDirection:"column",gap:"20px"}},M.createElement("p",{style:{margin:0,padding:0,lineHeight:"28px",fontSize:"16px"}},M.createElement("code",{style:{display:"inline-block",background:"#30345080",padding:"0 4px",lineHeight:"24px",fontSize:"16px",borderRadius:"4px",color:"#FFFFFF"}},"")," ","is not initialized. Please make sure you have it mounted in your app and placed your components inside it."),M.createElement("div",null,M.createElement(R5e,null)))))),"ConfigErrorPage"),R5e=ye(()=>M.createElement("pre",{style:{display:"block",overflowX:"auto",borderRadius:"8px",fontSize:"14px",lineHeight:"24px",backgroundColor:"#14141F",color:"#E5ECF2",padding:"16px",margin:"0",maxHeight:"400px",overflow:"auto"}},M.createElement("span",{style:{color:"#FF7B72"}},"import")," ","{"," Refine, WelcomePage ","}"," ",M.createElement("span",{style:{color:"#FF7B72"}},"from")," ",M.createElement("span",{style:{color:"#A5D6FF"}},'"@refinedev/core"'),";",` +`,` +`,M.createElement("span",{style:{color:"#FF7B72"}},"export")," ",M.createElement("span",{style:{color:"#FF7B72"}},"default")," ",M.createElement("span",null,M.createElement("span",{style:{color:"#FF7B72"}},"function")," ",M.createElement("span",{style:{color:"#FFA657"}},"App"),"(",M.createElement("span",{style:{color:"rgb(222, 147, 95)"}}),")"," "),"{",` +`," ",M.createElement("span",{style:{color:"#FF7B72"}},"return")," (",` +`," ",M.createElement("span",null,M.createElement("span",{style:{color:"#79C0FF"}},"<",M.createElement("span",{style:{color:"#79C0FF"}},"Refine"),` +`," ",M.createElement("span",{style:{color:"#E5ECF2",opacity:.6}},"// ",M.createElement("span",null,"...")),` +`," ",">"),` +`," ",M.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),` +`," ",M.createElement("span",{style:{color:"#79C0FF"}},"<",M.createElement("span",{style:{color:"#79C0FF"}},"WelcomePage")," />"),` +`," ",M.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),` +`," ",M.createElement("span",{style:{color:"#79C0FF"}},"")),` +`," ",");",` +`,"}"),"ExampleImplementation"),_5e=ye(e=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:204,height:56,viewBox:"0 0 204 56",fill:"none",...e},M.createElement("path",{fill:"url(#welcome-page-error-gradient-a)",d:"M12 0H0v12L12 0Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-b)",d:"M28 0h-8L0 20v8L28 0Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-c)",d:"M36 0h8L0 44v-8L36 0Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-d)",d:"M60 0h-8L0 52v4h4L60 0Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-e)",d:"M68 0h8L20 56h-8L68 0Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-f)",d:"M92 0h-8L28 56h8L92 0Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-g)",d:"M100 0h8L52 56h-8l56-56Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-h)",d:"M124 0h-8L60 56h8l56-56Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-i)",d:"M140 0h-8L76 56h8l56-56Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-j)",d:"M132 0h8L84 56h-8l56-56Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-k)",d:"M156 0h-8L92 56h8l56-56Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-l)",d:"M164 0h8l-56 56h-8l56-56Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-m)",d:"M188 0h-8l-56 56h8l56-56Z"}),M.createElement("path",{fill:"url(#welcome-page-error-gradient-n)",d:"M204 0h-8l-56 56h8l56-56Z"}),M.createElement("defs",null,M.createElement("radialGradient",{id:"welcome-page-error-gradient-a",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-b",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-c",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-d",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-e",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-f",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-g",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-h",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-i",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-j",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-k",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-l",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-m",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),M.createElement("radialGradient",{id:"welcome-page-error-gradient-n",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),M.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})))),"ErrorGradient"),N5e=ye(e=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",...e},M.createElement("path",{fill:"#FF4C4D",fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z",clipRule:"evenodd"}),M.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M7 8a1 1 0 1 0 2 0V5a1 1 0 1 0-2 0v3Zm0 3a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",clipRule:"evenodd"})),"ErrorIcon"),D5e=ye(()=>{let{__initialized:e}=Aa();return M.createElement(M.Fragment,null,M.createElement(I5e,null),!e&&M.createElement(k5e,null))},"WelcomePage"),M5e="4.47.2",$5e=ye(()=>{var e;let t=dk(),n=g.useContext(gk),r=g.useContext(yS),a=g.useContext(FB),i=g.useContext($B),{i18nProvider:o}=g.useContext(hy),l=g.useContext(PB),s=g.useContext(Bc),{resources:u}=xn(),c=Aa(),d=!!n.create||!!n.get||!!n.update,f=!!(r!=null&&r.publish)||!!(r!=null&&r.subscribe)||!!(r!=null&&r.unsubscribe),p=!!a.useHistory||!!a.Link||!!a.Prompt||!!a.useLocation||!!a.useParams,h=!!i,m=!!(o!=null&&o.changeLocale)||!!(o!=null&&o.getLocale)||!!(o!=null&&o.translate),v=!!l.close||!!l.open,y=!!s.can,b=(e=c==null?void 0:c.options)==null?void 0:e.projectId;return{providers:{auth:t,auditLog:d,live:f,router:p,data:h,i18n:m,notification:v,accessControl:y},version:M5e,resourceCount:u.length,projectId:b}},"useTelemetryData"),L5e=ye(e=>{try{let t=JSON.stringify(e||{});return typeof btoa<"u"?btoa(t):Buffer.from(t).toString("base64")}catch{return}},"encode"),P5e=ye(e=>{let t=new Image;t.src=e},"throughImage"),F5e=ye(e=>{fetch(e)},"throughFetch"),B5e=ye(e=>{typeof Image<"u"?P5e(e):typeof fetch<"u"&&F5e(e)},"transport"),z5e=ye(()=>{let e=$5e(),t=M.useRef(!1);return M.useEffect(()=>{if(t.current)return;let n=L5e(e);n&&(B5e(`https://telemetry.refine.dev/telemetry?payload=${n}`),t.current=!0)},[]),null},"Telemetry"),H5e=ye(e=>{let t=["go","parse","back","Link"],n=Object.keys(e).filter(r=>!t.includes(r));return n.length>0?(console.warn(`Unsupported properties are found in \`routerProvider\` prop. You provided \`${n.join(", ")}\`. Supported properties are \`${t.join(", ")}\`. You may wanted to use \`legacyRouterProvider\` prop instead.`),!0):!1},"checkRouterPropMisuse"),j5e=ye(e=>{let t=M.useRef(!1);M.useEffect(()=>{t.current===!1&&e&&H5e(e)&&(t.current=!0)},[e])},"useRouterMisuseWarning"),U5e=ye(({legacyAuthProvider:e,authProvider:t,dataProvider:n,legacyRouterProvider:r,routerProvider:a,notificationProvider:i,accessControlProvider:o,auditLogProvider:l,resources:s,DashboardPage:u,ReadyPage:c,LoginPage:d,catchAll:f,children:p,liveProvider:h,i18nProvider:m,Title:v,Layout:y,Sider:b,Header:x,Footer:E,OffLayoutArea:S,onLiveEvent:C,options:w})=>{let{optionsWithDefaults:I,disableTelemetryWithDefault:T,reactQueryWithDefaults:A}=A8e({options:w}),O=Npe(()=>{var _;return A.clientConfig instanceof jK?A.clientConfig:new jK({...A.clientConfig,defaultOptions:{...A.clientConfig.defaultOptions,queries:{refetchOnWindowFocus:!1,keepPreviousData:!0,...(_=A.clientConfig.defaultOptions)==null?void 0:_.queries}}})},[A.clientConfig]),R=M.useMemo(()=>typeof i=="function"?i:()=>i??{},[i])();if(j5e(a),r&&!a&&(s??[]).length===0)return c?M.createElement(c,null):M.createElement(T5e,null);let{RouterComponent:N=M.Fragment}=a?{}:r??{};return M.createElement(p4e,{client:O},M.createElement(l5e,{...R},M.createElement(D8e,{...e??{},isProvided:!!e},M.createElement(M8e,{...t??{},isProvided:!!t},M.createElement(J8e,{...n},M.createElement(e5e,{liveProvider:h},M.createElement(r5e,{value:r&&!a?"legacy":"new"},M.createElement(a5e,{router:a},M.createElement(h5e,{...r},M.createElement(n5e,{resources:s??[]},M.createElement(s5e,{i18nProvider:m},M.createElement(g5e,{...o??{}},M.createElement(v5e,{...l??{}},M.createElement(K8e,null,M.createElement(T8e,{mutationMode:I.mutationMode,warnWhenUnsavedChanges:I.warnWhenUnsavedChanges,syncWithLocation:I.syncWithLocation,Title:v,undoableTimeout:I.undoableTimeout,catchAll:f,DashboardPage:u,LoginPage:d,Layout:y,Sider:b,Footer:E,Header:x,OffLayoutArea:S,hasDashboard:!!u,liveMode:I.liveMode,onLiveEvent:C,options:I},M.createElement($8e,null,M.createElement(N,null,p,!T&&M.createElement(z5e,null),M.createElement(Y5e,null))))))))))))))))))},"Refine"),V5e=ye(({notification:e})=>{let t=on(),{notificationDispatch:n}=ES(),{open:r}=zg(),[a,i]=g.useState(),o=ye(()=>{if(e.isRunning===!0&&(e.seconds===0&&e.doMutation(),e.isSilent||r==null||r({key:`${e.id}-${e.resource}-notification`,type:"progress",message:t("notifications.undoable",{seconds:aD(e.seconds)},`You have ${aD(e.seconds)} seconds to undo`),cancelMutation:e.cancelMutation,undoableTimeout:aD(e.seconds)}),e.seconds>0)){a&&clearTimeout(a);let l=setTimeout(()=>{n({type:"DECREASE_NOTIFICATION_SECOND",payload:{id:e.id,seconds:e.seconds,resource:e.resource}})},1e3);i(l)}},"cancelNotification");return g.useEffect(()=>{o()},[e]),null},"UndoableQueue");ye(({children:e,Layout:t,Sider:n,Header:r,Title:a,Footer:i,OffLayoutArea:o})=>{let{Layout:l,Footer:s,Header:u,Sider:c,Title:d,OffLayoutArea:f}=Aa();return M.createElement(t??l,{Sider:n??c,Header:r??u,Footer:i??s,Title:a??d,OffLayoutArea:o??f},e,M.createElement(W5e,null))},"LayoutWrapper");var W5e=ye(()=>{let{Prompt:e}=Fr(),t=on(),{warnWhen:n,setWarnWhen:r}=Pc(),a=ye(i=>(i.preventDefault(),i.returnValue=t("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."),i.returnValue),"warnWhenListener");return g.useEffect(()=>(n&&window.addEventListener("beforeunload",a),window.removeEventListener("beforeunload",a)),[n]),M.createElement(e,{when:n,message:t("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."),setWarnWhen:r})},"UnsavedPrompt");function Ppe({redirectOnFail:e=!0,appendCurrentPathToQuery:t=!0,children:n,fallback:r,loading:a}){var i;let o=Wr(),l=Gn(),s=!!(o!=null&&o.isProvided),u=!!(o!=null&&o.isLegacy),c=l==="legacy",d=ss(),f=Ii(),{useLocation:p}=Fr(),h=p(),{isFetching:m,isSuccess:v,data:{authenticated:y,redirectTo:b}={}}=Ope({v3LegacyAuthProviderCompatible:u}),x=s?u?v:y:!0;if(!s)return M.createElement(M.Fragment,null,n??null);if(m)return M.createElement(M.Fragment,null,a??null);if(x)return M.createElement(M.Fragment,null,n??null);{if(typeof r<"u")return M.createElement(M.Fragment,null,r??null);let E=u?typeof e=="string"?e:"/login":typeof e=="string"?e:b,S=`${c?h==null?void 0:h.pathname:d.pathname}`.replace(/(\?.*|#.*)$/,"");if(E)if(c){let C=t?`?to=${encodeURIComponent(S)}`:"";return M.createElement(q5e,{to:`${E}${C}`})}else return M.createElement(G5e,{config:{to:E,query:t?{to:(i=d.params)!=null&&i.to?d.params.to:f({to:S,options:{keepQuery:!0},type:"path"})}:void 0,type:"replace"}});return null}}ye(Ppe,"Authenticated");var G5e=ye(({config:e})=>{let t=Ii();return M.useEffect(()=>{t(e)},[t,e]),null},"Redirect"),q5e=ye(({to:e})=>{let{replace:t}=pa();return M.useEffect(()=>{t(e)},[t,e]),null},"RedirectLegacy"),Y5e=ye(()=>{let{useLocation:e}=Fr(),{checkAuth:t}=zs(),n=e();return g.useEffect(()=>{t==null||t().catch(()=>!1)},[n==null?void 0:n.pathname]),null},"RouteChangeHandler"),I0=ye(({resource:e,action:t,params:n,fallback:r,onUnauthorized:a,children:i,queryOptions:o,...l})=>{let{resource:s,id:u,action:c}=xn(e),{identifier:d}=xn(),f=ye(()=>{let y=(n==null?void 0:n.id)??u;return e&&e!==d?n==null?void 0:n.id:y},"getDefaultId")(),p=e??(s==null?void 0:s.name),h=t??c??"",m=n??{id:f,resource:s},{data:v}=Hg({resource:p,action:h,params:m,queryOptions:o});return g.useEffect(()=>{a&&(v==null?void 0:v.can)===!1&&a({resource:p,action:h,reason:v==null?void 0:v.reason,params:m})},[v==null?void 0:v.can]),v!=null&&v.can?M.isValidElement(i)?M.cloneElement(i,l):M.createElement(M.Fragment,null,i):(v==null?void 0:v.can)===!1?M.createElement(M.Fragment,null,r??null):null},"CanAccess"),K5e=[` + .bg-top-announcement { + border-bottom: 1px solid rgba(71, 235, 235, 0.15); + background: radial-gradient( + 218.19% 111.8% at 0% 0%, + rgba(71, 235, 235, 0.1) 0%, + rgba(71, 235, 235, 0.2) 100% + ), + #14141f; + } + `,` + .top-announcement-mask { + mask-image: url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/hexagon.svg); + -webkit-mask-image: url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/hexagon.svg); + mask-repeat: repeat; + -webkit-mask-repeat: repeat; + background: rgba(71, 235, 235, 0.25); + } + `,` + .banner { + display: flex; + @media (max-width: 1000px) { + display: none; + } + }`,` + .gh-link, .gh-link:hover, .gh-link:active, .gh-link:visited, .gh-link:focus { + text-decoration: none; + z-index: 9; + } + `,` + @keyframes top-announcement-glow { + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } + } + `],X5e="If you find Refine useful, you can contribute to its growth by giving it a star on GitHub";ye(()=>(g.useEffect(()=>{let e=document.createElement("style");document.head.appendChild(e),K5e.forEach(t=>{var n;return(n=e.sheet)==null?void 0:n.insertRule(t,e.sheet.cssRules.length)})},[]),M.createElement("div",{className:"banner bg-top-announcement",style:{width:"100%",height:"48px"}},M.createElement("div",{style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"200px",width:"100%",maxWidth:"100vw",height:"100%",borderBottom:"1px solid #47ebeb26"}},M.createElement("div",{className:"top-announcement-mask",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderBottom:"1px solid #47ebeb26"}},M.createElement("div",{style:{position:"relative",width:"960px",height:"100%",display:"flex",justifyContent:"space-between",margin:"0 auto"}},M.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},M.createElement(Ow,{style:{animationDelay:"1.5s",position:"absolute",top:"2px",right:"220px"},id:"1"}),M.createElement(Ow,{style:{animationDelay:"1s",position:"absolute",top:"8px",right:"100px",transform:"rotate(180deg)"},id:"2"}),M.createElement(tQ,{style:{position:"absolute",right:"10px"},id:"3"})),M.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},M.createElement(Ow,{style:{animationDelay:"2s",position:"absolute",top:"6px",right:"180px",transform:"rotate(180deg)"},id:"4"}),M.createElement(Ow,{style:{animationDelay:"0.5s",transitionDelay:"1.3s",position:"absolute",top:"2px",right:"40px"},id:"5"}),M.createElement(tQ,{style:{position:"absolute",right:"-70px"},id:"6"})))),M.createElement(Q5e,{text:X5e})))),"GitHubBanner");var Q5e=ye(({text:e})=>M.createElement("a",{className:"gh-link",href:"https://s.refine.dev/github-support",target:"_blank",rel:"noreferrer",style:{position:"absolute",height:"100%",padding:"0 60px",display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap",justifyContent:"center",alignItems:"center",backgroundImage:"linear-gradient(90deg, rgba(31, 63, 72, 0.00) 0%, #1F3F48 10%, #1F3F48 90%, rgba(31, 63, 72, 0.00) 100%)"}},M.createElement("div",{style:{color:"#fff",display:"flex",flexDirection:"row",gap:"8px"}},M.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"),M.createElement("span",{className:"text",style:{fontSize:"16px",lineHeight:"24px"}},e),M.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"))),"Text"),Ow=ye(({style:e,...t})=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:80,height:40,fill:"none",style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},M.createElement("circle",{cx:40,r:40,fill:`url(#${t.id}-a)`,fillOpacity:.5}),M.createElement("defs",null,M.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 40 -40 0 40 0)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#47EBEB"}),M.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowSmall"),tQ=ye(({style:e,...t})=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:48,fill:"none",...t,style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},M.createElement("circle",{cx:60,cy:24,r:60,fill:`url(#${t.id}-a)`,fillOpacity:.5}),M.createElement("defs",null,M.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 60 -60 0 60 24)",gradientUnits:"userSpaceOnUse"},M.createElement("stop",{stopColor:"#47EBEB"}),M.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowBig"),Z5e=ye(({status:e,elements:{success:t=M.createElement(kw,{key:"autoSave.success",defaultMessage:"saved"}),error:n=M.createElement(kw,{key:"autoSave.error",defaultMessage:"auto save failure"}),loading:r=M.createElement(kw,{key:"autoSave.loading",defaultMessage:"saving..."}),idle:a=M.createElement(kw,{key:"autoSave.idle",defaultMessage:"waiting for changes"})}={}})=>{switch(e){case"success":return M.createElement(M.Fragment,null,t);case"error":return M.createElement(M.Fragment,null,n);case"loading":return M.createElement(M.Fragment,null,r);default:return M.createElement(M.Fragment,null,a)}},"AutoSaveIndicator"),kw=ye(({key:e,defaultMessage:t})=>{let n=on();return M.createElement("span",null,n(e,t))},"Message"),Zi={},Sr={},oP=We&&We.__assign||function(){return oP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"?Bpe:rp.useLayoutEffect;function lBe(){var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var t=document.createElement("div");e.appendChild(t);var n=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),n}Sr.getScrollbarWidth=lBe;function sBe(e,t){t===void 0&&(t=100);var n=rp.useState(e),r=n[0],a=n[1],i=rp.useRef(Date.now());return rp.useEffect(function(){if(t!==0){var o=setTimeout(function(){a(e),i.current=Date.now()},i.current-(Date.now()-t));return function(){clearTimeout(o)}}},[t,e]),t===0?e:r}Sr.useThrottledValue=sBe;function uBe(e){var t,n,r,a=e===void 0?{ignoreWhenFocused:[]}:e,i=a.ignoreWhenFocused,o=nBe(["input","textarea"],i,!0).map(function(u){return u.toLowerCase()}),l=document.activeElement,s=l&&(o.indexOf(l.tagName.toLowerCase())!==-1||((t=l.attributes.getNamedItem("role"))===null||t===void 0?void 0:t.value)==="textbox"||((n=l.attributes.getNamedItem("contenteditable"))===null||n===void 0?void 0:n.value)==="true"||((r=l.attributes.getNamedItem("contenteditable"))===null||r===void 0?void 0:r.value)==="plaintext-only");return s}Sr.shouldRejectKeystrokes=uBe;var cBe=typeof window>"u",dBe=!cBe&&window.navigator.platform==="MacIntel";function fBe(e){return dBe?e.metaKey:e.ctrlKey}Sr.isModKey=fBe;Sr.Priority={HIGH:1,NORMAL:0,LOW:-1};var zpe={},Lb={},dD={},mk={},lP={exports:{}};(function(e,t){(function(n,r){r(t)})(We,function(n){var r=typeof WeakSet=="function",a=Object.keys;function i(A,O){return A===O||A!==A&&O!==O}function o(A){return A.constructor===Object||A.constructor==null}function l(A){return!!A&&typeof A.then=="function"}function s(A){return!!(A&&A.$$typeof)}function u(){var A=[];return{add:function(O){A.push(O)},has:function(O){return A.indexOf(O)!==-1}}}var c=function(A){return A?function(){return new WeakSet}:u}(r);function d(A){return function(R){var N=A||R;return function(L,$,k){k===void 0&&(k=c());var P=!!L&&typeof L=="object",B=!!$&&typeof $=="object";if(P||B){var F=P&&k.has(L),D=B&&k.has($);if(F||D)return F&&D;P&&k.add(L),B&&k.add($)}return N(L,$,k)}}}function f(A,O,R,N){var _=A.length;if(O.length!==_)return!1;for(;_-- >0;)if(!R(A[_],O[_],N))return!1;return!0}function p(A,O,R,N){var _=A.size===O.size;if(_&&A.size){var L={};A.forEach(function($,k){if(_){var P=!1,B=0;O.forEach(function(F,D){!P&&!L[B]&&(P=R(k,D,N)&&R($,F,N),P&&(L[B]=!0)),B++}),_=P}})}return _}var h="_owner",m=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function v(A,O,R,N){var _=a(A),L=_.length;if(a(O).length!==L)return!1;if(L)for(var $=void 0;L-- >0;){if($=_[L],$===h){var k=s(A),P=s(O);if((k||P)&&k!==P)return!1}if(!m(O,$)||!R(A[$],O[$],N))return!1}return!0}function y(A,O){return A.source===O.source&&A.global===O.global&&A.ignoreCase===O.ignoreCase&&A.multiline===O.multiline&&A.unicode===O.unicode&&A.sticky===O.sticky&&A.lastIndex===O.lastIndex}function b(A,O,R,N){var _=A.size===O.size;if(_&&A.size){var L={};A.forEach(function($){if(_){var k=!1,P=0;O.forEach(function(B){!k&&!L[P]&&(k=R($,B,N),k&&(L[P]=!0)),P++}),_=k}})}return _}var x=typeof Map=="function",E=typeof Set=="function";function S(A){var O=typeof A=="function"?A(R):R;function R(N,_,L){if(N===_)return!0;if(N&&_&&typeof N=="object"&&typeof _=="object"){if(o(N)&&o(_))return v(N,_,O,L);var $=Array.isArray(N),k=Array.isArray(_);return $||k?$===k&&f(N,_,O,L):($=N instanceof Date,k=_ instanceof Date,$||k?$===k&&i(N.getTime(),_.getTime()):($=N instanceof RegExp,k=_ instanceof RegExp,$||k?$===k&&y(N,_):l(N)||l(_)?N===_:x&&($=N instanceof Map,k=_ instanceof Map,$||k)?$===k&&p(N,_,O,L):E&&($=N instanceof Set,k=_ instanceof Set,$||k)?$===k&&b(N,_,O,L):v(N,_,O,L)))}return N!==N&&_!==_}return R}var C=S(),w=S(function(){return i}),I=S(d()),T=S(d(i));n.circularDeepEqual=I,n.circularShallowEqual=T,n.createCustomEqual=S,n.deepEqual=C,n.sameValueZeroEqual=i,n.shallowEqual=w,Object.defineProperty(n,"__esModule",{value:!0})})})(lP,lP.exports);var pBe=lP.exports,hBe="Invariant failed";function gBe(e,t){if(!e)throw new Error(hBe)}var UB=gBe,SS={},CS={},vk={};Object.defineProperty(vk,"__esModule",{value:!0});vk.Command=void 0;var mBe=function(){function e(t,n){var r=this;n===void 0&&(n={}),this.perform=function(){var a=t.perform();if(typeof a=="function"){var i=n.history;i&&(r.historyItem&&i.remove(r.historyItem),r.historyItem=i.add({perform:t.perform,negate:a}),r.history={undo:function(){return i.undo(r.historyItem)},redo:function(){return i.redo(r.historyItem)}})}}}return e}();vk.Command=mBe;var vBe=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(CS,"__esModule",{value:!0});CS.ActionImpl=void 0;var yBe=vBe(UB),bBe=vk,xBe=Sr,EBe=function(e){var t=e.keywords,n=t===void 0?"":t,r=e.section,a=r===void 0?"":r;return(n+" "+(typeof a=="string"?a:a.name)).trim()},SBe=function(){function e(t,n){var r=this,a;this.priority=xBe.Priority.NORMAL,this.ancestors=[],this.children=[],Object.assign(this,t),this.id=t.id,this.name=t.name,this.keywords=EBe(t);var i=t.perform;if(this.command=i&&new bBe.Command({perform:function(){return i(r)}},{history:n.history}),this.perform=(a=this.command)===null||a===void 0?void 0:a.perform,t.parent){var o=n.store[t.parent];(0,yBe.default)(o,"attempted to create an action whos parent: "+t.parent+" does not exist in the store."),o.addChild(this)}}return e.prototype.addChild=function(t){t.ancestors.unshift(this);for(var n=this.parentActionImpl;n;)t.ancestors.unshift(n),n=n.parentActionImpl;this.children.push(t)},e.prototype.removeChild=function(t){var n=this,r=this.children.indexOf(t);r!==-1&&this.children.splice(r,1),t.children&&t.children.forEach(function(a){n.removeChild(a)})},Object.defineProperty(e.prototype,"parentActionImpl",{get:function(){return this.ancestors[this.ancestors.length-1]},enumerable:!1,configurable:!0}),e.create=function(t,n){return new e(t,n)},e}();CS.ActionImpl=SBe;var dI=We&&We.__assign||function(){return dI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||window.addEventListener("keydown",function(n){var r;if(!(!t.redoStack.length&&!t.undoStack.length||(0,IBe.shouldRejectKeystrokes)())){var a=(r=n.key)===null||r===void 0?void 0:r.toLowerCase();n.metaKey&&a==="z"&&n.shiftKey?t.redo():n.metaKey&&a==="z"&&t.undo()}})},e.prototype.add=function(t){var n=Hpe.create(t);return this.undoStack.push(n),n},e.prototype.remove=function(t){var n=this.undoStack.findIndex(function(a){return a===t});if(n!==-1){this.undoStack.splice(n,1);return}var r=this.redoStack.findIndex(function(a){return a===t});r!==-1&&this.redoStack.splice(r,1)},e.prototype.undo=function(t){if(!t){var n=this.undoStack.pop();return n?(n==null||n.negate(),this.redoStack.push(n),n):void 0}var r=this.undoStack.findIndex(function(a){return a===t});if(r!==-1)return this.undoStack.splice(r,1),t.negate(),this.redoStack.push(t),t},e.prototype.redo=function(t){if(!t){var n=this.redoStack.pop();return n?(n==null||n.perform(),this.undoStack.push(n),n):void 0}var r=this.redoStack.findIndex(function(a){return a===t});if(r!==-1)return this.redoStack.splice(r,1),t.perform(),this.undoStack.push(t),t},e.prototype.reset=function(){this.undoStack.splice(0),this.redoStack.splice(0)},e}(),jpe=new OBe;O0.history=jpe;Object.freeze(jpe);var jg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VisualState=void 0,function(t){t.animatingIn="animating-in",t.showing="showing",t.animatingOut="animating-out",t.hidden="hidden"}(e.VisualState||(e.VisualState={}))})(jg);var ei=We&&We.__assign||function(){return ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1)return this.subscribers.splice(n,1)}},e.prototype.notify=function(){this.subscribers.forEach(function(t){return t.collect()})},e}(),BBe=function(){function e(t,n){this.collector=t,this.onChange=n}return e.prototype.collect=function(){try{var t=this.collector();(0,DBe.deepEqual)(t,this.collected)||(this.collected=t,this.onChange&&this.onChange(this.collected))}catch(n){console.warn(n)}},e}(),Fb={},VB={};Object.defineProperty(VB,"__esModule",{value:!0});var zBe=["Shift","Meta","Alt","Control"],HBe=1e3,jBe="keydown",UBe=typeof navigator=="object"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function sP(e,t){return typeof e.getModifierState=="function"?e.getModifierState(t):!1}function VBe(e){return e.trim().split(" ").map(function(t){var n=t.split(/\b\+/),r=n.pop();return n=n.map(function(a){return a==="$mod"?UBe:a}),[n,r]})}function WBe(e,t){return/^[^A-Za-z0-9]$/.test(e.key)&&t[1]===e.key?!0:!(t[1].toUpperCase()!==e.key.toUpperCase()&&t[1]!==e.code||t[0].find(function(n){return!sP(e,n)})||zBe.find(function(n){return!t[0].includes(n)&&t[1]!==n&&sP(e,n)}))}function GBe(e,t,n){var r,a;n===void 0&&(n={});var i=(r=n.timeout)!==null&&r!==void 0?r:HBe,o=(a=n.event)!==null&&a!==void 0?a:jBe,l=Object.keys(t).map(function(d){return[VBe(d),t[d]]}),s=new Map,u=null,c=function(d){d instanceof KeyboardEvent&&(l.forEach(function(f){var p=f[0],h=f[1],m=s.get(p),v=m||p,y=v[0],b=WBe(d,y);b?v.length>1?s.set(p,v.slice(1)):(s.delete(p),h(d)):sP(d,d.key)||s.delete(p)}),u&&clearTimeout(u),u=setTimeout(s.clear.bind(s),i))};return e.addEventListener(o,c),function(){e.removeEventListener(o,c)}}VB.default=GBe;var nQ;function qBe(){if(nQ)return Fb;nQ=1;var e=We&&We.__createBinding||(Object.create?function(v,y,b,x){x===void 0&&(x=b),Object.defineProperty(v,x,{enumerable:!0,get:function(){return y[b]}})}:function(v,y,b,x){x===void 0&&(x=b),v[x]=y[b]}),t=We&&We.__setModuleDefault||(Object.create?function(v,y){Object.defineProperty(v,"default",{enumerable:!0,value:y})}:function(v,y){v.default=y}),n=We&&We.__importStar||function(v){if(v&&v.__esModule)return v;var y={};if(v!=null)for(var b in v)b!=="default"&&Object.prototype.hasOwnProperty.call(v,b)&&e(y,v,b);return t(y,v),y},r=We&&We.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(Fb,"__esModule",{value:!0}),Fb.InternalEvents=void 0;var a=n(g),i=r(VB),o=jg,l=Pp(),s=Sr;function u(){return c(),d(),h(),m(),null}Fb.InternalEvents=u;function c(){var v,y,b=(0,l.useKBar)(function(A){return{visualState:A.visualState,showing:A.visualState!==o.VisualState.hidden,disabled:A.disabled}}),x=b.query,E=b.options,S=b.visualState,C=b.showing,w=b.disabled;a.useEffect(function(){var A,O=function(){x.setVisualState(function(_){return _===o.VisualState.hidden||_===o.VisualState.animatingOut?_:o.VisualState.animatingOut})};if(w){O();return}var R=E.toggleShortcut||"$mod+k",N=(0,i.default)(window,(A={},A[R]=function(_){var L,$,k,P;_.defaultPrevented||(_.preventDefault(),x.toggle(),C?($=(L=E.callbacks)===null||L===void 0?void 0:L.onClose)===null||$===void 0||$.call(L):(P=(k=E.callbacks)===null||k===void 0?void 0:k.onOpen)===null||P===void 0||P.call(k))},A.Escape=function(_){var L,$;C&&(_.stopPropagation(),_.preventDefault(),($=(L=E.callbacks)===null||L===void 0?void 0:L.onClose)===null||$===void 0||$.call(L)),O()},A));return function(){N()}},[E.callbacks,E.toggleShortcut,x,C,w]);var I=a.useRef(),T=a.useCallback(function(A){var O,R,N=0;A===o.VisualState.animatingIn&&(N=((O=E.animations)===null||O===void 0?void 0:O.enterMs)||0),A===o.VisualState.animatingOut&&(N=((R=E.animations)===null||R===void 0?void 0:R.exitMs)||0),clearTimeout(I.current),I.current=setTimeout(function(){var _=!1;x.setVisualState(function(){var L=A===o.VisualState.animatingIn?o.VisualState.showing:o.VisualState.hidden;return L===o.VisualState.hidden&&(_=!0),L}),_&&x.setCurrentRootAction(null)},N)},[(v=E.animations)===null||v===void 0?void 0:v.enterMs,(y=E.animations)===null||y===void 0?void 0:y.exitMs,x]);a.useEffect(function(){switch(S){case o.VisualState.animatingIn:case o.VisualState.animatingOut:T(S);break}},[T,S])}function d(){var v=(0,l.useKBar)(function(x){return{visualState:x.visualState}}),y=v.visualState,b=v.options;a.useEffect(function(){if(!b.disableDocumentLock)if(y===o.VisualState.animatingIn){if(document.body.style.overflow="hidden",!b.disableScrollbarManagement){var x=(0,s.getScrollbarWidth)(),E=getComputedStyle(document.body)["margin-right"];E&&(x+=Number(E.replace(/\D/g,""))),document.body.style.marginRight=x+"px"}}else y===o.VisualState.hidden&&(document.body.style.removeProperty("overflow"),b.disableScrollbarManagement||document.body.style.removeProperty("margin-right"))},[b.disableDocumentLock,b.disableScrollbarManagement,y])}var f=new WeakSet;function p(v){return function(y){f.has(y)||(v(y),f.add(y))}}function h(){var v=(0,l.useKBar)(function(C){return{actions:C.actions,open:C.visualState===o.VisualState.showing,disabled:C.disabled}}),y=v.actions,b=v.query,x=v.open,E=v.options,S=v.disabled;a.useEffect(function(){var C;if(!(x||S)){for(var w=Object.keys(y).map(function(k){return y[k]}),I=[],T=0,A=w;T`Invalid value for key ${e}`,t7e=e=>`Pattern length exceeds max of ${e}.`,n7e=e=>`Missing ${e} property in key`,r7e=e=>`Property 'weight' in key '${e}' must be a positive integer`,iQ=Object.prototype.hasOwnProperty;class a7e{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=qpe(r);n+=a.weight,this._keys.push(a),this._keyMap[a.id]=a,n+=a.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function qpe(e){let t=null,n=null,r=null,a=1,i=null;if(mc(e)||Ld(e))r=e,t=oQ(e),n=uP(e);else{if(!iQ.call(e,"name"))throw new Error(n7e("name"));const o=e.name;if(r=o,iQ.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(r7e(o));t=oQ(o),n=uP(o),i=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:i}}function oQ(e){return Ld(e)?e:e.split(".")}function uP(e){return Ld(e)?e.join("."):e}function i7e(e,t){let n=[],r=!1;const a=(i,o,l)=>{if(jl(i))if(!o[l])n.push(i);else{let s=o[l];const u=i[s];if(!jl(u))return;if(l===o.length-1&&(mc(u)||Vpe(u)||QBe(u)))n.push(XBe(u));else if(Ld(u)){r=!0;for(let c=0,d=u.length;ce.score===t.score?e.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,mc(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();mc(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n{let o=a.getFn?a.getFn(t):this.getFn(t,a.path);if(jl(o)){if(Ld(o)){let l=[];const s=[{nestedArrIndex:-1,value:o}];for(;s.length;){const{nestedArrIndex:u,value:c}=s.pop();if(jl(c))if(mc(c)&&!fD(c)){let d={v:c,i:u,n:this.norm.get(c)};l.push(d)}else Ld(c)&&c.forEach((d,f)=>{s.push({nestedArrIndex:f,value:d})})}r.$[i]=l}else if(mc(o)&&!fD(o)){let l={v:o,n:this.norm.get(o)};r.$[i]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ype(e,t,{getFn:n=Tn.getFn,fieldNormWeight:r=Tn.fieldNormWeight}={}){const a=new WB({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(qpe)),a.setSources(t),a.create(),a}function f7e(e,{getFn:t=Tn.getFn,fieldNormWeight:n=Tn.fieldNormWeight}={}){const{keys:r,records:a}=e,i=new WB({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(a),i}function Rw(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Tn.distance,ignoreLocation:i=Tn.ignoreLocation}={}){const o=t/e.length;if(i)return o;const l=Math.abs(r-n);return a?o+l/a:l?1:o}function p7e(e=[],t=Tn.minMatchCharLength){let n=[],r=-1,a=-1,i=0;for(let o=e.length;i=t&&n.push([r,a]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const yh=32;function h7e(e,t,n,{location:r=Tn.location,distance:a=Tn.distance,threshold:i=Tn.threshold,findAllMatches:o=Tn.findAllMatches,minMatchCharLength:l=Tn.minMatchCharLength,includeMatches:s=Tn.includeMatches,ignoreLocation:u=Tn.ignoreLocation}={}){if(t.length>yh)throw new Error(t7e(yh));const c=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let p=i,h=f;const m=l>1||s,v=m?Array(d):[];let y;for(;(y=e.indexOf(t,h))>-1;){let w=Rw(t,{currentLocation:y,expectedLocation:f,distance:a,ignoreLocation:u});if(p=Math.min(w,p),h=y+c,m){let I=0;for(;I=A;_-=1){let L=_-1,$=n[e.charAt(L)];if(m&&(v[L]=+!!$),R[_]=(R[_+1]<<1|1)&$,w&&(R[_]|=(b[_+1]|b[_])<<1|1|b[_+1]),R[_]&S&&(x=Rw(t,{errors:w,currentLocation:L,expectedLocation:f,distance:a,ignoreLocation:u}),x<=p)){if(p=x,h=L,h<=f)break;A=Math.max(1,2*f-h)}}if(Rw(t,{errors:w+1,currentLocation:f,expectedLocation:f,distance:a,ignoreLocation:u})>p)break;b=R}const C={isMatch:h>=0,score:Math.max(.001,x)};if(m){const w=p7e(v,l);w.length?s&&(C.indices=w):C.isMatch=!1}return C}function g7e(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:f,alphabet:g7e(f),startIndex:p})},d=this.pattern.length;if(d>yh){let f=0;const p=d%yh,h=d-p;for(;f{const{isMatch:y,score:b,indices:x}=h7e(t,h,m,{location:a+v,distance:i,threshold:o,findAllMatches:l,minMatchCharLength:s,includeMatches:r,ignoreLocation:u});y&&(f=!0),d+=b,y&&x&&(c=[...c,...x])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=c),p}}class Fp{constructor(t){this.pattern=t}static isMultiMatch(t){return lQ(t,this.multiRegex)}static isSingleMatch(t){return lQ(t,this.singleRegex)}search(){}}function lQ(e,t){const n=e.match(t);return n?n[1]:null}class m7e extends Fp{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class v7e extends Fp{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class y7e extends Fp{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class b7e extends Fp{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class x7e extends Fp{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class E7e extends Fp{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Xpe extends Fp{constructor(t,{location:n=Tn.location,threshold:r=Tn.threshold,distance:a=Tn.distance,includeMatches:i=Tn.includeMatches,findAllMatches:o=Tn.findAllMatches,minMatchCharLength:l=Tn.minMatchCharLength,isCaseSensitive:s=Tn.isCaseSensitive,ignoreLocation:u=Tn.ignoreLocation}={}){super(t),this._bitapSearch=new Kpe(t,{location:n,threshold:r,distance:a,includeMatches:i,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:s,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Qpe extends Fp{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const a=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,a.push([r,n-1]);const o=!!a.length;return{isMatch:o,score:o?0:1,indices:a}}}const cP=[m7e,Qpe,y7e,b7e,E7e,x7e,v7e,Xpe],sQ=cP.length,S7e=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,C7e="|";function w7e(e,t={}){return e.split(C7e).map(n=>{let r=n.trim().split(S7e).filter(i=>i&&!!i.trim()),a=[];for(let i=0,o=r.length;i!!(e[fI.AND]||e[fI.OR]),O7e=e=>!!e[pP.PATH],k7e=e=>!Ld(e)&&Wpe(e)&&!hP(e),uQ=e=>({[fI.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Zpe(e,t,{auto:n=!0}={}){const r=a=>{let i=Object.keys(a);const o=O7e(a);if(!o&&i.length>1&&!hP(a))return r(uQ(a));if(k7e(a)){const s=o?a[pP.PATH]:i[0],u=o?a[pP.PATTERN]:a[s];if(!mc(u))throw new Error(e7e(s));const c={keyId:uP(s),pattern:u};return n&&(c.searcher=fP(u,t)),c}let l={children:[],operator:i[0]};return i.forEach(s=>{const u=a[s];Ld(u)&&u.forEach(c=>{l.children.push(r(c))})}),l};return hP(e)||(e=uQ(e)),r(e)}function R7e(e,{ignoreFieldNorm:t=Tn.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:i,score:o})=>{const l=a?a.weight:null;r*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(t?1:i))}),n.score=r})}function _7e(e,t){const n=e.matches;t.matches=[],jl(n)&&n.forEach(r=>{if(!jl(r.indices)||!r.indices.length)return;const{indices:a,value:i}=r;let o={indices:a,value:i};r.key&&(o.key=r.key.src),r.idx>-1&&(o.refIndex=r.idx),t.matches.push(o)})}function N7e(e,t){t.score=e.score}function D7e(e,t,{includeMatches:n=Tn.includeMatches,includeScore:r=Tn.includeScore}={}){const a=[];return n&&a.push(_7e),r&&a.push(N7e),e.map(i=>{const{idx:o}=i,l={item:t[o],refIndex:o};return a.length&&a.forEach(s=>{s(i,l)}),l})}class my{constructor(t,n={},r){this.options={...Tn,...n},this.options.useExtendedSearch,this._keyStore=new a7e(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof WB))throw new Error(JBe);this._myIndex=n||Ype(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){jl(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,a=this._docs.length;r-1&&(s=s.slice(0,n)),D7e(s,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=fP(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:i,i:o,n:l})=>{if(!jl(i))return;const{isMatch:s,score:u,indices:c}=n.searchIn(i);s&&a.push({item:i,idx:o,matches:[{score:u,value:i,norm:l,indices:c}]})}),a}_searchLogical(t){const n=Zpe(t,this.options),r=(l,s,u)=>{if(!l.children){const{keyId:d,searcher:f}=l,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(s,d),searcher:f});return p&&p.length?[{idx:u,item:s,matches:p}]:[]}const c=[];for(let d=0,f=l.children.length;d{if(jl(l)){let u=r(n,l,s);u.length&&(i[s]||(i[s]={idx:s,item:l,matches:[]},o.push(i[s])),u.forEach(({matches:c})=>{i[s].matches.push(...c)}))}}),o}_searchObjectList(t){const n=fP(t,this.options),{keys:r,records:a}=this._myIndex,i=[];return a.forEach(({$:o,i:l})=>{if(!jl(o))return;let s=[];r.forEach((u,c)=>{s.push(...this._findMatches({key:u,value:o[c],searcher:n}))}),s.length&&i.push({idx:l,item:o,matches:s})}),i}_findMatches({key:t,value:n,searcher:r}){if(!jl(n))return[];let a=[];if(Ld(n))n.forEach(({v:i,i:o,n:l})=>{if(!jl(i))return;const{isMatch:s,score:u,indices:c}=r.searchIn(i);s&&a.push({score:u,key:t,value:i,idx:o,norm:l,indices:c})});else{const{v:i,n:o}=n,{isMatch:l,score:s,indices:u}=r.searchIn(i);l&&a.push({score:s,key:t,value:i,norm:o,indices:u})}return a}}my.version="6.6.2";my.createIndex=Ype;my.parseIndex=f7e;my.config=Tn;my.parseQuery=Zpe;I7e(A7e);const M7e=Object.freeze(Object.defineProperty({__proto__:null,default:my},Symbol.toStringTag,{value:"Module"})),$7e=zO(M7e);(function(e){var t=We&&We.__createBinding||(Object.create?function(p,h,m,v){v===void 0&&(v=m),Object.defineProperty(p,v,{enumerable:!0,get:function(){return h[m]}})}:function(p,h,m,v){v===void 0&&(v=m),p[v]=h[m]}),n=We&&We.__setModuleDefault||(Object.create?function(p,h){Object.defineProperty(p,"default",{enumerable:!0,value:h})}:function(p,h){p.default=h}),r=We&&We.__importStar||function(p){if(p&&p.__esModule)return p;var h={};if(p!=null)for(var m in p)m!=="default"&&Object.prototype.hasOwnProperty.call(p,m)&&t(h,p,m);return n(h,p),h},a=We&&We.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.useDeepMatches=e.useMatches=e.NO_GROUP=void 0;var i=r(g),o=Pp(),l=Sr,s=a($7e);e.NO_GROUP={name:"none",priority:l.Priority.NORMAL};var u={keys:[{name:"name",weight:.5},{name:"keywords",getFn:function(p){var h;return((h=p.keywords)!==null&&h!==void 0?h:"").split(",")},weight:.5},"subtitle"],ignoreLocation:!0,includeScore:!0,includeMatches:!0,threshold:.2,minMatchCharLength:1};function c(p,h){return h.priority-p.priority}function d(){var p=(0,o.useKBar)(function(T){return{search:T.searchQuery,actions:T.actions,rootActionId:T.currentRootActionId}}),h=p.search,m=p.actions,v=p.rootActionId,y=i.useMemo(function(){return Object.keys(m).reduce(function(T,A){var O=m[A];if(!O.parent&&!v&&T.push(O),O.id===v)for(var R=0;R0){for(var $=N[L].children,k=0;k<$.length;k++)_.push($[k]);R(N[L].children,_)}return _}(T)},[]),x=!h,E=i.useMemo(function(){return x?y:b(y)},[b,y,x]),S=i.useMemo(function(){return new s.default(E,u)},[E]),C=f(E,h,S),w=i.useMemo(function(){for(var T,A,O={},R=[],N=[],_=0;_a),n(e.exports,"useComposedRefs",()=>i);function r(o,l){typeof o=="function"?o(l):o!=null&&(o.current=l)}function a(...o){return l=>o.forEach(s=>r(s,l))}function i(...o){return t.useCallback(a(...o),o)}})(rhe);var L7e=rhe.exports;(function(e){var t=bk,n=g,r=L7e;function a(f,p,h,m){Object.defineProperty(f,p,{get:h,set:m,enumerable:!0,configurable:!0})}function i(f){return f&&f.__esModule?f.default:f}a(e.exports,"Slot",()=>o),a(e.exports,"Slottable",()=>s),a(e.exports,"Root",()=>d);const o=n.forwardRef((f,p)=>{const{children:h,...m}=f,v=n.Children.toArray(h),y=v.find(u);if(y){const b=y.props.children,x=v.map(E=>E===y?n.Children.count(b)>1?n.Children.only(null):n.isValidElement(b)?b.props.children:null:E);return n.createElement(l,i(t)({},m,{ref:p}),n.isValidElement(b)?n.cloneElement(b,void 0,x):null)}return n.createElement(l,i(t)({},m,{ref:p}),h)});o.displayName="Slot";const l=n.forwardRef((f,p)=>{const{children:h,...m}=f;return n.isValidElement(h)?n.cloneElement(h,{...c(m,h.props),ref:p?r.composeRefs(p,h.ref):h.ref}):n.Children.count(h)>1?n.Children.only(null):null});l.displayName="SlotClone";const s=({children:f})=>n.createElement(n.Fragment,null,f);function u(f){return n.isValidElement(f)&&f.type===s}function c(f,p){const h={...p};for(const m in p){const v=f[m],y=p[m];/^on[A-Z]/.test(m)?v&&y?h[m]=(...x)=>{y(...x),v(...x)}:v&&(h[m]=v):m==="style"?h[m]={...v,...y}:m==="className"&&(h[m]=[v,y].filter(Boolean).join(" "))}return{...f,...h}}const d=o})(nhe);var P7e=nhe.exports;(function(e){var t=bk,n=g,r=di,a=P7e;function i(d,f,p,h){Object.defineProperty(d,f,{get:p,set:h,enumerable:!0,configurable:!0})}function o(d){return d&&d.__esModule?d.default:d}i(e.exports,"Primitive",()=>s),i(e.exports,"Root",()=>c),i(e.exports,"dispatchDiscreteCustomEvent",()=>u);const s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((d,f)=>{const p=n.forwardRef((h,m)=>{const{asChild:v,...y}=h,b=v?a.Slot:f;return n.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),n.createElement(b,o(t)({},y,{ref:m}))});return p.displayName=`Primitive.${f}`,{...d,[f]:p}},{});function u(d,f){d&&r.flushSync(()=>d.dispatchEvent(f))}const c=s})(the);var F7e=the.exports;(function(e){var t=bk,n=g,r=di,a=F7e;function i(u,c,d,f){Object.defineProperty(u,c,{get:d,set:f,enumerable:!0,configurable:!0})}function o(u){return u&&u.__esModule?u.default:u}i(e.exports,"Portal",()=>l),i(e.exports,"Root",()=>s);const l=n.forwardRef((u,c)=>{var d;const{container:f=globalThis==null||(d=globalThis.document)===null||d===void 0?void 0:d.body,...p}=u;return f?o(r).createPortal(n.createElement(a.Primitive.div,o(t)({},p,{ref:c})),f):null}),s=l})(Jpe);var B7e=Jpe.exports,z7e=We&&We.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),H7e=We&&We.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),j7e=We&&We.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&z7e(t,e,n);return H7e(t,e),t};Object.defineProperty(yk,"__esModule",{value:!0});yk.KBarPortal=void 0;var U7e=B7e,V7e=j7e(g),W7e=jg,G7e=Pp();function q7e(e){var t=e.children,n=e.container,r=(0,G7e.useKBar)(function(a){return{showing:a.visualState!==W7e.VisualState.hidden}}).showing;return r?V7e.createElement(U7e.Portal,{container:n},t):null}yk.KBarPortal=q7e;var xk={},aE=We&&We.__assign||function(){return aE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0)&&(n[a]=e[a]);return n}var e9e=["bottom","height","left","right","top","width"],t9e=function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),e9e.some(function(r){return t[r]!==n[r]})},vf=new Map,ahe,n9e=function e(){var t=[];vf.forEach(function(n,r){var a=r.getBoundingClientRect();t9e(a,n.rect)&&(n.rect=a,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),ahe=window.requestAnimationFrame(e)};function r9e(e,t){return{observe:function(){var r=vf.size===0;vf.has(e)?vf.get(e).callbacks.push(t):vf.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&n9e()},unobserve:function(){var r=vf.get(e);if(r){var a=r.callbacks.indexOf(t);a>=0&&r.callbacks.splice(a,1),r.callbacks.length||vf.delete(e),vf.size||cancelAnimationFrame(ahe)}}}}var pI=typeof window<"u"?M.useLayoutEffect:M.useEffect;function a9e(e,t){t===void 0&&(t={width:0,height:0});var n=M.useState(e.current),r=n[0],a=n[1],i=M.useReducer(i9e,t),o=i[0],l=i[1],s=M.useRef(!1);return pI(function(){e.current!==r&&a(e.current)}),pI(function(){if(r&&!s.current){s.current=!0;var u=r.getBoundingClientRect();l({rect:u})}},[r]),M.useEffect(function(){if(r){var u=r9e(r,function(c){l({rect:c})});return u.observe(),function(){u.unobserve()}}},[r]),o}function i9e(e,t){var n=t.rect;return e.height!==n.height||e.width!==n.width?n:e}var o9e=function(){return 50},l9e=function(t){return t},s9e=function(t,n){var r=n?"offsetWidth":"offsetHeight";return t[r]},ihe=function(t){for(var n=Math.max(t.start-t.overscan,0),r=Math.min(t.end+t.overscan,t.size-1),a=[],i=n;i<=r;i++)a.push(i);return a};function u9e(e){var t,n=e.size,r=n===void 0?0:n,a=e.estimateSize,i=a===void 0?o9e:a,o=e.overscan,l=o===void 0?1:o,s=e.paddingStart,u=s===void 0?0:s,c=e.paddingEnd,d=c===void 0?0:c,f=e.parentRef,p=e.horizontal,h=e.scrollToFn,m=e.useObserver,v=e.initialRect,y=e.onScrollElement,b=e.scrollOffsetFn,x=e.keyExtractor,E=x===void 0?l9e:x,S=e.measureSize,C=S===void 0?s9e:S,w=e.rangeExtractor,I=w===void 0?ihe:w,T=p?"width":"height",A=p?"scrollLeft":"scrollTop",O=M.useRef({scrollOffset:0,measurements:[]}),R=M.useState(0),N=R[0],_=R[1];O.current.scrollOffset=N;var L=m||a9e,$=L(f,v),k=$[T];O.current.outerSize=k;var P=M.useCallback(function(me){f.current&&(f.current[A]=me)},[f,A]),B=h||P;h=M.useCallback(function(me){B(me,P)},[P,B]);var F=M.useState({}),D=F[0],j=F[1],z=M.useCallback(function(){return j({})},[]),V=M.useRef([]),G=M.useMemo(function(){var me=V.current.length>0?Math.min.apply(Math,V.current):0;V.current=[];for(var de=O.current.measurements.slice(0,me),Ce=me;Ce=pe+Se?ke="end":ke="start"),ke==="start"?h(me):ke==="end"?h(me-Se):ke==="center"&&h(me-Se/2)},[h]),ge=M.useCallback(function(me,de){var Ce=de===void 0?{}:de,Ie=Ce.align,ke=Ie===void 0?"auto":Ie,Te=J7e(Ce,["align"]),pe=O.current,Se=pe.measurements,Ee=pe.scrollOffset,we=pe.outerSize,ue=Se[Math.max(0,Math.min(me,r-1))];if(ue){if(ke==="auto")if(ue.end>=Ee+we)ke="end";else if(ue.start<=Ee)ke="start";else return;var Ae=ke==="center"?ue.start+ue.size/2:ke==="end"?ue.end:ue.start;ve(Ae,bh({align:ke},Te))}},[ve,r]),xe=M.useCallback(function(){for(var me=arguments.length,de=new Array(me),Ce=0;Cea)n=i-1;else return i}return t>0?t-1:0};function d9e(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,a=t.length-1,i=function(u){return t[u].start},o=c9e(0,a,i,r),l=o;l_w?y-1:y;if(typeof r.current[b]=="string"){if(b===0)return y;b-=1}return b})):m.key==="ArrowDown"||m.ctrlKey&&m.key==="n"?(m.preventDefault(),m.stopPropagation(),o.setActiveIndex(function(y){var b=yD9e(e,"name",{value:t,configurable:!0}),wm=yd(e=>e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()),"capitalize"),M9e=yd(()=>{let e=on(),{resource:t,resources:n,id:r,action:a}=xn(),i=Gn(),o=pk(),l=Ii(),{mutate:s}=MB(),{push:u,list:c,create:d,show:f,edit:p}=pa(),h=Fc(),m=g.useContext(Zi.KBarContext),{can:v}=m5e(),[y,b]=g.useState([]);g.useEffect(()=>{yd(async()=>await Promise.all(x().flatMap(S=>E(S))),"preaparedActions")().then(S=>b(S.flatMap(C=>C)))},[n,r,t,a]),g.useEffect(()=>{y.length===0&&m.query.setVisualState(Zi.VisualState.hidden)},[y]);let x=yd(()=>{let S=[...n],C=S==null?void 0:S.findIndex(w=>(w.identifier??(w==null?void 0:w.name))===((t==null?void 0:t.identifier)??(t==null?void 0:t.name)));if(C>0){let w=S[C];S.splice(C,1),S.splice(0,0,w)}return S},"moveActionToFirst"),E=yd(async S=>{var C,w,I,T,A,O;let{name:R,label:N,list:_,create:L,canCreate:$,canEdit:k,canShow:P,icon:B,show:F,canDelete:D,edit:j,route:z}=S,V=((C=S==null?void 0:S.meta)==null?void 0:C.label)??((w=S==null?void 0:S.options)==null?void 0:w.label)??N,G=((I=S==null?void 0:S.meta)==null?void 0:I.icon)??((T=S==null?void 0:S.options)==null?void 0:T.icon)??B,W=((A=S==null?void 0:S.meta)==null?void 0:A.canDelete)??((O=S==null?void 0:S.options)==null?void 0:O.canDelete)??D,Y=V??e(`${S.name}.${S.name}`,h(S.name,"plural")),J=[];if(_&&(t!==void 0&&(t==null?void 0:t.name)!==R||a!==void 0&&(t==null?void 0:t.name)===R)){let{can:Z}=await(v==null?void 0:v({resource:R,action:"list",params:{id:r,resource:S}}))||{can:!0};Z&&J.push(Zi.createAction({name:e("actions.list",wm("list")),section:Y,icon:G,perform:()=>{let K=o({resource:S,action:"list",legacy:i==="legacy"});K&&(i==="legacy"?u(K):l({to:K}))}}))}if(($||L)&&L&&(a!=="create"||(t==null?void 0:t.name)!==R)){let{can:Z}=await(v==null?void 0:v({resource:R,action:"create",params:{resource:S}}))||{can:!0};Z&&J.push(Zi.createAction({name:e("actions.create",wm("create")),section:Y,icon:G,keywords:"new",perform:()=>{let K=o({resource:S,action:"create",legacy:i==="legacy"});K&&(i==="legacy"?u(K):l({to:K}))}}))}if((t==null?void 0:t.name)===R&&r){if((P||F)&&F&&a!=="show"){let{can:Z}=await(v==null?void 0:v({resource:R,action:"show",params:{id:r,resource:S}}))||{can:!0};Z&&J.push(Zi.createAction({name:e("actions.show",wm("show")),section:Y,icon:G,perform:()=>{let K=o({resource:S,action:"show",legacy:i==="legacy",meta:{id:r}});K&&(i==="legacy"?u(K):l({to:K}))}}))}if((k||j)&&j&&a!=="edit"){let{can:Z}=await(v==null?void 0:v({resource:R,action:"edit",params:{id:r,resource:S}}))||{can:!0};Z&&J.push(Zi.createAction({name:e("actions.edit",wm("edit")),section:Y,icon:G,perform:()=>{let K=o({resource:S,action:"edit",legacy:i==="legacy",meta:{id:r}});K&&(i==="legacy"?u(K):l({to:K}))}}))}if(W){let{can:Z}=await(v==null?void 0:v({resource:R,action:"delete",params:{id:r,resource:S}}))||{can:!0};Z&&J.push({id:"delete",name:e("actions.delete",wm("delete")),section:Y,icon:G},Zi.createAction({name:e("buttons.delete",wm("delete")),section:e("buttons.confirm","Are you sure?"),parent:"delete",perform:()=>{s({resource:S.name,id:r},{onSuccess:()=>{let K=o({resource:S,action:"list",legacy:i==="legacy"});K&&(i==="legacy"?u(K):l({to:K}))}})}}),Zi.createAction({name:e("buttons.cancel","Cancel"),parent:"delete",perform:()=>null}))}}return J},"createActionWithResource");Zi.useRegisterActions(y,[y])},"useRefineKbar"),$9e=yd(()=>M.createElement(Zi.KBarPortal,null,M.createElement(Zi.KBarPositioner,{style:{opacity:1,transition:"background 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0s",backdropFilter:"saturate(180%) blur(1px)",background:"rgba(0, 0, 0, 0.1)",zIndex:"9999"}},M.createElement(Zi.KBarAnimator,{style:{maxWidth:"600px",width:"100%",background:"white",color:"black",borderRadius:"8px",overflow:"hidden",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"}},M.createElement(Zi.KBarSearch,{style:{padding:"12px 16px",fontSize:"16px",width:"100%",boxSizing:"border-box",outline:"none",border:"none",background:"rgb(252 252 252)",color:"black"}}),M.createElement(P9e,null)))),"CommandBar"),L9e={padding:"8px 16px",fontSize:"14px",textTransform:"uppercase",fontWeight:"bold",opacity:.5},P9e=yd(()=>{let{results:e,rootActionId:t}=Zi.useMatches();return M.createElement(Zi.KBarResults,{items:e,onRender:({item:n,active:r})=>typeof n=="string"?M.createElement("div",{style:L9e},n):M.createElement(lhe,{action:n,active:r,currentRootActionId:t})})},"RenderResults"),lhe=M.forwardRef(({action:e,active:t,currentRootActionId:n},r)=>{var a;let i=M.useMemo(()=>{if(!n)return e.ancestors;let o=e.ancestors.findIndex(l=>l.id===n);return e.ancestors.slice(o+1)},[e.ancestors,n]);return M.createElement("div",{ref:r,style:{padding:"12px 16px",background:t?"rgba(0 0 0 / 0.05)":"transparent",borderLeft:`2px solid ${t?"rgb(28 28 29)":"transparent"}`,display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer"}},M.createElement("div",{style:{display:"flex",gap:"8px",alignItems:"center",fontSize:14}},e.icon&&e.icon,M.createElement("div",{style:{display:"flex",flexDirection:"column"}},M.createElement("div",null,i.length>0&&i.map(o=>M.createElement(M.Fragment,{key:o.id},M.createElement("span",{style:{opacity:.5,marginRight:8}},o.name),M.createElement("span",{style:{marginRight:8}},"›"))),M.createElement("span",{style:{color:e.name.toLocaleUpperCase()==="DELETE"?"red":"black"}},e.name)),e.subtitle&&M.createElement("span",{style:{fontSize:12}},e.subtitle))),(a=e.shortcut)!=null&&a.length?M.createElement("div",{"aria-hidden":!0,style:{display:"grid",gridAutoFlow:"column",gap:"4px"}},e.shortcut.map(o=>M.createElement("kbd",{key:o,style:{padding:"4px 6px",background:"rgba(0 0 0 / .1)",borderRadius:"4px",fontSize:14}},o))):null)});lhe.displayName="ResultItem";var F9e=yd(({commandBarProps:e})=>{let t=g.useContext(she);M9e();let n={...t,...e};return M.createElement($9e,{...n})},"RefineKbar"),she=g.createContext({}),B9e=yd(({children:e,commandBarProps:t})=>M.createElement(she.Provider,{value:t??{}},M.createElement(Zi.KBarProvider,null,e)),"RefineKbarProvider"),uhe={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return M.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(wi(r)):tx.isFragment(r)&&r.props?n=n.concat(wi(r.props.children,t)):n.push(r))}),n}var mP={},j9e=function(t){};function U9e(e,t){}function V9e(e,t){}function W9e(){mP={}}function phe(e,t,n){!t&&!mP[n]&&(e(!1,n),mP[n]=!0)}function Rr(e,t){phe(U9e,e,t)}function hhe(e,t){phe(V9e,e,t)}Rr.preMessage=j9e;Rr.resetWarned=W9e;Rr.noteOnce=hhe;function zt(e){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(e)}function G9e(e,t){if(zt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ghe(e){var t=G9e(e,"string");return zt(t)=="symbol"?t:String(t)}function X(e,t,n){return t=ghe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t0},e.prototype.connect_=function(){!yP||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),eze?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!yP||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=J9e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vhe=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof k0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new uze(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof k0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new cze(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),bhe=typeof WeakMap<"u"?new WeakMap:new mhe,xhe=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=tze.getInstance(),r=new dze(t,n,this);bhe.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){xhe.prototype[e]=function(){var t;return(t=bhe.get(this))[e].apply(t,arguments)}});var fze=function(){return typeof gI.ResizeObserver<"u"?gI.ResizeObserver:xhe}(),Hf=new Map;function pze(e){e.forEach(function(t){var n,r=t.target;(n=Hf.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var Ehe=new fze(pze);function hze(e,t){Hf.has(e)||(Hf.set(e,new Set),Ehe.observe(e)),Hf.get(e).add(t)}function gze(e,t){Hf.has(e)&&(Hf.get(e).delete(t),Hf.get(e).size||(Ehe.unobserve(e),Hf.delete(e)))}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vQ(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;yQ+=1;var r=yQ;function a(i){if(i===0)Ahe(r),t();else{var o=whe(function(){a(i-1)});XB.set(r,o)}}return a(n),r};bn.cancel=function(e){var t=XB.get(e);return Ahe(e),The(t)};function Ihe(e){if(Array.isArray(e))return e}function Cze(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,a=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Ohe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,t){return Ihe(e)||Cze(e,t)||$k(e,t)||Ohe()}function vI(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Ti(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function EP(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var bQ="data-rc-order",xQ="data-rc-priority",wze="rc-util-key",SP=new Map;function khe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):wze}function Lk(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Tze(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function QB(e){return Array.from((SP.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Rhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ti())return null;var n=t.csp,r=t.prepend,a=t.priority,i=a===void 0?0:a,o=Tze(r),l=o==="prependQueue",s=document.createElement("style");s.setAttribute(bQ,o),l&&i&&s.setAttribute(xQ,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=Lk(t),c=u.firstChild;if(r){if(l){var d=(t.styles||QB(u)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(bQ)))return!1;var p=Number(f.getAttribute(xQ)||0);return i>=p});if(d.length)return u.insertBefore(s,d[d.length-1].nextSibling),s}u.insertBefore(s,c)}else u.appendChild(s);return s}function _he(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Lk(t);return(t.styles||QB(n)).find(function(r){return r.getAttribute(khe(t))===e})}function oE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=_he(e,t);if(n){var r=Lk(t);r.removeChild(n)}}function Aze(e,t){var n=SP.get(e);if(!n||!EP(document,n)){var r=Rhe("",t),a=r.parentNode;SP.set(e,a),e.removeChild(r)}}function Pd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Lk(n),a=QB(r),i=Q(Q({},n),{},{styles:a});Aze(r,i);var o=_he(t,i);if(o){var l,s;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&o.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var u;o.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=Rhe(e,i);return c.setAttribute(khe(i),t),c}function _0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function Lt(e,t){if(e==null)return{};var n=_0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(i,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(Rr(!s,"Warning: There may be circular references"),s)return!1;if(i===o)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(l){if(!o)o=void 0;else{var s;o=(s=o)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=o)!==null&&r!==void 0&&r.value&&i&&(o.value[1]=this.cacheCallTimes++),(a=o)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,c){var d=fe(u,2),f=d[1];return a.internalGet(c)[1]0,void 0),EQ+=1}return Fa(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),pD=new ZB;function D0(e){var t=Array.isArray(e)?e:[e];return pD.has(t)||pD.set(t,new Nhe(t)),pD.get(t)}var _ze=new WeakMap,hD={};function Nze(e,t){for(var n=_ze,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=Q(Q({},a),{},(r={},X(r,N0,t),X(r,Au,n),r)),l=Object.keys(o).map(function(s){var u=o[s];return u?"".concat(s,'="').concat(u,'"'):null}).filter(function(s){return s}).join(" ");return"")}var Mhe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},$ze=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var i=fe(a,2),o=i[0],l=i[1];return"".concat(o,":").concat(l,";")}).join(""),"}"):""},$he=function(t,n,r){var a={},i={};return Object.entries(t).forEach(function(o){var l,s,u=fe(o,2),c=u[0],d=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[c])i[c]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[c])){var f,p=Mhe(c,r==null?void 0:r.prefix);a[p]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[c])?"".concat(d,"px"):String(d),i[c]="var(".concat(p,")")}}),[i,$ze(a,n,{scope:r==null?void 0:r.scope})]},wQ=Ti()?g.useLayoutEffect:g.useEffect,Sn=function(t,n){var r=g.useRef(!0);wQ(function(){return t(r.current)},n),wQ(function(){return r.current=!1,function(){r.current=!0}},[])},Yh=function(t,n){Sn(function(r){if(!r)return t()},n)},Lze=Q({},uS),TQ=Lze.useInsertionEffect,Pze=function(t,n,r){g.useMemo(t,r),Sn(function(){return n(!0)},r)},Fze=TQ?function(e,t,n){return TQ(function(){return e(),t()},n)}:Pze,Bze=Q({},uS),zze=Bze.useInsertionEffect,Hze=function(t){var n=[],r=!1;function a(i){r||n.push(i)}return g.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),a},jze=function(){return function(t){t()}},Uze=typeof zze<"u"?Hze:jze;function JB(e,t,n,r,a){var i=g.useContext(Pk),o=i.cache,l=[e].concat(Ue(t)),s=CP(l),u=Uze([s]),c=function(h){o.opUpdate(s,function(m){var v=m||[void 0,void 0],y=fe(v,2),b=y[0],x=b===void 0?0:b,E=y[1],S=E,C=S||n(),w=[x,C];return h?h(w):w})};g.useMemo(function(){c()},[s]);var d=o.opGet(s),f=d[1];return Fze(function(){a==null||a(f)},function(p){return c(function(h){var m=fe(h,2),v=m[0],y=m[1];return p&&v===0&&(a==null||a(f)),[v+1,y]}),function(){o.opUpdate(s,function(h){var m=h||[],v=fe(m,2),y=v[0],b=y===void 0?0:y,x=v[1],E=b-1;return E===0?(u(function(){(p||!o.opGet(s))&&(r==null||r(x,!1))}),null):[b-1,x]})}},[s]),f}var Vze={},Wze="css",xh=new Map;function Gze(e){xh.set(e,(xh.get(e)||0)+1)}function qze(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(N0,'="').concat(e,'"]'));n.forEach(function(r){if(r[jf]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Yze=0;function Kze(e,t){xh.set(e,(xh.get(e)||0)-1);var n=Array.from(xh.keys()),r=n.filter(function(a){var i=xh.get(a)||0;return i<=0});n.length-r.length>Yze&&r.forEach(function(a){qze(a,t),xh.delete(a)})}var Lhe=function(t,n,r,a){var i=r.getDerivativeToken(t),o=Q(Q({},i),n);return a&&(o=a(o)),o},Phe="token";function Xze(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=g.useContext(Pk),a=r.cache.instanceId,i=r.container,o=n.salt,l=o===void 0?"":o,s=n.override,u=s===void 0?Vze:s,c=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=Nze(function(){return Object.assign.apply(Object,[{}].concat(Ue(t)))},t),h=rx(p),m=rx(u),v=f?rx(f):"",y=JB(Phe,[l,e.id,h,m,v],function(){var b,x=d?d(p,u,e):Lhe(p,u,e,c),E=Q({},x),S="";if(f){var C=$he(x,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),w=fe(C,2);x=w[0],S=w[1]}var I=CQ(x,l);x._tokenKey=I,E._tokenKey=CQ(E,l);var T=(b=f==null?void 0:f.key)!==null&&b!==void 0?b:I;x._themeKey=T,Gze(T);var A="".concat(Wze,"-").concat(vI(I));return x._hashId=A,[x,A,E,S,(f==null?void 0:f.key)||""]},function(b){Kze(b[0]._themeKey,a)},function(b){var x=fe(b,4),E=x[0],S=x[3];if(f&&S){var C=Pd(S,vI("css-variables-".concat(E._themeKey)),{mark:Au,prepend:"queue",attachTo:i,priority:-999});C[jf]=a,C.setAttribute(N0,E._themeKey)}});return y}var Qze=function(t,n,r){var a=fe(t,5),i=a[2],o=a[3],l=a[4],s=r||{},u=s.plain;if(!o)return null;var c=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=yI(o,l,c,f,u);return[d,c,p]},Zze={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fhe="comm",Bhe="rule",zhe="decl",Jze="@import",eHe="@keyframes",tHe="@layer",Hhe=Math.abs,e7=String.fromCharCode;function jhe(e){return e.trim()}function LT(e,t,n){return e.replace(t,n)}function nHe(e,t,n){return e.indexOf(t,n)}function lE(e,t){return e.charCodeAt(t)|0}function sE(e,t,n){return e.slice(t,n)}function fd(e){return e.length}function rHe(e){return e.length}function Nw(e,t){return t.push(e),e}var Fk=1,M0=1,Uhe=0,Ls=0,ui=0,vy="";function t7(e,t,n,r,a,i,o,l){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:Fk,column:M0,length:o,return:"",siblings:l}}function aHe(){return ui}function iHe(){return ui=Ls>0?lE(vy,--Ls):0,M0--,ui===10&&(M0=1,Fk--),ui}function Iu(){return ui=Ls2||TP(ui)>3?"":" "}function uHe(e,t){for(;--t&&Iu()&&!(ui<48||ui>102||ui>57&&ui<65||ui>70&&ui<97););return Bk(e,PT()+(t<6&&Kh()==32&&Iu()==32))}function AP(e){for(;Iu();)switch(ui){case e:return Ls;case 34:case 39:e!==34&&e!==39&&AP(ui);break;case 40:e===41&&AP(e);break;case 92:Iu();break}return Ls}function cHe(e,t){for(;Iu()&&e+ui!==47+10;)if(e+ui===42+42&&Kh()===47)break;return"/*"+Bk(t,Ls-1)+"*"+e7(e===47?e:Iu())}function dHe(e){for(;!TP(Kh());)Iu();return Bk(e,Ls)}function fHe(e){return lHe(FT("",null,null,null,[""],e=oHe(e),0,[0],e))}function FT(e,t,n,r,a,i,o,l,s){for(var u=0,c=0,d=o,f=0,p=0,h=0,m=1,v=1,y=1,b=0,x="",E=a,S=i,C=r,w=x;v;)switch(h=b,b=Iu()){case 40:if(h!=108&&lE(w,d-1)==58){nHe(w+=LT(mD(b),"&","&\f"),"&\f",Hhe(u?l[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=mD(b);break;case 9:case 10:case 13:case 32:w+=sHe(h);break;case 92:w+=uHe(PT()-1,7);continue;case 47:switch(Kh()){case 42:case 47:Nw(pHe(cHe(Iu(),PT()),t,n,s),s);break;default:w+="/"}break;case 123*m:l[u++]=fd(w)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:y==-1&&(w=LT(w,/\f/g,"")),p>0&&fd(w)-d&&Nw(p>32?IQ(w+";",r,n,d-1,s):IQ(LT(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(Nw(C=AQ(w,t,n,u,c,a,l,x,E=[],S=[],d,i),i),b===123)if(c===0)FT(w,t,C,C,E,i,d,l,S);else switch(f===99&&lE(w,3)===110?100:f){case 100:case 108:case 109:case 115:FT(e,C,C,r&&Nw(AQ(e,C,C,0,0,a,l,x,a,E=[],d,S),S),a,S,d,l,r?E:S);break;default:FT(w,C,C,C,[""],S,0,l,S)}}u=c=p=0,m=y=1,x=w="",d=o;break;case 58:d=1+fd(w),p=h;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&iHe()==125)continue}switch(w+=e7(b),b*m){case 38:y=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(fd(w)-1)*y,y=1;break;case 64:Kh()===45&&(w+=mD(Iu())),f=Kh(),c=d=fd(x=w+=dHe(PT())),b++;break;case 45:h===45&&fd(w)==2&&(m=0)}}return i}function AQ(e,t,n,r,a,i,o,l,s,u,c,d){for(var f=a-1,p=a===0?i:[""],h=rHe(p),m=0,v=0,y=0;m0?p[b]+" "+x:LT(x,/&\f/g,p[b])))&&(s[y++]=E);return t7(e,t,n,a===0?Bhe:l,s,u,c,d)}function pHe(e,t,n,r){return t7(e,t,n,Fhe,e7(aHe()),sE(e,2,-2),0,r)}function IQ(e,t,n,r,a){return t7(e,t,n,zhe,sE(e,0,r),sE(e,r+1,-1),r,a)}function IP(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,i=r.injectHash,o=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,c=n.transformers,d=c===void 0?[]:c;n.linters;var f="",p={};function h(x){var E=x.getName(l);if(!p[E]){var S=e(x.style,n,{root:!1,parentSelectors:o}),C=fe(S,1),w=C[0];p[E]="@keyframes ".concat(x.getName(l)).concat(w)}}function m(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(S){Array.isArray(S)?m(S,E):S&&E.push(S)}),E}var v=m(Array.isArray(t)?t:[t]);if(v.forEach(function(x){var E=typeof x=="string"&&!a?{}:x;if(typeof E=="string")f+="".concat(E,` +`);else if(E._keyframe)h(E);else{var S=d.reduce(function(C,w){var I;return(w==null||(I=w.visit)===null||I===void 0?void 0:I.call(w,C))||C},E);Object.keys(S).forEach(function(C){var w=S[C];if(zt(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!bHe(w)){var I=!1,T=C.trim(),A=!1;(a||i)&&l?T.startsWith("@")?I=!0:T=xHe(C,l,u):a&&!l&&(T==="&"||T==="")&&(T="",A=!0);var O=e(w,n,{root:A,injectHash:I,parentSelectors:[].concat(Ue(o),[T])}),R=fe(O,2),N=R[0],_=R[1];p=Q(Q({},p),_),f+="".concat(T).concat(N)}else{let P=function(B,F){var D=B.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),j=F;!Zze[B]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),B==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(h(F),j=F.getName(l)),f+="".concat(D,":").concat(j,";")};var k=P,L,$=(L=w==null?void 0:w.value)!==null&&L!==void 0?L:w;zt(w)==="object"&&w!==null&&w!==void 0&&w[Ghe]&&Array.isArray($)?$.forEach(function(B){P(C,B)}):P(C,$)}})}}),!a)f="{".concat(f,"}");else if(s&&Mze()){var y=s.split(","),b=y[y.length-1].trim();f="@layer ".concat(b," {").concat(f,"}"),y.length>1&&(f="@layer ".concat(s,"{%%%:%}").concat(f))}return[f,p]};function qhe(e,t){return vI("".concat(e.join("%")).concat(t))}function SHe(){return null}var Yhe="style";function bI(e,t){var n=e.token,r=e.path,a=e.hashId,i=e.layer,o=e.nonce,l=e.clientOnly,s=e.order,u=s===void 0?0:s,c=g.useContext(Pk),d=c.autoClear;c.mock;var f=c.defaultCache,p=c.hashPriority,h=c.container,m=c.ssrInline,v=c.transformers,y=c.linters,b=c.cache,x=n._tokenKey,E=[x].concat(Ue(r)),S=wP,C=JB(Yhe,E,function(){var O=E.join("|");if(mHe(O)){var R=vHe(O),N=fe(R,2),_=N[0],L=N[1];if(_)return[_,x,L,{},l,u]}var $=t(),k=EHe($,{hashId:a,hashPriority:p,layer:i,path:r.join("-"),transformers:v,linters:y}),P=fe(k,2),B=P[0],F=P[1],D=OP(B),j=qhe(E,D);return[D,x,j,F,l,u]},function(O,R){var N=fe(O,3),_=N[2];(R||d)&&wP&&oE(_,{mark:Au})},function(O){var R=fe(O,4),N=R[0];R[1];var _=R[2],L=R[3];if(S&&N!==Vhe){var $={mark:Au,prepend:"queue",attachTo:h,priority:u},k=typeof o=="function"?o():o;k&&($.csp={nonce:k});var P=Pd(N,_,$);P[jf]=b.instanceId,P.setAttribute(N0,x),Object.keys(L).forEach(function(B){Pd(OP(L[B]),"_effect-".concat(B),$)})}}),w=fe(C,3),I=w[0],T=w[1],A=w[2];return function(O){var R;if(!m||S||!f)R=g.createElement(SHe,null);else{var N;R=g.createElement("style",Ne({},(N={},X(N,N0,T),X(N,Au,A),N),{dangerouslySetInnerHTML:{__html:I}}))}return g.createElement(g.Fragment,null,R,O)}}var CHe=function(t,n,r){var a=fe(t,6),i=a[0],o=a[1],l=a[2],s=a[3],u=a[4],c=a[5],d=r||{},f=d.plain;if(u)return null;var p=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return p=yI(i,o,l,h,f),s&&Object.keys(s).forEach(function(m){if(!n[m]){n[m]=!0;var v=OP(s[m]);p+=yI(v,o,"_effect-".concat(m),h,f)}}),[c,l,p]},Khe="cssVar",wHe=function(t,n){var r=t.key,a=t.prefix,i=t.unitless,o=t.ignore,l=t.token,s=t.scope,u=s===void 0?"":s,c=g.useContext(Pk),d=c.cache.instanceId,f=c.container,p=l._tokenKey,h=[].concat(Ue(t.path),[r,u,p]),m=JB(Khe,h,function(){var v=n(),y=$he(v,r,{prefix:a,unitless:i,ignore:o,scope:u}),b=fe(y,2),x=b[0],E=b[1],S=qhe(h,E);return[x,E,S,r]},function(v){var y=fe(v,3),b=y[2];wP&&oE(b,{mark:Au})},function(v){var y=fe(v,3),b=y[1],x=y[2];if(b){var E=Pd(b,x,{mark:Au,prepend:"queue",attachTo:f,priority:-999});E[jf]=d,E.setAttribute(N0,r)}});return m},THe=function(t,n,r){var a=fe(t,4),i=a[1],o=a[2],l=a[3],s=r||{},u=s.plain;if(!i)return null;var c=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},f=yI(i,l,o,d,u);return[c,o,f]},Bb;Bb={},X(Bb,Yhe,CHe),X(Bb,Phe,Qze),X(Bb,Khe,THe);var gn=function(){function e(t,n){Pa(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=n}return Fa(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Tm(e){return e.notSplit=!0,e}Tm(["borderTop","borderBottom"]),Tm(["borderTop"]),Tm(["borderBottom"]),Tm(["borderLeft","borderRight"]),Tm(["borderLeft"]),Tm(["borderRight"]);var AHe=g.createContext({});const zk=AHe;function Xhe(e){return Ihe(e)||Che(e)||$k(e)||Ohe()}function Gl(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Gl(e,t.slice(0,-1))?e:Qhe(e,t,n,r)}function IHe(e){return zt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function kQ(e){return Array.isArray(e)?[]:{}}var OHe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wv(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=kHe,e},Zhe=g.createContext(void 0);var Jhe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},_He={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const NHe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ege=NHe,DHe={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},_He),timePickerLocale:Object.assign({},ege)},xI=DHe,Al="${label} is not a valid ${type}",MHe={locale:"en",Pagination:Jhe,DatePicker:xI,TimePicker:ege,Calendar:xI,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Al,method:Al,array:Al,object:Al,number:Al,date:Al,boolean:Al,integer:Al,float:Al,regexp:Al,email:Al,url:Al,hex:Al},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},ns=MHe;let BT=Object.assign({},ns.Modal),zT=[];const RQ=()=>zT.reduce((e,t)=>Object.assign(Object.assign({},e),t),ns.Modal);function $He(e){if(e){const t=Object.assign({},e);return zT.push(t),BT=RQ(),()=>{zT=zT.filter(n=>n!==t),BT=RQ()}}BT=Object.assign({},ns.Modal)}function tge(){return BT}const LHe=g.createContext(void 0),n7=LHe,PHe=(e,t)=>{const n=g.useContext(n7),r=g.useMemo(()=>{var i;const o=t||ns[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),l||{})},[e,t,n]),a=g.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?ns.locale:i},[n]);return[r,a]},Wu=PHe,FHe="internalMark",BHe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;g.useEffect(()=>$He(t&&t.Modal),[t]);const a=g.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return g.createElement(n7.Provider,{value:a},n)},zHe=BHe;function no(e,t){HHe(e)&&(e="100%");var n=jHe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Dw(e){return Math.min(1,Math.max(0,e))}function HHe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function jHe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function nge(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mw(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Nh(e){return e.length===1?"0"+e:String(e)}function UHe(e,t,n){return{r:no(e,255)*255,g:no(t,255)*255,b:no(n,255)*255}}function _Q(e,t,n){e=no(e,255),t=no(t,255),n=no(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=0,l=(r+a)/2;if(r===a)o=0,i=0;else{var s=r-a;switch(o=l>.5?s/(2-r-a):s/(r+a),r){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function VHe(e,t,n){var r,a,i;if(e=no(e,360),t=no(t,100),n=no(n,100),t===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;r=vD(l,o,e+1/3),a=vD(l,o,e),i=vD(l,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function kP(e,t,n){e=no(e,255),t=no(t,255),n=no(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=r,l=r-a,s=r===0?0:l/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var _P={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function nv(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,l=!1;return typeof e=="string"&&(e=QHe(e)),typeof e=="object"&&(ed(e.r)&&ed(e.g)&&ed(e.b)?(t=UHe(e.r,e.g,e.b),o=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ed(e.h)&&ed(e.s)&&ed(e.v)?(r=Mw(e.s),a=Mw(e.v),t=WHe(e.h,r,a),o=!0,l="hsv"):ed(e.h)&&ed(e.s)&&ed(e.l)&&(r=Mw(e.s),i=Mw(e.l),t=VHe(e.h,r,i),o=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=nge(n),{ok:o,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var KHe="[-\\+]?\\d+%?",XHe="[-\\+]?\\d*\\.\\d+%?",Uf="(?:".concat(XHe,")|(?:").concat(KHe,")"),yD="[\\s|\\(]+(".concat(Uf,")[,|\\s]+(").concat(Uf,")[,|\\s]+(").concat(Uf,")\\s*\\)?"),bD="[\\s|\\(]+(".concat(Uf,")[,|\\s]+(").concat(Uf,")[,|\\s]+(").concat(Uf,")[,|\\s]+(").concat(Uf,")\\s*\\)?"),fu={CSS_UNIT:new RegExp(Uf),rgb:new RegExp("rgb"+yD),rgba:new RegExp("rgba"+bD),hsl:new RegExp("hsl"+yD),hsla:new RegExp("hsla"+bD),hsv:new RegExp("hsv"+yD),hsva:new RegExp("hsva"+bD),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function QHe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(_P[e])e=_P[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=fu.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=fu.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fu.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=fu.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fu.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=fu.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fu.hex8.exec(e),n?{r:Rl(n[1]),g:Rl(n[2]),b:Rl(n[3]),a:NQ(n[4]),format:t?"name":"hex8"}:(n=fu.hex6.exec(e),n?{r:Rl(n[1]),g:Rl(n[2]),b:Rl(n[3]),format:t?"name":"hex"}:(n=fu.hex4.exec(e),n?{r:Rl(n[1]+n[1]),g:Rl(n[2]+n[2]),b:Rl(n[3]+n[3]),a:NQ(n[4]+n[4]),format:t?"name":"hex8"}:(n=fu.hex3.exec(e),n?{r:Rl(n[1]+n[1]),g:Rl(n[2]+n[2]),b:Rl(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ed(e){return!!fu.CSS_UNIT.exec(String(e))}var Wn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=YHe(t)),this.originalInput=t;var a=nv(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,i=t.r/255,o=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=nge(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=kP(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=kP(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=_Q(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=_Q(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),RP(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),GHe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(no(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(no(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+RP(this.r,this.g,this.b,!1),n=0,r=Object.entries(_P);n=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Dw(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Dw(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Dw(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Dw(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],l=1/t;t--;)o.push(new e({h:r,s:a,v:i})),i=(i+l)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],i=360/t,o=1;o=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-$w*t:Math.round(e.h)+$w*t:r=n?Math.round(e.h)+$w*t:Math.round(e.h)-$w*t,r<0?r+=360:r>=360&&(r-=360),r}function LQ(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-DQ*t:t===age?r=e.s+DQ:r=e.s+ZHe*t,r>1&&(r=1),n&&t===rge&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function PQ(e,t,n){var r;return n?r=e.v+JHe*t:r=e.v-eje*t,r>1&&(r=1),Number(r.toFixed(2))}function $u(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=nv(e),a=rge;a>0;a-=1){var i=MQ(r),o=Lw(nv({h:$Q(i,a,!0),s:LQ(i,a,!0),v:PQ(i,a,!0)}));n.push(o)}n.push(Lw(r));for(var l=1;l<=age;l+=1){var s=MQ(r),u=Lw(nv({h:$Q(s,l),s:LQ(s,l),v:PQ(s,l)}));n.push(u)}return t.theme==="dark"?tje.map(function(c){var d=c.index,f=c.opacity,p=Lw(nje(nv(t.backgroundColor||"#141414"),nv(n[d]),f*100));return p}):n}var Qh={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ui={},HT={};Object.keys(Qh).forEach(function(e){Ui[e]=$u(Qh[e]),Ui[e].primary=Ui[e][5],HT[e]=$u(Qh[e],{theme:"dark",backgroundColor:"#141414"}),HT[e].primary=HT[e][5]});var rje=Ui.red,aje=Ui.volcano,ige=Ui.gold,ije=Ui.orange,oje=Ui.yellow,lje=Ui.lime,sje=Ui.green,uje=Ui.cyan,EI=Ui.blue,cje=Ui.geekblue,dje=Ui.purple,fje=Ui.magenta,pje=Ui.grey,hje=Ui.grey;const gje=Object.freeze(Object.defineProperty({__proto__:null,blue:EI,cyan:uje,geekblue:cje,generate:$u,gold:ige,gray:hje,green:sje,grey:pje,lime:lje,magenta:fje,orange:ije,presetDarkPalettes:HT,presetPalettes:Ui,presetPrimaryColors:Qh,purple:dje,red:rje,volcano:aje,yellow:oje},Symbol.toStringTag,{value:"Module"})),mje=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},oge=mje;function vje(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const r7={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$0=Object.assign(Object.assign({},r7),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function lge(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:i,colorError:o,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),f=n(a),p=n(i),h=n(o),m=n(l),v=r(u,c),y=e.colorLink||e.colorInfo,b=n(y);return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Wn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const yje=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}},bje=yje;function xje(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},bje(r))}const td=(e,t)=>new Wn(e).setAlpha(t).toRgbString(),zb=(e,t)=>new Wn(e).darken(t).toHexString(),Eje=e=>{const t=$u(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Sje=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:td(r,.88),colorTextSecondary:td(r,.65),colorTextTertiary:td(r,.45),colorTextQuaternary:td(r,.25),colorFill:td(r,.15),colorFillSecondary:td(r,.06),colorFillTertiary:td(r,.04),colorFillQuaternary:td(r,.02),colorBgLayout:zb(n,4),colorBgContainer:zb(n,0),colorBgElevated:zb(n,0),colorBgSpotlight:td(r,.85),colorBgBlur:"transparent",colorBorder:zb(n,15),colorBorderSecondary:zb(n,6)}};function jT(e){return(e+8)/e}function Cje(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,i=e*Math.pow(2.71828,a/5),o=r>1?Math.floor(i):Math.ceil(i);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:jT(n)}))}const wje=e=>{const t=Cje(e),n=t.map(c=>c.size),r=t.map(c=>c.lineHeight),a=n[1],i=n[0],o=n[2],l=r[1],s=r[0],u=r[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:s,fontHeight:Math.round(l*a),fontHeightLG:Math.round(u*o),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},sge=wje;function wS(e){const t=Object.keys(r7).map(n=>{const r=$u(e[n]);return new Array(10).fill(1).reduce((a,i,o)=>(a[`${n}-${o+1}`]=r[o],a[`${n}${o+1}`]=r[o],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),lge(e,{generateColorPalettes:Eje,generateNeutralColorPalettes:Sje})),sge(e.fontSize)),vje(e)),oge(e)),xje(e))}const uge=D0(wS),uE={token:$0,override:{override:$0},hashed:!0},cge=M.createContext(uE),a7="anticon",Tje=(e,t)=>t||(e?`ant-${e}`:"ant"),dt=g.createContext({getPrefixCls:Tje,iconPrefixCls:a7}),Aje=`-ant-${Date.now()}-${Math.random()}`;function Ije(e,t){const n={},r=(o,l)=>{let s=o.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},a=(o,l)=>{const s=new Wn(o),u=$u(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const o=new Wn(t.primaryColor),l=$u(o.toRgbString());l.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(o,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(o,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(o,u=>u.setAlpha(u.getAlpha()*.12));const s=new Wn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` +`)} + } + `.trim()}function Oje(e,t){const n=Ije(e,t);Ti()&&Pd(n,`${Aje}-dynamic-theme`)}const NP=g.createContext(!1),i7=e=>{let{children:t,disabled:n}=e;const r=g.useContext(NP);return g.createElement(NP.Provider,{value:n??r},t)},Ws=NP,DP=g.createContext(void 0),kje=e=>{let{children:t,size:n}=e;const r=g.useContext(DP);return g.createElement(DP.Provider,{value:n||r},t)},TS=DP;function Rje(){const e=g.useContext(Ws),t=g.useContext(TS);return{componentDisabled:e,componentSize:t}}const cE=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],_je="5.15.0";function xD(e){return e>=0&&e<=255}function Pw(e,t){const{r:n,g:r,b:a,a:i}=new Wn(e).toRgb();if(i<1)return e;const{r:o,g:l,b:s}=new Wn(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-o*(1-u))/u),d=Math.round((r-l*(1-u))/u),f=Math.round((a-s*(1-u))/u);if(xD(c)&&xD(d)&&xD(f))return new Wn({r:c,g:d,b:f,a:Math.round(u*100)/100}).toRgbString()}return new Wn({r:n,g:r,b:a,a:1}).toRgbString()}var Nje=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[f]});const a=Object.assign(Object.assign({},n),r),i=480,o=576,l=768,s=992,u=1200,c=1600;if(a.motion===!1){const f="0s";a.motionDurationFast=f,a.motionDurationMid=f,a.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Pw(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Pw(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Pw(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Pw(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:i,screenXSMin:i,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new Wn("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new Wn("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new Wn("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var FQ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,i=FQ(t,["override"]);let o=Object.assign(Object.assign({},r),{override:a});return o=o7(o),i&&Object.entries(i).forEach(l=>{let[s,u]=l;const{theme:c}=u,d=FQ(u,["theme"]);let f=d;c&&(f=pge(Object.assign(Object.assign({},o),d),{override:d},c)),o[s]=f}),o};function Ka(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=M.useContext(cge),i=`${_je}-${t||""}`,o=n||uge,[l,s,u]=Xze(o,[$0,e],{salt:i,override:r,getComputedToken:pge,formatToken:o7,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:dge,ignore:fge,preserve:Dje}});return[o,u,t?s:"",l,a]}function jn(e){var t=g.useRef();t.current=e;var n=g.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Ps={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},In=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},AS=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Lu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Mje=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),$je=(e,t,n)=>{const{fontFamily:r,fontSize:a}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:i]:{fontFamily:r,fontSize:a,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},bp=e=>({outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),xp=e=>({"&:focus-visible":Object.assign({},bp(e))});function hge(e,t,n){return t=R0(t),She(e,KB()?Reflect.construct(t,n||[],R0(e).constructor):t.apply(e,n))}let Lje=Fa(function e(){Pa(this,e)});const gge=Lje;let Pje=function(e){Vu(t,e);function t(n){var r;return Pa(this,t),r=hge(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Fa(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(gge);const mge="CALC_UNIT";function SD(e){return typeof e=="number"?`${e}${mge}`:e}let Fje=function(e){Vu(t,e);function t(n){var r;return Pa(this,t),r=hge(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=SD(n):typeof n=="string"&&(r.result=n),r}return Fa(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${SD(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${SD(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:a=!0}=r||{},i=new RegExp(`${mge}`,"g");return this.result=this.result.replace(i,a?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(gge);const Bje=e=>{const t=e==="css"?Fje:Pje;return n=>new t(n)},zje=Bje;function Hje(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rne(a)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rne(a)).join(",")})`}}}const vge=typeof CSSINJS_STATISTIC<"u";let MP=!0;function pn(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(a).forEach(o=>{Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>a[o]})})}),MP=!0,r}const BQ={};function jje(){}const Uje=e=>{let t,n=e,r=jje;return vge&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(a,i){return MP&&t.add(i),a[i]}}),r=(a,i)=>{var o;BQ[a]={global:Array.from(t),component:Object.assign(Object.assign({},(o=BQ[a])===null||o===void 0?void 0:o.component),i)}}),{token:n,keys:t,flush:r}},Vje=(e,t)=>{const[n,r]=Ka();return bI({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},AS()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},yge=Vje,bge=(e,t,n)=>{var r;return typeof n=="function"?n(pn(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},xge=(e,t,n,r)=>{const a=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:o}=r;o.forEach(l=>{let[s,u]=l;var c;(a!=null&&a[s]||a!=null&&a[u])&&((c=a[u])!==null&&c!==void 0||(a[u]=a==null?void 0:a[s]))})}const i=Object.assign(Object.assign({},n),a);return Object.keys(i).forEach(o=>{i[o]===t[o]&&delete i[o]}),i},Wje=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function s7(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=Array.isArray(e)?e:[e,e],[i]=a,o=a.join("-");return function(l){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[u,c,d,f,p]=Ka(),{getPrefixCls:h,iconPrefixCls:m,csp:v}=g.useContext(dt),y=h(),b=p?"css":"js",x=zje(b),{max:E,min:S}=Hje(b),C={theme:u,token:f,hashId:d,nonce:()=>v==null?void 0:v.nonce,clientOnly:r.clientOnly,order:r.order||-999};return bI(Object.assign(Object.assign({},C),{clientOnly:!1,path:["Shared",y]}),()=>[{"&":Mje(f)}]),yge(m,v),[bI(Object.assign(Object.assign({},C),{path:[o,l,m]}),()=>{if(r.injectStyle===!1)return[];const{token:I,flush:T}=Uje(f),A=bge(i,c,n),O=`.${l}`,R=xge(i,c,A,{deprecatedTokens:r.deprecatedTokens});p&&Object.keys(A).forEach(L=>{A[L]=`var(${Mhe(L,Wje(i,p.prefix))})`});const N=pn(I,{componentCls:O,prefixCls:l,iconCls:`.${m}`,antCls:`.${y}`,calc:x,max:E,min:S},p?A:R),_=t(N,{hashId:d,prefixCls:l,rootPrefixCls:y,iconPrefixCls:m});return T(i,R),[r.resetStyle===!1?null:$je(N,l,s),_]}),d]}}const Vg=(e,t,n,r)=>{const a=s7(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return o=>{let{prefixCls:l,rootCls:s=l}=o;return a(l,s),null}},Gje=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:a={},injectStyle:i=!0}=n??{},o={[r("zIndexPopup")]:!0};Object.keys(a).forEach(u=>{o[r(u)]=a[u]});const l=u=>{let{rootCls:c,cssVar:d}=u;const[,f]=Ka();return wHe({path:[e],prefix:d.prefix,key:d==null?void 0:d.key,unitless:Object.assign(Object.assign({},dge),o),ignore:fge,token:f,scope:c},()=>{const p=bge(e,f,t),h=xge(e,f,p,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(p).forEach(m=>{h[r(m)]=h[m],delete h[m]}),h}),null};return u=>{const[,,,,c]=Ka();return[d=>i&&c?M.createElement(M.Fragment,null,M.createElement(l,{rootCls:u,cssVar:c,component:e}),d):d,c==null?void 0:c.key]}},On=(e,t,n,r)=>{const a=s7(e,t,n,r),i=Gje(Array.isArray(e)?e[0]:e,n,r);return function(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o;const[,s]=a(o,l),[u,c]=i(l);return[u,s,c]}};function Hk(e,t){return cE.reduce((n,r)=>{const a=e[`${r}1`],i=e[`${r}3`],o=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:i,darkColor:o,textColor:l}))},{})}const qje=Object.assign({},uS),{useId:zQ}=qje,Yje=()=>"",Kje=typeof zQ>"u"?Yje:zQ,Xje=Kje;function Qje(e,t,n){var r;Qd();const a=e||{},i=a.inherit===!1||!t?Object.assign(Object.assign({},uE),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:uE.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=Xje();return Ug(()=>{var l,s;if(!e)return t;const u=Object.assign({},i.components);Object.keys(e.components||{}).forEach(f=>{u[f]=Object.assign(Object.assign({},u[f]),e.components[f])});const c=`css-var-${o.replace(/:/g,"")}`,d=((l=a.cssVar)!==null&&l!==void 0?l:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((s=a.cssVar)===null||s===void 0?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},i),a),{token:Object.assign(Object.assign({},i.token),a.token),components:u,cssVar:d})},[a,i],(l,s)=>l.some((u,c)=>{const d=s[c];return!Oc(u,d,!0)}))}var Zje=["children"],Ege=g.createContext({});function Jje(e){var t=e.children,n=Lt(e,Zje);return g.createElement(Ege.Provider,{value:n},t)}var eUe=function(e){Vu(n,e);var t=Xd(n);function n(){return Pa(this,n),t.apply(this,arguments)}return Fa(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),fh="none",Fw="appear",Bw="enter",zw="leave",HQ="none",vu="prepare",Tv="start",Av="active",u7="end",Sge="prepared";function jQ(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function tUe(e,t){var n={animationend:jQ("Animation","AnimationEnd"),transitionend:jQ("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var nUe=tUe(Ti(),typeof window<"u"?window:{}),Cge={};if(Ti()){var rUe=document.createElement("div");Cge=rUe.style}var Hw={};function wge(e){if(Hw[e])return Hw[e];var t=nUe[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var i=bn(function(){a<=1?r({isCanceled:function(){return i!==e.current}}):n(r,a-1)});e.current=i}return g.useEffect(function(){return function(){t()}},[]),[n,t]};var oUe=[vu,Tv,Av,u7],lUe=[vu,Sge],kge=!1,sUe=!0;function Rge(e){return e===Av||e===u7}const uUe=function(e,t,n){var r=ap(HQ),a=fe(r,2),i=a[0],o=a[1],l=iUe(),s=fe(l,2),u=s[0],c=s[1];function d(){o(vu,!0)}var f=t?lUe:oUe;return Oge(function(){if(i!==HQ&&i!==u7){var p=f.indexOf(i),h=f[p+1],m=n(i);m===kge?o(h,!0):h&&u(function(v){function y(){v.isCanceled()||o(h,!0)}m===!0?y():Promise.resolve(m).then(y)})}},[e,i]),g.useEffect(function(){return function(){c()}},[]),[d,i]};function cUe(e,t,n,r){var a=r.motionEnter,i=a===void 0?!0:a,o=r.motionAppear,l=o===void 0?!0:o,s=r.motionLeave,u=s===void 0?!0:s,c=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,m=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,x=r.onEnterActive,E=r.onLeaveActive,S=r.onAppearEnd,C=r.onEnterEnd,w=r.onLeaveEnd,I=r.onVisibleChanged,T=ap(),A=fe(T,2),O=A[0],R=A[1],N=ap(fh),_=fe(N,2),L=_[0],$=_[1],k=ap(null),P=fe(k,2),B=P[0],F=P[1],D=g.useRef(!1),j=g.useRef(null);function z(){return n()}var V=g.useRef(!1);function G(){$(fh,!0),F(null,!0)}function W(me){var de=z();if(!(me&&!me.deadline&&me.target!==de)){var Ce=V.current,Ie;L===Fw&&Ce?Ie=S==null?void 0:S(de,me):L===Bw&&Ce?Ie=C==null?void 0:C(de,me):L===zw&&Ce&&(Ie=w==null?void 0:w(de,me)),L!==fh&&Ce&&Ie!==!1&&G()}}var Y=aUe(W),J=fe(Y,1),Z=J[0],K=function(de){var Ce,Ie,ke;switch(de){case Fw:return Ce={},X(Ce,vu,f),X(Ce,Tv,m),X(Ce,Av,b),Ce;case Bw:return Ie={},X(Ie,vu,p),X(Ie,Tv,v),X(Ie,Av,x),Ie;case zw:return ke={},X(ke,vu,h),X(ke,Tv,y),X(ke,Av,E),ke;default:return{}}},ee=g.useMemo(function(){return K(L)},[L]),ae=uUe(L,!e,function(me){if(me===vu){var de=ee[vu];return de?de(z()):kge}if(se in ee){var Ce;F(((Ce=ee[se])===null||Ce===void 0?void 0:Ce.call(ee,z(),null))||null)}return se===Av&&(Z(z()),c>0&&(clearTimeout(j.current),j.current=setTimeout(function(){W({deadline:!0})},c))),se===Sge&&G(),sUe}),te=fe(ae,2),re=te[0],se=te[1],ve=Rge(se);V.current=ve,Oge(function(){R(t);var me=D.current;D.current=!0;var de;!me&&t&&l&&(de=Fw),me&&t&&i&&(de=Bw),(me&&!t&&u||!me&&d&&!t&&u)&&(de=zw);var Ce=K(de);de&&(e||Ce[vu])?($(de),re()):$(fh)},[t]),g.useEffect(function(){(L===Fw&&!l||L===Bw&&!i||L===zw&&!u)&&$(fh)},[l,i,u]),g.useEffect(function(){return function(){D.current=!1,clearTimeout(j.current)}},[]);var ge=g.useRef(!1);g.useEffect(function(){O&&(ge.current=!0),O!==void 0&&L===fh&&((ge.current||O)&&(I==null||I(O)),ge.current=!0)},[O,L]);var xe=B;return ee[vu]&&se===Tv&&(xe=Q({transition:"none"},xe)),[L,se,xe,O??t]}function dUe(e){var t=e;zt(e)==="object"&&(t=e.transitionSupport);function n(a,i){return!!(a.motionName&&t&&i!==!1)}var r=g.forwardRef(function(a,i){var o=a.visible,l=o===void 0?!0:o,s=a.removeOnLeave,u=s===void 0?!0:s,c=a.forceRender,d=a.children,f=a.motionName,p=a.leavedClassName,h=a.eventProps,m=g.useContext(Ege),v=m.motion,y=n(a,v),b=g.useRef(),x=g.useRef();function E(){try{return b.current instanceof HTMLElement?b.current:nx(x.current)}catch{return null}}var S=cUe(y,l,E,a),C=fe(S,4),w=C[0],I=C[1],T=C[2],A=C[3],O=g.useRef(A);A&&(O.current=!0);var R=g.useCallback(function(F){b.current=F,iE(i,F)},[i]),N,_=Q(Q({},h),{},{visible:l});if(!d)N=null;else if(w===fh)A?N=d(Q({},_),R):!u&&O.current&&p?N=d(Q(Q({},_),{},{className:p}),R):c||!u&&!p?N=d(Q(Q({},_),{},{style:{display:"none"}}),R):N=null;else{var L,$;I===vu?$="prepare":Rge(I)?$="active":I===Tv&&($="start");var k=WQ(f,"".concat(w,"-").concat($));N=d(Q(Q({},_),{},{className:ie(WQ(f,w),(L={},X(L,k,k&&$),X(L,f,typeof f=="string"),L)),style:T}),R)}if(g.isValidElement(N)&&Mu(N)){var P=N,B=P.ref;B||(N=g.cloneElement(N,{ref:R}))}return g.createElement(eUe,{ref:x},N)});return r.displayName="CSSMotion",r}const io=dUe(Ige);var $P="add",LP="keep",PP="remove",CD="removed";function fUe(e){var t;return e&&zt(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function FP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(fUe)}function pUe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,i=FP(e),o=FP(t);i.forEach(function(u){for(var c=!1,d=r;d1});return s.forEach(function(u){n=n.filter(function(c){var d=c.key,f=c.status;return d!==u||f!==PP}),n.forEach(function(c){c.key===u&&(c.status=LP)})}),n}var hUe=["component","children","onVisibleChanged","onAllRemoved"],gUe=["status"],mUe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function vUe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:io,n=function(r){Vu(i,r);var a=Xd(i);function i(){var o;Pa(this,i);for(var l=arguments.length,s=new Array(l),u=0;unull;var xUe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const TUe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(SI=t),n!==void 0&&(_ge=n),"holderRender"in e&&(Dge=a),r&&(wUe(r)?Oje(UT(),r):Nge=r)},Mge=()=>({getPrefixCls:(e,t)=>t||(e?`${UT()}-${e}`:UT()),getIconPrefixCls:CUe,getRootPrefixCls:()=>SI||UT(),getTheme:()=>Nge,holderRender:Dge}),AUe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:i,form:o,locale:l,componentSize:s,direction:u,space:c,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:m,parentContext:v,iconPrefixCls:y,theme:b,componentDisabled:x,segmented:E,statistic:S,spin:C,calendar:w,carousel:I,cascader:T,collapse:A,typography:O,checkbox:R,descriptions:N,divider:_,drawer:L,skeleton:$,steps:k,image:P,layout:B,list:F,mentions:D,modal:j,progress:z,result:V,slider:G,breadcrumb:W,menu:Y,pagination:J,input:Z,textArea:K,empty:ee,badge:ae,radio:te,rate:re,switch:se,transfer:ve,avatar:ge,message:xe,tag:me,table:de,card:Ce,tabs:Ie,timeline:ke,timePicker:Te,upload:pe,notification:Se,tree:Ee,colorPicker:we,datePicker:ue,rangePicker:Ae,flex:_e,wave:Re,dropdown:Be,warning:Me,tour:$e}=e,Fe=g.useCallback((Ye,at)=>{const{prefixCls:It}=e;if(at)return at;const Bt=It||v.getPrefixCls("");return Ye?`${Bt}-${Ye}`:Bt},[v.getPrefixCls,e.prefixCls]),He=y||v.iconPrefixCls||a7,Le=n||v.csp;yge(He,Le);const Ke=Qje(b,v.theme,{prefixCls:Fe("")}),ft={csp:Le,autoInsertSpaceInButton:r,alert:a,anchor:i,locale:l||m,direction:u,space:c,virtual:d,popupMatchSelectWidth:p??f,popupOverflow:h,getPrefixCls:Fe,iconPrefixCls:He,theme:Ke,segmented:E,statistic:S,spin:C,calendar:w,carousel:I,cascader:T,collapse:A,typography:O,checkbox:R,descriptions:N,divider:_,drawer:L,skeleton:$,steps:k,image:P,input:Z,textArea:K,layout:B,list:F,mentions:D,modal:j,progress:z,result:V,slider:G,breadcrumb:W,menu:Y,pagination:J,empty:ee,badge:ae,radio:te,rate:re,switch:se,transfer:ve,avatar:ge,message:xe,tag:me,table:de,card:Ce,tabs:Ie,timeline:ke,timePicker:Te,upload:pe,notification:Se,tree:Ee,colorPicker:we,datePicker:ue,rangePicker:Ae,flex:_e,wave:Re,dropdown:Be,warning:Me,tour:$e},gt=Object.assign({},v);Object.keys(ft).forEach(Ye=>{ft[Ye]!==void 0&&(gt[Ye]=ft[Ye])}),EUe.forEach(Ye=>{const at=e[Ye];at&&(gt[Ye]=at)});const Nt=Ug(()=>gt,gt,(Ye,at)=>{const It=Object.keys(Ye),Bt=Object.keys(at);return It.length!==Bt.length||It.some(tt=>Ye[tt]!==at[tt])}),Je=g.useMemo(()=>({prefixCls:He,csp:Le}),[He,Le]);let je=g.createElement(g.Fragment,null,g.createElement(bUe,{dropdownMatchSelectWidth:f}),t);const Ze=g.useMemo(()=>{var Ye,at,It,Bt;return wv(((Ye=ns.Form)===null||Ye===void 0?void 0:Ye.defaultValidateMessages)||{},((It=(at=Nt.locale)===null||at===void 0?void 0:at.Form)===null||It===void 0?void 0:It.defaultValidateMessages)||{},((Bt=Nt.form)===null||Bt===void 0?void 0:Bt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[Nt,o==null?void 0:o.validateMessages]);Object.keys(Ze).length>0&&(je=g.createElement(Zhe.Provider,{value:Ze},je)),l&&(je=g.createElement(zHe,{locale:l,_ANT_MARK__:FHe},je)),(He||Le)&&(je=g.createElement(zk.Provider,{value:Je},je)),s&&(je=g.createElement(kje,{size:s},je)),je=g.createElement(yUe,null,je);const Xe=g.useMemo(()=>{const Ye=Ke||{},{algorithm:at,token:It,components:Bt,cssVar:tt}=Ye,ut=xUe(Ye,["algorithm","token","components","cssVar"]),wt=at&&(!Array.isArray(at)||at.length>0)?D0(at):uge,Pt={};Object.entries(Bt||{}).forEach(Kt=>{let[tn,Ot]=Kt;const lt=Object.assign({},Ot);"algorithm"in lt&&(lt.algorithm===!0?lt.theme=wt:(Array.isArray(lt.algorithm)||typeof lt.algorithm=="function")&&(lt.theme=D0(lt.algorithm)),delete lt.algorithm),Pt[tn]=lt});const Yt=Object.assign(Object.assign({},$0),It);return Object.assign(Object.assign({},ut),{theme:wt,token:Yt,components:Pt,override:Object.assign({override:Yt},Pt),cssVar:tt})},[Ke]);return b&&(je=g.createElement(cge.Provider,{value:Xe},je)),Nt.warning&&(je=g.createElement(RHe.Provider,{value:Nt.warning},je)),x!==void 0&&(je=g.createElement(i7,{disabled:x},je)),g.createElement(dt.Provider,{value:Nt},je)},yy=e=>{const t=g.useContext(dt),n=g.useContext(n7);return g.createElement(AUe,Object.assign({parentContext:t,legacyLocale:n},e))};yy.ConfigContext=dt;yy.SizeContext=TS;yy.config=TUe;yy.useConfig=Rje;Object.defineProperty(yy,"SizeContext",{get:()=>TS});const Hc=yy;var IUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const OUe=IUe;function $ge(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function kUe(e){return $ge(e)instanceof ShadowRoot}function CI(e){return kUe(e)?$ge(e):null}function RUe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function BP(e,t){Rr(e,"[@ant-design/icons] ".concat(t))}function GQ(e){return zt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(zt(e.icon)==="object"||typeof e.icon=="function")}function qQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[RUe(n)]=r}return t},{})}function zP(e,t,n){return n?M.createElement(e.tag,Q(Q({key:t},qQ(e.attrs)),n),(e.children||[]).map(function(r,a){return zP(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):M.createElement(e.tag,Q({key:t},qQ(e.attrs)),(e.children||[]).map(function(r,a){return zP(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Lge(e){return $u(e)[0]}function Pge(e){return e?Array.isArray(e)?e:[e]:[]}var _Ue={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},NUe=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,Fge=function(t){var n=g.useContext(zk),r=n.csp,a=n.prefixCls,i=NUe;a&&(i=i.replace(/anticon/g,a)),g.useEffect(function(){var o=t.current,l=CI(o);Pd(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},DUe=["icon","className","onClick","style","primaryColor","secondaryColor"],ix={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function MUe(e){var t=e.primaryColor,n=e.secondaryColor;ix.primaryColor=t,ix.secondaryColor=n||Lge(t),ix.calculated=!!n}function $Ue(){return Q({},ix)}var jk=function(t){var n=t.icon,r=t.className,a=t.onClick,i=t.style,o=t.primaryColor,l=t.secondaryColor,s=Lt(t,DUe),u=g.useRef(),c=ix;if(o&&(c={primaryColor:o,secondaryColor:l||Lge(o)}),Fge(u),BP(GQ(n),"icon should be icon definiton, but got ".concat(n)),!GQ(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=Q(Q({},d),{},{icon:d.icon(c.primaryColor,c.secondaryColor)})),zP(d.icon,"svg-".concat(d.name),Q(Q({className:r,onClick:a,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:u}))};jk.displayName="IconReact";jk.getTwoToneColors=$Ue;jk.setTwoToneColors=MUe;const d7=jk;function Bge(e){var t=Pge(e),n=fe(t,2),r=n[0],a=n[1];return d7.setTwoToneColors({primaryColor:r,secondaryColor:a})}function LUe(){var e=d7.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var PUe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Bge(EI.primary);var Uk=g.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=Lt(e,PUe),c=g.useContext(zk),d=c.prefixCls,f=d===void 0?"anticon":d,p=c.rootClassName,h=ie(p,f,X(X({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!a||r.name==="loading"),n),m=o;m===void 0&&l&&(m=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=Pge(s),b=fe(y,2),x=b[0],E=b[1];return g.createElement("span",Ne({role:"img","aria-label":r.name},u,{ref:t,tabIndex:m,onClick:l,className:h}),g.createElement(d7,{icon:r,primaryColor:x,secondaryColor:E,style:v}))});Uk.displayName="AntdIcon";Uk.getTwoToneColor=LUe;Uk.setTwoToneColor=Bge;const Ut=Uk;var FUe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:OUe}))};const by=g.forwardRef(FUe);var BUe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const zUe=BUe;var HUe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:zUe}))};const Bp=g.forwardRef(HUe);var jUe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const zge=jUe;var UUe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:zge}))};const Gu=g.forwardRef(UUe);var VUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const WUe=VUe;var GUe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:WUe}))};const Wg=g.forwardRef(GUe);var qUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const YUe=qUe;var KUe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:YUe}))};const f7=g.forwardRef(KUe);var XUe=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,QUe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ZUe="".concat(XUe," ").concat(QUe).split(/[\s\n]+/),JUe="aria-",eVe="data-";function YQ(e,t){return e.indexOf(t)===0}function La(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Q({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||YQ(a,JUe))||n.data&&YQ(a,eVe)||n.attr&&ZUe.includes(a))&&(r[a]=e[a])}),r}function Hge(e){return e&&M.isValidElement(e)&&e.type===M.Fragment}const tVe=(e,t,n)=>M.isValidElement(e)?M.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Ta(e,t){return tVe(e,e,t)}const KQ=e=>typeof e=="object"&&e!=null&&e.nodeType===1,XQ=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",wD=(e,t)=>{if(e.clientHeight{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightit||i>e&&o=t&&l>=n?i-e-r:o>t&&ln?o-t+a:0,nVe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},QQ=(e,t)=>{var n,r,a,i;if(typeof document>"u")return[];const{scrollMode:o,block:l,inline:s,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:$=>$!==u;if(!KQ(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;KQ(h)&&d(h);){if(h=nVe(h),h===f){p.push(h);break}h!=null&&h===document.body&&wD(h)&&!wD(document.documentElement)||h!=null&&wD(h,c)&&p.push(h)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:y,scrollY:b}=window,{height:x,width:E,top:S,right:C,bottom:w,left:I}=e.getBoundingClientRect(),{top:T,right:A,bottom:O,left:R}=($=>{const k=window.getComputedStyle($);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let N=l==="start"||l==="nearest"?S-T:l==="end"?w+O:S+x/2-T+O,_=s==="center"?I+E/2-R+A:s==="end"?C+A:I-R;const L=[];for(let $=0;$=0&&I>=0&&w<=v&&C<=m&&S>=F&&w<=j&&I>=z&&C<=D)return L;const V=getComputedStyle(k),G=parseInt(V.borderLeftWidth,10),W=parseInt(V.borderTopWidth,10),Y=parseInt(V.borderRightWidth,10),J=parseInt(V.borderBottomWidth,10);let Z=0,K=0;const ee="offsetWidth"in k?k.offsetWidth-k.clientWidth-G-Y:0,ae="offsetHeight"in k?k.offsetHeight-k.clientHeight-W-J:0,te="offsetWidth"in k?k.offsetWidth===0?0:B/k.offsetWidth:0,re="offsetHeight"in k?k.offsetHeight===0?0:P/k.offsetHeight:0;if(f===k)Z=l==="start"?N:l==="end"?N-v:l==="nearest"?jw(b,b+v,v,W,J,b+N,b+N+x,x):N-v/2,K=s==="start"?_:s==="center"?_-m/2:s==="end"?_-m:jw(y,y+m,m,G,Y,y+_,y+_+E,E),Z=Math.max(0,Z+b),K=Math.max(0,K+y);else{Z=l==="start"?N-F-W:l==="end"?N-j+J+ae:l==="nearest"?jw(F,j,P,W,J+ae,N,N+x,x):N-(F+P/2)+ae/2,K=s==="start"?_-z-G:s==="center"?_-(z+B/2)+ee/2:s==="end"?_-D+Y+ee:jw(z,D,B,G,Y+ee,_,_+E,E);const{scrollLeft:se,scrollTop:ve}=k;Z=re===0?0:Math.max(0,Math.min(ve+Z/re,k.scrollHeight-P/re+ae)),K=te===0?0:Math.max(0,Math.min(se+K/te,k.scrollWidth-B/te+ee)),N+=ve-Z,_+=se-K}L.push({el:k,top:Z,left:K})}return L},rVe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function aVe(e,t){if(!e.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(QQ(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:i,left:o}of QQ(e,rVe(t))){const l=i-n.top+n.bottom,s=o-n.left+n.right;a.scroll({top:l,left:s,behavior:r})}}function HP(e){return e!=null&&e===e.window}function iVe(e,t){var n,r;if(typeof window>"u")return 0;const a=t?"scrollTop":"scrollLeft";let i=0;return HP(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[a]:(e instanceof HTMLElement||e)&&(i=e[a]),e&&!HP(e)&&typeof i!="number"&&(i=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[a]),i}function oVe(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function lVe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,i=n(),o=iVe(i,!0),l=Date.now(),s=()=>{const c=Date.now()-l,d=oVe(c>a?a:c,o,e,a);HP(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,c{const[,,,,t]=Ka();return t?`${e}-css-var`:""},oa=sVe;var Ve={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Ve.F1&&n<=Ve.F12)return!1;switch(n){case Ve.ALT:case Ve.CAPS_LOCK:case Ve.CONTEXT_MENU:case Ve.CTRL:case Ve.DOWN:case Ve.END:case Ve.ESC:case Ve.HOME:case Ve.INSERT:case Ve.LEFT:case Ve.MAC_FF_META:case Ve.META:case Ve.NUMLOCK:case Ve.NUM_CENTER:case Ve.PAGE_DOWN:case Ve.PAGE_UP:case Ve.PAUSE:case Ve.PRINT_SCREEN:case Ve.RIGHT:case Ve.SHIFT:case Ve.UP:case Ve.WIN_KEY:case Ve.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ve.ZERO&&t<=Ve.NINE||t>=Ve.NUM_ZERO&&t<=Ve.NUM_MULTIPLY||t>=Ve.A&&t<=Ve.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ve.SPACE:case Ve.QUESTION_MARK:case Ve.NUM_PLUS:case Ve.NUM_MINUS:case Ve.NUM_PERIOD:case Ve.NUM_DIVISION:case Ve.SEMICOLON:case Ve.DASH:case Ve.EQUALS:case Ve.COMMA:case Ve.PERIOD:case Ve.SLASH:case Ve.APOSTROPHE:case Ve.SINGLE_QUOTE:case Ve.OPEN_SQUARE_BRACKET:case Ve.BACKSLASH:case Ve.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jge=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,o=i===void 0?4.5:i,l=e.eventKey,s=e.content,u=e.closable,c=e.closeIcon,d=c===void 0?"x":c,f=e.props,p=e.onClick,h=e.onNoticeClose,m=e.times,v=e.hovering,y=g.useState(!1),b=fe(y,2),x=b[0],E=b[1],S=v||x,C=function(){h(l)},w=function(A){(A.key==="Enter"||A.code==="Enter"||A.keyCode===Ve.ENTER)&&C()};g.useEffect(function(){if(!S&&o>0){var T=setTimeout(function(){C()},o*1e3);return function(){clearTimeout(T)}}},[o,S,m]);var I="".concat(n,"-notice");return g.createElement("div",Ne({},f,{ref:t,className:ie(I,a,X({},"".concat(I,"-closable"),u)),style:r,onMouseEnter:function(A){var O;E(!0),f==null||(O=f.onMouseEnter)===null||O===void 0||O.call(f,A)},onMouseLeave:function(A){var O;E(!1),f==null||(O=f.onMouseLeave)===null||O===void 0||O.call(f,A)},onClick:p}),g.createElement("div",{className:"".concat(I,"-content")},s),u&&g.createElement("a",{tabIndex:0,className:"".concat(I,"-close"),onKeyDown:w,onClick:function(A){A.preventDefault(),A.stopPropagation(),C()}},d))}),Uge=M.createContext({}),Vge=function(t){var n=t.children,r=t.classNames;return M.createElement(Uge.Provider,{value:{classNames:r}},n)},ZQ=8,JQ=3,eZ=16,uVe=function(t){var n={offset:ZQ,threshold:JQ,gap:eZ};if(t&&zt(t)==="object"){var r,a,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:ZQ,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:JQ,n.gap=(i=t.gap)!==null&&i!==void 0?i:eZ}return[!!t,n]},cVe=["className","style","classNames","styles"],dVe=function(t){var n,r=t.configList,a=t.placement,i=t.prefixCls,o=t.className,l=t.style,s=t.motion,u=t.onAllNoticeRemoved,c=t.onNoticeClose,d=t.stack,f=g.useContext(Uge),p=f.classNames,h=g.useRef({}),m=g.useState(null),v=fe(m,2),y=v[0],b=v[1],x=g.useState([]),E=fe(x,2),S=E[0],C=E[1],w=r.map(function(k){return{config:k,key:String(k.key)}}),I=uVe(d),T=fe(I,2),A=T[0],O=T[1],R=O.offset,N=O.threshold,_=O.gap,L=A&&(S.length>0||w.length<=N),$=typeof s=="function"?s(a):s;return g.useEffect(function(){A&&S.length>1&&C(function(k){return k.filter(function(P){return w.some(function(B){var F=B.key;return P===F})})})},[S,w,A]),g.useEffect(function(){var k;if(A&&h.current[(k=w[w.length-1])===null||k===void 0?void 0:k.key]){var P;b(h.current[(P=w[w.length-1])===null||P===void 0?void 0:P.key])}},[w,A]),M.createElement(c7,Ne({key:a,className:ie(i,"".concat(i,"-").concat(a),p==null?void 0:p.list,o,(n={},X(n,"".concat(i,"-stack"),!!A),X(n,"".concat(i,"-stack-expanded"),L),n)),style:l,keys:w,motionAppear:!0},$,{onAllRemoved:function(){u(a)}}),function(k,P){var B=k.config,F=k.className,D=k.style,j=k.index,z=B,V=z.key,G=z.times,W=String(V),Y=B,J=Y.className,Z=Y.style,K=Y.classNames,ee=Y.styles,ae=Lt(Y,cVe),te=w.findIndex(function(pe){return pe.key===W}),re={};if(A){var se=w.length-1-(te>-1?te:j-1),ve=a==="top"||a==="bottom"?"-50%":"0";if(se>0){var ge,xe,me;re.height=L?(ge=h.current[W])===null||ge===void 0?void 0:ge.offsetHeight:y==null?void 0:y.offsetHeight;for(var de=0,Ce=0;Ce-1?h.current[W]=Se:delete h.current[W]},prefixCls:i,classNames:K,styles:ee,className:ie(J,p==null?void 0:p.notice),style:Z,times:G,key:V,eventKey:V,onNoticeClose:c,hovering:A&&S.length>0})))})},fVe=g.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,i=e.motion,o=e.maxCount,l=e.className,s=e.style,u=e.onAllRemoved,c=e.stack,d=e.renderNotifications,f=g.useState([]),p=fe(f,2),h=p[0],m=p[1],v=function(T){var A,O=h.find(function(R){return R.key===T});O==null||(A=O.onClose)===null||A===void 0||A.call(O),m(function(R){return R.filter(function(N){return N.key!==T})})};g.useImperativeHandle(t,function(){return{open:function(T){m(function(A){var O=Ue(A),R=O.findIndex(function(L){return L.key===T.key}),N=Q({},T);if(R>=0){var _;N.times=(((_=A[R])===null||_===void 0?void 0:_.times)||0)+1,O[R]=N}else N.times=0,O.push(N);return o>0&&O.length>o&&(O=O.slice(-o)),O})},close:function(T){v(T)},destroy:function(){m([])}}});var y=g.useState({}),b=fe(y,2),x=b[0],E=b[1];g.useEffect(function(){var I={};h.forEach(function(T){var A=T.placement,O=A===void 0?"topRight":A;O&&(I[O]=I[O]||[],I[O].push(T))}),Object.keys(x).forEach(function(T){I[T]=I[T]||[]}),E(I)},[h]);var S=function(T){E(function(A){var O=Q({},A),R=O[T]||[];return R.length||delete O[T],O})},C=g.useRef(!1);if(g.useEffect(function(){Object.keys(x).length>0?C.current=!0:C.current&&(u==null||u(),C.current=!1)},[x]),!a)return null;var w=Object.keys(x);return di.createPortal(g.createElement(g.Fragment,null,w.map(function(I){var T=x[I],A=g.createElement(dVe,{key:I,configList:T,placement:I,prefixCls:r,className:l==null?void 0:l(I),style:s==null?void 0:s(I),motion:i,onNoticeClose:v,onAllNoticeRemoved:S,stack:c});return d?d(A,{prefixCls:r,key:I}):A})),a)}),pVe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],hVe=function(){return document.body},tZ=0;function gVe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?hVe:t,r=e.motion,a=e.prefixCls,i=e.maxCount,o=e.className,l=e.style,s=e.onAllRemoved,u=e.stack,c=e.renderNotifications,d=Lt(e,pVe),f=g.useState(),p=fe(f,2),h=p[0],m=p[1],v=g.useRef(),y=g.createElement(fVe,{container:h,ref:v,prefixCls:a,motion:r,maxCount:i,className:o,style:l,onAllRemoved:s,stack:u,renderNotifications:c}),b=g.useState([]),x=fe(b,2),E=x[0],S=x[1],C=g.useMemo(function(){return{open:function(I){var T=gVe(d,I);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(tZ),tZ+=1),S(function(A){return[].concat(Ue(A),[{type:"open",config:T}])})},close:function(I){S(function(T){return[].concat(Ue(T),[{type:"close",key:I}])})},destroy:function(){S(function(I){return[].concat(Ue(I),[{type:"destroy"}])})}}},[]);return g.useEffect(function(){m(n())}),g.useEffect(function(){v.current&&E.length&&(E.forEach(function(w){switch(w.type){case"open":v.current.open(w.config);break;case"close":v.current.close(w.key);break;case"destroy":v.current.destroy();break}}),S(function(w){return w.filter(function(I){return!E.includes(I)})}))},[E]),[C,y]}var mVe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const vVe=mVe;var yVe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:vVe}))};const vg=g.forwardRef(yVe),bVe=M.createContext(void 0),IS=bVe,ph=100,xVe=10,Vk=ph*xVe,Gge={Modal:ph,Drawer:ph,Popover:ph,Popconfirm:ph,Tooltip:ph,Tour:ph},EVe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function SVe(e){return e in Gge}function jc(e,t){const[,n]=Ka(),r=M.useContext(IS),a=SVe(e);if(t!==void 0)return[t,t];let i=r??0;return a?(i+=(r?0:n.zIndexPopupBase)+Gge[e],i=Math.min(i,n.zIndexPopupBase+Vk)):i+=EVe[e],[r===void 0?t:i,i]}const CVe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:i,colorError:o,colorWarning:l,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:m,contentPadding:v,contentBg:y}=e,b=`${t}-notice`,x=new gn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),E=new gn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:u},[`${b}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, + ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},In(e)),{color:a,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[` + ${t}-move-up-appear${t}-move-up-appear-active, + ${t}-move-up-enter${t}-move-up-enter-active + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]},wVe=e=>({zIndexPopup:e.zIndexPopupBase+Vk+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),TVe=On("Message",e=>{const t=pn(e,{height:150});return[CVe(t)]},wVe);globalThis&&globalThis.__rest;const AVe={info:g.createElement(f7,null),success:g.createElement(by,null),error:g.createElement(Bp,null),warning:g.createElement(Wg,null),loading:g.createElement(vg,null)},IVe=e=>{let{prefixCls:t,type:n,icon:r,children:a}=e;return g.createElement("div",{className:ie(`${t}-custom-content`,`${t}-${n}`)},r||AVe[n],g.createElement("span",null,a))};function OVe(e,t){return{motionName:t??`${e}-move-up`}}function kVe(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,i)=>n.then(a,i),r.promise=n,r}var RVe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=oa(n),[a,i,o]=TVe(n,r);return a(g.createElement(Vge,{classNames:{list:ie(i,o,r)}},t))},MVe=(e,t)=>{let{prefixCls:n,key:r}=t;return g.createElement(DVe,{prefixCls:n,key:r},e)},$Ve=g.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:i,duration:o=NVe,rtl:l,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:c,getPopupContainer:d,message:f,direction:p}=g.useContext(dt),h=r||c("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??_Ve}),v=()=>ie({[`${h}-rtl`]:l??p==="rtl"}),y=()=>OVe(h,s),b=g.createElement("span",{className:`${h}-close-x`},g.createElement(Gu,{className:`${h}-close-icon`})),[x,E]=Wge({prefixCls:h,style:m,className:v,motion:y,closable:!1,closeIcon:b,duration:o,getContainer:()=>(a==null?void 0:a())||(d==null?void 0:d())||document.body,maxCount:i,onAllRemoved:u,renderNotifications:MVe});return g.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:f})),E});let nZ=0;function LVe(e){const t=g.useRef(null);return Qd(),[g.useMemo(()=>{const r=s=>{var u;(u=t.current)===null||u===void 0||u.close(s)},a=s=>{if(!t.current){const C=()=>{};return C.then=()=>{},C}const{open:u,prefixCls:c,message:d}=t.current,f=`${c}-notice`,{content:p,icon:h,type:m,key:v,className:y,style:b,onClose:x}=s,E=RVe(s,["content","icon","type","key","className","style","onClose"]);let S=v;return S==null&&(nZ+=1,S=`antd-message-${nZ}`),kVe(C=>(u(Object.assign(Object.assign({},E),{key:S,content:g.createElement(IVe,{prefixCls:c,type:m,icon:h},p),placement:"top",className:ie(m&&`${f}-${m}`,y,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),onClose:()=>{x==null||x(),C()}})),()=>{r(S)}))},o={open:a,destroy:s=>{var u;s!==void 0?r(s):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const u=(c,d,f)=>{let p;c&&typeof c=="object"&&"content"in c?p=c:p={content:c};let h,m;typeof d=="function"?m=d:(h=d,m=f);const v=Object.assign(Object.assign({onClose:m,duration:h},p),{type:s});return a(v)};o[s]=u}),o},[]),g.createElement($Ve,Object.assign({key:"message-holder"},e,{ref:t}))]}function PVe(e){return LVe(e)}function FVe(){const[e,t]=g.useState([]),n=g.useCallback(r=>(t(a=>[].concat(Ue(a),[r])),()=>{t(a=>a.filter(i=>i!==r))}),[]);return[e,n]}function oo(){oo=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function($,k,P){$[k]=P.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u($,k,P){return Object.defineProperty($,k,{value:P,enumerable:!0,configurable:!0,writable:!0}),$[k]}try{u({},"")}catch{u=function(P,B,F){return P[B]=F}}function c($,k,P,B){var F=k&&k.prototype instanceof y?k:y,D=Object.create(F.prototype),j=new _(B||[]);return a(D,"_invoke",{value:A($,P,j)}),D}function d($,k,P){try{return{type:"normal",arg:$.call(k,P)}}catch(B){return{type:"throw",arg:B}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function b(){}function x(){}var E={};u(E,o,function(){return this});var S=Object.getPrototypeOf,C=S&&S(S(L([])));C&&C!==n&&r.call(C,o)&&(E=C);var w=x.prototype=y.prototype=Object.create(E);function I($){["next","throw","return"].forEach(function(k){u($,k,function(P){return this._invoke(k,P)})})}function T($,k){function P(F,D,j,z){var V=d($[F],$,D);if(V.type!=="throw"){var G=V.arg,W=G.value;return W&&zt(W)=="object"&&r.call(W,"__await")?k.resolve(W.__await).then(function(Y){P("next",Y,j,z)},function(Y){P("throw",Y,j,z)}):k.resolve(W).then(function(Y){G.value=Y,j(G)},function(Y){return P("throw",Y,j,z)})}z(V.arg)}var B;a(this,"_invoke",{value:function(D,j){function z(){return new k(function(V,G){P(D,j,V,G)})}return B=B?B.then(z,z):z()}})}function A($,k,P){var B=f;return function(F,D){if(B===h)throw new Error("Generator is already running");if(B===m){if(F==="throw")throw D;return{value:e,done:!0}}for(P.method=F,P.arg=D;;){var j=P.delegate;if(j){var z=O(j,P);if(z){if(z===v)continue;return z}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(B===f)throw B=m,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);B=h;var V=d($,k,P);if(V.type==="normal"){if(B=P.done?m:p,V.arg===v)continue;return{value:V.arg,done:P.done}}V.type==="throw"&&(B=m,P.method="throw",P.arg=V.arg)}}}function O($,k){var P=k.method,B=$.iterator[P];if(B===e)return k.delegate=null,P==="throw"&&$.iterator.return&&(k.method="return",k.arg=e,O($,k),k.method==="throw")||P!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+P+"' method")),v;var F=d(B,$.iterator,k.arg);if(F.type==="throw")return k.method="throw",k.arg=F.arg,k.delegate=null,v;var D=F.arg;return D?D.done?(k[$.resultName]=D.value,k.next=$.nextLoc,k.method!=="return"&&(k.method="next",k.arg=e),k.delegate=null,v):D:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,v)}function R($){var k={tryLoc:$[0]};1 in $&&(k.catchLoc=$[1]),2 in $&&(k.finallyLoc=$[2],k.afterLoc=$[3]),this.tryEntries.push(k)}function N($){var k=$.completion||{};k.type="normal",delete k.arg,$.completion=k}function _($){this.tryEntries=[{tryLoc:"root"}],$.forEach(R,this),this.reset(!0)}function L($){if($||$===""){var k=$[o];if(k)return k.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var P=-1,B=function F(){for(;++P<$.length;)if(r.call($,P))return F.value=$[P],F.done=!1,F;return F.value=e,F.done=!0,F};return B.next=B}}throw new TypeError(zt($)+" is not iterable")}return b.prototype=x,a(w,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:b,configurable:!0}),b.displayName=u(x,s,"GeneratorFunction"),t.isGeneratorFunction=function($){var k=typeof $=="function"&&$.constructor;return!!k&&(k===b||(k.displayName||k.name)==="GeneratorFunction")},t.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,x):($.__proto__=x,u($,s,"GeneratorFunction")),$.prototype=Object.create(w),$},t.awrap=function($){return{__await:$}},I(T.prototype),u(T.prototype,l,function(){return this}),t.AsyncIterator=T,t.async=function($,k,P,B,F){F===void 0&&(F=Promise);var D=new T(c($,k,P,B),F);return t.isGeneratorFunction(k)?D:D.next().then(function(j){return j.done?j.value:D.next()})},I(w),u(w,s,"Generator"),u(w,o,function(){return this}),u(w,"toString",function(){return"[object Generator]"}),t.keys=function($){var k=Object($),P=[];for(var B in k)P.push(B);return P.reverse(),function F(){for(;P.length;){var D=P.pop();if(D in k)return F.value=D,F.done=!1,F}return F.done=!0,F}},t.values=L,_.prototype={constructor:_,reset:function(k){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!k)for(var P in this)P.charAt(0)==="t"&&r.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=e)},stop:function(){this.done=!0;var k=this.tryEntries[0].completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(k){if(this.done)throw k;var P=this;function B(G,W){return j.type="throw",j.arg=k,P.next=G,W&&(P.method="next",P.arg=e),!!W}for(var F=this.tryEntries.length-1;F>=0;--F){var D=this.tryEntries[F],j=D.completion;if(D.tryLoc==="root")return B("end");if(D.tryLoc<=this.prev){var z=r.call(D,"catchLoc"),V=r.call(D,"finallyLoc");if(z&&V){if(this.prev=0;--B){var F=this.tryEntries[B];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--P){var B=this.tryEntries[P];if(B.finallyLoc===k)return this.complete(B.completion,B.afterLoc),N(B),v}},catch:function(k){for(var P=this.tryEntries.length-1;P>=0;--P){var B=this.tryEntries[P];if(B.tryLoc===k){var F=B.completion;if(F.type==="throw"){var D=F.arg;N(B)}return D}}throw new Error("illegal catch attempt")},delegateYield:function(k,P,B){return this.delegate={iterator:L(k),resultName:P,nextLoc:B},this.method==="next"&&(this.arg=e),v}},t}function rZ(e,t,n,r,a,i,o){try{var l=e[i](o),s=l.value}catch(u){n(u);return}l.done?t(s):Promise.resolve(s).then(r,a)}function zp(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(s){rZ(i,r,a,o,l,"next",s)}function l(s){rZ(i,r,a,o,l,"throw",s)}o(void 0)})}}var OS=Q({},Wde),BVe=OS.version,zVe=OS.render,HVe=OS.unmountComponentAtNode,Wk;try{var jVe=Number((BVe||"").split(".")[0]);jVe>=18&&(Wk=OS.createRoot)}catch{}function aZ(e){var t=OS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&zt(t)==="object"&&(t.usingClientEntryPoint=e)}var wI="__rc_react_root__";function UVe(e,t){aZ(!0);var n=t[wI]||Wk(t);aZ(!1),n.render(e),t[wI]=n}function VVe(e,t){zVe(e,t)}function p7(e,t){if(Wk){UVe(e,t);return}VVe(e,t)}function WVe(e){return jP.apply(this,arguments)}function jP(){return jP=zp(oo().mark(function e(t){return oo().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[wI])===null||a===void 0||a.unmount(),delete t[wI]}));case 1:case"end":return r.stop()}},e)})),jP.apply(this,arguments)}function GVe(e){HVe(e)}function qge(e){return UP.apply(this,arguments)}function UP(){return UP=zp(oo().mark(function e(t){return oo().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Wk===void 0){r.next=2;break}return r.abrupt("return",WVe(t));case 2:GVe(t);case 3:case"end":return r.stop()}},e)})),UP.apply(this,arguments)}const TD=()=>({height:0,opacity:0}),iZ=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},qVe=e=>({height:e?e.offsetHeight:0}),AD=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",dE=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:TD,onEnterStart:TD,onAppearActive:iZ,onEnterActive:iZ,onLeaveStart:qVe,onLeaveActive:TD,onAppearEnd:AD,onEnterEnd:AD,onLeaveEnd:AD,motionDeadline:500}},ml=(e,t,n)=>n!==void 0?n:`${e}-${t}`,xy=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),i=a.width,o=a.height;if(i||o)return!0}}return!1},YVe=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},KVe=s7("Wave",e=>[YVe(e)]);function XVe(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function ID(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&XVe(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function QVe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return ID(t)?t:ID(n)?n:ID(r)?r:null}const Gk="ant-wave-target";function OD(e){return Number.isNaN(e)?0:e}const ZVe=e=>{const{className:t,target:n,component:r}=e,a=g.useRef(null),[i,o]=g.useState(null),[l,s]=g.useState([]),[u,c]=g.useState(0),[d,f]=g.useState(0),[p,h]=g.useState(0),[m,v]=g.useState(0),[y,b]=g.useState(!1),x={left:u,top:d,width:p,height:m,borderRadius:l.map(C=>`${C}px`).join(" ")};i&&(x["--wave-color"]=i);function E(){const C=getComputedStyle(n);o(QVe(n));const w=C.position==="static",{borderLeftWidth:I,borderTopWidth:T}=C;c(w?n.offsetLeft:OD(-parseFloat(I))),f(w?n.offsetTop:OD(-parseFloat(T))),h(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:O,borderBottomLeftRadius:R,borderBottomRightRadius:N}=C;s([A,O,N,R].map(_=>OD(parseFloat(_))))}if(g.useEffect(()=>{if(n){const C=bn(()=>{E(),b(!0)});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(E),w.observe(n)),()=>{bn.cancel(C),w==null||w.disconnect()}}},[]),!y)return null;const S=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Gk));return g.createElement(io,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(C,w)=>{var I;if(w.deadline||w.propertyName==="opacity"){const T=(I=a.current)===null||I===void 0?void 0:I.parentElement;qge(T).then(()=>{T==null||T.remove()})}return!1}},C=>{let{className:w}=C;return g.createElement("div",{ref:a,className:ie(t,{"wave-quick":S},w),style:x})})},JVe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),p7(g.createElement(ZVe,Object.assign({},t,{target:e})),a)},eWe=JVe;function tWe(e,t,n){const{wave:r}=g.useContext(dt),[,a,i]=Ka(),o=jn(u=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const d=c.querySelector(`.${Gk}`)||c,{showEffect:f}=r||{};(f||eWe)(d,{className:t,token:a,component:n,event:u,hashId:i})}),l=g.useRef();return u=>{bn.cancel(l.current),l.current=bn(()=>{o(u)})}}const nWe=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=g.useContext(dt),i=g.useRef(null),o=a("wave"),[,l]=KVe(o),s=tWe(i,ie(o,l),r);if(M.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||n)return;const d=f=>{!xy(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s(f)};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0)}},[n]),!M.isValidElement(t))return t??null;const u=Mu(t)?uo(t.ref,i):i;return Ta(t,{ref:u})},qk=nWe,rWe=e=>{const t=M.useContext(TS);return M.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},co=rWe,aWe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},iWe=aWe,oWe=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},lWe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Yge=On("Space",e=>{const t=pn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[oWe(t),lWe(t),iWe(t)]},()=>({}),{resetStyle:!1});var Kge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=g.useContext(Yk),r=g.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:i,isLastItem:o}=n,l=a==="vertical"?"-vertical-":"-";return ie(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:o,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},kc=e=>{let{children:t}=e;return g.createElement(Yk.Provider,{value:null},t)},sWe=e=>{var{children:t}=e,n=Kge(e,["children"]);return g.createElement(Yk.Provider,{value:n},t)},uWe=e=>{const{getPrefixCls:t,direction:n}=g.useContext(dt),{size:r,direction:a,block:i,prefixCls:o,className:l,rootClassName:s,children:u}=e,c=Kge(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=co(x=>r??x),f=t("space-compact",o),[p,h]=Yge(f),m=ie(f,h,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:i,[`${f}-vertical`]:a==="vertical"},l,s),v=g.useContext(Yk),y=wi(u),b=g.useMemo(()=>y.map((x,E)=>{const S=x&&x.key||`${f}-item-${E}`;return g.createElement(sWe,{key:S,compactSize:d,compactDirection:a,isFirstItem:E===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:E===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},x)}),[r,y,v]);return y.length===0?null:p(g.createElement("div",Object.assign({className:m},c),b))},cWe=uWe;var dWe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=g.useContext(dt),{prefixCls:r,size:a,className:i}=e,o=dWe(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Ka();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}const c=ie(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},i,s);return g.createElement(Xge.Provider,{value:a},g.createElement("div",Object.assign({},o,{className:c})))},pWe=fWe,oZ=/^[\u4e00-\u9fa5]{2}$/,VP=oZ.test.bind(oZ);function h7(e){return e==="danger"?{danger:!0}:{type:e}}function lZ(e){return typeof e=="string"}function kD(e){return e==="text"||e==="link"}function hWe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&lZ(e.type)&&VP(e.props.children)?Ta(e,{children:e.props.children.split("").join(n)}):lZ(e)?VP(e)?M.createElement("span",null,e.split("").join(n)):M.createElement("span",null,e):Hge(e)?M.createElement("span",null,e):e}function gWe(e,t){let n=!1;const r=[];return M.Children.forEach(e,a=>{const i=typeof a,o=i==="string"||i==="number";if(n&&o){const l=r.length-1,s=r[l];r[l]=`${s}${a}`}else r.push(a);n=o}),M.Children.map(r,a=>hWe(a,t))}const mWe=g.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:i}=e,o=ie(`${i}-icon`,n);return M.createElement("span",{ref:t,className:o,style:r},a)}),Qge=mWe,sZ=g.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,iconClassName:i}=e;const o=ie(`${n}-loading-icon`,r);return M.createElement(Qge,{prefixCls:n,className:o,style:a,ref:t},M.createElement(vg,{className:i}))}),RD=()=>({width:0,opacity:0,transform:"scale(0)"}),_D=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),vWe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:i}=e,o=!!n;return r?M.createElement(sZ,{prefixCls:t,className:a,style:i}):M.createElement(io,{visible:o,motionName:`${t}-loading-icon-motion`,motionLeave:o,removeOnLeave:!0,onAppearStart:RD,onAppearActive:_D,onEnterStart:RD,onEnterActive:_D,onLeaveStart:_D,onLeaveActive:RD},(l,s)=>{let{className:u,style:c}=l;return M.createElement(sZ,{prefixCls:t,className:a,style:Object.assign(Object.assign({},i),c),ref:s,iconClassName:u})})},yWe=vWe,uZ=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),bWe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},uZ(`${t}-primary`,a),uZ(`${t}-danger`,i)]}},xWe=bWe,Zge=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return pn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Jge=e=>{var t,n,r,a,i,o;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,c=(a=e.contentLineHeight)!==null&&a!==void 0?a:jT(l),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:jT(s),f=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:jT(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:u,contentLineHeight:c,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*f)/2-e.lineWidth,0)}},EWe=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},xp(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Fd=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),SWe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),CWe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),wWe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),fE=(e,t,n,r,a,i,o,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Fd(e,Object.assign({background:t},o),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:i||void 0}})}),g7=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},wWe(e))}),eme=e=>Object.assign({},g7(e)),TI=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),tme=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eme(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Fd(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),fE(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Fd(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),fE(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),g7(e))}),TWe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eme(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Fd(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),fE(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Fd(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),fE(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),g7(e))}),AWe=e=>Object.assign(Object.assign({},tme(e)),{borderStyle:"dashed"}),IWe=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fd(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),TI(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fd(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),TI(e))}),OWe=e=>Object.assign(Object.assign(Object.assign({},Fd(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),TI(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},TI(e)),Fd(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),kWe=e=>{const{componentCls:t}=e;return{[`${t}-default`]:tme(e),[`${t}-primary`]:TWe(e),[`${t}-dashed`]:AWe(e),[`${t}-link`]:IWe(e),[`${t}-text`]:OWe(e),[`${t}-ghost`]:fE(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},m7=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:i,borderRadius:o,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:u}=e,c=`${n}-icon-only`;return[{[`${t}`]:{fontSize:a,lineHeight:i,height:r,padding:`${ne(u)} ${ne(l)}`,borderRadius:o,[`&${c}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:SWe(e)},{[`${n}${n}-round${t}`]:CWe(e)}]},RWe=e=>{const t=pn(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return m7(t,e.componentCls)},_We=e=>{const t=pn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return m7(t,`${e.componentCls}-sm`)},NWe=e=>{const t=pn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return m7(t,`${e.componentCls}-lg`)},DWe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},MWe=On("Button",e=>{const t=Zge(e);return[EWe(t),RWe(t),_We(t),NWe(t),DWe(t),kWe(t),xWe(t)]},Jge,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function $We(e,t,n){const{focusElCls:r,focus:a,borderElCls:i}=n,o=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function LWe(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function kS(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},$We(e,r,t)),LWe(n,r,t))}}function PWe(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function FWe(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function BWe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},PWe(e,t)),FWe(e.componentCls,t))}}const zWe=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ne(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ne(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},HWe=Vg(["Button","compact"],e=>{const t=Zge(e);return[kS(t),BWe(t),zWe(t)]},Jge);var jWe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{loading:a=!1,prefixCls:i,type:o,danger:l,shape:s="default",size:u,styles:c,disabled:d,className:f,rootClassName:p,children:h,icon:m,ghost:v=!1,block:y=!1,htmlType:b="button",classNames:x,style:E={}}=e,S=jWe(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),C=o||"default",{getPrefixCls:w,autoInsertSpaceInButton:I,direction:T,button:A}=g.useContext(dt),O=w("btn",i),[R,N,_]=MWe(O),L=g.useContext(Ws),$=d??L,k=g.useContext(Xge),P=g.useMemo(()=>UWe(a),[a]),[B,F]=g.useState(P.loading),[D,j]=g.useState(!1),V=uo(t,g.createRef()),G=g.Children.count(h)===1&&!m&&!kD(C);g.useEffect(()=>{let Ie=null;P.delay>0?Ie=setTimeout(()=>{Ie=null,F(!0)},P.delay):F(P.loading);function ke(){Ie&&(clearTimeout(Ie),Ie=null)}return ke},[P]),g.useEffect(()=>{if(!V||!V.current||I===!1)return;const Ie=V.current.textContent;G&&VP(Ie)?D||j(!0):D&&j(!1)},[V]);const W=Ie=>{const{onClick:ke}=e;if(B||$){Ie.preventDefault();return}ke==null||ke(Ie)},Y=I!==!1,{compactSize:J,compactItemClassnames:Z}=Hp(O,T),K={large:"lg",small:"sm",middle:void 0},ee=co(Ie=>{var ke,Te;return(Te=(ke=u??J)!==null&&ke!==void 0?ke:k)!==null&&Te!==void 0?Te:Ie}),ae=ee&&K[ee]||"",te=B?"loading":m,re=Dr(S,["navigate"]),se=ie(O,N,_,{[`${O}-${s}`]:s!=="default"&&s,[`${O}-${C}`]:C,[`${O}-${ae}`]:ae,[`${O}-icon-only`]:!h&&h!==0&&!!te,[`${O}-background-ghost`]:v&&!kD(C),[`${O}-loading`]:B,[`${O}-two-chinese-chars`]:D&&Y&&!B,[`${O}-block`]:y,[`${O}-dangerous`]:!!l,[`${O}-rtl`]:T==="rtl"},Z,f,p,A==null?void 0:A.className),ve=Object.assign(Object.assign({},A==null?void 0:A.style),E),ge=ie(x==null?void 0:x.icon,(n=A==null?void 0:A.classNames)===null||n===void 0?void 0:n.icon),xe=Object.assign(Object.assign({},(c==null?void 0:c.icon)||{}),((r=A==null?void 0:A.styles)===null||r===void 0?void 0:r.icon)||{}),me=m&&!B?M.createElement(Qge,{prefixCls:O,className:ge,style:xe},m):M.createElement(yWe,{existIcon:!!m,prefixCls:O,loading:!!B}),de=h||h===0?gWe(h,G&&Y):null;if(re.href!==void 0)return R(M.createElement("a",Object.assign({},re,{className:ie(se,{[`${O}-disabled`]:$}),href:$?void 0:re.href,style:ve,onClick:W,ref:V,tabIndex:$?-1:0}),me,de));let Ce=M.createElement("button",Object.assign({},S,{type:b,className:se,style:ve,onClick:W,disabled:$,ref:V}),me,de,!!Z&&M.createElement(HWe,{key:"compact",prefixCls:O}));return kD(C)||(Ce=M.createElement(qk,{component:"Button",disabled:!!B},Ce)),R(Ce)},v7=g.forwardRef(VWe);v7.Group=pWe;v7.__ANT_BUTTON=!0;const nn=v7;function cZ(e){return!!(e&&e.then)}const WWe=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:i,autoFocus:o,emitEvent:l,isSilent:s,quitOnNullishReturnValue:u,actionFn:c}=e,d=g.useRef(!1),f=g.useRef(null),[p,h]=ap(!1),m=function(){i==null||i.apply(void 0,arguments)};g.useEffect(()=>{let b=null;return o&&(b=setTimeout(()=>{var x;(x=f.current)===null||x===void 0||x.focus()})),()=>{b&&clearTimeout(b)}},[]);const v=b=>{cZ(b)&&(h(!0),b.then(function(){h(!1,!0),m.apply(void 0,arguments),d.current=!1},x=>{if(h(!1,!0),d.current=!1,!(s!=null&&s()))return Promise.reject(x)}))},y=b=>{if(d.current)return;if(d.current=!0,!c){m();return}let x;if(l){if(x=c(b),u&&!cZ(x)){d.current=!1,m(b);return}}else if(c.length)x=c(i),d.current=!1;else if(x=c(),!x){m();return}v(x)};return g.createElement(nn,Object.assign({},h7(t),{onClick:y,loading:p,prefixCls:r},a,{ref:f}),n)},y7=WWe,RS=M.createContext({}),{Provider:nme}=RS,GWe=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:i,close:o,onCancel:l,onConfirm:s}=g.useContext(RS);return a?M.createElement(y7,{isSilent:r,actionFn:l,close:function(){o==null||o.apply(void 0,arguments),s==null||s(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},dZ=GWe,qWe=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:i,okType:o,onConfirm:l,onOk:s}=g.useContext(RS);return M.createElement(y7,{isSilent:n,type:o||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},i)},fZ=qWe;var rme=g.createContext(null),pZ=[];function YWe(e,t){var n=g.useState(function(){if(!Ti())return null;var h=document.createElement("div");return h}),r=fe(n,1),a=r[0],i=g.useRef(!1),o=g.useContext(rme),l=g.useState(pZ),s=fe(l,2),u=s[0],c=s[1],d=o||(i.current?void 0:function(h){c(function(m){var v=[h].concat(Ue(m));return v})});function f(){a.parentElement||document.body.appendChild(a),i.current=!0}function p(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),i.current=!1}return Sn(function(){return e?o?o(f):f():p(),p},[e]),Sn(function(){u.length&&(u.forEach(function(h){return h()}),c(pZ))},[u]),[a,d]}var ND;function WP(e){if(typeof document>"u")return 0;if(e||ND===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var a=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),ND=a-i}return ND}function hZ(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?WP():n}function GP(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:hZ(n),height:hZ(r)}}function KWe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var XWe="rc-util-locker-".concat(Date.now()),gZ=0;function QWe(e){var t=!!e,n=g.useState(function(){return gZ+=1,"".concat(XWe,"_").concat(gZ)}),r=fe(n,1),a=r[0];Sn(function(){if(t){var i=GP(document.body).width,o=KWe();Pd(` +html body { + overflow-y: hidden; + `.concat(o?"width: calc(100% - ".concat(i,"px);"):"",` +}`),a)}else oE(a);return function(){oE(a)}},[t,a])}var mZ=!1;function ZWe(e){return typeof e=="boolean"&&(mZ=e),mZ}var vZ=function(t){return t===!1?!1:!Ti()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},_S=g.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var i=e.autoDestroy,o=i===void 0?!0:i,l=e.children,s=g.useState(n),u=fe(s,2),c=u[0],d=u[1],f=c||n;g.useEffect(function(){(o||n)&&d(n)},[n,o]);var p=g.useState(function(){return vZ(a)}),h=fe(p,2),m=h[0],v=h[1];g.useEffect(function(){var O=vZ(a);v(O??null)});var y=YWe(f&&!m),b=fe(y,2),x=b[0],E=b[1],S=m??x;QWe(r&&n&&Ti()&&(S===x||S===document.body));var C=null;if(l&&Mu(l)&&t){var w=l;C=w.ref}var I=zc(C,t);if(!f||!Ti()||m===void 0)return null;var T=S===!1||ZWe(),A=l;return t&&(A=g.cloneElement(l,{ref:I})),g.createElement(rme.Provider,{value:E},T?A:di.createPortal(A,S))}),ame=g.createContext({});function JWe(){var e=Q({},uS);return e.useId}var yZ=0,bZ=JWe();const ime=bZ?function(t){var n=bZ();return t||n}:function(t){var n=g.useState("ssr-id"),r=fe(n,2),a=r[0],i=r[1];return g.useEffect(function(){var o=yZ;yZ+=1,i("rc_unique_".concat(o))},[]),t||a};function xZ(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function EZ(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function eGe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=EZ(a),n.top+=EZ(a,!0),n}const tGe=g.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var SZ={width:0,height:0,overflow:"hidden",outline:"none"},nGe={outline:"none"},ome=M.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.title,o=e.ariaId,l=e.footer,s=e.closable,u=e.closeIcon,c=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,m=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,b=e.visible,x=e.forceRender,E=e.width,S=e.height,C=e.classNames,w=e.styles,I=M.useContext(ame),T=I.panel,A=zc(y,T),O=g.useRef(),R=g.useRef(),N=g.useRef();M.useImperativeHandle(t,function(){return{focus:function(){var j;(j=N.current)===null||j===void 0||j.focus()},changeActive:function(j){var z=document,V=z.activeElement;j&&V===R.current?O.current.focus():!j&&V===O.current&&R.current.focus()}}});var _={};E!==void 0&&(_.width=E),S!==void 0&&(_.height=S);var L;l&&(L=M.createElement("div",{className:ie("".concat(n,"-footer"),C==null?void 0:C.footer),style:Q({},w==null?void 0:w.footer)},l));var $;i&&($=M.createElement("div",{className:ie("".concat(n,"-header"),C==null?void 0:C.header),style:Q({},w==null?void 0:w.header)},M.createElement("div",{className:"".concat(n,"-title"),id:o},i)));var k=g.useMemo(function(){return zt(s)==="object"&&s!==null?s:s?{closeIcon:u??M.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,u]),P=La(k,!0),B;s&&(B=M.createElement("button",Ne({type:"button",onClick:c,"aria-label":"Close"},P,{className:"".concat(n,"-close")}),k.closeIcon));var F=M.createElement("div",{className:ie("".concat(n,"-content"),C==null?void 0:C.content),style:w==null?void 0:w.content},B,$,M.createElement("div",Ne({className:ie("".concat(n,"-body"),C==null?void 0:C.body),style:Q(Q({},f),w==null?void 0:w.body)},p),d),L);return M.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?o:null,"aria-modal":"true",ref:A,style:Q(Q({},a),_),className:ie(n,r),onMouseDown:m,onMouseUp:v},M.createElement("div",{tabIndex:0,ref:O,style:SZ,"aria-hidden":"true"}),M.createElement("div",{ref:N,tabIndex:-1,style:nGe},M.createElement(tGe,{shouldUpdate:b||x},h?h(F):F)),M.createElement("div",{tabIndex:0,ref:R,style:SZ,"aria-hidden":"true"}))}),lme=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,i=e.className,o=e.visible,l=e.forceRender,s=e.destroyOnClose,u=e.motionName,c=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=g.useRef(),h=g.useState(),m=fe(h,2),v=m[0],y=m[1],b={};v&&(b.transformOrigin=v);function x(){var E=eGe(p.current);y(f?"".concat(f.x-E.left,"px ").concat(f.y-E.top,"px"):"")}return g.createElement(io,{visible:o,onVisibleChanged:d,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:u,removeOnLeave:s,ref:p},function(E,S){var C=E.className,w=E.style;return g.createElement(ome,Ne({},e,{ref:t,title:r,ariaId:c,prefixCls:n,holderRef:S,style:Q(Q(Q({},w),a),b),className:ie(i,C)}))})});lme.displayName="Content";function rGe(e){var t=e.prefixCls,n=e.style,r=e.visible,a=e.maskProps,i=e.motionName,o=e.className;return g.createElement(io,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(l,s){var u=l.className,c=l.style;return g.createElement("div",Ne({ref:s,style:Q(Q({},c),n),className:ie("".concat(t,"-mask"),u,o)},a))})}function aGe(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,a=e.visible,i=a===void 0?!1:a,o=e.keyboard,l=o===void 0?!0:o,s=e.focusTriggerAfterClose,u=s===void 0?!0:s,c=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,h=e.afterOpenChange,m=e.afterClose,v=e.transitionName,y=e.animation,b=e.closable,x=b===void 0?!0:b,E=e.mask,S=E===void 0?!0:E,C=e.maskTransitionName,w=e.maskAnimation,I=e.maskClosable,T=I===void 0?!0:I,A=e.maskStyle,O=e.maskProps,R=e.rootClassName,N=e.classNames,_=e.styles,L=g.useRef(),$=g.useRef(),k=g.useRef(),P=g.useState(i),B=fe(P,2),F=B[0],D=B[1],j=ime();function z(){EP($.current,document.activeElement)||(L.current=document.activeElement)}function V(){if(!EP($.current,document.activeElement)){var te;(te=k.current)===null||te===void 0||te.focus()}}function G(te){if(te)V();else{if(D(!1),S&&L.current&&u){try{L.current.focus({preventScroll:!0})}catch{}L.current=null}F&&(m==null||m())}h==null||h(te)}function W(te){p==null||p(te)}var Y=g.useRef(!1),J=g.useRef(),Z=function(){clearTimeout(J.current),Y.current=!0},K=function(){J.current=setTimeout(function(){Y.current=!1})},ee=null;T&&(ee=function(re){Y.current?Y.current=!1:$.current===re.target&&W(re)});function ae(te){if(l&&te.keyCode===Ve.ESC){te.stopPropagation(),W(te);return}i&&te.keyCode===Ve.TAB&&k.current.changeActive(!te.shiftKey)}return g.useEffect(function(){i&&(D(!0),z())},[i]),g.useEffect(function(){return function(){clearTimeout(J.current)}},[]),g.createElement("div",Ne({className:ie("".concat(n,"-root"),R)},La(e,{data:!0})),g.createElement(rGe,{prefixCls:n,visible:S&&i,motionName:xZ(n,C,w),style:Q(Q({zIndex:r},A),_==null?void 0:_.mask),maskProps:O,className:N==null?void 0:N.mask}),g.createElement("div",Ne({tabIndex:-1,onKeyDown:ae,className:ie("".concat(n,"-wrap"),d,N==null?void 0:N.wrapper),ref:$,onClick:ee,style:Q(Q(Q({zIndex:r},c),_==null?void 0:_.wrapper),{},{display:F?null:"none"})},f),g.createElement(lme,Ne({},e,{onMouseDown:Z,onMouseUp:K,ref:k,closable:x,ariaId:j,prefixCls:n,visible:i&&F,onClose:W,onVisibleChanged:G,motionName:xZ(n,v,y)}))))}var b7=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,i=t.destroyOnClose,o=i===void 0?!1:i,l=t.afterClose,s=t.panelRef,u=g.useState(n),c=fe(u,2),d=c[0],f=c[1],p=g.useMemo(function(){return{panel:s}},[s]);return g.useEffect(function(){n&&f(!0)},[n]),!a&&o&&!d?null:g.createElement(ame.Provider,{value:p},g.createElement(_S,{open:n||a||d,autoDestroy:!1,getContainer:r,autoLock:n||d},g.createElement(aGe,Ne({},t,{destroyOnClose:o,afterClose:function(){l==null||l(),f(!1)}}))))};b7.displayName="Dialog";var iGe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof t=="object"&&s!==void 0?s:typeof n=="boolean"||n===void 0||n===null?a:n)(),d=La(u,!0),f=r?r(c):c;return[!0,M.isValidElement(f)?M.cloneElement(f,d):M.createElement("span",Object.assign({},d),f)]}var sme=function(t){if(Ti()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},lGe=function(t,n){if(!sme(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function qP(e,t){return!Array.isArray(e)&&t!==void 0?lGe(e,t):sme(e)}const sGe=()=>Ti()&&window.document.documentElement;var Dh="RC_FORM_INTERNAL_HOOKS",$r=function(){Rr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},yg=g.createContext({getFieldValue:$r,getFieldsValue:$r,getFieldError:$r,getFieldWarning:$r,getFieldsError:$r,isFieldsTouched:$r,isFieldTouched:$r,isFieldValidating:$r,isFieldsValidating:$r,resetFields:$r,setFields:$r,setFieldValue:$r,setFieldsValue:$r,validateFields:$r,submit:$r,getInternalHooks:function(){return $r(),{dispatch:$r,initEntityValue:$r,registerField:$r,useSubscribe:$r,setInitialValues:$r,destroyForm:$r,setCallbacks:$r,registerWatch:$r,getFields:$r,setValidateMessages:$r,setPreserve:$r,getInitialValue:$r}}}),pE=g.createContext(null);function YP(e){return e==null?[]:Array.isArray(e)?e:[e]}function uGe(e){return e&&!!e._init}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function VT(e,t,n){return dGe()?VT=Reflect.construct.bind():VT=function(a,i,o){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(a,l),u=new s;return o&&hE(u,o.prototype),u},VT.apply(null,arguments)}function fGe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function XP(e){var t=typeof Map=="function"?new Map:void 0;return XP=function(r){if(r===null||!fGe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return VT(r,arguments,KP(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),hE(a,r)},XP(e)}var pGe=/%[sdj%]/g,hGe=function(){};typeof process<"u"&&process.env;function QP(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ql(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return l}});return o}return e}function gGe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ai(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||gGe(t)&&typeof e=="string"&&!e)}function mGe(e,t,n){var r=[],a=0,i=e.length;function o(l){r.push.apply(r,l||[]),a++,a===i&&n(r)}e.forEach(function(l){t(l,o)})}function CZ(e,t,n){var r=0,a=e.length;function i(o){if(o&&o.length){n(o);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},S1={integer:function(t){return S1.number(t)&&parseInt(t,10)===t},float:function(t){return S1.number(t)&&!S1.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!S1.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(IZ.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(SGe())},hex:function(t){return typeof t=="string"&&!!t.match(IZ.hex)}},CGe=function(t,n,r,a,i){if(t.required&&n===void 0){ume(t,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;o.indexOf(l)>-1?S1[l](n)||a.push(ql(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&a.push(ql(i.messages.types[l],t.fullField,t.type))},wGe=function(t,n,r,a,i){var o=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",p=typeof n=="string",h=Array.isArray(n);if(f?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(c=n.length),p&&(c=n.replace(u,"_").length),o?c!==t.len&&a.push(ql(i.messages[d].len,t.fullField,t.len)):l&&!s&&ct.max?a.push(ql(i.messages[d].max,t.fullField,t.max)):l&&s&&(ct.max)&&a.push(ql(i.messages[d].range,t.fullField,t.min,t.max))},Am="enum",TGe=function(t,n,r,a,i){t[Am]=Array.isArray(t[Am])?t[Am]:[],t[Am].indexOf(n)===-1&&a.push(ql(i.messages[Am],t.fullField,t[Am].join(", ")))},AGe=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(ql(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||a.push(ql(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},er={required:ume,whitespace:EGe,type:CGe,range:wGe,enum:TGe,pattern:AGe},IGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n,"string")&&!t.required)return r();er.required(t,n,a,o,i,"string"),Ai(n,"string")||(er.type(t,n,a,o,i),er.range(t,n,a,o,i),er.pattern(t,n,a,o,i),t.whitespace===!0&&er.whitespace(t,n,a,o,i))}r(o)},OGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n)&&!t.required)return r();er.required(t,n,a,o,i),n!==void 0&&er.type(t,n,a,o,i)}r(o)},kGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Ai(n)&&!t.required)return r();er.required(t,n,a,o,i),n!==void 0&&(er.type(t,n,a,o,i),er.range(t,n,a,o,i))}r(o)},RGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n)&&!t.required)return r();er.required(t,n,a,o,i),n!==void 0&&er.type(t,n,a,o,i)}r(o)},_Ge=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n)&&!t.required)return r();er.required(t,n,a,o,i),Ai(n)||er.type(t,n,a,o,i)}r(o)},NGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n)&&!t.required)return r();er.required(t,n,a,o,i),n!==void 0&&(er.type(t,n,a,o,i),er.range(t,n,a,o,i))}r(o)},DGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n)&&!t.required)return r();er.required(t,n,a,o,i),n!==void 0&&(er.type(t,n,a,o,i),er.range(t,n,a,o,i))}r(o)},MGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();er.required(t,n,a,o,i,"array"),n!=null&&(er.type(t,n,a,o,i),er.range(t,n,a,o,i))}r(o)},$Ge=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n)&&!t.required)return r();er.required(t,n,a,o,i),n!==void 0&&er.type(t,n,a,o,i)}r(o)},LGe="enum",PGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n)&&!t.required)return r();er.required(t,n,a,o,i),n!==void 0&&er[LGe](t,n,a,o,i)}r(o)},FGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n,"string")&&!t.required)return r();er.required(t,n,a,o,i),Ai(n,"string")||er.pattern(t,n,a,o,i)}r(o)},BGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n,"date")&&!t.required)return r();if(er.required(t,n,a,o,i),!Ai(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),er.type(t,s,a,o,i),s&&er.range(t,s.getTime(),a,o,i)}}r(o)},zGe=function(t,n,r,a,i){var o=[],l=Array.isArray(n)?"array":typeof n;er.required(t,n,a,o,i,l),r(o)},DD=function(t,n,r,a,i){var o=t.type,l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ai(n,o)&&!t.required)return r();er.required(t,n,a,l,i,o),Ai(n,o)||er.type(t,n,a,l,i)}r(l)},HGe=function(t,n,r,a,i){var o=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ai(n)&&!t.required)return r();er.required(t,n,a,o,i)}r(o)},ox={string:IGe,method:OGe,number:kGe,boolean:RGe,regexp:_Ge,integer:NGe,float:DGe,array:MGe,object:$Ge,enum:PGe,pattern:FGe,date:BGe,url:DD,hex:DD,email:DD,required:zGe,any:HGe};function ZP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var JP=ZP(),NS=function(){function e(n){this.rules=null,this._messages=JP,this.define(n)}var t=e.prototype;return t.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=AZ(ZP(),r)),this._messages},t.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var l=r,s=a,u=i;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function c(m){var v=[],y={};function b(E){if(Array.isArray(E)){var S;v=(S=v).concat.apply(S,E)}else v.push(E)}for(var x=0;x2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return dme(t,r,n)})}function dme(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function GGe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||zt(e)!=="object"||zt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Ue(a).every(function(i){var o=e[i],l=t[i];return typeof o=="function"&&typeof l=="function"?!0:o===l})}function qGe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&zt(t.target)==="object"&&e in t.target?t.target[e]:t}function _Z(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],i=t-n;return i>0?[].concat(Ue(e.slice(0,n)),[a],Ue(e.slice(n,t)),Ue(e.slice(t+1,r))):i<0?[].concat(Ue(e.slice(0,t)),Ue(e.slice(t+1,n+1)),[a],Ue(e.slice(n+1,r))):e}var YGe=["name"],gs=[];function NZ(e,t,n,r,a,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==a}var E7=function(e){Vu(n,e);var t=Xd(n);function n(r){var a;if(Pa(this,n),a=t.call(this,r),X(et(a),"state",{resetCount:0}),X(et(a),"cancelRegisterFunc",null),X(et(a),"mounted",!1),X(et(a),"touched",!1),X(et(a),"dirty",!1),X(et(a),"validatePromise",void 0),X(et(a),"prevValidating",void 0),X(et(a),"errors",gs),X(et(a),"warnings",gs),X(et(a),"cancelRegister",function(){var s=a.props,u=s.preserve,c=s.isListField,d=s.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(c,u,Ba(d)),a.cancelRegisterFunc=null}),X(et(a),"getNamePath",function(){var s=a.props,u=s.name,c=s.fieldContext,d=c.prefixName,f=d===void 0?[]:d;return u!==void 0?[].concat(Ue(f),Ue(u)):[]}),X(et(a),"getRules",function(){var s=a.props,u=s.rules,c=u===void 0?[]:u,d=s.fieldContext;return c.map(function(f){return typeof f=="function"?f(d):f})}),X(et(a),"refresh",function(){a.mounted&&a.setState(function(s){var u=s.resetCount;return{resetCount:u+1}})}),X(et(a),"metaCache",null),X(et(a),"triggerMetaEvent",function(s){var u=a.props.onMetaChange;if(u){var c=Q(Q({},a.getMeta()),{},{destroy:s});Oc(a.metaCache,c)||u(c),a.metaCache=c}else a.metaCache=null}),X(et(a),"onStoreChange",function(s,u,c){var d=a.props,f=d.shouldUpdate,p=d.dependencies,h=p===void 0?[]:p,m=d.onReset,v=c.store,y=a.getNamePath(),b=a.getValue(s),x=a.getValue(v),E=u&&jv(u,y);switch(c.type==="valueUpdate"&&c.source==="external"&&b!==x&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=gs,a.warnings=gs,a.triggerMetaEvent()),c.type){case"reset":if(!u||E){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=gs,a.warnings=gs,a.triggerMetaEvent(),m==null||m(),a.refresh();return}break;case"remove":{if(f){a.reRender();return}break}case"setField":{var S=c.data;if(E){"touched"in S&&(a.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(a.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(a.errors=S.errors||gs),"warnings"in S&&(a.warnings=S.warnings||gs),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in S&&jv(u,y,!0)){a.reRender();return}if(f&&!y.length&&NZ(f,s,v,b,x,c)){a.reRender();return}break}case"dependenciesUpdate":{var C=h.map(Ba);if(C.some(function(w){return jv(c.relatedFields,w)})){a.reRender();return}break}default:if(E||(!h.length||y.length||f)&&NZ(f,s,v,b,x,c)){a.reRender();return}break}f===!0&&a.reRender()}),X(et(a),"validateRules",function(s){var u=a.getNamePath(),c=a.getValue(),d=s||{},f=d.triggerName,p=d.validateOnly,h=p===void 0?!1:p,m=Promise.resolve().then(zp(oo().mark(function v(){var y,b,x,E,S,C,w;return oo().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(a.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(y=a.props,b=y.validateFirst,x=b===void 0?!1:b,E=y.messageVariables,S=y.validateDebounce,C=a.getRules(),f&&(C=C.filter(function(A){return A}).filter(function(A){var O=A.validateTrigger;if(!O)return!0;var R=YP(O);return R.includes(f)})),!(S&&f)){T.next=10;break}return T.next=8,new Promise(function(A){setTimeout(A,S)});case 8:if(a.validatePromise===m){T.next=10;break}return T.abrupt("return",[]);case 10:return w=UGe(u,c,C,s,x,E),w.catch(function(A){return A}).then(function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gs;if(a.validatePromise===m){var O;a.validatePromise=null;var R=[],N=[];(O=A.forEach)===null||O===void 0||O.call(A,function(_){var L=_.rule.warningOnly,$=_.errors,k=$===void 0?gs:$;L?N.push.apply(N,Ue(k)):R.push.apply(R,Ue(k))}),a.errors=R,a.warnings=N,a.triggerMetaEvent(),a.reRender()}}),T.abrupt("return",w);case 13:case"end":return T.stop()}},v)})));return h||(a.validatePromise=m,a.dirty=!0,a.errors=gs,a.warnings=gs,a.triggerMetaEvent(),a.reRender()),m}),X(et(a),"isFieldValidating",function(){return!!a.validatePromise}),X(et(a),"isFieldTouched",function(){return a.touched}),X(et(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var s=a.props.fieldContext,u=s.getInternalHooks(Dh),c=u.getInitialValue;return c(a.getNamePath())!==void 0}),X(et(a),"getErrors",function(){return a.errors}),X(et(a),"getWarnings",function(){return a.warnings}),X(et(a),"isListField",function(){return a.props.isListField}),X(et(a),"isList",function(){return a.props.isList}),X(et(a),"isPreserve",function(){return a.props.preserve}),X(et(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var s={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return s}),X(et(a),"getOnlyChild",function(s){if(typeof s=="function"){var u=a.getMeta();return Q(Q({},a.getOnlyChild(s(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var c=wi(s);return c.length!==1||!g.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),X(et(a),"getValue",function(s){var u=a.props.fieldContext.getFieldsValue,c=a.getNamePath();return Gl(s||u(!0),c)}),X(et(a),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,c=u.trigger,d=u.validateTrigger,f=u.getValueFromEvent,p=u.normalize,h=u.valuePropName,m=u.getValueProps,v=u.fieldContext,y=d!==void 0?d:v.validateTrigger,b=a.getNamePath(),x=v.getInternalHooks,E=v.getFieldsValue,S=x(Dh),C=S.dispatch,w=a.getValue(),I=m||function(N){return X({},h,N)},T=s[c],A=I(w),O=Q(Q({},s),A);O[c]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var N,_=arguments.length,L=new Array(_),$=0;$<_;$++)L[$]=arguments[$];f?N=f.apply(void 0,L):N=qGe.apply(void 0,[h].concat(L)),p&&(N=p(N,w,E(!0))),C({type:"updateValue",namePath:b,value:N}),T&&T.apply(void 0,L)};var R=YP(y||[]);return R.forEach(function(N){var _=O[N];O[N]=function(){_&&_.apply(void 0,arguments);var L=a.props.rules;L&&L.length&&C({type:"validateField",namePath:b,triggerName:N})}}),O}),r.fieldContext){var i=r.fieldContext.getInternalHooks,o=i(Dh),l=o.initEntityValue;l(et(a))}return a}return Fa(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.shouldUpdate,o=a.fieldContext;if(this.mounted=!0,o){var l=o.getInternalHooks,s=l(Dh),u=s.registerField;this.cancelRegisterFunc=u(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var a=this.state.resetCount,i=this.props.children,o=this.getOnlyChild(i),l=o.child,s=o.isFunction,u;return s?u=l:g.isValidElement(l)?u=g.cloneElement(l,this.getControlled(l.props)):(Rr(!l,"`children` of Field is not validate ReactElement."),u=l),g.createElement(g.Fragment,{key:a},u)}}]),n}(g.Component);X(E7,"contextType",yg);X(E7,"defaultProps",{trigger:"onChange",valuePropName:"value"});function S7(e){var t=e.name,n=Lt(e,YGe),r=g.useContext(yg),a=g.useContext(pE),i=t!==void 0?Ba(t):void 0,o="keep";return n.isListField||(o="_".concat((i||[]).join("_"))),g.createElement(E7,Ne({key:o,name:i,isListField:!!a},n,{fieldContext:r}))}function fme(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,i=e.validateTrigger,o=e.isListField,l=g.useContext(yg),s=g.useContext(pE),u=g.useRef({keys:[],id:0}),c=u.current,d=g.useMemo(function(){var m=Ba(l.prefixName)||[];return[].concat(Ue(m),Ue(Ba(t)))},[l.prefixName,t]),f=g.useMemo(function(){return Q(Q({},l),{},{prefixName:d})},[l,d]),p=g.useMemo(function(){return{getKey:function(v){var y=d.length,b=v[y];return[c.keys[b],v.slice(y+1)]}}},[d]);if(typeof r!="function")return Rr(!1,"Form.List only accepts function as children."),null;var h=function(v,y,b){var x=b.source;return x==="internal"?!1:v!==y};return g.createElement(pE.Provider,{value:p},g.createElement(yg.Provider,{value:f},g.createElement(S7,{name:[],shouldUpdate:h,rules:a,validateTrigger:i,initialValue:n,isList:!0,isListField:o??!!s},function(m,v){var y=m.value,b=y===void 0?[]:y,x=m.onChange,E=l.getFieldValue,S=function(){var T=E(d||[]);return T||[]},C={add:function(T,A){var O=S();A>=0&&A<=O.length?(c.keys=[].concat(Ue(c.keys.slice(0,A)),[c.id],Ue(c.keys.slice(A))),x([].concat(Ue(O.slice(0,A)),[T],Ue(O.slice(A))))):(c.keys=[].concat(Ue(c.keys),[c.id]),x([].concat(Ue(O),[T]))),c.id+=1},remove:function(T){var A=S(),O=new Set(Array.isArray(T)?T:[T]);O.size<=0||(c.keys=c.keys.filter(function(R,N){return!O.has(N)}),x(A.filter(function(R,N){return!O.has(N)})))},move:function(T,A){if(T!==A){var O=S();T<0||T>=O.length||A<0||A>=O.length||(c.keys=_Z(c.keys,T,A),x(_Z(O,T,A)))}}},w=b||[];return Array.isArray(w)||(w=[]),r(w.map(function(I,T){var A=c.keys[T];return A===void 0&&(c.keys[T]=c.id,A=c.keys[T],c.id+=1),{name:T,key:A,isListField:!0}}),C,v)})))}function KGe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,i){e.forEach(function(o,l){o.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),a(r))})})}):Promise.resolve([])}var pme="__@field_split__";function MD(e){return e.map(function(t){return"".concat(zt(t),":").concat(t)}).join(pme)}var Im=function(){function e(){Pa(this,e),X(this,"kvs",new Map)}return Fa(e,[{key:"set",value:function(n,r){this.kvs.set(MD(n),r)}},{key:"get",value:function(n){return this.kvs.get(MD(n))}},{key:"update",value:function(n,r){var a=this.get(n),i=r(a);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(MD(n))}},{key:"map",value:function(n){return Ue(this.kvs.entries()).map(function(r){var a=fe(r,2),i=a[0],o=a[1],l=i.split(pme);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),c=fe(u,3),d=c[1],f=c[2];return d==="number"?Number(f):f}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,i=r.value;return n[a.join(".")]=i,null}),n}}]),e}(),XGe=["name"],QGe=Fa(function e(t){var n=this;Pa(this,e),X(this,"formHooked",!1),X(this,"forceRootUpdate",void 0),X(this,"subscribable",!0),X(this,"store",{}),X(this,"fieldEntities",[]),X(this,"initialValues",{}),X(this,"callbacks",{}),X(this,"validateMessages",null),X(this,"preserve",null),X(this,"lastValidatePromise",null),X(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),X(this,"getInternalHooks",function(r){return r===Dh?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Rr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),X(this,"useSubscribe",function(r){n.subscribable=r}),X(this,"prevWithoutPreserves",null),X(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var i,o=wv(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;o=mu(o,s,Gl(r,s))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),X(this,"destroyForm",function(){var r=new Im;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||r.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=r}),X(this,"getInitialValue",function(r){var a=Gl(n.initialValues,r);return r.length?wv(a):a}),X(this,"setCallbacks",function(r){n.callbacks=r}),X(this,"setValidateMessages",function(r){n.validateMessages=r}),X(this,"setPreserve",function(r){n.preserve=r}),X(this,"watchList",[]),X(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),X(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(a,i,r)})}}),X(this,"timeoutId",null),X(this,"warningUnhooked",function(){}),X(this,"updateStore",function(r){n.store=r}),X(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),X(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Im;return n.getFieldEntities(r).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),X(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(i){var o=Ba(i);return a.get(o)||{INVALIDATE_NAME_PATH:Ba(i)}})}),X(this,"getFieldsValue",function(r,a){n.warningUnhooked();var i,o,l;if(r===!0||Array.isArray(r)?(i=r,o=a):r&&zt(r)==="object"&&(l=r.strict,o=r.filter),i===!0&&!o)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return s.forEach(function(c){var d,f,p="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(l){var h,m;if((h=(m=c).isList)!==null&&h!==void 0&&h.call(m))return}else if(!i&&(d=(f=c).isListField)!==null&&d!==void 0&&d.call(f))return;if(!o)u.push(p);else{var v="getMeta"in c?c.getMeta():null;o(v)&&u.push(p)}}),RZ(n.store,u.map(Ba))}),X(this,"getFieldValue",function(r){n.warningUnhooked();var a=Ba(r);return Gl(n.store,a)}),X(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Ba(r[o]),errors:[],warnings:[]}})}),X(this,"getFieldError",function(r){n.warningUnhooked();var a=Ba(r),i=n.getFieldsError([a])[0];return i.errors}),X(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Ba(r),i=n.getFieldsError([a])[0];return i.warnings}),X(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},a=new Im,i=n.getFieldEntities(!0);i.forEach(function(s){var u=s.props.initialValue,c=s.getNamePath();if(u!==void 0){var d=a.get(c)||new Set;d.add({entity:s,value:u}),a.set(c,d)}});var o=function(u){u.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var f=c.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)Rr(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=a.get(f);if(h&&h.size>1)Rr(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var m=n.getFieldValue(f),v=c.isListField();!v&&(!r.skipExist||m===void 0)&&n.updateStore(mu(n.store,f,Ue(h)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=a.get(s);if(u){var c;(c=l).push.apply(c,Ue(Ue(u).map(function(d){return d.entity})))}})):l=i,o(l)}),X(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(wv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Ba);i.forEach(function(o){var l=n.getInitialValue(o);n.updateStore(mu(n.store,o,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(a,i,{type:"reset"}),n.notifyWatch(i)}),X(this,"setFields",function(r){n.warningUnhooked();var a=n.store,i=[];r.forEach(function(o){var l=o.name,s=Lt(o,XGe),u=Ba(l);i.push(u),"value"in s&&n.updateStore(mu(n.store,u,s.value)),n.notifyObservers(a,[u],{type:"setField",data:o})}),n.notifyWatch(i)}),X(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(i){var o=i.getNamePath(),l=i.getMeta(),s=Q(Q({},l),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return a}),X(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var i=r.getNamePath(),o=Gl(n.store,i);o===void 0&&n.updateStore(mu(n.store,i,a))}}),X(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),X(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(l)&&(!o||s.length>1)){var u=o?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(d){return!dme(d.getNamePath(),a)})){var c=n.store;n.updateStore(mu(c,a,u,!0)),n.notifyObservers(c,[a],{type:"remove"}),n.triggerDependenciesUpdate(c,a)}}n.notifyWatch([a])}}),X(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,i=r.value;n.updateValue(a,i);break}case"validateField":{var o=r.namePath,l=r.triggerName;n.validateFields([o],{triggerName:l});break}}}),X(this,"notifyObservers",function(r,a,i){if(n.subscribable){var o=Q(Q({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,a,o)})}else n.forceRootUpdate()}),X(this,"triggerDependenciesUpdate",function(r,a){var i=n.getDependencyChildrenFields(a);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[a].concat(Ue(i))}),i}),X(this,"updateValue",function(r,a){var i=Ba(r),o=n.store;n.updateStore(mu(n.store,i,a)),n.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(o,i),s=n.callbacks.onValuesChange;if(s){var u=RZ(n.store,[i]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ue(l)))}),X(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var i=wv(n.store,r);n.updateStore(i)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),X(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),X(this,"getDependencyChildrenFields",function(r){var a=new Set,i=[],o=new Im;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(c){var d=Ba(c);o.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(s),f})})});var l=function s(u){var c=o.get(u)||new Set;c.forEach(function(d){if(!a.has(d)){a.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),s(f))}})};return l(r),i}),X(this,"triggerOnFieldsChange",function(r,a){var i=n.callbacks.onFieldsChange;if(i){var o=n.getFields();if(a){var l=new Im;a.forEach(function(u){var c=u.name,d=u.errors;l.set(c,d)}),o.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=o.filter(function(u){var c=u.name;return jv(r,c)});s.length&&i(s,o)}}),X(this,"validateFields",function(r,a){n.warningUnhooked();var i,o;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(i=r,o=a):o=r;var l=!!i,s=l?i.map(Ba):[],u=[],c=String(Date.now()),d=new Set,f=o||{},p=f.recursive,h=f.dirty;n.getFieldEntities(!0).forEach(function(b){if(l||s.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(h&&!b.isFieldDirty())){var x=b.getNamePath();if(d.add(x.join(c)),!l||jv(s,x,p)){var E=b.validateRules(Q({validateMessages:Q(Q({},cme),n.validateMessages)},o));u.push(E.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var C,w=[],I=[];return(C=S.forEach)===null||C===void 0||C.call(S,function(T){var A=T.rule.warningOnly,O=T.errors;A?I.push.apply(I,Ue(O)):w.push.apply(w,Ue(O))}),w.length?Promise.reject({name:x,errors:w,warnings:I}):{name:x,errors:w,warnings:I}}))}}});var m=KGe(u);n.lastValidatePromise=m,m.catch(function(b){return b}).then(function(b){var x=b.map(function(E){var S=E.name;return S});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,b)});var v=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(b){var x=b.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:x,outOfDate:n.lastValidatePromise!==m})});v.catch(function(b){return b});var y=s.filter(function(b){return d.has(b.join(c))});return n.triggerOnFieldsChange(y),v}),X(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(i){console.error(i)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function C7(e){var t=g.useRef(),n=g.useState({}),r=fe(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new QGe(i);t.current=o.getForm()}return[t.current]}var a6=g.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hme=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,i=t.children,o=g.useContext(a6),l=g.useRef({});return g.createElement(a6.Provider,{value:Q(Q({},o),{},{validateMessages:Q(Q({},o.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:l.current}),o.triggerFormChange(u,c)},triggerFormFinish:function(u,c){a&&a(u,{values:c,forms:l.current}),o.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(l.current=Q(Q({},l.current),{},X({},u,c))),o.registerForm(u,c)},unregisterForm:function(u){var c=Q({},l.current);delete c[u],l.current=c,o.unregisterForm(u)}})},i)},ZGe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],JGe=function(t,n){var r=t.name,a=t.initialValues,i=t.fields,o=t.form,l=t.preserve,s=t.children,u=t.component,c=u===void 0?"form":u,d=t.validateMessages,f=t.validateTrigger,p=f===void 0?"onChange":f,h=t.onValuesChange,m=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,b=Lt(t,ZGe),x=g.useContext(a6),E=C7(o),S=fe(E,1),C=S[0],w=C.getInternalHooks(Dh),I=w.useSubscribe,T=w.setInitialValues,A=w.setCallbacks,O=w.setValidateMessages,R=w.setPreserve,N=w.destroyForm;g.useImperativeHandle(n,function(){return C}),g.useEffect(function(){return x.registerForm(r,C),function(){x.unregisterForm(r)}},[x,C,r]),O(Q(Q({},x.validateMessages),d)),A({onValuesChange:h,onFieldsChange:function(j){if(x.triggerFormChange(r,j),m){for(var z=arguments.length,V=new Array(z>1?z-1:0),G=1;G{}}),mme=g.createContext(null),vme=e=>{const t=Dr(e,["prefixCls"]);return g.createElement(hme,Object.assign({},t))},w7=g.createContext({prefixCls:""}),No=g.createContext({}),L0=e=>{let{children:t,status:n,override:r}=e;const a=g.useContext(No),i=g.useMemo(()=>{const o=Object.assign({},a);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,a]);return g.createElement(No.Provider,{value:i},t)},yme=g.createContext(void 0);function MZ(){}const tqe=g.createContext({add:MZ,remove:MZ});function bme(e){const t=g.useContext(tqe),n=g.useRef();return jn(a=>{if(a){const i=e?a.querySelector(e):a;t.add(i),n.current=i}else t.remove(n.current)})}const nqe=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=g.useContext(RS);return M.createElement(nn,Object.assign({onClick:n},e),t)},$Z=nqe,rqe=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=g.useContext(RS);return M.createElement(nn,Object.assign({},h7(n),{loading:e,onClick:a},t),r)},LZ=rqe;function xme(e,t){return M.createElement("span",{className:`${e}-close-x`},t||M.createElement(Gu,{className:`${e}-close-icon`}))}const Eme=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:i,onCancel:o,okButtonProps:l,cancelButtonProps:s,footer:u}=e,[c]=Wu("Modal",tge()),d=t||(c==null?void 0:c.okText),f=r||(c==null?void 0:c.cancelText),p={confirmLoading:a,okButtonProps:l,cancelButtonProps:s,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:i,onCancel:o},h=M.useMemo(()=>p,Ue(Object.values(p)));let m;return typeof u=="function"||typeof u>"u"?(m=M.createElement(M.Fragment,null,M.createElement($Z,null),M.createElement(LZ,null)),typeof u=="function"&&(m=u(m,{OkBtn:LZ,CancelBtn:$Z})),m=M.createElement(nme,{value:h},m)):m=u,M.createElement(i7,{disabled:!1},m)},aqe=e=>({animationDuration:e,animationFillMode:"both"}),iqe=e=>({animationDuration:e,animationFillMode:"both"}),Kk=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${i}${e}-enter, + ${i}${e}-appear + `]:Object.assign(Object.assign({},aqe(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},iqe(r)),{animationPlayState:"paused"}),[` + ${i}${e}-enter${e}-enter-active, + ${i}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},oqe=new gn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),lqe=new gn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),T7=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[Kk(r,oqe,lqe,e.motionDurationMid,t),{[` + ${a}${r}-enter, + ${a}${r}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},sqe=new gn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uqe=new gn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),cqe=new gn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dqe=new gn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fqe=new gn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pqe=new gn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),hqe=new gn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gqe=new gn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),mqe={"move-up":{inKeyframes:hqe,outKeyframes:gqe},"move-down":{inKeyframes:sqe,outKeyframes:uqe},"move-left":{inKeyframes:cqe,outKeyframes:dqe},"move-right":{inKeyframes:fqe,outKeyframes:pqe}},P0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=mqe[t];return[Kk(r,a,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xk=new gn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Qk=new gn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zk=new gn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Jk=new gn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vqe=new gn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),yqe=new gn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bqe=new gn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xqe=new gn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Eqe={"slide-up":{inKeyframes:Xk,outKeyframes:Qk},"slide-down":{inKeyframes:Zk,outKeyframes:Jk},"slide-left":{inKeyframes:vqe,outKeyframes:yqe},"slide-right":{inKeyframes:bqe,outKeyframes:xqe}},Rc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=Eqe[t];return[Kk(r,a,i,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},A7=new gn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sqe=new gn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),PZ=new gn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),FZ=new gn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Cqe=new gn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wqe=new gn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Tqe=new gn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Aqe=new gn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Iqe=new gn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Oqe=new gn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),kqe=new gn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Rqe=new gn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_qe={zoom:{inKeyframes:A7,outKeyframes:Sqe},"zoom-big":{inKeyframes:PZ,outKeyframes:FZ},"zoom-big-fast":{inKeyframes:PZ,outKeyframes:FZ},"zoom-left":{inKeyframes:Tqe,outKeyframes:Aqe},"zoom-right":{inKeyframes:Iqe,outKeyframes:Oqe},"zoom-up":{inKeyframes:Cqe,outKeyframes:wqe},"zoom-down":{inKeyframes:kqe,outKeyframes:Rqe}},Sy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=_qe[t];return[Kk(r,a,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Nqe=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),eR=Nqe;function BZ(e){return{position:e,inset:0}}const Sme=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},BZ("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},BZ("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:T7(e)}]},Dqe=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ne(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},In(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ne(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${ne(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},xp(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + ${t}-body, + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Mqe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Cme=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return pn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},wme=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${ne(e.paddingMD)} ${ne(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ne(e.padding)} ${ne(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ne(e.paddingXS)} ${ne(e.padding)}`:0,footerBorderTop:e.wireframe?`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ne(e.padding*2)} ${ne(e.padding*2)} ${ne(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Tme=On("Modal",e=>{const t=Cme(e);return[Dqe(t),Mqe(t),Sme(t),Sy(t,"zoom")]},wme,{unitless:{titleLineHeight:!0}});var $qe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{i6={x:e.pageX,y:e.pageY},setTimeout(()=>{i6=null},100)};sGe()&&document.documentElement.addEventListener("click",Lqe,!0);const Pqe=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:a,modal:i}=g.useContext(dt),o=j=>{const{onCancel:z}=e;z==null||z(j)},l=j=>{const{onOk:z}=e;z==null||z(j)},{prefixCls:s,className:u,rootClassName:c,open:d,wrapClassName:f,centered:p,getContainer:h,closeIcon:m,closable:v,focusTriggerAfterClose:y=!0,style:b,visible:x,width:E=520,footer:S,classNames:C,styles:w}=e,I=$qe(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),T=r("modal",s),A=r(),O=oa(T),[R,N,_]=Tme(T,O),L=ie(f,{[`${T}-centered`]:!!p,[`${T}-wrap-rtl`]:a==="rtl"}),$=S!==null&&g.createElement(Eme,Object.assign({},e,{onOk:l,onCancel:o})),[k,P]=x7({closable:v,closeIcon:typeof m<"u"?m:i==null?void 0:i.closeIcon,customCloseIconRender:j=>xme(T,j),defaultCloseIcon:g.createElement(Gu,{className:`${T}-close-icon`}),defaultClosable:!0}),B=bme(`.${T}-content`),[F,D]=jc("Modal",I.zIndex);return R(g.createElement(kc,null,g.createElement(L0,{status:!0,override:!0},g.createElement(IS.Provider,{value:D},g.createElement(b7,Object.assign({width:E},I,{zIndex:F,getContainer:h===void 0?n:h,prefixCls:T,rootClassName:ie(N,c,_,O),footer:$,visible:d??x,mousePosition:(t=I.mousePosition)!==null&&t!==void 0?t:i6,onClose:o,closable:k,closeIcon:P,focusTriggerAfterClose:y,transitionName:ml(A,"zoom",e.transitionName),maskTransitionName:ml(A,"fade",e.maskTransitionName),className:ie(N,u,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),b),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),C),{wrapper:ie(L,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),w),panelRef:B}))))))},Ame=Pqe,Fqe=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:i,lineHeight:o,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:u}=e,c=`${t}-confirm`;return{[c]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${c}-body-wrapper`]:Object.assign({},Lu()),[`&${t} ${t}-body`]:{padding:u},[`${c}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()}},[`${c}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ne(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${c}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${c}-content`]:{color:e.colorText,fontSize:i,lineHeight:o},[`${c}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${c}-error ${c}-body > ${e.iconCls}`]:{color:e.colorError},[`${c}-warning ${c}-body > ${e.iconCls}, + ${c}-confirm ${c}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${c}-info ${c}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${c}-success ${c}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Bqe=Vg(["Modal","confirm"],e=>{const t=Cme(e);return[Fqe(t)]},wme,{order:-1e3});var zqe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ab,Ue(Object.values(b))),E=g.createElement(g.Fragment,null,g.createElement(dZ,null),g.createElement(fZ,null)),S=e.title!==void 0&&e.title!==null,C=`${i}-body`;return g.createElement("div",{className:`${i}-body-wrapper`},g.createElement("div",{className:ie(C,{[`${C}-has-title`]:S})},d,g.createElement("div",{className:`${i}-paragraph`},S&&g.createElement("span",{className:`${i}-title`},e.title),g.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?g.createElement(nme,{value:x},g.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(E,{OkBtn:fZ,CancelBtn:dZ}):E)):s,g.createElement(Bqe,{prefixCls:t}))}const Hqe=e=>{const{close:t,zIndex:n,afterClose:r,open:a,keyboard:i,centered:o,getContainer:l,maskStyle:s,direction:u,prefixCls:c,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:h=!1,closeIcon:m,modalRender:v,focusTriggerAfterClose:y,onConfirm:b,styles:x}=e,E=`${c}-confirm`,S=e.width||416,C=e.style||{},w=e.mask===void 0?!0:e.mask,I=e.maskClosable===void 0?!1:e.maskClosable,T=ie(E,`${E}-${e.type}`,{[`${E}-rtl`]:u==="rtl"},e.className),[,A]=Ka(),O=g.useMemo(()=>n!==void 0?n:A.zIndexPopupBase+Vk,[n,A]);return g.createElement(Ame,{prefixCls:c,className:T,wrapClassName:ie({[`${E}-centered`]:!!e.centered},d),onCancel:()=>{t==null||t({triggerCancel:!0}),b==null||b(!1)},open:a,title:"",footer:null,transitionName:ml(f||"","zoom",e.transitionName),maskTransitionName:ml(f||"","fade",e.maskTransitionName),mask:w,maskClosable:I,style:C,styles:Object.assign({body:p,mask:s},x),width:S,zIndex:O,afterClose:r,keyboard:i,centered:o,getContainer:l,closable:h,closeIcon:m,modalRender:v,focusTriggerAfterClose:y},g.createElement(Ime,Object.assign({},e,{confirmPrefixCls:E})))},jqe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return g.createElement(Hc,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},g.createElement(Hqe,Object.assign({},e)))},Ome=jqe,Uqe=[],$h=Uqe;let kme="";function Rme(){return kme}const Vqe=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:i}=e,o=tge(),l=g.useContext(dt),s=Rme()||l.getPrefixCls(),u=r||`${s}-modal`;let c=a;return c===!1&&(c=void 0),M.createElement(Ome,Object.assign({},e,{rootPrefixCls:s,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:c}))};function DS(e){const t=Mge(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),a;function i(){for(var u=arguments.length,c=new Array(u),d=0;dp&&p.triggerCancel);e.onCancel&&f&&e.onCancel.apply(e,[()=>{}].concat(Ue(c.slice(1))));for(let p=0;p<$h.length;p++)if($h[p]===l){$h.splice(p,1);break}qge(n)}function o(u){clearTimeout(a),a=setTimeout(()=>{const c=t.getPrefixCls(void 0,Rme()),d=t.getIconPrefixCls(),f=t.getTheme(),p=M.createElement(Vqe,Object.assign({},u));p7(M.createElement(Hc,{prefixCls:c,iconPrefixCls:d,theme:f},t.holderRender?t.holderRender(p):p),n)})}function l(){for(var u=arguments.length,c=new Array(u),d=0;d{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,c)}}),r.visible&&delete r.visible,o(r)}function s(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),o(r)}return o(r),$h.push(l),{destroy:l,update:s}}function _me(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Nme(e){return Object.assign(Object.assign({},e),{type:"info"})}function Dme(e){return Object.assign(Object.assign({},e),{type:"success"})}function Mme(e){return Object.assign(Object.assign({},e),{type:"error"})}function $me(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Wqe(e){let{rootPrefixCls:t}=e;kme=t}var Gqe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,i=Gqe(e,["afterClose","config"]);const[o,l]=g.useState(!0),[s,u]=g.useState(a),{direction:c,getPrefixCls:d}=g.useContext(dt),f=d("modal"),p=d(),h=()=>{var b;r(),(b=s.afterClose)===null||b===void 0||b.call(s)},m=function(){l(!1);for(var b=arguments.length,x=new Array(b),E=0;EC&&C.triggerCancel);s.onCancel&&S&&s.onCancel.apply(s,[()=>{}].concat(Ue(x.slice(1))))};g.useImperativeHandle(t,()=>({destroy:m,update:b=>{u(x=>Object.assign(Object.assign({},x),b))}}));const v=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[y]=Wu("Modal",ns.Modal);return g.createElement(Ome,Object.assign({prefixCls:f,rootPrefixCls:p},s,{close:m,open:o,afterClose:h,okText:s.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:s.direction||c,cancelText:s.cancelText||(y==null?void 0:y.cancelText)},i))},Yqe=g.forwardRef(qqe);let zZ=0;const Kqe=g.memo(g.forwardRef((e,t)=>{const[n,r]=FVe();return g.useImperativeHandle(t,()=>({patchElement:r}),[]),g.createElement(g.Fragment,null,n)}));function Lme(){const e=g.useRef(null),[t,n]=g.useState([]);g.useEffect(()=>{t.length&&(Ue(t).forEach(o=>{o()}),n([]))},[t]);const r=g.useCallback(i=>function(l){var s;zZ+=1;const u=g.createRef();let c;const d=new Promise(v=>{c=v});let f=!1,p;const h=g.createElement(Yqe,{key:`modal-${zZ}`,config:i(l),ref:u,afterClose:()=>{p==null||p()},isSilent:()=>f,onConfirm:v=>{c(v)}});return p=(s=e.current)===null||s===void 0?void 0:s.patchElement(h),p&&$h.push(p),{destroy:()=>{function v(){var y;(y=u.current)===null||y===void 0||y.destroy()}u.current?v():n(y=>[].concat(Ue(y),[v]))},update:v=>{function y(){var b;(b=u.current)===null||b===void 0||b.update(v)}u.current?y():n(b=>[].concat(Ue(b),[y]))},then:v=>(f=!0,d.then(v))}},[]);return[g.useMemo(()=>({info:r(Nme),success:r(Dme),error:r(Mme),warning:r(_me),confirm:r($me)}),[]),g.createElement(Kqe,{key:"modal-holder",ref:e})]}const Xqe=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,i=new gn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new gn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new gn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new gn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},Qqe=Xqe,Zqe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Jqe={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},eYe=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Jqe[t]]:{value:0,_skip_check_:!0}}}}},tYe=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},nYe=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},tYe(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},nYe(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Zqe.map(n=>eYe(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},aYe=rYe,Pme=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:i,borderRadiusLG:o,colorSuccess:l,colorInfo:s,colorWarning:u,colorError:c,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:m,lineHeight:v,width:y,notificationIconSize:b,colorText:x}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:o,boxShadow:r,[E]:{padding:p,width:y,maxWidth:`calc(100vw - ${ne(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:v,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:m,cursor:"pointer"},[`${E}-message`]:{marginBottom:e.marginXS,color:d,fontSize:a,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:m,color:x},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:a},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:m},[`${E}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${E}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.closeBtnHoverBg}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},iYe=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:i}=e,o=`${t}-notice`,l=new gn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},In(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-btn`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:Object.assign({},Pme(e))}}]},Fme=e=>({zIndexPopup:e.zIndexPopupBase+Vk+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),Bme=e=>{const t=e.paddingMD,n=e.paddingLG;return pn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ne(e.paddingMD)} ${ne(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},zme=On("Notification",e=>{const t=Bme(e);return[iYe(t),Qqe(t),aYe(t)]},Fme),oYe=Vg(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Bme(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Pme(n)),{width:n.width,maxWidth:`calc(100vw - ${ne(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Fme);var lYe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:n,type:r,message:a,description:i,btn:o,role:l="alert"}=e;let s=null;return n?s=g.createElement("span",{className:`${t}-icon`},n):r&&(s=g.createElement(sYe[r]||null,{className:ie(`${t}-icon`,`${t}-icon-${r}`)})),g.createElement("div",{className:ie({[`${t}-with-icon`]:s}),role:l},s,g.createElement("div",{className:`${t}-message`},a),g.createElement("div",{className:`${t}-description`},i),o&&g.createElement("div",{className:`${t}-btn`},o))},uYe=e=>{const{prefixCls:t,className:n,icon:r,type:a,message:i,description:o,btn:l,closable:s=!0,closeIcon:u,className:c}=e,d=lYe(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:f}=g.useContext(dt),p=t||f("notification"),h=`${p}-notice`,m=oa(p),[v,y,b]=zme(p,m);return v(g.createElement("div",{className:ie(`${h}-pure-panel`,y,n,b,m)},g.createElement(oYe,{prefixCls:p}),g.createElement(jge,Object.assign({},d,{prefixCls:p,eventKey:"pure",duration:null,closable:s,className:ie({notificationClassName:c}),closeIcon:I7(p,u),content:g.createElement(Hme,{prefixCls:h,icon:r,type:a,message:i,description:o,btn:l})}))))};function cYe(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function dYe(e){return{motionName:`${e}-fade`}}var fYe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=oa(n),[a,i,o]=zme(n,r);return a(M.createElement(Vge,{classNames:{list:ie(i,o,r)}},t))},mYe=(e,t)=>{let{prefixCls:n,key:r}=t;return M.createElement(gYe,{prefixCls:n,key:r},e)},vYe=M.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:i,maxCount:o,rtl:l,onAllRemoved:s,stack:u,duration:c}=e,{getPrefixCls:d,getPopupContainer:f,notification:p,direction:h}=g.useContext(dt),[,m]=Ka(),v=a||d("notification"),y=C=>cYe(C,n??HZ,r??HZ),b=()=>ie({[`${v}-rtl`]:l??h==="rtl"}),x=()=>dYe(v),[E,S]=Wge({prefixCls:v,style:y,className:b,motion:x,closable:!0,closeIcon:I7(v),duration:c??pYe,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:s,renderNotifications:mYe,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:m.margin}});return M.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:v,notification:p})),S});function jme(e){const t=M.useRef(null);return Qd(),[M.useMemo(()=>{const r=l=>{var s;if(!t.current)return;const{open:u,prefixCls:c,notification:d}=t.current,f=`${c}-notice`,{message:p,description:h,icon:m,type:v,btn:y,className:b,style:x,role:E="alert",closeIcon:S}=l,C=fYe(l,["message","description","icon","type","btn","className","style","role","closeIcon"]),w=I7(f,typeof S<"u"?S:d==null?void 0:d.closeIcon);return u(Object.assign(Object.assign({placement:(s=e==null?void 0:e.placement)!==null&&s!==void 0?s:hYe},C),{content:M.createElement(Hme,{prefixCls:f,icon:m,type:v,message:p,description:h,btn:y,role:E}),className:ie(v&&`${f}-${v}`,b,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),x),closeIcon:w,closable:!!w}))},i={open:r,destroy:l=>{var s,u;l!==void 0?(s=t.current)===null||s===void 0||s.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{i[l]=s=>r(Object.assign(Object.assign({},s),{type:l}))}),i},[]),M.createElement(vYe,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Ume(e){return jme(e)}const o6=M.createContext({}),yYe=M.createContext({message:{},notification:{},modal:{}}),Vme=yYe,bYe=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:i}}},xYe=()=>({}),EYe=On("App",bYe,xYe),SYe=()=>M.useContext(Vme),Wme=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:i,notification:o,style:l,component:s="div"}=e,{getPrefixCls:u}=g.useContext(dt),c=u("app",t),[d,f,p]=EYe(c),h=ie(f,c,r,a,p),m=g.useContext(o6),v=M.useMemo(()=>({message:Object.assign(Object.assign({},m.message),i),notification:Object.assign(Object.assign({},m.notification),o)}),[i,o,m.message,m.notification]),[y,b]=PVe(v.message),[x,E]=Ume(v.notification),[S,C]=Lme(),w=M.useMemo(()=>({message:y,notification:x,modal:S}),[y,x,S]),I=s===!1?M.Fragment:s,T={className:h,style:l};return d(M.createElement(Vme.Provider,{value:w},M.createElement(o6.Provider,{value:v},M.createElement(I,Object.assign({},s===!1?void 0:T),C,b,E,n))))};Wme.useApp=SYe;const Gme=Wme;function qme(e){return t=>g.createElement(Hc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},g.createElement(e,Object.assign({},t)))}const CYe=(e,t,n,r)=>qme(i=>{const{prefixCls:o,style:l}=i,s=g.useRef(null),[u,c]=g.useState(0),[d,f]=g.useState(0),[p,h]=or(!1,{value:i.open}),{getPrefixCls:m}=g.useContext(dt),v=m(t||"select",o);g.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(S=>{const C=S[0].target;c(C.offsetHeight+8),f(C.offsetWidth)}),E=setInterval(()=>{var S;const C=n?`.${n(v)}`:`.${v}-dropdown`,w=(S=s.current)===null||S===void 0?void 0:S.querySelector(C);w&&(clearInterval(E),x.observe(w))},10);return()=>{clearInterval(E),x.disconnect()}}},[]);let y=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>s.current});r&&(y=r(y));const b={paddingBottom:u,position:"relative",minWidth:d};return g.createElement("div",{ref:s,style:b},g.createElement(e,Object.assign({},y)))}),tR=CYe,nR=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var rR=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,i=t.children,o=t.onMouseDown,l=t.onClick,s=typeof r=="function"?r(a):r;return g.createElement("span",{className:n,onMouseDown:function(c){c.preventDefault(),o==null||o(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},s!==void 0?s:g.createElement("span",{className:ie(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},i))},wYe=function(t,n,r,a,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=M.useMemo(function(){if(zt(a)==="object")return a.clearIcon;if(i)return i},[a,i]),c=M.useMemo(function(){return!!(!o&&a&&(r.length||l)&&!(s==="combobox"&&l===""))},[a,o,r.length,l,s]);return{allowClear:c,clearIcon:M.createElement(rR,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},Yme=g.createContext(null);function TYe(){return g.useContext(Yme)}function AYe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=g.useState(!1),n=fe(t,2),r=n[0],a=n[1],i=g.useRef(null),o=function(){window.clearTimeout(i.current)};g.useEffect(function(){return o},[]);var l=function(u,c){o(),i.current=window.setTimeout(function(){a(u),c&&c()},e)};return[r,l,o]}function Kme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=g.useRef(null),n=g.useRef(null);g.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function IYe(e,t,n,r){var a=g.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},g.useEffect(function(){function i(o){var l;if(!((l=a.current)!==null&&l!==void 0&&l.customizedTrigger)){var s=o.target;s.shadowRoot&&o.composed&&(s=o.composedPath()[0]||s),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(s)&&u!==s})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function OYe(e){return![Ve.ESC,Ve.SHIFT,Ve.BACKSPACE,Ve.TAB,Ve.WIN_KEY,Ve.ALT,Ve.META,Ve.WIN_KEY_RIGHT,Ve.CTRL,Ve.SEMICOLON,Ve.EQUALS,Ve.CAPS_LOCK,Ve.CONTEXT_MENU,Ve.F1,Ve.F2,Ve.F3,Ve.F4,Ve.F5,Ve.F6,Ve.F7,Ve.F8,Ve.F9,Ve.F10,Ve.F11,Ve.F12].includes(e)}var kYe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Om=void 0;function RYe(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,c=e.className,d=e.style,f=e.children,p=e.display,h=e.order,m=e.component,v=m===void 0?"div":m,y=Lt(e,kYe),b=o&&!p;function x(I){s(u,I)}g.useEffect(function(){return function(){x(null)}},[]);var E=i&&a!==Om?i(a):f,S;r||(S={opacity:b?0:1,height:b?0:Om,overflowY:b?"hidden":Om,order:o?h:Om,pointerEvents:b?"none":Om,position:b?"absolute":Om});var C={};b&&(C["aria-hidden"]=!0);var w=g.createElement(v,Ne({className:ie(!r&&n,c),style:Q(Q({},S),d)},C,y,{ref:t}),E);return o&&(w=g.createElement(Si,{onResize:function(T){var A=T.offsetWidth;x(A)},disabled:l},w)),w}var lx=g.forwardRef(RYe);lx.displayName="Item";function _Ye(e){if(typeof MessageChannel>"u")bn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function NYe(){var e=g.useRef(null),t=function(r){e.current||(e.current=[],_Ye(function(){di.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Hb(e,t){var n=g.useState(t),r=fe(n,2),a=r[0],i=r[1],o=jn(function(l){e(function(){i(l)})});return[a,o]}var AI=M.createContext(null),DYe=["component"],MYe=["className"],$Ye=["className"],LYe=function(t,n){var r=g.useContext(AI);if(!r){var a=t.component,i=a===void 0?"div":a,o=Lt(t,DYe);return g.createElement(i,Ne({},o,{ref:n}))}var l=r.className,s=Lt(r,MYe),u=t.className,c=Lt(t,$Ye);return g.createElement(AI.Provider,{value:null},g.createElement(lx,Ne({ref:n,className:ie(l,u)},s,c)))},Xme=g.forwardRef(LYe);Xme.displayName="RawItem";var PYe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Qme="responsive",Zme="invalidate";function FYe(e){return"+ ".concat(e.length," ...")}function BYe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,i=a===void 0?[]:a,o=e.renderItem,l=e.renderRawItem,s=e.itemKey,u=e.itemWidth,c=u===void 0?10:u,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,m=e.renderRest,v=e.renderRawRest,y=e.suffix,b=e.component,x=b===void 0?"div":b,E=e.itemComponent,S=e.onVisibleChange,C=Lt(e,PYe),w=d==="full",I=NYe(),T=Hb(I,null),A=fe(T,2),O=A[0],R=A[1],N=O||0,_=Hb(I,new Map),L=fe(_,2),$=L[0],k=L[1],P=Hb(I,0),B=fe(P,2),F=B[0],D=B[1],j=Hb(I,0),z=fe(j,2),V=z[0],G=z[1],W=Hb(I,0),Y=fe(W,2),J=Y[0],Z=Y[1],K=g.useState(null),ee=fe(K,2),ae=ee[0],te=ee[1],re=g.useState(null),se=fe(re,2),ve=se[0],ge=se[1],xe=g.useMemo(function(){return ve===null&&w?Number.MAX_SAFE_INTEGER:ve||0},[ve,O]),me=g.useState(!1),de=fe(me,2),Ce=de[0],Ie=de[1],ke="".concat(r,"-item"),Te=Math.max(F,V),pe=h===Qme,Se=i.length&&pe,Ee=h===Zme,we=Se||typeof h=="number"&&i.length>h,ue=g.useMemo(function(){var Ye=i;return Se?O===null&&w?Ye=i:Ye=i.slice(0,Math.min(i.length,N/c)):typeof h=="number"&&(Ye=i.slice(0,h)),Ye},[i,c,O,h,Se]),Ae=g.useMemo(function(){return Se?i.slice(xe+1):i.slice(ue.length)},[i,ue,Se,xe]),_e=g.useCallback(function(Ye,at){var It;return typeof s=="function"?s(Ye):(It=s&&(Ye==null?void 0:Ye[s]))!==null&&It!==void 0?It:at},[s]),Re=g.useCallback(o||function(Ye){return Ye},[o]);function Be(Ye,at,It){ve===Ye&&(at===void 0||at===ae)||(ge(Ye),It||(Ie(YeN){Be(Bt-1,Ye-tt-J+V);break}}y&&Le(0)+J>N&&te(null)}},[N,$,V,J,_e,ue]);var Ke=Ce&&!!Ae.length,ft={};ae!==null&&Se&&(ft={position:"absolute",left:ae,top:0});var gt={prefixCls:ke,responsive:Se,component:E,invalidate:Ee},Nt=l?function(Ye,at){var It=_e(Ye,at);return g.createElement(AI.Provider,{key:It,value:Q(Q({},gt),{},{order:at,item:Ye,itemKey:It,registerSize:$e,display:at<=xe})},l(Ye,at))}:function(Ye,at){var It=_e(Ye,at);return g.createElement(lx,Ne({},gt,{order:at,key:It,item:Ye,renderItem:Re,itemKey:It,registerSize:$e,display:at<=xe}))},Je,je={order:Ke?xe:Number.MAX_SAFE_INTEGER,className:"".concat(ke,"-rest"),registerSize:Fe,display:Ke};if(v)v&&(Je=g.createElement(AI.Provider,{value:Q(Q({},gt),je)},v(Ae)));else{var Ze=m||FYe;Je=g.createElement(lx,Ne({},gt,je),typeof Ze=="function"?Ze(Ae):Ze)}var Xe=g.createElement(x,Ne({className:ie(!Ee&&r,p),style:f,ref:t},C),ue.map(Nt),we?Je:null,y&&g.createElement(lx,Ne({},gt,{responsive:pe,responsiveDisabled:!Se,order:xe,className:"".concat(ke,"-suffix"),registerSize:He,display:!0,style:ft}),y));return pe&&(Xe=g.createElement(Si,{onResize:Me,disabled:!Se},Xe)),Xe}var Ou=g.forwardRef(BYe);Ou.displayName="Overflow";Ou.Item=Xme;Ou.RESPONSIVE=Qme;Ou.INVALIDATE=Zme;var zYe=function(t,n){var r,a=t.prefixCls,i=t.id,o=t.inputElement,l=t.disabled,s=t.tabIndex,u=t.autoFocus,c=t.autoComplete,d=t.editable,f=t.activeDescendantId,p=t.value,h=t.maxLength,m=t.onKeyDown,v=t.onMouseDown,y=t.onChange,b=t.onPaste,x=t.onCompositionStart,E=t.onCompositionEnd,S=t.open,C=t.attrs,w=o||g.createElement("input",null),I=w,T=I.ref,A=I.props,O=A.onKeyDown,R=A.onChange,N=A.onMouseDown,_=A.onCompositionStart,L=A.onCompositionEnd,$=A.style;return"maxLength"in w.props,w=g.cloneElement(w,Q(Q(Q({type:"search"},A),{},{id:i,ref:uo(n,T),disabled:l,tabIndex:s,autoComplete:c||"off",autoFocus:u,className:ie("".concat(a,"-selection-search-input"),(r=w)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":S?f:void 0},C),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:Q(Q({},$),{},{opacity:d?null:0}),onKeyDown:function(P){m(P),O&&O(P)},onMouseDown:function(P){v(P),N&&N(P)},onChange:function(P){y(P),R&&R(P)},onCompositionStart:function(P){x(P),_&&_(P)},onCompositionEnd:function(P){E(P),L&&L(P)},onPaste:b})),w},Jme=g.forwardRef(zYe);function eve(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var HYe=typeof window<"u"&&window.document&&window.document.documentElement,jYe=HYe;function UYe(e){return e!=null}function VYe(e){return!e&&e!==0}function jZ(e){return["string","number"].includes(zt(e))}function tve(e){var t=void 0;return e&&(jZ(e.title)?t=e.title.toString():jZ(e.label)&&(t=e.label.toString())),t}function WYe(e,t){jYe?g.useLayoutEffect(e,t):g.useEffect(e,t)}function GYe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var UZ=function(t){t.preventDefault(),t.stopPropagation()},qYe=function(t){var n=t.id,r=t.prefixCls,a=t.values,i=t.open,o=t.searchValue,l=t.autoClearSearchValue,s=t.inputRef,u=t.placeholder,c=t.disabled,d=t.mode,f=t.showSearch,p=t.autoFocus,h=t.autoComplete,m=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,b=t.maxTagCount,x=t.maxTagTextLength,E=t.maxTagPlaceholder,S=E===void 0?function(te){return"+ ".concat(te.length," ...")}:E,C=t.tagRender,w=t.onToggleOpen,I=t.onRemove,T=t.onInputChange,A=t.onInputPaste,O=t.onInputKeyDown,R=t.onInputMouseDown,N=t.onInputCompositionStart,_=t.onInputCompositionEnd,L=g.useRef(null),$=g.useState(0),k=fe($,2),P=k[0],B=k[1],F=g.useState(!1),D=fe(F,2),j=D[0],z=D[1],V="".concat(r,"-selection"),G=i||d==="multiple"&&l===!1||d==="tags"?o:"",W=d==="tags"||d==="multiple"&&l===!1||f&&(i||j);WYe(function(){B(L.current.scrollWidth)},[G]);var Y=function(re,se,ve,ge,xe){return g.createElement("span",{title:tve(re),className:ie("".concat(V,"-item"),X({},"".concat(V,"-item-disabled"),ve))},g.createElement("span",{className:"".concat(V,"-item-content")},se),ge&&g.createElement(rR,{className:"".concat(V,"-item-remove"),onMouseDown:UZ,onClick:xe,customizeIcon:y},"×"))},J=function(re,se,ve,ge,xe){var me=function(Ce){UZ(Ce),w(!i)};return g.createElement("span",{onMouseDown:me},C({label:se,value:re,disabled:ve,closable:ge,onClose:xe}))},Z=function(re){var se=re.disabled,ve=re.label,ge=re.value,xe=!c&&!se,me=ve;if(typeof x=="number"&&(typeof ve=="string"||typeof ve=="number")){var de=String(me);de.length>x&&(me="".concat(de.slice(0,x),"..."))}var Ce=function(ke){ke&&ke.stopPropagation(),I(re)};return typeof C=="function"?J(ge,me,se,xe,Ce):Y(re,me,se,xe,Ce)},K=function(re){var se=typeof S=="function"?S(re):S;return Y({title:se},se,!1)},ee=g.createElement("div",{className:"".concat(V,"-search"),style:{width:P},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},g.createElement(Jme,{ref:s,open:i,prefixCls:r,id:n,inputElement:null,disabled:c,autoFocus:p,autoComplete:h,editable:W,activeDescendantId:m,value:G,onKeyDown:O,onMouseDown:R,onChange:T,onPaste:A,onCompositionStart:N,onCompositionEnd:_,tabIndex:v,attrs:La(t,!0)}),g.createElement("span",{ref:L,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},G," ")),ae=g.createElement(Ou,{prefixCls:"".concat(V,"-overflow"),data:a,renderItem:Z,renderRest:K,suffix:ee,itemKey:GYe,maxCount:b});return g.createElement(g.Fragment,null,ae,!a.length&&!G&&g.createElement("span",{className:"".concat(V,"-placeholder")},u))},YYe=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,i=t.inputRef,o=t.disabled,l=t.autoFocus,s=t.autoComplete,u=t.activeDescendantId,c=t.mode,d=t.open,f=t.values,p=t.placeholder,h=t.tabIndex,m=t.showSearch,v=t.searchValue,y=t.activeValue,b=t.maxLength,x=t.onInputKeyDown,E=t.onInputMouseDown,S=t.onInputChange,C=t.onInputPaste,w=t.onInputCompositionStart,I=t.onInputCompositionEnd,T=t.title,A=g.useState(!1),O=fe(A,2),R=O[0],N=O[1],_=c==="combobox",L=_||m,$=f[0],k=v||"";_&&y&&!R&&(k=y),g.useEffect(function(){_&&N(!1)},[_,y]);var P=c!=="combobox"&&!d&&!m?!1:!!k,B=T===void 0?tve($):T,F=g.useMemo(function(){return $?null:g.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:P?{visibility:"hidden"}:void 0},p)},[$,P,p,r]);return g.createElement(g.Fragment,null,g.createElement("span",{className:"".concat(r,"-selection-search")},g.createElement(Jme,{ref:i,prefixCls:r,id:a,open:d,inputElement:n,disabled:o,autoFocus:l,autoComplete:s,editable:L,activeDescendantId:u,value:k,onKeyDown:x,onMouseDown:E,onChange:function(j){N(!0),S(j)},onPaste:C,onCompositionStart:w,onCompositionEnd:I,tabIndex:h,attrs:La(t,!0),maxLength:_?b:void 0})),!_&&$?g.createElement("span",{className:"".concat(r,"-selection-item"),title:B,style:P?{visibility:"hidden"}:void 0},$.label):null,F)},KYe=function(t,n){var r=g.useRef(null),a=g.useRef(!1),i=t.prefixCls,o=t.open,l=t.mode,s=t.showSearch,u=t.tokenWithEnter,c=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,p=t.onToggleOpen,h=t.onInputKeyDown,m=t.domRef;g.useImperativeHandle(n,function(){return{focus:function(k){r.current.focus(k)},blur:function(){r.current.blur()}}});var v=Kme(0),y=fe(v,2),b=y[0],x=y[1],E=function(k){var P=k.which;(P===Ve.UP||P===Ve.DOWN)&&k.preventDefault(),h&&h(k),P===Ve.ENTER&&l==="tags"&&!a.current&&!o&&(f==null||f(k.target.value)),OYe(P)&&p(!0)},S=function(){x(!0)},C=g.useRef(null),w=function(k){d(k,!0,a.current)!==!1&&p(!0)},I=function(){a.current=!0},T=function(k){a.current=!1,l!=="combobox"&&w(k.target.value)},A=function(k){var P=k.target.value;if(u&&C.current&&/[\r\n]/.test(C.current)){var B=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");P=P.replace(B,C.current)}C.current=null,w(P)},O=function(k){var P=k.clipboardData,B=P==null?void 0:P.getData("text");C.current=B||""},R=function(k){var P=k.target;if(P!==r.current){var B=document.body.style.msTouchAction!==void 0;B?setTimeout(function(){r.current.focus()}):r.current.focus()}},N=function(k){var P=b();k.target!==r.current&&!P&&l!=="combobox"&&k.preventDefault(),(l!=="combobox"&&(!s||!P)||!o)&&(o&&c!==!1&&d("",!0,!1),p())},_={inputRef:r,onInputKeyDown:E,onInputMouseDown:S,onInputChange:A,onInputPaste:O,onInputCompositionStart:I,onInputCompositionEnd:T},L=l==="multiple"||l==="tags"?g.createElement(qYe,Ne({},t,_)):g.createElement(YYe,Ne({},t,_));return g.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:R,onMouseDown:N},L)},XYe=g.forwardRef(KYe);function QYe(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,i=r||{},o=i.className,l=i.content,s=a.x,u=s===void 0?0:s,c=a.y,d=c===void 0?0:c,f=g.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],m=n.points[1],v=h[0],y=h[1],b=m[0],x=m[1];v===b||!["t","b"].includes(v)?p.top=d:v==="t"?p.top=0:p.bottom=0,y===x||!["l","r"].includes(y)?p.left=u:y==="l"?p.left=0:p.right=0}return g.createElement("div",{ref:f,className:ie("".concat(t,"-arrow"),o),style:p},l)}function ZYe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,i=e.motion;return a?g.createElement(io,Ne({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var l=o.className;return g.createElement("div",{style:{zIndex:r},className:ie("".concat(t,"-mask"),l)})}):null}var JYe=g.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),eKe=g.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,i=e.style,o=e.target,l=e.onVisibleChanged,s=e.open,u=e.keepDom,c=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,m=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,x=e.getPopupContainer,E=e.autoDestroy,S=e.portal,C=e.zIndex,w=e.onMouseEnter,I=e.onMouseLeave,T=e.onPointerEnter,A=e.ready,O=e.offsetX,R=e.offsetY,N=e.offsetR,_=e.offsetB,L=e.onAlign,$=e.onPrepare,k=e.stretch,P=e.targetWidth,B=e.targetHeight,F=typeof n=="function"?n():n,D=s||u,j=(x==null?void 0:x.length)>0,z=g.useState(!x||!j),V=fe(z,2),G=V[0],W=V[1];if(Sn(function(){!G&&j&&o&&W(!0)},[G,j,o]),!G)return null;var Y="auto",J={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(A||!s){var Z,K=m.points,ee=m.dynamicInset||((Z=m._experimental)===null||Z===void 0?void 0:Z.dynamicInset),ae=ee&&K[0][1]==="r",te=ee&&K[0][0]==="b";ae?(J.right=N,J.left=Y):(J.left=O,J.right=Y),te?(J.bottom=_,J.top=Y):(J.top=R,J.bottom=Y)}var re={};return k&&(k.includes("height")&&B?re.height=B:k.includes("minHeight")&&B&&(re.minHeight=B),k.includes("width")&&P?re.width=P:k.includes("minWidth")&&P&&(re.minWidth=P)),s||(re.pointerEvents="none"),g.createElement(S,{open:b||D,getContainer:x&&function(){return x(o)},autoDestroy:E},g.createElement(ZYe,{prefixCls:a,open:s,zIndex:C,mask:f,motion:y}),g.createElement(Si,{onResize:L,disabled:!s},function(se){return g.createElement(io,Ne({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(a,"-hidden")},v,{onAppearPrepare:$,onEnterPrepare:$,visible:s,onVisibleChanged:function(ge){var xe;v==null||(xe=v.onVisibleChanged)===null||xe===void 0||xe.call(v,ge),l(ge)}}),function(ve,ge){var xe=ve.className,me=ve.style,de=ie(a,xe,r);return g.createElement("div",{ref:uo(se,t,ge),className:de,style:Q(Q(Q(Q({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},J),re),me),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:w,onMouseLeave:I,onPointerEnter:T,onClick:d},p&&g.createElement(QYe,{prefixCls:a,arrow:p,arrowPos:h,align:m}),g.createElement(JYe,{cache:!s&&!c},F))})}))}),tKe=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Mu(n),i=g.useCallback(function(l){iE(t,r?r(l):l)},[r]),o=zc(i,n.ref);return a?g.cloneElement(n,{ref:o}):n}),VZ=g.createContext(null);function WZ(e){return e?Array.isArray(e)?e:[e]:[]}function nKe(e,t,n,r){return g.useMemo(function(){var a=WZ(n??t),i=WZ(r??t),o=new Set(a),l=new Set(i);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[o,l]},[e,t,n,r])}function rKe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function aKe(e,t,n,r){for(var a=n.points,i=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function jb(e){return gE(parseFloat(e),0)}function qZ(e,t){var n=Q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=MS(r).getComputedStyle(r),i=a.overflow,o=a.overflowClipMargin,l=a.borderTopWidth,s=a.borderBottomWidth,u=a.borderLeftWidth,c=a.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,p=r.clientHeight,h=r.offsetWidth,m=r.clientWidth,v=jb(l),y=jb(s),b=jb(u),x=jb(c),E=gE(Math.round(d.width/h*1e3)/1e3),S=gE(Math.round(d.height/f*1e3)/1e3),C=(h-m-b-x)*E,w=(f-p-v-y)*S,I=v*S,T=y*S,A=b*E,O=x*E,R=0,N=0;if(i==="clip"){var _=jb(o);R=_*E,N=_*S}var L=d.x+A-R,$=d.y+I-N,k=L+d.width+2*R-A-O-C,P=$+d.height+2*N-I-T-w;n.left=Math.max(n.left,L),n.top=Math.max(n.top,$),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,P)}}),n}function YZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function KZ(e,t){var n=t||[],r=fe(n,2),a=r[0],i=r[1];return[YZ(e.width,a),YZ(e.height,i)]}function XZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function km(e,t){var n=t[0],r=t[1],a,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:i}}function uf(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function iKe(e,t,n,r,a,i,o){var l=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),s=fe(l,2),u=s[0],c=s[1],d=g.useRef(0),f=g.useMemo(function(){return t?l6(t):[]},[t]),p=g.useRef({}),h=function(){p.current={}};e||h();var m=jn(function(){if(t&&n&&e){let sn=function(ou,Ki){var Lo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de,hs=F.x+ou,Zc=F.y+Ki,cN=hs+Z,dN=Zc+J,fN=Math.max(hs,Lo.left),pN=Math.max(Zc,Lo.top),Zt=Math.min(cN,Lo.right),vn=Math.min(dN,Lo.bottom);return Math.max(0,(Zt-fN)*(vn-pN))},ma=function(){Ot=F.y+Ze,lt=Ot+J,st=F.x+je,Ht=st+Z};var _t=sn,ln=ma,b,x,E=t,S=E.ownerDocument,C=MS(E),w=C.getComputedStyle(E),I=w.width,T=w.height,A=w.position,O=E.style.left,R=E.style.top,N=E.style.right,_=E.style.bottom,L=E.style.overflow,$=Q(Q({},a[r]),i),k=S.createElement("div");(b=E.parentElement)===null||b===void 0||b.appendChild(k),k.style.left="".concat(E.offsetLeft,"px"),k.style.top="".concat(E.offsetTop,"px"),k.style.position=A,k.style.height="".concat(E.offsetHeight,"px"),k.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var B=n.getBoundingClientRect();P={x:B.x,y:B.y,width:B.width,height:B.height}}var F=E.getBoundingClientRect(),D=S.documentElement,j=D.clientWidth,z=D.clientHeight,V=D.scrollWidth,G=D.scrollHeight,W=D.scrollTop,Y=D.scrollLeft,J=F.height,Z=F.width,K=P.height,ee=P.width,ae={left:0,top:0,right:j,bottom:z},te={left:-Y,top:-W,right:V-Y,bottom:G-W},re=$.htmlRegion,se="visible",ve="visibleFirst";re!=="scroll"&&re!==ve&&(re=se);var ge=re===ve,xe=qZ(te,f),me=qZ(ae,f),de=re===se?me:xe,Ce=ge?me:de;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ie=E.getBoundingClientRect();E.style.left=O,E.style.top=R,E.style.right=N,E.style.bottom=_,E.style.overflow=L,(x=E.parentElement)===null||x===void 0||x.removeChild(k);var ke=gE(Math.round(Z/parseFloat(I)*1e3)/1e3),Te=gE(Math.round(J/parseFloat(T)*1e3)/1e3);if(ke===0||Te===0||hI(n)&&!xy(n))return;var pe=$.offset,Se=$.targetOffset,Ee=KZ(F,pe),we=fe(Ee,2),ue=we[0],Ae=we[1],_e=KZ(P,Se),Re=fe(_e,2),Be=Re[0],Me=Re[1];P.x-=Be,P.y-=Me;var $e=$.points||[],Fe=fe($e,2),He=Fe[0],Le=Fe[1],Ke=XZ(Le),ft=XZ(He),gt=km(P,Ke),Nt=km(F,ft),Je=Q({},$),je=gt.x-Nt.x+ue,Ze=gt.y-Nt.y+Ae,Xe=sn(je,Ze),Ye=sn(je,Ze,me),at=km(P,["t","l"]),It=km(F,["t","l"]),Bt=km(P,["b","r"]),tt=km(F,["b","r"]),ut=$.overflow||{},wt=ut.adjustX,Pt=ut.adjustY,Yt=ut.shiftX,Kt=ut.shiftY,tn=function(Ki){return typeof Ki=="boolean"?Ki:Ki>=0},Ot,lt,st,Ht;ma();var ot=tn(Pt),Tt=ft[0]===Ke[0];if(ot&&ft[0]==="t"&&(lt>Ce.bottom||p.current.bt)){var Ft=Ze;Tt?Ft-=J-K:Ft=at.y-tt.y-Ae;var an=sn(je,Ft),Bn=sn(je,Ft,me);an>Xe||an===Xe&&(!ge||Bn>=Ye)?(p.current.bt=!0,Ze=Ft,Ae=-Ae,Je.points=[uf(ft,0),uf(Ke,0)]):p.current.bt=!1}if(ot&&ft[0]==="b"&&(OtXe||kn===Xe&&(!ge||zr>=Ye)?(p.current.tb=!0,Ze=zn,Ae=-Ae,Je.points=[uf(ft,0),uf(Ke,0)]):p.current.tb=!1}var qr=tn(wt),lr=ft[1]===Ke[1];if(qr&&ft[1]==="l"&&(Ht>Ce.right||p.current.rl)){var gr=je;lr?gr-=Z-ee:gr=at.x-tt.x-ue;var Xa=sn(gr,Ze),Qa=sn(gr,Ze,me);Xa>Xe||Xa===Xe&&(!ge||Qa>=Ye)?(p.current.rl=!0,je=gr,ue=-ue,Je.points=[uf(ft,1),uf(Ke,1)]):p.current.rl=!1}if(qr&&ft[1]==="r"&&(stXe||mn===Xe&&(!ge||Rn>=Ye)?(p.current.lr=!0,je=jt,ue=-ue,Je.points=[uf(ft,1),uf(Ke,1)]):p.current.lr=!1}ma();var kr=Yt===!0?0:Yt;typeof kr=="number"&&(stme.right&&(je-=Ht-me.right-ue,P.x>me.right-kr&&(je+=P.x-me.right+kr)));var ha=Kt===!0?0:Kt;typeof ha=="number"&&(Otme.bottom&&(Ze-=lt-me.bottom-Ae,P.y>me.bottom-ha&&(Ze+=P.y-me.bottom+ha)));var mo=F.x+je,vo=mo+Z,Za=F.y+Ze,Yi=Za+J,Ja=P.x,An=Ja+ee,Dt=P.y,Mt=Dt+K,_n=Math.max(mo,Ja),Hn=Math.min(vo,An),ar=(_n+Hn)/2,Tr=ar-mo,Qt=Math.max(Za,Dt),Gt=Math.min(Yi,Mt),sr=(Qt+Gt)/2,Ar=sr-Za;o==null||o(t,Je);var ga=Ie.right-F.x-(je+F.width),Rt=Ie.bottom-F.y-(Ze+F.height);c({ready:!0,offsetX:je/ke,offsetY:Ze/Te,offsetR:ga/ke,offsetB:Rt/Te,arrowX:Tr/ke,arrowY:Ar/Te,scaleX:ke,scaleY:Te,align:Je})}}),v=function(){d.current+=1;var x=d.current;Promise.resolve().then(function(){d.current===x&&m()})},y=function(){c(function(x){return Q(Q({},x),{},{ready:!1})})};return Sn(y,[r]),Sn(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function oKe(e,t,n,r,a){Sn(function(){if(e&&t&&n){let f=function(){r(),a()};var d=f,i=t,o=n,l=l6(i),s=l6(o),u=MS(o),c=new Set([u].concat(Ue(l),Ue(s)));return c.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){c.forEach(function(p){p.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function lKe(e,t,n,r,a,i,o,l){var s=g.useRef(e),u=g.useRef(!1);s.current!==e&&(u.current=!0,s.current=e),g.useEffect(function(){var c=bn(function(){u.current=!1});return function(){bn.cancel(c)}},[e]),g.useEffect(function(){if(t&&r&&(!a||i)){var c=function(){var C=!1,w=function(A){var O=A.target;C=o(O)},I=function(A){var O=A.target;!u.current&&s.current&&!C&&!o(O)&&l(!1)};return[w,I]},d=c(),f=fe(d,2),p=f[0],h=f[1],m=c(),v=fe(m,2),y=v[0],b=v[1],x=MS(r);x.addEventListener("mousedown",p,!0),x.addEventListener("click",h,!0),x.addEventListener("contextmenu",h,!0);var E=CI(n);return E&&(E.addEventListener("mousedown",y,!0),E.addEventListener("click",b,!0),E.addEventListener("contextmenu",b,!0)),function(){x.removeEventListener("mousedown",p,!0),x.removeEventListener("click",h,!0),x.removeEventListener("contextmenu",h,!0),E&&(E.removeEventListener("mousedown",y,!0),E.removeEventListener("click",b,!0),E.removeEventListener("contextmenu",b,!0))}}},[t,n,r,a,i])}var sKe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function uKe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_S,t=g.forwardRef(function(n,r){var a=n.prefixCls,i=a===void 0?"rc-trigger-popup":a,o=n.children,l=n.action,s=l===void 0?"hover":l,u=n.showAction,c=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,m=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,b=n.focusDelay,x=n.blurDelay,E=n.mask,S=n.maskClosable,C=S===void 0?!0:S,w=n.getPopupContainer,I=n.forceRender,T=n.autoDestroy,A=n.destroyPopupOnHide,O=n.popup,R=n.popupClassName,N=n.popupStyle,_=n.popupPlacement,L=n.builtinPlacements,$=L===void 0?{}:L,k=n.popupAlign,P=n.zIndex,B=n.stretch,F=n.getPopupClassNameFromAlign,D=n.fresh,j=n.alignPoint,z=n.onPopupClick,V=n.onPopupAlign,G=n.arrow,W=n.popupMotion,Y=n.maskMotion,J=n.popupTransitionName,Z=n.popupAnimation,K=n.maskTransitionName,ee=n.maskAnimation,ae=n.className,te=n.getTriggerDOMNode,re=Lt(n,sKe),se=T||A||!1,ve=g.useState(!1),ge=fe(ve,2),xe=ge[0],me=ge[1];Sn(function(){me(nR())},[]);var de=g.useRef({}),Ce=g.useContext(VZ),Ie=g.useMemo(function(){return{registerSubPopup:function(vn,Oa){de.current[vn]=Oa,Ce==null||Ce.registerSubPopup(vn,Oa)}}},[Ce]),ke=ime(),Te=g.useState(null),pe=fe(Te,2),Se=pe[0],Ee=pe[1],we=jn(function(Zt){hI(Zt)&&Se!==Zt&&Ee(Zt),Ce==null||Ce.registerSubPopup(ke,Zt)}),ue=g.useState(null),Ae=fe(ue,2),_e=Ae[0],Re=Ae[1],Be=g.useRef(null),Me=jn(function(Zt){hI(Zt)&&_e!==Zt&&(Re(Zt),Be.current=Zt)}),$e=g.Children.only(o),Fe=($e==null?void 0:$e.props)||{},He={},Le=jn(function(Zt){var vn,Oa,hi=_e;return(hi==null?void 0:hi.contains(Zt))||((vn=CI(hi))===null||vn===void 0?void 0:vn.host)===Zt||Zt===hi||(Se==null?void 0:Se.contains(Zt))||((Oa=CI(Se))===null||Oa===void 0?void 0:Oa.host)===Zt||Zt===Se||Object.values(de.current).some(function(ka){return(ka==null?void 0:ka.contains(Zt))||Zt===ka})}),Ke=GZ(i,W,Z,J),ft=GZ(i,Y,ee,K),gt=g.useState(f||!1),Nt=fe(gt,2),Je=Nt[0],je=Nt[1],Ze=d??Je,Xe=jn(function(Zt){d===void 0&&je(Zt)});Sn(function(){je(d||!1)},[d]);var Ye=g.useRef(Ze);Ye.current=Ze;var at=g.useRef([]);at.current=[];var It=jn(function(Zt){var vn;Xe(Zt),((vn=at.current[at.current.length-1])!==null&&vn!==void 0?vn:Ze)!==Zt&&(at.current.push(Zt),p==null||p(Zt))}),Bt=g.useRef(),tt=function(){clearTimeout(Bt.current)},ut=function(vn){var Oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;tt(),Oa===0?It(vn):Bt.current=setTimeout(function(){It(vn)},Oa*1e3)};g.useEffect(function(){return tt},[]);var wt=g.useState(!1),Pt=fe(wt,2),Yt=Pt[0],Kt=Pt[1];Sn(function(Zt){(!Zt||Ze)&&Kt(!0)},[Ze]);var tn=g.useState(null),Ot=fe(tn,2),lt=Ot[0],st=Ot[1],Ht=g.useState([0,0]),ot=fe(Ht,2),Tt=ot[0],Ft=ot[1],an=function(vn){Ft([vn.clientX,vn.clientY])},Bn=iKe(Ze,Se,j?Tt:_e,_,$,k,V),zn=fe(Bn,11),kn=zn[0],zr=zn[1],qr=zn[2],lr=zn[3],gr=zn[4],Xa=zn[5],Qa=zn[6],jt=zn[7],mn=zn[8],Rn=zn[9],kr=zn[10],ha=nKe(xe,s,u,c),mo=fe(ha,2),vo=mo[0],Za=mo[1],Yi=vo.has("click"),Ja=Za.has("click")||Za.has("contextMenu"),An=jn(function(){Yt||kr()}),Dt=function(){Ye.current&&j&&Ja&&ut(!1)};oKe(Ze,_e,Se,An,Dt),Sn(function(){An()},[Tt,_]),Sn(function(){Ze&&!($!=null&&$[_])&&An()},[JSON.stringify(k)]);var Mt=g.useMemo(function(){var Zt=aKe($,i,Rn,j);return ie(Zt,F==null?void 0:F(Rn))},[Rn,F,$,i,j]);g.useImperativeHandle(r,function(){return{nativeElement:Be.current,forceAlign:An}});var _n=g.useState(0),Hn=fe(_n,2),ar=Hn[0],Tr=Hn[1],Qt=g.useState(0),Gt=fe(Qt,2),sr=Gt[0],Ar=Gt[1],ga=function(){if(B&&_e){var vn=_e.getBoundingClientRect();Tr(vn.width),Ar(vn.height)}},Rt=function(){ga(),An()},_t=function(vn){Kt(!1),kr(),h==null||h(vn)},ln=function(){return new Promise(function(vn){ga(),st(function(){return vn})})};Sn(function(){lt&&(kr(),lt(),st(null))},[lt]);function sn(Zt,vn,Oa,hi){He[Zt]=function(ka){var aw;hi==null||hi(ka),ut(vn,Oa);for(var hN=arguments.length,AY=new Array(hN>1?hN-1:0),iw=1;iw1?Oa-1:0),ka=1;ka1?Oa-1:0),ka=1;ka1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],i=nve(n,!1),o=i.label,l=i.value,s=i.options,u=i.groupLabel;function c(d,f){Array.isArray(d)&&d.forEach(function(p){if(f||!(s in p)){var h=p[l];a.push({key:QZ(p,a.length),groupOption:f,data:p,label:p[o],value:h})}else{var m=p[u];m===void 0&&r&&(m=p.label),a.push({key:QZ(p,a.length),group:!0,data:p,label:m}),c(p[s],!0)}})}return c(e,!1),a}function u6(e){var t=Q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Rr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var gKe=function(t,n,r){if(!n||!n.length)return null;var a=!1,i=function l(s,u){var c=Xhe(u),d=c[0],f=c.slice(1);if(!d)return[s];var p=s.split(d);return a=a||p.length>1,p.reduce(function(h,m){return[].concat(Ue(h),Ue(l(m,f)))},[]).filter(Boolean)},o=i(t,n);return a?typeof r<"u"?o.slice(0,r):o:null},O7=g.createContext(null),mKe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vKe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],c6=function(t){return t==="tags"||t==="multiple"},yKe=g.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,i=e.className,o=e.showSearch,l=e.tagRender,s=e.direction,u=e.omitDomProps,c=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,p=e.notFoundContent,h=p===void 0?"Not Found":p,m=e.onClear,v=e.mode,y=e.disabled,b=e.loading,x=e.getInputElement,E=e.getRawInputElement,S=e.open,C=e.defaultOpen,w=e.onDropdownVisibleChange,I=e.activeValue,T=e.onActiveValueChange,A=e.activeDescendantId,O=e.searchValue,R=e.autoClearSearchValue,N=e.onSearch,_=e.onSearchSplit,L=e.tokenSeparators,$=e.allowClear,k=e.suffixIcon,P=e.clearIcon,B=e.OptionList,F=e.animation,D=e.transitionName,j=e.dropdownStyle,z=e.dropdownClassName,V=e.dropdownMatchSelectWidth,G=e.dropdownRender,W=e.dropdownAlign,Y=e.placement,J=e.builtinPlacements,Z=e.getPopupContainer,K=e.showAction,ee=K===void 0?[]:K,ae=e.onFocus,te=e.onBlur,re=e.onKeyUp,se=e.onKeyDown,ve=e.onMouseDown,ge=Lt(e,mKe),xe=c6(v),me=(o!==void 0?o:xe)||v==="combobox",de=Q({},ge);vKe.forEach(function(Dt){delete de[Dt]}),u==null||u.forEach(function(Dt){delete de[Dt]});var Ce=g.useState(!1),Ie=fe(Ce,2),ke=Ie[0],Te=Ie[1];g.useEffect(function(){Te(nR())},[]);var pe=g.useRef(null),Se=g.useRef(null),Ee=g.useRef(null),we=g.useRef(null),ue=g.useRef(null),Ae=g.useRef(!1),_e=AYe(),Re=fe(_e,3),Be=Re[0],Me=Re[1],$e=Re[2];g.useImperativeHandle(t,function(){var Dt,Mt;return{focus:(Dt=we.current)===null||Dt===void 0?void 0:Dt.focus,blur:(Mt=we.current)===null||Mt===void 0?void 0:Mt.blur,scrollTo:function(Hn){var ar;return(ar=ue.current)===null||ar===void 0?void 0:ar.scrollTo(Hn)}}});var Fe=g.useMemo(function(){var Dt;if(v!=="combobox")return O;var Mt=(Dt=c[0])===null||Dt===void 0?void 0:Dt.value;return typeof Mt=="string"||typeof Mt=="number"?String(Mt):""},[O,v,c]),He=v==="combobox"&&typeof x=="function"&&x()||null,Le=typeof E=="function"&&E(),Ke=zc(Se,Le==null||(n=Le.props)===null||n===void 0?void 0:n.ref),ft=g.useState(!1),gt=fe(ft,2),Nt=gt[0],Je=gt[1];Sn(function(){Je(!0)},[]);var je=or(!1,{defaultValue:C,value:S}),Ze=fe(je,2),Xe=Ze[0],Ye=Ze[1],at=Nt?Xe:!1,It=!h&&f;(y||It&&at&&v==="combobox")&&(at=!1);var Bt=It?!1:at,tt=g.useCallback(function(Dt){var Mt=Dt!==void 0?Dt:!at;y||(Ye(Mt),at!==Mt&&(w==null||w(Mt)))},[y,at,Ye,w]),ut=g.useMemo(function(){return(L||[]).some(function(Dt){return[` +`,`\r +`].includes(Dt)})},[L]),wt=g.useContext(O7)||{},Pt=wt.maxCount,Yt=wt.rawValues,Kt=function(Mt,_n,Hn){if(!(s6(Pt)&&(Yt==null?void 0:Yt.size)>=Pt)){var ar=!0,Tr=Mt;T==null||T(null);var Qt=gKe(Mt,L,s6(Pt)?Pt-Yt.size:void 0),Gt=Hn?null:Qt;return v!=="combobox"&&Gt&&(Tr="",_==null||_(Gt),tt(!1),ar=!1),N&&Fe!==Tr&&N(Tr,{source:_n?"typing":"effect"}),ar}},tn=function(Mt){!Mt||!Mt.trim()||N(Mt,{source:"submit"})};g.useEffect(function(){!at&&!xe&&v!=="combobox"&&Kt("",!1,!1)},[at]),g.useEffect(function(){Xe&&y&&Ye(!1),y&&!Ae.current&&Me(!1)},[y]);var Ot=Kme(),lt=fe(Ot,2),st=lt[0],Ht=lt[1],ot=function(Mt){var _n=st(),Hn=Mt.which;if(Hn===Ve.ENTER&&(v!=="combobox"&&Mt.preventDefault(),at||tt(!0)),Ht(!!Fe),Hn===Ve.BACKSPACE&&!_n&&xe&&!Fe&&c.length){for(var ar=Ue(c),Tr=null,Qt=ar.length-1;Qt>=0;Qt-=1){var Gt=ar[Qt];if(!Gt.disabled){ar.splice(Qt,1),Tr=Gt;break}}Tr&&d(ar,{type:"remove",values:[Tr]})}for(var sr=arguments.length,Ar=new Array(sr>1?sr-1:0),ga=1;ga1?_n-1:0),ar=1;ar<_n;ar++)Hn[ar-1]=arguments[ar];if(at){var Tr;(Tr=ue.current)===null||Tr===void 0||Tr.onKeyUp.apply(Tr,[Mt].concat(Hn))}re==null||re.apply(void 0,[Mt].concat(Hn))},Ft=function(Mt){var _n=c.filter(function(Hn){return Hn!==Mt});d(_n,{type:"remove",values:[Mt]})},an=g.useRef(!1),Bn=function(){Me(!0),y||(ae&&!an.current&&ae.apply(void 0,arguments),ee.includes("focus")&&tt(!0)),an.current=!0},zn=function(){Ae.current=!0,Me(!1,function(){an.current=!1,Ae.current=!1,tt(!1)}),!y&&(Fe&&(v==="tags"?N(Fe,{source:"submit"}):v==="multiple"&&N("",{source:"blur"})),te&&te.apply(void 0,arguments))},kn=[];g.useEffect(function(){return function(){kn.forEach(function(Dt){return clearTimeout(Dt)}),kn.splice(0,kn.length)}},[]);var zr=function(Mt){var _n,Hn=Mt.target,ar=(_n=Ee.current)===null||_n===void 0?void 0:_n.getPopupElement();if(ar&&ar.contains(Hn)){var Tr=setTimeout(function(){var Ar=kn.indexOf(Tr);if(Ar!==-1&&kn.splice(Ar,1),$e(),!ke&&!ar.contains(document.activeElement)){var ga;(ga=we.current)===null||ga===void 0||ga.focus()}});kn.push(Tr)}for(var Qt=arguments.length,Gt=new Array(Qt>1?Qt-1:0),sr=1;sr0&&arguments[0]!==void 0?arguments[0]:!1;c();var h=function(){l.current.forEach(function(v,y){if(v&&v.offsetParent){var b=nx(v),x=b.offsetHeight;s.current.get(y)!==x&&s.current.set(y,b.offsetHeight)}}),o(function(v){return v+1})};p?h():u.current=bn(h)}function f(p,h){var m=e(p),v=l.current.get(m);h?(l.current.set(m,h),d()):l.current.delete(m),!v!=!h&&(h?t==null||t(p):n==null||n(p))}return g.useEffect(function(){return c},[]),[f,d,s.current,i]}var CKe=10;function wKe(e,t,n,r,a,i,o,l){var s=g.useRef(),u=g.useState(null),c=fe(u,2),d=c[0],f=c[1];return Sn(function(){if(d&&d.times=0;_-=1){var L=a(t[_]),$=n.get(L);if($===void 0){b=!0;break}if(N-=$,N<=0)break}switch(S){case"top":E=w-v;break;case"bottom":E=I-y+v;break;default:{var k=e.current.scrollTop,P=k+y;wP&&(x="bottom")}}E!==null&&o(E),E!==d.lastTop&&(b=!0)}b&&f(Q(Q({},d),{},{times:d.times+1,targetAlign:x,lastTop:E}))}},[d,e.current]),function(p){if(p==null){l();return}if(bn.cancel(s.current),typeof p=="number")o(p);else if(p&&zt(p)==="object"){var h,m=p.align;"index"in p?h=p.index:h=t.findIndex(function(b){return a(b)===p.key});var v=p.offset,y=v===void 0?0:v;f({times:0,index:h,offset:y,originAlign:m})}}}function TKe(e,t,n){var r=e.length,a=t.length,i,o;if(r===0&&a===0)return null;r"u"?"undefined":zt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ave=function(e,t){var n=g.useRef(!1),r=g.useRef(null);function a(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=g.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=o<0&&i.current.top||o>0&&i.current.bottom;return l&&s?(clearTimeout(r.current),n.current=!1):(!s||n.current)&&a(),!n.current&&s}};function IKe(e,t,n,r,a){var i=g.useRef(0),o=g.useRef(null),l=g.useRef(null),s=g.useRef(!1),u=ave(t,n);function c(v,y){bn.cancel(o.current),i.current+=y,l.current=y,!u(y)&&(eJ||v.preventDefault(),o.current=bn(function(){var b=s.current?10:1;a(i.current*b),i.current=0}))}function d(v,y){a(y,!0),eJ||v.preventDefault()}var f=g.useRef(null),p=g.useRef(null);function h(v){if(e){bn.cancel(p.current),p.current=bn(function(){f.current=null},2);var y=v.deltaX,b=v.deltaY,x=v.shiftKey,E=y,S=b;(f.current==="sx"||!f.current&&x&&b&&!y)&&(E=b,S=0,f.current="sx");var C=Math.abs(E),w=Math.abs(S);f.current===null&&(f.current=r&&C>w?"x":"y"),f.current==="y"?c(v,S):d(v,E)}}function m(v){e&&(s.current=v.detail===l.current)}return[h,m]}var OKe=14/15;function kKe(e,t,n){var r=g.useRef(!1),a=g.useRef(0),i=g.useRef(null),o=g.useRef(null),l,s=function(f){if(r.current){var p=Math.ceil(f.touches[0].pageY),h=a.current-p;a.current=p,n(h)&&f.preventDefault(),clearInterval(o.current),o.current=setInterval(function(){h*=OKe,(!n(h,!0)||Math.abs(h)<=.1)&&clearInterval(o.current)},16)}},u=function(){r.current=!1,l()},c=function(f){l(),f.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(f.touches[0].pageY),i.current=f.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",u))};l=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",u))},Sn(function(){return e&&t.current.addEventListener("touchstart",c),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",c),l(),clearInterval(o.current)}},[e])}var RKe=20;function tJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,RKe),Math.floor(n)}function _Ke(e,t,n,r){var a=g.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=fe(a,2),o=i[0],l=i[1],s=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c,f=o.get(c),p=o.get(d);if(f===void 0||p===void 0)for(var h=e.length,m=l.length;mi||!!m),O=h==="rtl",R=ie(r,X({},"".concat(r,"-rtl"),O),a),N=c||DKe,_=g.useRef(),L=g.useRef(),$=g.useState(0),k=fe($,2),P=k[0],B=k[1],F=g.useState(0),D=fe(F,2),j=D[0],z=D[1],V=g.useState(!1),G=fe(V,2),W=G[0],Y=G[1],J=function(){Y(!0)},Z=function(){Y(!1)},K=g.useCallback(function(ot){return typeof f=="function"?f(ot):ot==null?void 0:ot[f]},[f]),ee={getKey:K};function ae(ot){B(function(Tt){var Ft;typeof ot=="function"?Ft=ot(Tt):Ft=ot;var an=ft(Ft);return _.current.scrollTop=an,an})}var te=g.useRef({start:0,end:N.length}),re=g.useRef(),se=AKe(N,K),ve=fe(se,1),ge=ve[0];re.current=ge;var xe=SKe(K,null,null),me=fe(xe,4),de=me[0],Ce=me[1],Ie=me[2],ke=me[3],Te=g.useMemo(function(){if(!T)return{scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};if(!A){var ot;return{scrollHeight:((ot=L.current)===null||ot===void 0?void 0:ot.offsetHeight)||0,start:0,end:N.length-1,offset:void 0}}for(var Tt=0,Ft,an,Bn,zn=N.length,kn=0;kn=P&&Ft===void 0&&(Ft=kn,an=Tt),gr>P+i&&Bn===void 0&&(Bn=kn),Tt=gr}return Ft===void 0&&(Ft=0,an=0,Bn=Math.ceil(i/o)),Bn===void 0&&(Bn=N.length-1),Bn=Math.min(Bn+1,N.length-1),{scrollHeight:Tt,start:Ft,end:Bn,offset:an}},[A,T,P,N,ke,i]),pe=Te.scrollHeight,Se=Te.start,Ee=Te.end,we=Te.offset;te.current.start=Se,te.current.end=Ee;var ue=g.useState({width:0,height:i}),Ae=fe(ue,2),_e=Ae[0],Re=Ae[1],Be=function(Tt){Re({width:Tt.width||Tt.offsetWidth,height:Tt.height||Tt.offsetHeight})},Me=g.useRef(),$e=g.useRef(),Fe=g.useMemo(function(){return tJ(_e.width,m)},[_e.width,m]),He=g.useMemo(function(){return tJ(_e.height,pe)},[_e.height,pe]),Le=pe-i,Ke=g.useRef(Le);Ke.current=Le;function ft(ot){var Tt=ot;return Number.isNaN(Ke.current)||(Tt=Math.min(Tt,Ke.current)),Tt=Math.max(Tt,0),Tt}var gt=P<=0,Nt=P>=Le,Je=ave(gt,Nt),je=function(){return{x:O?-j:j,y:P}},Ze=g.useRef(je()),Xe=jn(function(){if(x){var ot=je();(Ze.current.x!==ot.x||Ze.current.y!==ot.y)&&(x(ot),Ze.current=ot)}});function Ye(ot,Tt){var Ft=ot;Tt?(di.flushSync(function(){z(Ft)}),Xe()):ae(Ft)}function at(ot){var Tt=ot.currentTarget.scrollTop;Tt!==P&&ae(Tt),b==null||b(ot),Xe()}var It=function(Tt){var Ft=Tt,an=m-_e.width;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,an),Ft},Bt=jn(function(ot,Tt){Tt?(di.flushSync(function(){z(function(Ft){var an=Ft+(O?-ot:ot);return It(an)})}),Xe()):ae(function(Ft){var an=Ft+ot;return an})}),tt=IKe(T,gt,Nt,!!m,Bt),ut=fe(tt,2),wt=ut[0],Pt=ut[1];kKe(T,_,function(ot,Tt){return Je(ot,Tt)?!1:(wt({preventDefault:function(){},deltaY:ot}),!0)}),Sn(function(){function ot(Ft){T&&Ft.preventDefault()}var Tt=_.current;return Tt.addEventListener("wheel",wt),Tt.addEventListener("DOMMouseScroll",Pt),Tt.addEventListener("MozMousePixelScroll",ot),function(){Tt.removeEventListener("wheel",wt),Tt.removeEventListener("DOMMouseScroll",Pt),Tt.removeEventListener("MozMousePixelScroll",ot)}},[T]),Sn(function(){m&&z(function(ot){return It(ot)})},[_e.width,m]);var Yt=function(){var Tt,Ft;(Tt=Me.current)===null||Tt===void 0||Tt.delayHidden(),(Ft=$e.current)===null||Ft===void 0||Ft.delayHidden()},Kt=wKe(_,N,Ie,o,K,function(){return Ce(!0)},ae,Yt);g.useImperativeHandle(t,function(){return{getScrollInfo:je,scrollTo:function(Tt){function Ft(an){return an&&zt(an)==="object"&&("left"in an||"top"in an)}Ft(Tt)?(Tt.left!==void 0&&z(It(Tt.left)),Kt(Tt.top)):Kt(Tt)}}}),Sn(function(){if(E){var ot=N.slice(Se,Ee+1);E(ot,N)}},[Se,Ee,N]);var tn=_Ke(N,K,Ie,o),Ot=C==null?void 0:C({start:Se,end:Ee,virtual:A,offsetX:j,offsetY:we,rtl:O,getSize:tn}),lt=xKe(N,Se,Ee,m,de,d,ee),st=null;i&&(st=Q(X({},s?"height":"maxHeight",i),MKe),T&&(st.overflowY="hidden",m&&(st.overflowX="hidden"),W&&(st.pointerEvents="none")));var Ht={};return O&&(Ht.dir="rtl"),g.createElement("div",Ne({style:Q(Q({},u),{},{position:"relative"}),className:R},Ht,I),g.createElement(Si,{onResize:Be},g.createElement(y,{className:"".concat(r,"-holder"),style:st,ref:_,onScroll:at,onMouseEnter:Yt},g.createElement(rve,{prefixCls:r,height:pe,offsetX:j,offsetY:we,scrollWidth:m,onInnerResize:Ce,ref:L,innerProps:S,rtl:O,extra:Ot},lt))),A&&pe>i&&g.createElement(JZ,{ref:Me,prefixCls:r,scrollOffset:P,scrollRange:pe,rtl:O,onScroll:Ye,onStartMove:J,onStopMove:Z,spinSize:He,containerSize:_e.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb}),A&&m>_e.width&&g.createElement(JZ,{ref:$e,prefixCls:r,scrollOffset:j,scrollRange:m,rtl:O,onScroll:Ye,onStartMove:J,onStopMove:Z,spinSize:Fe,containerSize:_e.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb}))}var aR=g.forwardRef($Ke);aR.displayName="List";function LKe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var PKe=["disabled","title","children","style","className"];function nJ(e){return typeof e=="string"||typeof e=="number"}var FKe=function(t,n){var r=TYe(),a=r.prefixCls,i=r.id,o=r.open,l=r.multiple,s=r.mode,u=r.searchValue,c=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=g.useContext(O7),h=p.maxCount,m=p.flattenOptions,v=p.onActiveValue,y=p.defaultActiveFirstOption,b=p.onSelect,x=p.menuItemSelectedIcon,E=p.rawValues,S=p.fieldNames,C=p.virtual,w=p.direction,I=p.listHeight,T=p.listItemHeight,A=p.optionRender,O="".concat(a,"-item"),R=Ug(function(){return m},[o,m],function(K,ee){return ee[0]&&K[1]!==ee[1]}),N=g.useRef(null),_=g.useMemo(function(){return l&&s6(h)&&(E==null?void 0:E.size)>=h},[l,h,E==null?void 0:E.size]),L=function(ee){ee.preventDefault()},$=function(ee){var ae;(ae=N.current)===null||ae===void 0||ae.scrollTo(typeof ee=="number"?{index:ee}:ee)},k=function(ee){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=R.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;D(ee);var te={source:ae?"keyboard":"mouse"},re=R[ee];if(!re){v(null,-1,te);return}v(re.value,ee,te)};g.useEffect(function(){j(y!==!1?k(0):-1)},[R.length,u]);var z=g.useCallback(function(K){return E.has(K)&&s!=="combobox"},[s,Ue(E).toString(),E.size]);g.useEffect(function(){var K=setTimeout(function(){if(!l&&o&&E.size===1){var ae=Array.from(E)[0],te=R.findIndex(function(re){var se=re.data;return se.value===ae});te!==-1&&(j(te),$(te))}});if(o){var ee;(ee=N.current)===null||ee===void 0||ee.scrollTo(void 0)}return function(){return clearTimeout(K)}},[o,u]);var V=function(ee){ee!==void 0&&b(ee,{selected:!E.has(ee)}),l||c(!1)};if(g.useImperativeHandle(n,function(){return{onKeyDown:function(ee){var ae=ee.which,te=ee.ctrlKey;switch(ae){case Ve.N:case Ve.P:case Ve.UP:case Ve.DOWN:{var re=0;if(ae===Ve.UP?re=-1:ae===Ve.DOWN?re=1:LKe()&&te&&(ae===Ve.N?re=1:ae===Ve.P&&(re=-1)),re!==0){var se=k(F+re,re);$(se),j(se,!0)}break}case Ve.ENTER:{var ve,ge=R[F];ge&&!(ge!=null&&(ve=ge.data)!==null&&ve!==void 0&&ve.disabled)&&!_?V(ge.value):V(void 0),o&&ee.preventDefault();break}case Ve.ESC:c(!1),o&&ee.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ee){$(ee)}}}),R.length===0)return g.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(O,"-empty"),onMouseDown:L},d);var G=Object.keys(S).map(function(K){return S[K]}),W=function(ee){return ee.label};function Y(K,ee){var ae=K.group;return{role:ae?"presentation":"option",id:"".concat(i,"_list_").concat(ee)}}var J=function(ee){var ae=R[ee];if(!ae)return null;var te=ae.data||{},re=te.value,se=ae.group,ve=La(te,!0),ge=W(ae);return ae?g.createElement("div",Ne({"aria-label":typeof ge=="string"&&!se?ge:null},ve,{key:ee},Y(ae,ee),{"aria-selected":z(re)}),re):null},Z={role:"listbox",id:"".concat(i,"_list")};return g.createElement(g.Fragment,null,C&&g.createElement("div",Ne({},Z,{style:{height:0,width:0,overflow:"hidden"}}),J(F-1),J(F),J(F+1)),g.createElement(aR,{itemKey:"key",ref:N,data:R,height:I,itemHeight:T,fullHeight:!1,onMouseDown:L,onScroll:f,virtual:C,direction:w,innerProps:C?null:Z},function(K,ee){var ae=K.group,te=K.groupOption,re=K.data,se=K.label,ve=K.value,ge=re.key;if(ae){var xe,me=(xe=re.title)!==null&&xe!==void 0?xe:nJ(se)?se.toString():void 0;return g.createElement("div",{className:ie(O,"".concat(O,"-group"),re.className),title:me},se!==void 0?se:ge)}var de=re.disabled,Ce=re.title;re.children;var Ie=re.style,ke=re.className,Te=Lt(re,PKe),pe=Dr(Te,G),Se=z(ve),Ee=de||!Se&&_,we="".concat(O,"-option"),ue=ie(O,we,ke,X(X(X(X({},"".concat(we,"-grouped"),te),"".concat(we,"-active"),F===ee&&!Ee),"".concat(we,"-disabled"),Ee),"".concat(we,"-selected"),Se)),Ae=W(K),_e=!x||typeof x=="function"||Se,Re=typeof Ae=="number"?Ae:Ae||ve,Be=nJ(Re)?Re.toString():void 0;return Ce!==void 0&&(Be=Ce),g.createElement("div",Ne({},La(pe),C?{}:Y(K,ee),{"aria-selected":Se,className:ue,title:Be,onMouseMove:function(){F===ee||Ee||j(ee)},onClick:function(){Ee||V(ve)},style:Ie}),g.createElement("div",{className:"".concat(we,"-content")},typeof A=="function"?A(K,{index:ee}):Re),g.isValidElement(x)||Se,_e&&g.createElement(rR,{className:"".concat(O,"-option-state"),customizeIcon:x,customizeIconProps:{value:ve,disabled:Ee,isSelected:Se}},Se?"✓":null))}))},BKe=g.forwardRef(FKe);const zKe=function(e,t){var n=g.useRef({values:new Map,options:new Map}),r=g.useMemo(function(){var i=n.current,o=i.values,l=i.options,s=e.map(function(d){if(d.label===void 0){var f;return Q(Q({},d),{},{label:(f=o.get(d.value))===null||f===void 0?void 0:f.label})}return d}),u=new Map,c=new Map;return s.forEach(function(d){u.set(d.value,d),c.set(d.value,t.get(d.value)||l.get(d.value))}),n.current.values=u,n.current.options=c,s},[e,t]),a=g.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,a]};function $D(e,t){return eve(e).join("").toUpperCase().includes(t)}const HKe=function(e,t,n,r,a){return g.useMemo(function(){if(!n||r===!1)return e;var i=t.options,o=t.label,l=t.value,s=[],u=typeof r=="function",c=n.toUpperCase(),d=u?r:function(p,h){return a?$D(h[a],c):h[i]?$D(h[o!=="children"?o:"label"],c):$D(h[l],c)},f=u?function(p){return u6(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var h=d(n,f(p));if(h)s.push(p);else{var m=p[i].filter(function(v){return d(n,f(v))});m.length&&s.push(Q(Q({},p),{},X({},i,m)))}return}d(n,f(p))&&s.push(p)}),s},[e,r,a,n,t])};var rJ=0,jKe=Ti();function UKe(){var e;return jKe?(e=rJ,rJ+=1):e="TEST_OR_SSR",e}function VKe(e){var t=g.useState(),n=fe(t,2),r=n[0],a=n[1];return g.useEffect(function(){a("rc_select_".concat(UKe()))},[]),e||r}var WKe=["children","value"],GKe=["children"];function qKe(e){var t=e,n=t.key,r=t.props,a=r.children,i=r.value,o=Lt(r,WKe);return Q({key:n,value:i!==void 0?i:n,children:a},o)}function ive(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return wi(e).map(function(n,r){if(!g.isValidElement(n)||!n.type)return null;var a=n,i=a.type.isSelectOptGroup,o=a.key,l=a.props,s=l.children,u=Lt(l,GKe);return t||!i?qKe(n):Q(Q({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},u),{},{options:ive(s)})}).filter(function(n){return n})}var YKe=function(t,n,r,a,i){return g.useMemo(function(){var o=t,l=!t;l&&(o=ive(n));var s=new Map,u=new Map,c=function(p,h,m){m&&typeof m=="string"&&p.set(h[m],h)},d=function f(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m2&&arguments[2]!==void 0?arguments[2]:{},Pt=wt.source,Yt=Pt===void 0?"keyboard":Pt;Nt(ut),o&&r==="combobox"&&tt!==null&&Yt==="keyboard"&&Le(String(tt))},[o,r]),Ze=function(ut,wt,Pt){var Yt=function(){var an,Bn=pe(ut);return[B?{label:Bn==null?void 0:Bn[Y.label],value:ut,key:(an=Bn==null?void 0:Bn.key)!==null&&an!==void 0?an:ut}:ut,u6(Bn)]};if(wt&&p){var Kt=Yt(),tn=fe(Kt,2),Ot=tn[0],lt=tn[1];p(Ot,lt)}else if(!wt&&h&&Pt!=="clear"){var st=Yt(),Ht=fe(st,2),ot=Ht[0],Tt=Ht[1];h(ot,Tt)}},Xe=aJ(function(tt,ut){var wt,Pt=V?ut.selected:!0;Pt?wt=V?[].concat(Ue(Te),[tt]):[tt]:wt=Te.filter(function(Yt){return Yt.value!==tt}),Me(wt),Ze(tt,Pt),r==="combobox"?Le(""):(!c6||f)&&(ee(""),Le(""))}),Ye=function(ut,wt){Me(ut);var Pt=wt.type,Yt=wt.values;(Pt==="remove"||Pt==="clear")&&Yt.forEach(function(Kt){Ze(Kt.value,!1,Pt)})},at=function(ut,wt){if(ee(ut),Le(null),wt.source==="submit"){var Pt=(ut||"").trim();if(Pt){var Yt=Array.from(new Set([].concat(Ue(Ee),[Pt])));Me(Yt),Ze(Pt,!0),ee("")}return}wt.source!=="blur"&&(r==="combobox"&&Me(ut),c==null||c(ut))},It=function(ut){var wt=ut;r!=="tags"&&(wt=ut.map(function(Yt){var Kt=re.get(Yt);return Kt==null?void 0:Kt.value}).filter(function(Yt){return Yt!==void 0}));var Pt=Array.from(new Set([].concat(Ue(Ee),Ue(wt))));Me(Pt),Pt.forEach(function(Yt){Ze(Yt,!0)})},Bt=g.useMemo(function(){var tt=A!==!1&&v!==!1;return Q(Q({},ae),{},{flattenOptions:Be,onActiveValue:je,defaultActiveFirstOption:Je,onSelect:Xe,menuItemSelectedIcon:T,rawValues:Ee,fieldNames:Y,virtual:tt,direction:O,listHeight:N,listItemHeight:L,childrenAsData:G,maxCount:D,optionRender:C})},[D,ae,Be,je,Je,Xe,T,Ee,Y,A,v,O,N,L,G,C]);return g.createElement(O7.Provider,{value:Bt},g.createElement(yKe,Ne({},j,{id:z,prefixCls:i,ref:t,omitDomProps:XKe,mode:r,displayValues:Se,onDisplayValuesChange:Ye,direction:O,searchValue:K,onSearch:at,autoClearSearchValue:f,onSearchSplit:It,dropdownMatchSelectWidth:v,OptionList:BKe,emptyOptions:!Be.length,activeValue:He,activeDescendantId:"".concat(z,"_list_").concat(gt)})))}),_7=ZKe;_7.Option=R7;_7.OptGroup=k7;function Ep(e,t,n){return ie({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Cy=(e,t)=>t||e,JKe=()=>{const[,e]=Ka(),n=new Wn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return g.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(24 31.67)"},g.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),g.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),g.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),g.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),g.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),g.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),g.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},g.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),g.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},eXe=JKe,tXe=()=>{const[,e]=Ka(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:i,shadowColor:o,contentColor:l}=g.useMemo(()=>({borderColor:new Wn(t).onBackground(a).toHexShortString(),shadowColor:new Wn(n).onBackground(a).toHexShortString(),contentColor:new Wn(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return g.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},g.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},g.createElement("ellipse",{fill:o,cx:"32",cy:"33",rx:"32",ry:"7"}),g.createElement("g",{fillRule:"nonzero",stroke:i},g.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),g.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},nXe=tXe,rXe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:i,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},aXe=On("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=pn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[rXe(a)]});var iXe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=ove,description:i,children:o,imageStyle:l,style:s}=e,u=iXe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:c,direction:d,empty:f}=g.useContext(dt),p=c("empty",r),[h,m,v]=aXe(p),[y]=Wu("Empty"),b=typeof i<"u"?i:y==null?void 0:y.description,x=typeof b=="string"?b:"empty";let E=null;return typeof a=="string"?E=g.createElement("img",{alt:x,src:a}):E=a,h(g.createElement("div",Object.assign({className:ie(m,v,p,f==null?void 0:f.className,{[`${p}-normal`]:a===lve,[`${p}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},f==null?void 0:f.style),s)},u),g.createElement("div",{className:`${p}-image`,style:l},E),b&&g.createElement("div",{className:`${p}-description`},b),o&&g.createElement("div",{className:`${p}-footer`},o)))};N7.PRESENTED_IMAGE_DEFAULT=ove;N7.PRESENTED_IMAGE_SIMPLE=lve;const Eh=N7,oXe=e=>{const{componentName:t}=e,{getPrefixCls:n}=g.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return M.createElement(Eh,{image:Eh.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return M.createElement(Eh,{image:Eh.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return M.createElement(Eh,null)}},D7=oXe,lXe=["outlined","borderless","filled"],sXe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=g.useContext(yme);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const a=lXe.includes(r);return[r,a]},wy=sXe,uXe=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function cXe(e,t){return e||uXe(t)}const iJ=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},dXe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},In(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${a}${l}bottomLeft, + ${i}${l}bottomLeft + `]:{animationName:Xk},[` + ${a}${l}topLeft, + ${i}${l}topLeft, + ${a}${l}topRight, + ${i}${l}topRight + `]:{animationName:Zk},[`${o}${l}bottomLeft`]:{animationName:Qk},[` + ${o}${l}topLeft, + ${o}${l}topRight + `]:{animationName:Jk},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},iJ(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ps),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},iJ(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Rc(e,"slide-up"),Rc(e,"slide-down"),P0(e,"move-up"),P0(e,"move-down")]},fXe=dXe,Rm=2,pXe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},M7=(e,t)=>{const{componentCls:n,iconCls:r}=e,a=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,o=pXe(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{[a]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(Rm).mul(2).equal(),paddingBlock:e.calc(o).sub(Rm).equal(),borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ne(Rm)} 0`,lineHeight:ne(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Rm,marginBottom:Rm,lineHeight:ne(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(Rm).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},AS()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:ne(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function LD(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[M7(e,t),a]}const hXe=e=>{const{componentCls:t}=e,n=pn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=pn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[LD(e),LD(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},LD(r,"lg")]},gXe=hXe;function PD(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},In(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:ne(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${ne(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:ne(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ne(r)}`,"&:after":{display:"none"}}}}}}}function mXe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[PD(e),PD(pn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${ne(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},PD(pn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const vXe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:a,zIndexPopupBase:i,colorText:o,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:u,colorBgContainer:c,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:m}=e;return{zIndexPopup:i+50,optionSelectedColor:o,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:u,optionPadding:`${(r-t*n)/2}px ${a}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:c,clearBg:c,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},sve=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ne(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ne(a)} ${t.activeShadowColor}`,outline:0}}}},oJ=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},sve(e,t))}),yXe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},sve(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),oJ(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),oJ(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),uve=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ne(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},lJ=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},uve(e,t))}),bXe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},uve(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),lJ(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),lJ(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),xXe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),EXe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},yXe(e)),bXe(e)),xXe(e))}),SXe=EXe,CXe=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},wXe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},TXe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},In(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},CXe(e)),wXe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ps),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ps),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},AS()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},AXe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},TXe(e),mXe(e),gXe(e),fXe(e),{[`${t}-rtl`]:{direction:"rtl"}},kS(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},IXe=On("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=pn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[AXe(r),SXe(r)]},vXe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var OXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const cve=OXe;var kXe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:cve}))};const $7=g.forwardRef(kXe);var RXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const _Xe=RXe;var NXe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:_Xe}))};const iR=g.forwardRef(NXe);var DXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const MXe=DXe;var $Xe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:MXe}))};const F0=g.forwardRef($Xe);function dve(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:i,multiple:o,hasFeedback:l,prefixCls:s,showSuffixIcon:u,feedbackIcon:c,showArrow:d,componentName:f}=e;const p=n??g.createElement(Bp,null),h=b=>t===null&&!l&&!d?null:g.createElement(g.Fragment,null,u!==!1&&b,l&&c);let m=null;if(t!==void 0)m=h(t);else if(i)m=h(g.createElement(vg,{spin:!0}));else{const b=`${s}-suffix`;m=x=>{let{open:E,showSearch:S}=x;return h(E&&S?g.createElement(F0,{className:b}):g.createElement(iR,{className:b}))}}let v=null;r!==void 0?v=r:o?v=g.createElement($7,null):v=null;let y=null;return a!==void 0?y=a:y=g.createElement(Gu,null),{clearIcon:p,suffixIcon:m,itemIcon:v,removeIcon:y}}function LXe(e,t){return t!==void 0?t:e!==null}var PXe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:i,rootClassName:o,getPopupContainer:l,popupClassName:s,dropdownClassName:u,listHeight:c=256,placement:d,listItemHeight:f,size:p,disabled:h,notFoundContent:m,status:v,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:x,direction:E,style:S,allowClear:C,variant:w,dropdownStyle:I,transitionName:T,tagRender:A,maxCount:O}=e,R=PXe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:N,getPrefixCls:_,renderEmpty:L,direction:$,virtual:k,popupMatchSelectWidth:P,popupOverflow:B,select:F}=g.useContext(dt),[,D]=Ka(),j=f??(D==null?void 0:D.controlHeight),z=_("select",r),V=_(),G=E??$,{compactSize:W,compactItemClassnames:Y}=Hp(z,G),[J,Z]=wy(w,a),K=oa(z),[ee,ae,te]=IXe(z,K),re=g.useMemo(()=>{const{mode:He}=e;if(He!=="combobox")return He===fve?"combobox":He},[e.mode]),se=re==="multiple"||re==="tags",ve=LXe(e.suffixIcon,e.showArrow),ge=(n=x??b)!==null&&n!==void 0?n:P,{status:xe,hasFeedback:me,isFormItemInput:de,feedbackIcon:Ce}=g.useContext(No),Ie=Cy(xe,v);let ke;m!==void 0?ke=m:re==="combobox"?ke=null:ke=(L==null?void 0:L("Select"))||g.createElement(D7,{componentName:"Select"});const{suffixIcon:Te,itemIcon:pe,removeIcon:Se,clearIcon:Ee}=dve(Object.assign(Object.assign({},R),{multiple:se,hasFeedback:me,feedbackIcon:Ce,showSuffixIcon:ve,prefixCls:z,componentName:"Select"})),we=C===!0?{clearIcon:Ee}:C,ue=Dr(R,["suffixIcon","itemIcon"]),Ae=ie(s||u,{[`${z}-dropdown-${G}`]:G==="rtl"},o,te,K,ae),_e=co(He=>{var Le;return(Le=p??W)!==null&&Le!==void 0?Le:He}),Re=g.useContext(Ws),Be=h??Re,Me=ie({[`${z}-lg`]:_e==="large",[`${z}-sm`]:_e==="small",[`${z}-rtl`]:G==="rtl",[`${z}-${J}`]:Z,[`${z}-in-form-item`]:de},Ep(z,Ie,me),Y,F==null?void 0:F.className,i,o,te,K,ae),$e=g.useMemo(()=>d!==void 0?d:G==="rtl"?"bottomRight":"bottomLeft",[d,G]),[Fe]=jc("SelectLike",I==null?void 0:I.zIndex);return ee(g.createElement(_7,Object.assign({ref:t,virtual:k,showSearch:F==null?void 0:F.showSearch},ue,{style:Object.assign(Object.assign({},F==null?void 0:F.style),S),dropdownMatchSelectWidth:ge,transitionName:ml(V,"slide-up",T),builtinPlacements:cXe(y,B),listHeight:c,listItemHeight:j,mode:re,prefixCls:z,placement:$e,direction:G,suffixIcon:Te,menuItemSelectedIcon:pe,removeIcon:Se,allowClear:we,notFoundContent:ke,className:Me,getPopupContainer:l||N,dropdownClassName:Ae,disabled:Be,dropdownStyle:Object.assign(Object.assign({},I),{zIndex:Fe}),maxCount:se?O:void 0,tagRender:se?A:void 0})))},Ty=g.forwardRef(FXe),BXe=tR(Ty);Ty.SECRET_COMBOBOX_MODE_DO_NOT_USE=fve;Ty.Option=R7;Ty.OptGroup=k7;Ty._InternalPanelDoNotUseOrYouWillBeFired=BXe;const cl=Ty,Sp=["xxl","xl","lg","md","sm","xs"],zXe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),HXe=e=>{const t=e,n=[].concat(Sp).reverse();return n.forEach((r,a)=>{const i=r.toUpperCase(),o=`screen${i}Min`,l=`screen${i}`;if(!(t[o]<=t[l]))throw new Error(`${o}<=${l} fails : !(${t[o]}<=${t[l]})`);if(a{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(i){return a=i,n.forEach(o=>o(a)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(a),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const o=t[i],l=this.matchHandlers[o];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const o=t[i],l=u=>{let{matches:c}=u;this.dispatch(Object.assign(Object.assign({},a),{[i]:c}))},s=window.matchMedia(o);s.addListener(l),this.matchHandlers[o]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}function L7(){const[,e]=g.useReducer(t=>t+1,0);return e}function LS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=g.useRef({}),n=L7(),r=pve();return Sn(()=>{const a=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}const jXe=g.createContext({}),d6=jXe,UXe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:a,avatarColor:i,containerSize:o,containerSizeLG:l,containerSizeSM:s,textFontSize:u,textFontSizeLG:c,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:h,lineWidth:m,lineType:v}=e,y=(b,x,E)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:E},[`&${n}-icon`]:{fontSize:x,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${ne(m)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(o,u,f)),{"&-lg":Object.assign({},y(l,c,p)),"&-sm":Object.assign({},y(s,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},VXe=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:a}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:a}}}},WXe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:a,fontSizeLG:i,fontSizeXL:o,fontSizeHeading3:l,marginXS:s,marginXXS:u,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+o)/2),textFontSizeLG:l,textFontSizeSM:a,groupSpace:u,groupOverlapping:-s,groupBorderColor:c}},hve=On("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=pn(e,{avatarBg:n,avatarColor:t});return[UXe(r),VXe(r)]},WXe);var GXe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const[n,r]=g.useState(1),[a,i]=g.useState(!1),[o,l]=g.useState(!0),s=g.useRef(null),u=g.useRef(null),c=uo(t,s),{getPrefixCls:d,avatar:f}=g.useContext(dt),p=g.useContext(d6),h=()=>{if(!u.current||!s.current)return;const J=u.current.offsetWidth,Z=s.current.offsetWidth;if(J!==0&&Z!==0){const{gap:K=4}=e;K*2{i(!0)},[]),g.useEffect(()=>{l(!0),r(1)},[e.src]),g.useEffect(h,[e.gap]);const m=()=>{const{onError:J}=e;(J==null?void 0:J())!==!1&&l(!1)},{prefixCls:v,shape:y,size:b,src:x,srcSet:E,icon:S,className:C,rootClassName:w,alt:I,draggable:T,children:A,crossOrigin:O}=e,R=GXe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),N=co(J=>{var Z,K;return(K=(Z=b??(p==null?void 0:p.size))!==null&&Z!==void 0?Z:J)!==null&&K!==void 0?K:"default"}),_=Object.keys(typeof N=="object"?N||{}:{}).some(J=>["xs","sm","md","lg","xl","xxl"].includes(J)),L=LS(_),$=g.useMemo(()=>{if(typeof N!="object")return{};const J=Sp.find(K=>L[K]),Z=N[J];return Z?{width:Z,height:Z,fontSize:Z&&(S||A)?Z/2:18}:{}},[L,N]),k=d("avatar",v),P=oa(k),[B,F,D]=hve(k,P),j=ie({[`${k}-lg`]:N==="large",[`${k}-sm`]:N==="small"}),z=g.isValidElement(x),V=y||(p==null?void 0:p.shape)||"circle",G=ie(k,j,f==null?void 0:f.className,`${k}-${V}`,{[`${k}-image`]:z||x&&o,[`${k}-icon`]:!!S},D,P,C,w,F),W=typeof N=="number"?{width:N,height:N,fontSize:S?N/2:18}:{};let Y;if(typeof x=="string"&&o)Y=g.createElement("img",{src:x,draggable:T,srcSet:E,onError:m,alt:I,crossOrigin:O});else if(z)Y=x;else if(S)Y=S;else if(a||n!==1){const J=`scale(${n})`,Z={msTransform:J,WebkitTransform:J,transform:J};Y=g.createElement(Si,{onResize:h},g.createElement("span",{className:`${k}-string`,ref:u,style:Object.assign({},Z)},A))}else Y=g.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:u},A);return delete R.onError,delete R.gap,B(g.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign(Object.assign(Object.assign({},W),$),f==null?void 0:f.style),R.style),className:G,ref:c}),Y))},YXe=g.forwardRef(qXe),gve=YXe,B0=e=>e?typeof e=="function"?e():e:null;function P7(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,i=e.className,o=e.style;return g.createElement("div",{className:ie("".concat(n,"-content"),i),style:o},g.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var _m={shiftX:64,adjustY:1},Nm={adjustX:1,shiftY:!0},ms=[0,0],KXe={left:{points:["cr","cl"],overflow:Nm,offset:[-4,0],targetOffset:ms},right:{points:["cl","cr"],overflow:Nm,offset:[4,0],targetOffset:ms},top:{points:["bc","tc"],overflow:_m,offset:[0,-4],targetOffset:ms},bottom:{points:["tc","bc"],overflow:_m,offset:[0,4],targetOffset:ms},topLeft:{points:["bl","tl"],overflow:_m,offset:[0,-4],targetOffset:ms},leftTop:{points:["tr","tl"],overflow:Nm,offset:[-4,0],targetOffset:ms},topRight:{points:["br","tr"],overflow:_m,offset:[0,-4],targetOffset:ms},rightTop:{points:["tl","tr"],overflow:Nm,offset:[4,0],targetOffset:ms},bottomRight:{points:["tr","br"],overflow:_m,offset:[0,4],targetOffset:ms},rightBottom:{points:["bl","br"],overflow:Nm,offset:[4,0],targetOffset:ms},bottomLeft:{points:["tl","bl"],overflow:_m,offset:[0,4],targetOffset:ms},leftBottom:{points:["br","bl"],overflow:Nm,offset:[-4,0],targetOffset:ms}},XXe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],QXe=function(t,n){var r=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,l=o===void 0?0:o,s=t.mouseLeaveDelay,u=s===void 0?.1:s,c=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,p=t.children,h=t.onVisibleChange,m=t.afterVisibleChange,v=t.transitionName,y=t.animation,b=t.motion,x=t.placement,E=x===void 0?"right":x,S=t.align,C=S===void 0?{}:S,w=t.destroyTooltipOnHide,I=w===void 0?!1:w,T=t.defaultVisible,A=t.getTooltipContainer,O=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,N=t.id,_=t.showArrow,L=_===void 0?!0:_,$=Lt(t,XXe),k=g.useRef(null);g.useImperativeHandle(n,function(){return k.current});var P=Q({},$);"visible"in t&&(P.popupVisible=t.visible);var B=function(){return g.createElement(P7,{key:"content",prefixCls:f,id:N,overlayInnerStyle:O},R)};return g.createElement($S,Ne({popupClassName:r,prefixCls:f,popup:B,action:i,builtinPlacements:KXe,popupPlacement:E,ref:k,popupAlign:C,getPopupContainer:A,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:y,popupMotion:b,defaultPopupVisible:T,autoDestroy:I,mouseLeaveDelay:u,popupStyle:c,mouseEnterDelay:l,arrow:L},P),p)};const ZXe=g.forwardRef(QXe);function oR(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,i=0,o=a,l=r*1/Math.sqrt(2),s=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*a-u,f=c,p=2*a-l,h=s,m=2*a-i,v=o,y=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),x=`polygon(${b}px 100%, 50% ${b}px, ${2*a-b}px 100%, ${b}px 100%)`,E=`path('M ${i} ${o} A ${r} ${r} 0 0 0 ${l} ${s} L ${u} ${c} A ${n} ${n} 0 0 1 ${d} ${f} L ${p} ${h} A ${r} ${r} 0 0 0 ${m} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:E,arrowPolygon:x}}const mve=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:i,arrowShadowWidth:o,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ne(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},vve=8;function lR(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?vve:r}}function Vw(e,t){return e?t:{}}function F7(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:i,arrowOffsetHorizontal:o}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},mve(e,t,a)),{"&:before":{background:t}})]},Vw(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:o}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}})),Vw(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:o}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}})),Vw(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Vw(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function JXe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const o=Object.assign(Object.assign({},i),a);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const sJ={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},eQe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},tQe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function yve(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:i,visibleFirst:o}=e,l=t/2,s={};return Object.keys(sJ).forEach(u=>{const c=r&&eQe[u]||sJ[u],d=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[u]=d,tQe.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-l-a;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=l+a;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-l-a;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=l+a;break}const f=lR({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal+l;break}d.overflow=JXe(u,f,t,n),o&&(d.htmlRegion="visibleFirst")}),s}const nQe=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:o,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:c}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),{position:"absolute",zIndex:o,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${ne(e.calc(u).div(2).equal())} ${ne(c)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,vve)}},[`${t}-content`]:{position:"relative"}}),Hk(e,(d,f)=>{let{darkColor:p}=f;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},F7(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},rQe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},lR({contentRadius:e.borderRadius,limitVerticalRadius:!0})),oR(pn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),bve=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return On("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:i,colorBgSpotlight:o}=r,l=pn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:a,tooltipBg:o});return[nQe(l),Sy(r,"zoom-big-fast")]},rQe,{resetStyle:!1,injectStyle:t})(e)},aQe=cE.map(e=>`${e}-inverse`),iQe=["success","processing","error","default","warning"];function sR(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ue(aQe),Ue(cE)).includes(e):cE.includes(e)}function oQe(e){return iQe.includes(e)}function xve(e,t){const n=sR(t),r=ie({[`${e}-${t}`]:t&&n}),a={},i={};return t&&!n&&(a.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:i}}const lQe=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:i,overlayInnerStyle:o}=e,{getPrefixCls:l}=g.useContext(dt),s=l("tooltip",t),[u,c,d]=bve(s),f=xve(s,i),p=f.arrowStyle,h=Object.assign(Object.assign({},o),f.overlayStyle),m=ie(c,d,s,`${s}-pure`,`${s}-placement-${r}`,n,f.className);return u(g.createElement("div",{className:m,style:p},g.createElement("div",{className:`${s}-arrow`}),g.createElement(P7,Object.assign({},e,{className:c,prefixCls:s,overlayInnerStyle:h}),a)))},sQe=lQe;var uQe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:i,getTooltipContainer:o,overlayClassName:l,color:s,overlayInnerStyle:u,children:c,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:m,overlay:v,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:x=!0}=e,E=!!h,[,S]=Ka(),{getPopupContainer:C,getPrefixCls:w,direction:I}=g.useContext(dt),T=Qd(),A=g.useRef(null),O=()=>{var ke;(ke=A.current)===null||ke===void 0||ke.forceAlign()};g.useImperativeHandle(t,()=>({forceAlign:O,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),O()}}));const[R,N]=or(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),_=!m&&!v&&m!==0,L=ke=>{var Te,pe;N(_?!1:ke),_||((Te=e.onOpenChange)===null||Te===void 0||Te.call(e,ke),(pe=e.onVisibleChange)===null||pe===void 0||pe.call(e,ke))},$=g.useMemo(()=>{var ke,Te;let pe=b;return typeof h=="object"&&(pe=(Te=(ke=h.pointAtCenter)!==null&&ke!==void 0?ke:h.arrowPointAtCenter)!==null&&Te!==void 0?Te:b),y||yve({arrowPointAtCenter:pe,autoAdjustOverflow:x,arrowWidth:E?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})},[b,h,y,S]),k=g.useMemo(()=>m===0?m:v||m||"",[v,m]),P=g.createElement(kc,null,typeof k=="function"?k():k),{getPopupContainer:B,placement:F="top",mouseEnterDelay:D=.1,mouseLeaveDelay:j=.1,overlayStyle:z,rootClassName:V}=e,G=uQe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=w("tooltip",a),Y=w(),J=e["data-popover-inject"];let Z=R;!("open"in e)&&!("visible"in e)&&_&&(Z=!1);const K=g.isValidElement(c)&&!Hge(c)?c:g.createElement("span",null,c),ee=K.props,ae=!ee.className||typeof ee.className=="string"?ie(ee.className,i||`${W}-open`):ee.className,[te,re,se]=bve(W,!J),ve=xve(W,s),ge=ve.arrowStyle,xe=Object.assign(Object.assign({},u),ve.overlayStyle),me=ie(l,{[`${W}-rtl`]:I==="rtl"},ve.className,V,re,se),[de,Ce]=jc("Tooltip",G.zIndex),Ie=g.createElement(ZXe,Object.assign({},G,{zIndex:de,showArrow:E,placement:F,mouseEnterDelay:D,mouseLeaveDelay:j,prefixCls:W,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},ge),z),getTooltipContainer:B||o||C,ref:A,builtinPlacements:$,overlay:P,visible:Z,onVisibleChange:L,afterVisibleChange:d??f,overlayInnerStyle:xe,arrowContent:g.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:ml(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),Z?Ta(K,{className:ae}):K);return te(g.createElement(IS.Provider,{value:Ce},Ie))});Eve._InternalPanelDoNotUseOrYouWillBeFired=sQe;const Gs=Eve,cQe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:i,boxShadowSecondary:o,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:u,titleMarginBottom:c,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},In(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:o,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:c,color:l,fontWeight:a,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:h}})},F7(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},dQe=e=>{const{componentCls:t}=e;return{[t]:cE.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},fQe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:i,zIndexPopupBase:o,borderRadiusLG:l,marginXS:s,lineType:u,colorSplit:c,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,m=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},oR(e)),lR({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${p}px ${m}px ${h}px`:0,titleBorderBottom:i?`${t}px ${u} ${c}`:"none",innerContentPadding:i?`${d}px ${m}px`:0})},Sve=On("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=pn(e,{popoverBg:t,popoverColor:n});return[cQe(r),dQe(r),Sy(r,"zoom-big")]},fQe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var pQe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a!t&&!n?null:g.createElement(g.Fragment,null,t&&g.createElement("div",{className:`${e}-title`},B0(t)),g.createElement("div",{className:`${e}-inner-content`},B0(n))),gQe=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:i="top",title:o,content:l,children:s}=e;return g.createElement("div",{className:ie(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:a},g.createElement("div",{className:`${n}-arrow`}),g.createElement(P7,Object.assign({},e,{className:t,prefixCls:n}),s||hQe(n,o,l)))},mQe=e=>{const{prefixCls:t,className:n}=e,r=pQe(e,["prefixCls","className"]),{getPrefixCls:a}=g.useContext(dt),i=a("popover",t),[o,l,s]=Sve(i);return o(g.createElement(gQe,Object.assign({},r,{prefixCls:i,hashId:l,className:ie(n,s)})))},Cve=mQe;var vQe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{title:t,content:n,prefixCls:r}=e;return g.createElement(g.Fragment,null,t&&g.createElement("div",{className:`${r}-title`},B0(t)),g.createElement("div",{className:`${r}-inner-content`},B0(n)))},wve=g.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:a,overlayClassName:i,placement:o="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:u=.1,overlayStyle:c={}}=e,d=vQe(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=g.useContext(dt),p=f("popover",n),[h,m,v]=Sve(p),y=f(),b=ie(i,m,v);return h(g.createElement(Gs,Object.assign({placement:o,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:u,overlayStyle:c},d,{prefixCls:p,overlayClassName:b,ref:t,overlay:r||a?g.createElement(yQe,{prefixCls:p,title:r,content:a}):null,transitionName:ml(y,"zoom-big",d.transitionName),"data-popover-inject":!0})))});wve._InternalPanelDoNotUseOrYouWillBeFired=Cve;const B7=wve,uJ=e=>{const{size:t,shape:n}=g.useContext(d6),r=g.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return g.createElement(d6.Provider,{value:r},e.children)},bQe=e=>{const{getPrefixCls:t,direction:n}=g.useContext(dt),{prefixCls:r,className:a,rootClassName:i,style:o,maxCount:l,maxStyle:s,size:u,shape:c,maxPopoverPlacement:d="top",maxPopoverTrigger:f="hover",children:p}=e,h=t("avatar",r),m=`${h}-group`,v=oa(h),[y,b,x]=hve(h,v),E=ie(m,{[`${m}-rtl`]:n==="rtl"},x,v,a,i,b),S=wi(p).map((w,I)=>Ta(w,{key:`avatar-key-${I}`})),C=S.length;if(l&&l{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,motionDurationSlow:i,textFontSize:o,textFontSizeSM:l,statusSize:s,dotSize:u,textFontWeight:c,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:h}=e,m=`${r}-scroll-number`,v=Hk(e,(y,b)=>{let{darkColor:x}=b;return{[`&${t} ${t}-color-${y}`]:{background:x,[`&:not(${t}-count)`]:{color:x}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:c,fontSize:o,lineHeight:ne(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${ne(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:l,lineHeight:ne(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ne(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:u,minWidth:u,height:u,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ne(a)} ${e.badgeShadowColor}`},[`${t}-dot${m}`]:{transition:`background ${i}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:AQe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:EQe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:SQe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:CQe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:wQe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:TQe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${m}`]:{overflow:"hidden",[`${m}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Ave=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,i=t,o=n,l=e.colorBgContainer,s=e.colorError,u=e.colorErrorHover;return pn(e,{badgeFontHeight:i,badgeShadowSize:o,badgeTextColor:l,badgeColor:s,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ive=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},OQe=On("Badge",e=>{const t=Ave(e);return IQe(t)},Ive),kQe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:i}=e,o=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Hk(e,(u,c)=>{let{darkColor:d}=c;return{[`&${o}-color-${u}`]:{background:d,color:d}}});return{[`${l}`]:{position:"relative"},[`${o}`]:Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),{position:"absolute",top:r,padding:`0 ${ne(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ne(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${o}-text`]:{color:e.colorTextLightSolid},[`${o}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${ne(i(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${o}-placement-end`]:{insetInlineEnd:i(a).mul(-1).equal(),borderEndEndRadius:0,[`${o}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${o}-placement-start`]:{insetInlineStart:i(a).mul(-1).equal(),borderEndStartRadius:0,[`${o}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},RQe=On(["Badge","Ribbon"],e=>{const t=Ave(e);return kQe(t)},Ive),_Qe=e=>{const{className:t,prefixCls:n,style:r,color:a,children:i,text:o,placement:l="end",rootClassName:s}=e,{getPrefixCls:u,direction:c}=g.useContext(dt),d=u("ribbon",n),f=`${d}-wrapper`,[p,h,m]=RQe(d,f),v=sR(a,!1),y=ie(d,`${d}-placement-${l}`,{[`${d}-rtl`]:c==="rtl",[`${d}-color-${a}`]:v},t),b={},x={};return a&&!v&&(b.background=a,x.color=a),p(g.createElement("div",{className:ie(f,s,h,m)},i,g.createElement("div",{className:ie(y,h),style:Object.assign(Object.assign({},b),r)},g.createElement("span",{className:`${d}-text`},o),g.createElement("div",{className:`${d}-corner`,style:x}))))},NQe=_Qe;function cJ(e){let{prefixCls:t,value:n,current:r,offset:a=0}=e,i;return a&&(i={position:"absolute",top:`${a}00%`,left:0}),g.createElement("span",{style:i,className:ie(`${t}-only-unit`,{current:r})},n)}function DQe(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}function MQe(e){const{prefixCls:t,count:n,value:r}=e,a=Number(r),i=Math.abs(n),[o,l]=g.useState(a),[s,u]=g.useState(i),c=()=>{l(a),u(i)};g.useEffect(()=>{const p=setTimeout(()=>{c()},1e3);return()=>{clearTimeout(p)}},[a]);let d,f;if(o===a||Number.isNaN(a)||Number.isNaN(o))d=[g.createElement(cJ,Object.assign({},e,{key:a,current:!0}))],f={transition:"none"};else{d=[];const p=a+10,h=[];for(let y=a;y<=p;y+=1)h.push(y);const m=h.findIndex(y=>y%10===o);d=h.map((y,b)=>{const x=y%10;return g.createElement(cJ,Object.assign({},e,{key:y,value:x,offset:b-m,current:b===m}))});const v=s{const{prefixCls:n,count:r,className:a,motionClassName:i,style:o,title:l,show:s,component:u="sup",children:c}=e,d=$Qe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=g.useContext(dt),p=f("scroll-number",n),h=Object.assign(Object.assign({},d),{"data-show":s,style:o,className:ie(p,a,i),title:l});let m=r;if(r&&Number(r)%1===0){const v=String(r).split("");m=g.createElement("bdi",null,v.map((y,b)=>g.createElement(MQe,{prefixCls:p,count:Number(r),value:y,key:v.length-b})))}return o&&o.borderColor&&(h.style=Object.assign(Object.assign({},o),{boxShadow:`0 0 0 1px ${o.borderColor} inset`})),c?Ta(c,v=>({className:ie(`${p}-custom-component`,v==null?void 0:v.className,i)})):g.createElement(u,Object.assign({},h,{ref:t}),m)}),PQe=LQe;var FQe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,i,o;const{prefixCls:l,scrollNumberPrefixCls:s,children:u,status:c,text:d,color:f,count:p=null,overflowCount:h=99,dot:m=!1,size:v="default",title:y,offset:b,style:x,className:E,rootClassName:S,classNames:C,styles:w,showZero:I=!1}=e,T=FQe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:A,direction:O,badge:R}=g.useContext(dt),N=A("badge",l),[_,L,$]=OQe(N),k=p>h?`${h}+`:p,P=k==="0"||k===0,B=p===null||P&&!I,F=(c!=null||f!=null)&&B,D=m&&!P,j=D?"":k,z=g.useMemo(()=>(j==null||j===""||P&&!I)&&!D,[j,P,I,D]),V=g.useRef(p);z||(V.current=p);const G=V.current,W=g.useRef(j);z||(W.current=j);const Y=W.current,J=g.useRef(D);z||(J.current=D);const Z=g.useMemo(()=>{if(!b)return Object.assign(Object.assign({},R==null?void 0:R.style),x);const ge={marginTop:b[1]};return O==="rtl"?ge.left=parseInt(b[0],10):ge.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},ge),R==null?void 0:R.style),x)},[O,b,x,R==null?void 0:R.style]),K=y??(typeof G=="string"||typeof G=="number"?G:void 0),ee=z||!d?null:g.createElement("span",{className:`${N}-status-text`},d),ae=!G||typeof G!="object"?void 0:Ta(G,ge=>({style:Object.assign(Object.assign({},Z),ge.style)})),te=sR(f,!1),re=ie(C==null?void 0:C.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${N}-status-dot`]:F,[`${N}-status-${c}`]:!!c,[`${N}-color-${f}`]:te}),se={};f&&!te&&(se.color=f,se.background=f);const ve=ie(N,{[`${N}-status`]:F,[`${N}-not-a-wrapper`]:!u,[`${N}-rtl`]:O==="rtl"},E,S,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,C==null?void 0:C.root,L,$);if(!u&&F){const ge=Z.color;return _(g.createElement("span",Object.assign({},T,{className:ve,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.root),(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.root),Z)}),g.createElement("span",{className:re,style:Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.indicator),se)}),d&&g.createElement("span",{style:{color:ge},className:`${N}-status-text`},d)))}return _(g.createElement("span",Object.assign({ref:t},T,{className:ve,style:Object.assign(Object.assign({},(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),w==null?void 0:w.root)}),u,g.createElement(io,{visible:!z,motionName:`${N}-zoom`,motionAppear:!1,motionDeadline:1e3},ge=>{let{className:xe,ref:me}=ge;var de,Ce;const Ie=A("scroll-number",s),ke=J.current,Te=ie(C==null?void 0:C.indicator,(de=R==null?void 0:R.classNames)===null||de===void 0?void 0:de.indicator,{[`${N}-dot`]:ke,[`${N}-count`]:!ke,[`${N}-count-sm`]:v==="small",[`${N}-multiple-words`]:!ke&&Y&&Y.toString().length>1,[`${N}-status-${c}`]:!!c,[`${N}-color-${f}`]:te});let pe=Object.assign(Object.assign(Object.assign({},w==null?void 0:w.indicator),(Ce=R==null?void 0:R.styles)===null||Ce===void 0?void 0:Ce.indicator),Z);return f&&!te&&(pe=pe||{},pe.background=f),g.createElement(PQe,{prefixCls:Ie,show:!z,motionClassName:xe,className:Te,count:Y,title:K,style:pe,key:"scrollNumber",ref:me},ae)}),ee))},Ove=g.forwardRef(BQe);Ove.Ribbon=NQe;const z7=Ove;var zQe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const kve=zQe;var HQe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:kve}))};const z0=g.forwardRef(HQe);var jQe=Ve.ESC,UQe=Ve.TAB;function VQe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,i=e.overlayRef,o=g.useRef(!1),l=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.call(d),r==null||r(!1)}},s=function(){var d;return(d=i.current)!==null&&d!==void 0&&d.focus?(i.current.focus(),o.current=!0,!0):!1},u=function(d){switch(d.keyCode){case jQe:l();break;case UQe:{var f=!1;o.current||(f=s()),f?d.preventDefault():l();break}}};g.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&bn(s,3),function(){window.removeEventListener("keydown",u),o.current=!1}):function(){o.current=!1}},[t])}var WQe=g.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,i=g.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),o=uo(t,i==null?void 0:i.ref);return M.createElement(M.Fragment,null,r&&M.createElement("div",{className:"".concat(a,"-arrow")}),M.cloneElement(i,{ref:Mu(i)?o:void 0}))}),Dm={adjustX:1,adjustY:1},Mm=[0,0],GQe={topLeft:{points:["bl","tl"],overflow:Dm,offset:[0,-4],targetOffset:Mm},top:{points:["bc","tc"],overflow:Dm,offset:[0,-4],targetOffset:Mm},topRight:{points:["br","tr"],overflow:Dm,offset:[0,-4],targetOffset:Mm},bottomLeft:{points:["tl","bl"],overflow:Dm,offset:[0,4],targetOffset:Mm},bottom:{points:["tc","bc"],overflow:Dm,offset:[0,4],targetOffset:Mm},bottomRight:{points:["tr","br"],overflow:Dm,offset:[0,4],targetOffset:Mm}},qQe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function YQe(e,t){var n,r=e.arrow,a=r===void 0?!1:r,i=e.prefixCls,o=i===void 0?"rc-dropdown":i,l=e.transitionName,s=e.animation,u=e.align,c=e.placement,d=c===void 0?"bottomLeft":c,f=e.placements,p=f===void 0?GQe:f,h=e.getPopupContainer,m=e.showAction,v=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,x=e.visible,E=e.trigger,S=E===void 0?["hover"]:E,C=e.autoFocus,w=e.overlay,I=e.children,T=e.onVisibleChange,A=Lt(e,qQe),O=M.useState(),R=fe(O,2),N=R[0],_=R[1],L="visible"in e?x:N,$=M.useRef(null),k=M.useRef(null),P=M.useRef(null);M.useImperativeHandle(t,function(){return $.current});var B=function(J){_(J),T==null||T(J)};VQe({visible:L,triggerRef:P,onVisibleChange:B,autoFocus:C,overlayRef:k});var F=function(J){var Z=e.onOverlayClick;_(!1),Z&&Z(J)},D=function(){return M.createElement(WQe,{ref:k,overlay:w,prefixCls:o,arrow:a})},j=function(){return typeof w=="function"?D:D()},z=function(){var J=e.minOverlayWidthMatchTrigger,Z=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!Z},V=function(){var J=e.openClassName;return J!==void 0?J:"".concat(o,"-open")},G=M.cloneElement(I,{className:ie((n=I.props)===null||n===void 0?void 0:n.className,L&&V()),ref:Mu(I)?uo(P,I.ref):void 0}),W=v;return!W&&S.indexOf("contextMenu")!==-1&&(W=["click"]),M.createElement($S,Ne({builtinPlacements:p},A,{prefixCls:o,ref:$,popupClassName:ie(y,X({},"".concat(o,"-show-arrow"),a)),popupStyle:b,action:S,showAction:m,hideAction:W,popupPlacement:d,popupAlign:u,popupTransitionName:l,popupAnimation:s,popupVisible:L,stretch:z()?"minWidth":"",popup:j(),onPopupVisibleChange:B,onPopupClick:F,getPopupContainer:h}),G)}const Rve=M.forwardRef(YQe);var _ve=g.createContext(null);function Nve(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Dve(e){var t=g.useContext(_ve);return Nve(t,e)}var KQe=["children","locked"],Pu=g.createContext(null);function XQe(e,t){var n=Q({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function mE(e){var t=e.children,n=e.locked,r=Lt(e,KQe),a=g.useContext(Pu),i=Ug(function(){return XQe(a,r)},[a,r],function(o,l){return!n&&(o[0]!==l[0]||!Oc(o[1],l[1],!0))});return g.createElement(Pu.Provider,{value:i},t)}var QQe=[],Mve=g.createContext(null);function uR(){return g.useContext(Mve)}var $ve=g.createContext(QQe);function Ay(e){var t=g.useContext($ve);return g.useMemo(function(){return e!==void 0?[].concat(Ue(t),[e]):t},[t,e])}var Lve=g.createContext(null),H7=g.createContext({});function dJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(xy(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),o=null;return a&&!Number.isNaN(i)?o=i:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function ZQe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ue(e.querySelectorAll("*")).filter(function(r){return dJ(r,t)});return dJ(e,t)&&n.unshift(e),n}var f6=Ve.LEFT,p6=Ve.RIGHT,h6=Ve.UP,WT=Ve.DOWN,GT=Ve.ENTER,Pve=Ve.ESC,Ub=Ve.HOME,Vb=Ve.END,fJ=[h6,WT,f6,p6];function JQe(e,t,n,r){var a,i,o,l,s="prev",u="next",c="children",d="parent";if(e==="inline"&&r===GT)return{inlineTrigger:!0};var f=(a={},X(a,h6,s),X(a,WT,u),a),p=(i={},X(i,f6,n?u:s),X(i,p6,n?s:u),X(i,WT,c),X(i,GT,c),i),h=(o={},X(o,h6,s),X(o,WT,u),X(o,GT,c),X(o,Pve,d),X(o,f6,n?c:d),X(o,p6,n?d:c),o),m={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h},v=(l=m["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(v){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function eZe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function tZe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function j7(e,t){var n=ZQe(e,!0);return n.filter(function(r){return t.has(r)})}function pJ(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=j7(e,t),i=a.length,o=a.findIndex(function(l){return n===l});return r<0?o===-1?o=i-1:o-=1:r>0&&(o+=1),o=(o+i)%i,a[o]}var g6=function(t,n){var r=new Set,a=new Map,i=new Map;return t.forEach(function(o){var l=document.querySelector("[data-menu-id='".concat(Nve(n,o),"']"));l&&(r.add(l),i.set(l,o),a.set(o,l))}),{elements:r,key2element:a,element2key:i}};function nZe(e,t,n,r,a,i,o,l,s,u){var c=g.useRef(),d=g.useRef();d.current=t;var f=function(){bn.cancel(c.current)};return g.useEffect(function(){return function(){f()}},[]),function(p){var h=p.which;if([].concat(fJ,[GT,Pve,Ub,Vb]).includes(h)){var m=i(),v=g6(m,r),y=v,b=y.elements,x=y.key2element,E=y.element2key,S=x.get(t),C=tZe(S,b),w=E.get(C),I=JQe(e,o(w,!0).length===1,n,h);if(!I&&h!==Ub&&h!==Vb)return;(fJ.includes(h)||[Ub,Vb].includes(h))&&p.preventDefault();var T=function(k){if(k){var P=k,B=k.querySelector("a");B!=null&&B.getAttribute("href")&&(P=B);var F=E.get(k);l(F),f(),c.current=bn(function(){d.current===F&&P.focus()})}};if([Ub,Vb].includes(h)||I.sibling||!C){var A;!C||e==="inline"?A=a.current:A=eZe(C);var O,R=j7(A,b);h===Ub?O=R[0]:h===Vb?O=R[R.length-1]:O=pJ(A,b,C,I.offset),T(O)}else if(I.inlineTrigger)s(w);else if(I.offset>0)s(w,!0),f(),c.current=bn(function(){v=g6(m,r);var $=C.getAttribute("aria-controls"),k=document.getElementById($),P=pJ(k,v.elements);T(P)},5);else if(I.offset<0){var N=o(w,!0),_=N[N.length-2],L=x.get(_);s(_,!1),T(L)}}u==null||u(p)}}function rZe(e){Promise.resolve().then(e)}var U7="__RC_UTIL_PATH_SPLIT__",hJ=function(t){return t.join(U7)},aZe=function(t){return t.split(U7)},m6="rc-menu-more";function iZe(){var e=g.useState({}),t=fe(e,2),n=t[1],r=g.useRef(new Map),a=g.useRef(new Map),i=g.useState([]),o=fe(i,2),l=o[0],s=o[1],u=g.useRef(0),c=g.useRef(!1),d=function(){c.current||n({})},f=g.useCallback(function(x,E){var S=hJ(E);a.current.set(S,x),r.current.set(x,S),u.current+=1;var C=u.current;rZe(function(){C===u.current&&d()})},[]),p=g.useCallback(function(x,E){var S=hJ(E);a.current.delete(S),r.current.delete(x)},[]),h=g.useCallback(function(x){s(x)},[]),m=g.useCallback(function(x,E){var S=r.current.get(x)||"",C=aZe(S);return E&&l.includes(C[0])&&C.unshift(m6),C},[l]),v=g.useCallback(function(x,E){return x.some(function(S){var C=m(S,!0);return C.includes(E)})},[m]),y=function(){var E=Ue(r.current.keys());return l.length&&E.push(m6),E},b=g.useCallback(function(x){var E="".concat(r.current.get(x)).concat(U7),S=new Set;return Ue(a.current.keys()).forEach(function(C){C.startsWith(E)&&S.add(a.current.get(C))}),S},[]);return g.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:h,isSubPathKey:v,getKeyPath:m,getKeys:y,getSubPathKeys:b}}function C1(e){var t=g.useRef(e);t.current=e;var n=g.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o1&&(b.motionAppear=!1);var x=b.onVisibleChanged;return b.onVisibleChanged=function(E){return!f.current&&!E&&v(!0),x==null?void 0:x(E)},m?null:g.createElement(mE,{mode:i,locked:!f.current},g.createElement(io,Ne({visible:y},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(E){var S=E.className,C=E.style;return g.createElement(V7,{id:t,className:S,style:C},a)}))}var SZe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],CZe=["active"],wZe=function(t){var n,r=t.style,a=t.className,i=t.title,o=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,u=t.children,c=t.itemIcon,d=t.expandIcon,f=t.popupClassName,p=t.popupOffset,h=t.popupStyle,m=t.onClick,v=t.onMouseEnter,y=t.onMouseLeave,b=t.onTitleClick,x=t.onTitleMouseEnter,E=t.onTitleMouseLeave,S=Lt(t,SZe),C=Dve(o),w=g.useContext(Pu),I=w.prefixCls,T=w.mode,A=w.openKeys,O=w.disabled,R=w.overflowDisabled,N=w.activeKey,_=w.selectedKeys,L=w.itemIcon,$=w.expandIcon,k=w.onItemClick,P=w.onOpenChange,B=w.onActive,F=g.useContext(H7),D=F._internalRenderSubMenuItem,j=g.useContext(Lve),z=j.isSubPathKey,V=Ay(),G="".concat(I,"-submenu"),W=O||l,Y=g.useRef(),J=g.useRef(),Z=c??L,K=d??$,ee=A.includes(o),ae=!R&&ee,te=z(_,o),re=Fve(o,W,x,E),se=re.active,ve=Lt(re,CZe),ge=g.useState(!1),xe=fe(ge,2),me=xe[0],de=xe[1],Ce=function(Fe){W||de(Fe)},Ie=function(Fe){Ce(!0),v==null||v({key:o,domEvent:Fe})},ke=function(Fe){Ce(!1),y==null||y({key:o,domEvent:Fe})},Te=g.useMemo(function(){return se||(T!=="inline"?me||z([N],o):!1)},[T,se,N,me,o,z]),pe=Bve(V.length),Se=function(Fe){W||(b==null||b({key:o,domEvent:Fe}),T==="inline"&&P(o,!ee))},Ee=C1(function($e){m==null||m(II($e)),k($e)}),we=function(Fe){T!=="inline"&&P(o,Fe)},ue=function(){B(o)},Ae=C&&"".concat(C,"-popup"),_e=g.createElement("div",Ne({role:"menuitem",style:pe,className:"".concat(G,"-title"),tabIndex:W?null:-1,ref:Y,title:typeof i=="string"?i:null,"data-menu-id":R&&C?null:C,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Ae,"aria-disabled":W,onClick:Se,onFocus:ue},ve),i,g.createElement(zve,{icon:T!=="horizontal"?K:void 0,props:Q(Q({},t),{},{isOpen:ae,isSubMenu:!0})},g.createElement("i",{className:"".concat(G,"-arrow")}))),Re=g.useRef(T);if(T!=="inline"&&V.length>1?Re.current="vertical":Re.current=T,!R){var Be=Re.current;_e=g.createElement(xZe,{mode:Be,prefixCls:G,visible:!s&&ae&&T!=="inline",popupClassName:f,popupOffset:p,popupStyle:h,popup:g.createElement(mE,{mode:Be==="horizontal"?"vertical":Be},g.createElement(V7,{id:Ae,ref:J},u)),disabled:W,onVisibleChange:we},_e)}var Me=g.createElement(Ou.Item,Ne({role:"none"},S,{component:"li",style:r,className:ie(G,"".concat(G,"-").concat(T),a,(n={},X(n,"".concat(G,"-open"),ae),X(n,"".concat(G,"-active"),Te),X(n,"".concat(G,"-selected"),te),X(n,"".concat(G,"-disabled"),W),n)),onMouseEnter:Ie,onMouseLeave:ke}),_e,!R&&g.createElement(EZe,{id:Ae,open:ae,keyPath:V},u));return D&&(Me=D(Me,t,{selected:te,active:Te,open:ae,disabled:W})),g.createElement(mE,{onItemClick:Ee,mode:T==="horizontal"?"vertical":T,itemIcon:Z,expandIcon:K},Me)};function cR(e){var t=e.eventKey,n=e.children,r=Ay(t),a=W7(n,r),i=uR();g.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var o;return i?o=a:o=g.createElement(wZe,e,a),g.createElement($ve.Provider,{value:r},o)}var TZe=["className","title","eventKey","children"],AZe=["children"],IZe=function(t){var n=t.className,r=t.title;t.eventKey;var a=t.children,i=Lt(t,TZe),o=g.useContext(Pu),l=o.prefixCls,s="".concat(l,"-item-group");return g.createElement("li",Ne({role:"presentation"},i,{onClick:function(c){return c.stopPropagation()},className:ie(s,n)}),g.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),g.createElement("ul",{role:"group",className:"".concat(s,"-list")},a))};function dR(e){var t=e.children,n=Lt(e,AZe),r=Ay(n.eventKey),a=W7(t,r),i=uR();return i?a:g.createElement(IZe,Dr(n,["warnKey"]),a)}function G7(e){var t=e.className,n=e.style,r=g.useContext(Pu),a=r.prefixCls,i=uR();return i?null:g.createElement("li",{role:"separator",className:ie("".concat(a,"-item-divider"),t),style:n})}var OZe=["label","children","key","type"];function v6(e){return(e||[]).map(function(t,n){if(t&&zt(t)==="object"){var r=t,a=r.label,i=r.children,o=r.key,l=r.type,s=Lt(r,OZe),u=o??"tmp-".concat(n);return i||l==="group"?l==="group"?g.createElement(dR,Ne({key:u},s,{title:a}),v6(i)):g.createElement(cR,Ne({key:u},s,{title:a}),v6(i)):l==="divider"?g.createElement(G7,Ne({key:u},s)):g.createElement(FS,Ne({key:u},s),a)}return null}).filter(function(t){return t})}function kZe(e,t,n){var r=e;return t&&(r=v6(t)),W7(r,n)}var RZe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],$m=[],_Ze=g.forwardRef(function(e,t){var n,r,a=e,i=a.prefixCls,o=i===void 0?"rc-menu":i,l=a.rootClassName,s=a.style,u=a.className,c=a.tabIndex,d=c===void 0?0:c,f=a.items,p=a.children,h=a.direction,m=a.id,v=a.mode,y=v===void 0?"vertical":v,b=a.inlineCollapsed,x=a.disabled,E=a.disabledOverflow,S=a.subMenuOpenDelay,C=S===void 0?.1:S,w=a.subMenuCloseDelay,I=w===void 0?.1:w,T=a.forceSubMenuRender,A=a.defaultOpenKeys,O=a.openKeys,R=a.activeKey,N=a.defaultActiveFirst,_=a.selectable,L=_===void 0?!0:_,$=a.multiple,k=$===void 0?!1:$,P=a.defaultSelectedKeys,B=a.selectedKeys,F=a.onSelect,D=a.onDeselect,j=a.inlineIndent,z=j===void 0?24:j,V=a.motion,G=a.defaultMotions,W=a.triggerSubMenuAction,Y=W===void 0?"hover":W,J=a.builtinPlacements,Z=a.itemIcon,K=a.expandIcon,ee=a.overflowedIndicator,ae=ee===void 0?"...":ee,te=a.overflowedIndicatorPopupClassName,re=a.getPopupContainer,se=a.onClick,ve=a.onOpenChange,ge=a.onKeyDown;a.openAnimation,a.openTransitionName;var xe=a._internalRenderMenuItem,me=a._internalRenderSubMenuItem,de=Lt(a,RZe),Ce=g.useMemo(function(){return kZe(p,f,$m)},[p,f]),Ie=g.useState(!1),ke=fe(Ie,2),Te=ke[0],pe=ke[1],Se=g.useRef(),Ee=lZe(m),we=h==="rtl",ue=or(A,{value:O,postState:function(Dt){return Dt||$m}}),Ae=fe(ue,2),_e=Ae[0],Re=Ae[1],Be=function(Dt){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function _n(){Re(Dt),ve==null||ve(Dt)}Mt?di.flushSync(_n):_n()},Me=g.useState(_e),$e=fe(Me,2),Fe=$e[0],He=$e[1],Le=g.useRef(!1),Ke=g.useMemo(function(){return(y==="inline"||y==="vertical")&&b?["vertical",b]:[y,!1]},[y,b]),ft=fe(Ke,2),gt=ft[0],Nt=ft[1],Je=gt==="inline",je=g.useState(gt),Ze=fe(je,2),Xe=Ze[0],Ye=Ze[1],at=g.useState(Nt),It=fe(at,2),Bt=It[0],tt=It[1];g.useEffect(function(){Ye(gt),tt(Nt),Le.current&&(Je?Re(Fe):Be($m))},[gt,Nt]);var ut=g.useState(0),wt=fe(ut,2),Pt=wt[0],Yt=wt[1],Kt=Pt>=Ce.length-1||Xe!=="horizontal"||E;g.useEffect(function(){Je&&He(_e)},[_e]),g.useEffect(function(){return Le.current=!0,function(){Le.current=!1}},[]);var tn=iZe(),Ot=tn.registerPath,lt=tn.unregisterPath,st=tn.refreshOverflowKeys,Ht=tn.isSubPathKey,ot=tn.getKeyPath,Tt=tn.getKeys,Ft=tn.getSubPathKeys,an=g.useMemo(function(){return{registerPath:Ot,unregisterPath:lt}},[Ot,lt]),Bn=g.useMemo(function(){return{isSubPathKey:Ht}},[Ht]);g.useEffect(function(){st(Kt?$m:Ce.slice(Pt+1).map(function(An){return An.key}))},[Pt,Kt]);var zn=or(R||N&&((n=Ce[0])===null||n===void 0?void 0:n.key),{value:R}),kn=fe(zn,2),zr=kn[0],qr=kn[1],lr=C1(function(An){qr(An)}),gr=C1(function(){qr(void 0)});g.useImperativeHandle(t,function(){return{list:Se.current,focus:function(Dt){var Mt,_n=Tt(),Hn=g6(_n,Ee),ar=Hn.elements,Tr=Hn.key2element,Qt=Hn.element2key,Gt=j7(Se.current,ar),sr=zr??(Gt[0]?Qt.get(Gt[0]):(Mt=Ce.find(function(Rt){return!Rt.props.disabled}))===null||Mt===void 0?void 0:Mt.key),Ar=Tr.get(sr);if(sr&&Ar){var ga;Ar==null||(ga=Ar.focus)===null||ga===void 0||ga.call(Ar,Dt)}}}});var Xa=or(P||[],{value:B,postState:function(Dt){return Array.isArray(Dt)?Dt:Dt==null?$m:[Dt]}}),Qa=fe(Xa,2),jt=Qa[0],mn=Qa[1],Rn=function(Dt){if(L){var Mt=Dt.key,_n=jt.includes(Mt),Hn;k?_n?Hn=jt.filter(function(Tr){return Tr!==Mt}):Hn=[].concat(Ue(jt),[Mt]):Hn=[Mt],mn(Hn);var ar=Q(Q({},Dt),{},{selectedKeys:Hn});_n?D==null||D(ar):F==null||F(ar)}!k&&_e.length&&Xe!=="inline"&&Be($m)},kr=C1(function(An){se==null||se(II(An)),Rn(An)}),ha=C1(function(An,Dt){var Mt=_e.filter(function(Hn){return Hn!==An});if(Dt)Mt.push(An);else if(Xe!=="inline"){var _n=Ft(An);Mt=Mt.filter(function(Hn){return!_n.has(Hn)})}Oc(_e,Mt,!0)||Be(Mt,!0)}),mo=function(Dt,Mt){var _n=Mt??!_e.includes(Dt);ha(Dt,_n)},vo=nZe(Xe,zr,we,Ee,Se,Tt,ot,qr,mo,ge);g.useEffect(function(){pe(!0)},[]);var Za=g.useMemo(function(){return{_internalRenderMenuItem:xe,_internalRenderSubMenuItem:me}},[xe,me]),Yi=Xe!=="horizontal"||E?Ce:Ce.map(function(An,Dt){return g.createElement(mE,{key:An.key,overflowDisabled:Dt>Pt},An)}),Ja=g.createElement(Ou,Ne({id:m,ref:Se,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:FS,className:ie(o,"".concat(o,"-root"),"".concat(o,"-").concat(Xe),u,(r={},X(r,"".concat(o,"-inline-collapsed"),Bt),X(r,"".concat(o,"-rtl"),we),r),l),dir:h,style:s,role:"menu",tabIndex:d,data:Yi,renderRawItem:function(Dt){return Dt},renderRawRest:function(Dt){var Mt=Dt.length,_n=Mt?Ce.slice(-Mt):null;return g.createElement(cR,{eventKey:m6,title:ae,disabled:Kt,internalPopupClose:Mt===0,popupClassName:te},_n)},maxCount:Xe!=="horizontal"||E?Ou.INVALIDATE:Ou.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Dt){Yt(Dt)},onKeyDown:vo},de));return g.createElement(H7.Provider,{value:Za},g.createElement(_ve.Provider,{value:Ee},g.createElement(mE,{prefixCls:o,rootClassName:l,mode:Xe,openKeys:_e,rtl:we,disabled:x,motion:Te?V:null,defaultMotions:Te?G:null,activeKey:zr,onActive:lr,onInactive:gr,selectedKeys:jt,inlineIndent:z,subMenuOpenDelay:C,subMenuCloseDelay:I,forceSubMenuRender:T,builtinPlacements:J,triggerSubMenuAction:Y,getPopupContainer:re,itemIcon:Z,expandIcon:K,onItemClick:kr,onOpenChange:ha},g.createElement(Lve.Provider,{value:Bn},Ja),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(Mve.Provider,{value:an},Ce)))))}),Iy=_Ze;Iy.Item=FS;Iy.SubMenu=cR;Iy.ItemGroup=dR;Iy.Divider=G7;var NZe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const jve=NZe;var DZe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:jve}))};const MZe=g.forwardRef(DZe);var $Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Uve=$Ze;var LZe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Uve}))};const vE=g.forwardRef(LZe),PZe=e=>!isNaN(parseFloat(e))&&isFinite(e),FZe=PZe,Vve=g.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var BZe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),HZe=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:i,defaultCollapsed:o=!1,theme:l="dark",style:s={},collapsible:u=!1,reverseArrow:c=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:h,onCollapse:m,onBreakpoint:v}=e,y=BZe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=g.useContext(Vve),[x,E]=g.useState("collapsed"in e?e.collapsed:o),[S,C]=g.useState(!1);g.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const w=(N,_)=>{"collapsed"in e||E(N),m==null||m(N,_)},I=g.useRef();I.current=N=>{C(N.matches),v==null||v(N.matches),x!==N.matches&&w(N.matches,"responsive")},g.useEffect(()=>{function N(L){return I.current(L)}let _;if(typeof window<"u"){const{matchMedia:L}=window;if(L&&h&&h in mJ){_=L(`screen and (max-width: ${mJ[h]})`);try{_.addEventListener("change",N)}catch{_.addListener(N)}N(_)}}return()=>{try{_==null||_.removeEventListener("change",N)}catch{_==null||_.removeListener(N)}}},[h]),g.useEffect(()=>{const N=zZe("ant-sider-");return b.addSider(N),()=>b.removeSider(N)},[]);const T=()=>{w(!x,"clickTrigger")},{getPrefixCls:A}=g.useContext(dt),O=()=>{const N=A("layout-sider",n),_=Dr(y,["collapsed"]),L=x?f:d,$=FZe(L)?`${L}px`:String(L),k=parseFloat(String(f||0))===0?g.createElement("span",{onClick:T,className:ie(`${N}-zero-width-trigger`,`${N}-zero-width-trigger-${c?"right":"left"}`),style:p},a||g.createElement(MZe,null)):null,F={expanded:c?g.createElement(z0,null):g.createElement(vE,null),collapsed:c?g.createElement(vE,null):g.createElement(z0,null)}[x?"collapsed":"expanded"],D=a!==null?k||g.createElement("div",{className:`${N}-trigger`,onClick:T,style:{width:$}},a||F):null,j=Object.assign(Object.assign({},s),{flex:`0 0 ${$}`,maxWidth:$,minWidth:$,width:$}),z=ie(N,`${N}-${l}`,{[`${N}-collapsed`]:!!x,[`${N}-has-trigger`]:u&&a!==null&&!k,[`${N}-below`]:!!S,[`${N}-zero-width`]:parseFloat($)===0},r);return g.createElement("aside",Object.assign({className:z},_,{style:j,ref:t}),g.createElement("div",{className:`${N}-children`},i),u||S&&k?D:null)},R=g.useMemo(()=>({siderCollapsed:x}),[x]);return g.createElement(fR.Provider,{value:R},O())}),Wve=HZe;var jZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const Gve=jZe;var UZe=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Gve}))};const q7=g.forwardRef(UZe);var VZe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=VZe(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=g.useContext(dt),o=i("menu",t),l=ie({[`${o}-item-divider-dashed`]:!!r},n);return g.createElement(G7,Object.assign({className:l},a))},qve=WZe,GZe=g.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),OI=GZe,qZe=e=>{var t;const{className:n,children:r,icon:a,title:i,danger:o}=e,{prefixCls:l,firstLevel:s,direction:u,disableMenuItemTitleTooltip:c,inlineCollapsed:d}=g.useContext(OI),f=b=>{const x=g.createElement("span",{className:`${l}-title-content`},r);return(!a||g.isValidElement(r)&&r.type==="span")&&r&&b&&s&&typeof r=="string"?g.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):x},{siderCollapsed:p}=g.useContext(fR);let h=i;typeof i>"u"?h=s?r:"":i===!1&&(h="");const m={title:h};!p&&!d&&(m.title=null,m.open=!1);const v=wi(r).length;let y=g.createElement(FS,Object.assign({},Dr(e,["title","icon","danger"]),{className:ie({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(a?v+1:v)===1},n),title:typeof i=="string"?i:void 0}),Ta(a,{className:ie(g.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),f(d));return c||(y=g.createElement(Gs,Object.assign({},m,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),y)),y},Yve=qZe,YZe=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:i}=e,o=g.useContext(OI),{prefixCls:l,inlineCollapsed:s,theme:u}=o,c=Ay();let d;if(!r)d=s&&!c.length&&a&&typeof a=="string"?g.createElement("div",{className:`${l}-inline-collapsed-noicon`},a.charAt(0)):g.createElement("span",{className:`${l}-title-content`},a);else{const h=g.isValidElement(a)&&a.type==="span";d=g.createElement(g.Fragment,null,Ta(r,{className:ie(g.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h?a:g.createElement("span",{className:`${l}-title-content`},a))}const f=g.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[p]=jc("Menu");return g.createElement(OI.Provider,{value:f},g.createElement(cR,Object.assign({},Dr(e,["icon"]),{title:d,popupClassName:ie(l,n,`${l}-${i||u}`),popupStyle:{zIndex:p}})))},Kve=YZe;var KZe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t&&typeof t=="object"){const r=t,{label:a,children:i,key:o,type:l}=r,s=KZe(r,["label","children","key","type"]),u=o??`tmp-${n}`;return i||l==="group"?l==="group"?g.createElement(dR,Object.assign({key:u},s,{title:a}),y6(i)):g.createElement(Kve,Object.assign({key:u},s,{title:a}),y6(i)):l==="divider"?g.createElement(qve,Object.assign({key:u},s)):g.createElement(Yve,Object.assign({key:u},s),a)}return null}).filter(t=>t)}function XZe(e){return g.useMemo(()=>e&&y6(e),[e])}var QZe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=QZe(e,["children"]),a=g.useContext(kI),i=g.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=q9e(n),l=zc(t,o?n.ref:null);return g.createElement(kI.Provider,{value:i},g.createElement(kc,null,o?g.cloneElement(n,{ref:l}):n))}),ZZe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:i,lineType:o,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ne(i)} ${o} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, + > ${t}-item-active, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},JZe=ZZe,eJe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ne(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ne(n)})`}}}}},tJe=eJe,vJ=e=>Object.assign({},bp(e)),nJe=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,groupTitleColor:i,itemBg:o,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:c,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:v,itemHoverColor:y,lineType:b,colorSplit:x,itemDisabledColor:E,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:I,dangerItemSelectedBg:T,popupBg:A,itemHoverBg:O,itemActiveBg:R,menuSubMenuBg:N,horizontalItemSelectedColor:_,horizontalItemSelectedBg:L,horizontalItemBorderRadius:$,horizontalItemHoverBg:k}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:o,[`&${n}-root:focus-visible`]:Object.assign({},vJ(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:a}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},vJ(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:A},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:A},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:$,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${ne(u)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:u,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:u,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ne(d)} ${b} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ne(c)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(",")}}}}}},yJ=nJe,bJ=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:i,marginXS:o,itemMarginBlock:l,itemWidth:s}=e,u=e.calc(i).add(a).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ne(n),paddingInline:a,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ne(n)},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},rJe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:i,controlHeightLG:o,motionDurationMid:l,motionEaseOut:s,paddingXL:u,itemMarginInline:c,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:v}=e,y={height:r,lineHeight:ne(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},bJ(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},bJ(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${ne(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, + > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ne(e.calc(d).div(2).equal())} - ${ne(c)})`,textOverflow:"clip",[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:ne(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Ps),{paddingInline:p})}}]},aJe=rJe,xJ=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:i,iconCls:o,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${a}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},AS()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},EJ=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:i,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ne(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ne(o)})`}}}}},iJe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:i,motionEaseInOut:o,paddingXS:l,padding:s,colorSplit:u,lineWidth:c,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:m,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Lu()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),Lu()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ne(l)} ${ne(s)}`,fontSize:b,lineHeight:y,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:v,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xJ(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ne(e.calc(r).mul(2).equal())} ${ne(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},xJ(e)),EJ(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),EJ(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ne(m)})`},"&::after":{transform:`rotate(45deg) translateX(${ne(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ne(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ne(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ne(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},oJe=e=>{var t,n,r;const{colorPrimary:a,colorError:i,colorTextDisabled:o,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:c,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:v,controlHeightLG:y,lineHeight:b,colorBgElevated:x,marginXXS:E,padding:S,fontSize:C,controlHeightSM:w,fontSizeLG:I,colorTextLightSolid:T,colorErrorHover:A}=e,O=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,R=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,N=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,_=new Wn(T).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:c,itemBg:c,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:f,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:R,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:x,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:`${y*1.15}px`,iconSize:C,iconMarginInlineEnd:w-C,collapsedIconSize:I,groupTitleFontSize:C,darkItemDisabledColor:new Wn(T).setAlpha(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:a,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:T,darkDangerItemHoverColor:A,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${R}px)`:`calc(100% - ${N*2}px)`}},lJe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return On("Menu",a=>{const{colorBgElevated:i,controlHeightLG:o,fontSize:l,darkItemColor:s,darkDangerItemColor:u,darkItemBg:c,darkSubMenuItemBg:d,darkItemSelectedColor:f,darkItemSelectedBg:p,darkDangerItemSelectedBg:h,darkItemHoverBg:m,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:S,popupBg:C,darkPopupBg:w}=a,I=a.calc(l).div(7).mul(5).equal(),T=pn(a,{menuArrowSize:I,menuHorizontalHeight:a.calc(o).mul(1.15).equal(),menuArrowOffset:a.calc(I).mul(.25).equal(),menuSubMenuBg:i,calc:a.calc,popupBg:C}),A=pn(T,{itemColor:s,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:f,itemBg:c,popupBg:w,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:b,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:h,menuSubMenuBg:d,horizontalItemSelectedColor:f,horizontalItemSelectedBg:p});return[iJe(T),JZe(T),aJe(T),yJ(T,"light"),yJ(A,"dark"),tJe(T),eR(T),Rc(T,"slide-up"),Rc(T,"slide-down"),Sy(T,"zoom-big")]},oJe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var sJe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=g.useContext(kI),a=r||{},{getPrefixCls:i,getPopupContainer:o,direction:l,menu:s}=g.useContext(dt),u=i(),{prefixCls:c,className:d,style:f,theme:p="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:y,items:b,children:x,rootClassName:E,mode:S,selectable:C,onClick:w,overflowedIndicatorPopupClassName:I}=e,T=sJe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),A=Dr(T,["collapsedWidth"]),O=XZe(b)||x;(n=a.validator)===null||n===void 0||n.call(a,{mode:S});const R=jn(function(){var G;w==null||w.apply(void 0,arguments),(G=a.onClick)===null||G===void 0||G.call(a)}),N=a.mode||S,_=C??a.selectable,L=g.useMemo(()=>y!==void 0?y:v,[v,y]),$={horizontal:{motionName:`${u}-slide-up`},inline:dE(u),other:{motionName:`${u}-zoom-big`}},k=i("menu",c||a.prefixCls),P=oa(k),[B,F,D]=lJe(k,P,!r),j=ie(`${k}-${p}`,s==null?void 0:s.className,d),z=g.useMemo(()=>{var G,W;if(typeof h=="function"||FD(h))return h||null;if(typeof a.expandIcon=="function"||FD(a.expandIcon))return a.expandIcon||null;if(typeof(s==null?void 0:s.expandIcon)=="function"||FD(s==null?void 0:s.expandIcon))return(s==null?void 0:s.expandIcon)||null;const Y=(G=h??(a==null?void 0:a.expandIcon))!==null&&G!==void 0?G:s==null?void 0:s.expandIcon;return Ta(Y,{className:ie(`${k}-submenu-expand-icon`,g.isValidElement(Y)?(W=Y.props)===null||W===void 0?void 0:W.className:void 0)})},[h,a==null?void 0:a.expandIcon,s==null?void 0:s.expandIcon,k]),V=g.useMemo(()=>({prefixCls:k,inlineCollapsed:L||!1,direction:l,firstLevel:!0,theme:p,mode:N,disableMenuItemTitleTooltip:m}),[k,L,l,m,p]);return B(g.createElement(kI.Provider,{value:null},g.createElement(OI.Provider,{value:V},g.createElement(Iy,Object.assign({getPopupContainer:o,overflowedIndicator:g.createElement(q7,null),overflowedIndicatorPopupClassName:ie(k,`${k}-${p}`,I),mode:N,selectable:_,onClick:R},A,{inlineCollapsed:L,style:Object.assign(Object.assign({},s==null?void 0:s.style),f),className:j,prefixCls:k,direction:l,defaultMotions:$,expandIcon:z,ref:t,rootClassName:ie(E,F,a.rootClassName,D,P)}),O))))}),cJe=uJe,BS=g.forwardRef((e,t)=>{const n=g.useRef(null),r=g.useContext(fR);return g.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var i;(i=n.current)===null||i===void 0||i.focus(a)}})),g.createElement(cJe,Object.assign({ref:n},e,r))});BS.Item=Yve;BS.SubMenu=Kve;BS.Divider=qve;BS.ItemGroup=dR;const eo=BS,dJe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},fJe=dJe,pJe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:i,antCls:o,iconCls:l,motionDurationMid:s,paddingBlock:u,fontSize:c,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:m}=e;return[{[t]:Object.assign(Object.assign({},In(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${o}-btn`]:{[`& > ${l}-down, & > ${o}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Xk},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Zk},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Qk},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Jk}})},F7(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},xp(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ne(u)} ${ne(h)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:c,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ne(u)} ${ne(h)}`,color:e.colorText,fontWeight:"normal",fontSize:c,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},xp(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ne(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ne(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Rc(e,"slide-up"),Rc(e,"slide-down"),P0(e,"move-up"),P0(e,"move-down"),Sy(e,"zoom-big")]]},hJe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},lR({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),oR(e)),gJe=On("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,i=pn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[pJe(i),fJe(i)]},hJe),Y7=e=>{const{menu:t,arrow:n,prefixCls:r,children:a,trigger:i,disabled:o,dropdownRender:l,getPopupContainer:s,overlayClassName:u,rootClassName:c,overlayStyle:d,open:f,onOpenChange:p,visible:h,onVisibleChange:m,mouseEnterDelay:v=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x="",overlay:E,transitionName:S}=e,{getPopupContainer:C,getPrefixCls:w,direction:I,dropdown:T}=g.useContext(dt);Qd();const A=g.useMemo(()=>{const ae=w();return S!==void 0?S:x.includes("top")?`${ae}-slide-down`:`${ae}-slide-up`},[w,x,S]),O=g.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:I==="rtl"?"bottomRight":"bottomLeft",[x,I]),R=w("dropdown",r),N=oa(R),[_,L,$]=gJe(R,N),[,k]=Ka(),P=g.Children.only(a),B=Ta(P,{className:ie(`${R}-trigger`,{[`${R}-rtl`]:I==="rtl"},P.props.className),disabled:o}),F=o?[]:i;let D;F&&F.includes("contextMenu")&&(D=!0);const[j,z]=or(!1,{value:f??h}),V=jn(ae=>{p==null||p(ae,{source:"trigger"}),m==null||m(ae),z(ae)}),G=ie(u,c,L,$,N,T==null?void 0:T.className,{[`${R}-rtl`]:I==="rtl"}),W=yve({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:k.marginXXS,arrowWidth:n?k.sizePopupArrow:0,borderRadius:k.borderRadius}),Y=g.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(p==null||p(!1,{source:"menu"}),z(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),J=()=>{let ae;return t!=null&&t.items?ae=g.createElement(eo,Object.assign({},t)):typeof E=="function"?ae=E():ae=E,l&&(ae=l(ae)),ae=g.Children.only(typeof ae=="string"?g.createElement("span",null,ae):ae),g.createElement(Xve,{prefixCls:`${R}-menu`,rootClassName:ie($,N),expandIcon:g.createElement("span",{className:`${R}-menu-submenu-arrow`},g.createElement(z0,{className:`${R}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:te=>{}},ae)},[Z,K]=jc("Dropdown",d==null?void 0:d.zIndex);let ee=g.createElement(Rve,Object.assign({alignPoint:D},Dr(e,["rootClassName"]),{mouseEnterDelay:v,mouseLeaveDelay:y,visible:j,builtinPlacements:W,arrow:!!n,overlayClassName:G,prefixCls:R,getPopupContainer:s||C,transitionName:A,trigger:F,overlay:J,placement:O,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),d),{zIndex:Z})}),B);return Z&&(ee=g.createElement(IS.Provider,{value:K},ee)),_(ee)};function mJe(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const vJe=tR(Y7,"dropdown",e=>e,mJe),yJe=e=>g.createElement(vJe,Object.assign({},e),g.createElement("span",null));Y7._InternalPanelDoNotUseOrYouWillBeFired=yJe;const K7=Y7,Qve=e=>{let{children:t}=e;const{getPrefixCls:n}=g.useContext(dt),r=n("breadcrumb");return g.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};Qve.__ANT_BREADCRUMB_SEPARATOR=!0;const X7=Qve;var bJe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function Zve(e,t,n,r){if(n==null)return null;const{className:a,onClick:i}=t,o=bJe(t,["className","onClick"]),l=Object.assign(Object.assign({},La(o,{data:!0,aria:!0})),{onClick:i});return r!==void 0?g.createElement("a",Object.assign({},l,{className:ie(`${e}-link`,a),href:r}),n):g.createElement("span",Object.assign({},l,{className:ie(`${e}-link`,a)}),n)}function EJe(e,t){return(r,a,i,o,l)=>{if(t)return t(r,a,i,o);const s=xJe(r,a);return Zve(e,r,s,l)}}var b6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:i,dropdownProps:o,href:l}=e,u=(c=>{if(a||i){const d=Object.assign({},o);if(a){const f=a||{},{items:p}=f,h=b6(f,["items"]);d.menu=Object.assign(Object.assign({},h),{items:p==null?void 0:p.map((m,v)=>{var{key:y,title:b,label:x,path:E}=m,S=b6(m,["key","title","label","path"]);let C=x??b;return E&&(C=g.createElement("a",{href:`${l}${E}`},C)),Object.assign(Object.assign({},S),{key:y??v,label:C})})})}else i&&(d.overlay=i);return g.createElement(K7,Object.assign({placement:"bottom"},d),g.createElement("span",{className:`${t}-overlay-link`},c,g.createElement(iR,null)))}return c})(r);return u!=null?g.createElement(g.Fragment,null,g.createElement("li",null,u),n&&g.createElement(X7,null,n)):null},e0e=e=>{const{prefixCls:t,children:n,href:r}=e,a=b6(e,["prefixCls","children","href"]),{getPrefixCls:i}=g.useContext(dt),o=i("breadcrumb",t);return g.createElement(Jve,Object.assign({},a,{prefixCls:o}),Zve(o,a,n,r))};e0e.__ANT_BREADCRUMB_ITEM=!0;const SJe=e0e,CJe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},In(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${ne(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},xp(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + > ${n} + span, + > ${n} + a + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${ne(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},wJe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),TJe=On("Breadcrumb",e=>{const t=pn(e,{});return CJe(t)},wJe);var SJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:o}=i,l=SJ(i,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:o})})}),a}function IJe(e,t){return g.useMemo(()=>e||(t?t.map(AJe):null),[e,t])}var OJe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},Q7=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:i,routes:o,items:l,children:s,itemRender:u,params:c={}}=e,d=OJe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:f,direction:p,breadcrumb:h}=g.useContext(dt);let m;const v=f("breadcrumb",t),[y,b,x]=TJe(v),E=IJe(l,o),S=EJe(v,u);if(E&&E.length>0){const I=[],T=l||o;m=E.map((A,O)=>{const{path:R,key:N,type:_,menu:L,overlay:$,onClick:k,className:P,separator:B,dropdownProps:F}=A,D=kJe(c,R);D!==void 0&&I.push(D);const j=N??O;if(_==="separator")return g.createElement(X7,{key:j},B);const z={},V=O===E.length-1;L?z.menu=L:$&&(z.overlay=$);let{href:G}=A;return I.length&&D!==void 0&&(G=`#/${I.join("/")}`),g.createElement(Jve,Object.assign({key:j},z,La(A,{data:!0,aria:!0}),{className:P,dropdownProps:F,href:G,separator:V?"":n,onClick:k,prefixCls:v}),S(A,c,T,I,G))})}else if(s){const I=wi(s).length;m=wi(s).map((T,A)=>{if(!T)return T;const O=A===I-1;return Ta(T,{separator:O?"":n,key:A})})}const C=ie(v,h==null?void 0:h.className,{[`${v}-rtl`]:p==="rtl"},a,i,b,x),w=Object.assign(Object.assign({},h==null?void 0:h.style),r);return y(g.createElement("nav",Object.assign({className:C,style:w},d),g.createElement("ol",null,m)))};Q7.Item=SJe;Q7.Separator=X7;const t0e=Q7;var n0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(We,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",l="minute",s="hour",u="day",c="week",d="month",f="quarter",p="year",h="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var L=["th","st","nd","rd"],$=_%100;return"["+_+(L[($-20)%10]||L[$]||L[0])+"]"}},x=function(_,L,$){var k=String(_);return!k||k.length>=L?_:""+Array(L+1-k.length).join($)+_},E={s:x,z:function(_){var L=-_.utcOffset(),$=Math.abs(L),k=Math.floor($/60),P=$%60;return(L<=0?"+":"-")+x(k,2,"0")+":"+x(P,2,"0")},m:function _(L,$){if(L.date()<$.date())return-_($,L);var k=12*($.year()-L.year())+($.month()-L.month()),P=L.clone().add(k,d),B=$-P<0,F=L.clone().add(k+(B?-1:1),d);return+(-(k+($-P)/(B?P-F:F-P))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:d,y:p,w:c,d:u,D:h,h:s,m:l,s:o,ms:i,Q:f}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},S="en",C={};C[S]=b;var w="$isDayjsObject",I=function(_){return _ instanceof R||!(!_||!_[w])},T=function _(L,$,k){var P;if(!L)return S;if(typeof L=="string"){var B=L.toLowerCase();C[B]&&(P=B),$&&(C[B]=$,P=B);var F=L.split("-");if(!P&&F.length>1)return _(F[0])}else{var D=L.name;C[D]=L,P=D}return!k&&P&&(S=P),P||!k&&S},A=function(_,L){if(I(_))return _.clone();var $=typeof L=="object"?L:{};return $.date=_,$.args=arguments,new R($)},O=E;O.l=T,O.i=I,O.w=function(_,L){return A(_,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var R=function(){function _($){this.$L=T($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[w]=!0}var L=_.prototype;return L.parse=function($){this.$d=function(k){var P=k.date,B=k.utc;if(P===null)return new Date(NaN);if(O.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var F=P.match(v);if(F){var D=F[2]-1||0,j=(F[7]||"0").substring(0,3);return B?new Date(Date.UTC(F[1],D,F[3]||1,F[4]||0,F[5]||0,F[6]||0,j)):new Date(F[1],D,F[3]||1,F[4]||0,F[5]||0,F[6]||0,j)}}return new Date(P)}($),this.init()},L.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},L.$utils=function(){return O},L.isValid=function(){return this.$d.toString()!==m},L.isSame=function($,k){var P=A($);return this.startOf(k)<=P&&P<=this.endOf(k)},L.isAfter=function($,k){return A($)25){var c=o(this).startOf(r).add(1,r).date(u),d=o(this).endOf(n);if(c.isBefore(d))return 1}var f=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(f,n,!0);return p<0?o(this).startOf("week").week():Math.ceil(p)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(o0e);var MJe=o0e.exports;const $Je=Or(MJe);var l0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(We,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(l0e);var LJe=l0e.exports;const PJe=Or(LJe);var s0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(We,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var l=this,s=this.$locale();if(!this.isValid())return i.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),d==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return d}});return i.bind(this)(c)}}})})(s0e);var FJe=s0e.exports;const BJe=Or(FJe);var u0e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(We,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},s=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(v){this[m]=+v}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var y=v.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(m)}],d=function(m){var v=l[m];return v&&(v.indexOf?v:v.s.concat(v.f))},f=function(m,v){var y,b=l.meridiem;if(b){for(var x=1;x<=24;x+=1)if(m.indexOf(b(x,0,v))>-1){y=x>12;break}}else y=m===(v?"pm":"PM");return y},p={A:[o,function(m){this.afternoon=f(m,!1)}],a:[o,function(m){this.afternoon=f(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(m){var v=l.ordinal,y=m.match(/\d+/);if(this.day=y[0],v)for(var b=1;b<=31;b+=1)v(b).replace(/\[|\]/g,"")===m&&(this.day=b)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(m){var v=d("months"),y=(d("monthsShort")||v.map(function(b){return b.slice(0,3)})).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[o,function(m){var v=d("months").indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(m){this.year=s(m)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function h(m){var v,y;v=m,y=l&&l.formats;for(var b=(m=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,A,O){var R=O&&O.toUpperCase();return A||y[O]||n[O]||y[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,_,L){return _||L.slice(1)})})).match(r),x=b.length,E=0;E-1)return new Date((k==="X"?1e3:1)*$);var B=h(k)($),F=B.year,D=B.month,j=B.day,z=B.hours,V=B.minutes,G=B.seconds,W=B.milliseconds,Y=B.zone,J=new Date,Z=j||(F||D?1:J.getDate()),K=F||J.getFullYear(),ee=0;F&&!D||(ee=D>0?D-1:J.getMonth());var ae=z||0,te=V||0,re=G||0,se=W||0;return Y?new Date(Date.UTC(K,ee,Z,ae,te,re,se+60*Y.offset*1e3)):P?new Date(Date.UTC(K,ee,Z,ae,te,re,se)):new Date(K,ee,Z,ae,te,re,se)}catch{return new Date("")}}(S,I,C),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),O&&S!=this.format(I)&&(this.$d=new Date("")),l={}}else if(I instanceof Array)for(var N=I.length,_=1;_<=N;_+=1){w[1]=I[_-1];var L=y.apply(this,w);if(L.isValid()){this.$d=L.$d,this.$L=L.$L,this.init();break}_===N&&(this.$d=new Date(""))}else x.call(this,E)}}})})(u0e);var zJe=u0e.exports;const HJe=Or(zJe);Ir.extend(HJe);Ir.extend(BJe);Ir.extend(_Je);Ir.extend(DJe);Ir.extend($Je);Ir.extend(PJe);Ir.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var o=(i||"").replace("Wo","wo");return r.bind(this)(o)}});var jJe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Jp=function(t){var n=jJe[t];return n||t.split("_")[0]},CJ=function(){hhe(!1,"Not match any format. Please help to fire a issue about this.")},UJe={getNow:function(){return Ir()},getFixedDate:function(t){return Ir(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Ir().locale(Jp(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Jp(t)).weekday(0)},getWeek:function(t,n){return n.locale(Jp(t)).week()},getShortWeekDays:function(t){return Ir().locale(Jp(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Ir().locale(Jp(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Jp(t)).format(r)},parse:function(t,n,r){for(var a=Jp(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=g.useState([!1,!1]),a=fe(r,2),i=a[0],o=a[1],l=function(c,d){o(function(f){return sx(f,d,c)})},s=g.useMemo(function(){return i.map(function(u,c){if(u)return!0;var d=e[c];return d?!!(!n[c]&&!d||d&&t(d,{activeIndex:c})):!1})},[e,i,t,n]);return[s,l]}function h0e(e,t,n,r,a){var i="",o=[];return e&&o.push(a?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),i=o.join(":"),r&&(i+=".SSS"),a&&(i+=" A"),i}function WJe(e,t,n,r,a,i){var o=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,u=e.fieldMonthFormat,c=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,m=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,b=h0e(t,n,r,a,i);return Q(Q({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||b,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:c||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:y||v||"D"})}function g0e(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,i=t.showMillisecond,o=t.use12Hours;return M.useMemo(function(){return WJe(e,n,r,a,i,o)},[e,n,r,a,i,o])}function Wb(e,t,n){return n??t.some(function(r){return e.includes(r)})}var GJe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function qJe(e){var t=pR(e,GJe),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=zt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function YJe(e){return e&&typeof e=="string"}function m0e(e){var t=e.showTime,n=qJe(e),r=fe(n,2),a=r[0],i=r[1],o=t&&zt(t)==="object"?t:{},l=Q(Q({defaultOpenValue:o.defaultOpenValue||o.defaultValue},a),o),s=l.showMillisecond,u=l.showHour,c=l.showMinute,d=l.showSecond;return!u&&!c&&!d&&!s&&(u=!0,c=!0,d=!0),[l,Q(Q({},l),{},{showHour:u,showMinute:c,showSecond:d,showMillisecond:s}),l.format,i]}function v0e(e,t,n,r,a){var i=e==="time";if(e==="datetime"||i){for(var o=r,l=d0e(e,a,null),s=l,u=[t,n],c=0;c1&&(o=t.addDate(o,-7)),o}function xi(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function RI(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(o,l){n?r=e[o](r,e[a[l]](n)):r=e[o](r,0)}),r}function ZJe(e,t,n,r,a){var i=jn(function(o,l){return!!(n&&n(o,l)||r&&e.isAfter(r,o)&&!Ao(e,t,r,o,l.type)||a&&e.isAfter(o,a)&&!Ao(e,t,a,o,l.type))});return i}function JJe(e,t,n){return g.useMemo(function(){var r=d0e(e,t,n),a=Gg(r),i=a[0],o=zt(i)==="object"&&i.type==="mask"?i.format:null;return[a.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),o]},[e,t,n])}function eet(e,t,n){return typeof e[0]=="function"||n?!0:t}function tet(e,t,n,r){var a=jn(function(i,o){var l=Q({type:t},o);if(delete l.activeIndex,!e.isValidate(i)||n&&n(i,l))return!0;if((t==="date"||t==="time")&&r){var s,u=((s=r.disabledTime)===null||s===void 0?void 0:s.call(r,i,o&&o.activeIndex===1?"end":"start"))||{},c=u.disabledHours,d=u.disabledMinutes,f=u.disabledSeconds,p=u.disabledMilliseconds,h=r.disabledHours,m=r.disabledMinutes,v=r.disabledSeconds,y=c||h,b=d||m,x=f||v,E=e.getHour(i),S=e.getMinute(i),C=e.getSecond(i),w=e.getMillisecond(i);if(y&&y().includes(E)||b&&b(E).includes(S)||x&&x(E,S).includes(C)||p&&p(E,S,C).includes(w))return!0}return!1});return a}function Gw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=g.useMemo(function(){var r=e&&Gg(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function x0e(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,i=a===void 0?"date":a,o=e.prefixCls,l=o===void 0?"rc-picker":o,s=e.styles,u=s===void 0?{}:s,c=e.classNames,d=c===void 0?{}:c,f=e.order,p=f===void 0?!0:f,h=e.components,m=h===void 0?{}:h,v=e.inputRender,y=e.allowClear,b=e.clearIcon,x=e.needConfirm,E=e.multiple,S=e.format,C=e.inputReadOnly,w=e.disabledDate,I=e.minDate,T=e.maxDate,A=e.showTime,O=e.value,R=e.defaultValue,N=e.pickerValue,_=e.defaultPickerValue,L=Gw(O),$=Gw(R),k=Gw(N),P=Gw(_),B=i==="date"&&A?"datetime":i,F=B==="time"||B==="datetime",D=F||E,j=x??F,z=m0e(e),V=fe(z,4),G=V[0],W=V[1],Y=V[2],J=V[3],Z=g0e(r,W),K=g.useMemo(function(){return v0e(B,Y,J,G,Z)},[B,Y,J,G,Z]),ee=g.useMemo(function(){return Q(Q({},e),{},{prefixCls:l,locale:Z,picker:i,styles:u,classNames:d,order:p,components:Q({input:v},m),clearIcon:KJe(l,y,b),showTime:K,value:L,defaultValue:$,pickerValue:k,defaultPickerValue:P},t==null?void 0:t())},[e]),ae=JJe(B,Z,S),te=fe(ae,2),re=te[0],se=te[1],ve=eet(re,C,E),ge=ZJe(n,r,w,I,T),xe=tet(n,i,w,K),me=g.useMemo(function(){return Q(Q({},ee),{},{needConfirm:j,inputReadOnly:ve,disabledDate:ge})},[ee,j,ve,ge]);return[me,B,D,re,se,xe]}function net(e,t,n){var r=or(t,{value:e}),a=fe(r,2),i=a[0],o=a[1],l=M.useRef(e),s=M.useRef(),u=function(){bn.cancel(s.current)},c=jn(function(){o(l.current),n&&i!==l.current&&n(l.current)}),d=jn(function(f,p){u(),l.current=f,f||p?c():s.current=bn(c)});return M.useEffect(function(){return u},[]),[i,d]}function E0e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(c){return c})?!1:e,i=net(a,t||!1,r),o=fe(i,2),l=o[0],s=o[1];function u(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||l)&&s(c,d.force)}return[l,u]}function S0e(e){var t=g.useRef();return g.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var i;(i=t.current)===null||i===void 0||i.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function C0e(e,t){return g.useMemo(function(){return e||(t?(Rr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=fe(n,2),a=r[0],i=r[1];return{label:a,value:i}})):[])},[e,t])}function n9(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=g.useRef(t);r.current=t,Yh(function(){if(e)r.current(e);else{var a=bn(function(){r.current(e)},n);return function(){bn.cancel(a)}}},[e])}function w0e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=g.useState(0),r=fe(n,2),a=r[0],i=r[1],o=g.useState(!1),l=fe(o,2),s=l[0],u=l[1],c=g.useRef([]),d=g.useRef(null),f=function(v){u(v)},p=function(v){return v&&(d.current=v),d.current},h=function(v){var y=c.current,b=new Set(y.filter(function(E){return v[E]||t[E]})),x=y[y.length-1]===0?1:0;return b.size>=2||e[x]?null:x};return n9(s,function(){s||(c.current=[])}),g.useEffect(function(){s&&c.current.push(a)},[s,a]),[s,f,p,a,i,h,c.current]}function ret(e,t,n,r,a,i){var o=n[n.length-1],l=n.find(function(u){return e[u]}),s=function(c,d){var f=fe(e,2),p=f[0],h=f[1],m=Q(Q({},d),{},{from:o!==l?e[l]:void 0});return o===1&&t[0]&&p&&!Ao(r,a,p,c,m.type)&&r.isAfter(p,c)||o===0&&t[1]&&h&&!Ao(r,a,h,c,m.type)&&r.isAfter(c,h)?!0:i==null?void 0:i(c,m)};return s}function T1(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var zD=[];function T0e(e,t,n,r,a,i,o,l){var s=arguments.length>8&&arguments[8]!==void 0?arguments[8]:zD,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:zD,c=arguments.length>10&&arguments[10]!==void 0?arguments[10]:zD,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h=o==="time",m=i||0,v=function(k){var P=e.getNow();return h&&(P=RI(e,P)),s[k]||n[k]||P},y=fe(u,2),b=y[0],x=y[1],E=or(function(){return v(0)},{value:b}),S=fe(E,2),C=S[0],w=S[1],I=or(function(){return v(1)},{value:x}),T=fe(I,2),A=T[0],O=T[1],R=g.useMemo(function(){var $=[C,A][m];return h?$:RI(e,$,c[m])},[h,C,A,m,e,c]),N=function(k){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",B=[w,O][m];B(k);var F=[C,A];F[m]=k,d&&(!Ao(e,t,C,F[0],o)||!Ao(e,t,A,F[1],o))&&d(F,{source:P,range:m===1?"end":"start",mode:r})},_=function(k,P){if(l){var B={date:"month",week:"month",month:"year",quarter:"year"},F=B[o];if(F&&!Ao(e,t,k,P,F))return T1(e,o,P,-1);if(o==="year"){var D=Math.floor(e.getYear(k)/10),j=Math.floor(e.getYear(P)/10);if(D!==j)return T1(e,o,P,-1)}}return P},L=g.useRef(null);return Sn(function(){if(a&&!s[m]){var $=h?null:e.getNow();if(L.current!==null&&L.current!==m?$=[C,A][m^1]:n[m]?$=m===0?n[0]:_(n[0],n[1]):n[m^1]&&($=n[m^1]),$){f&&e.isAfter(f,$)&&($=f);var k=l?T1(e,o,$,1):$;p&&e.isAfter(k,p)&&($=l?T1(e,o,p,-1):p),N($,"reset")}}},[a,m,n[m]]),g.useEffect(function(){a?L.current=m:L.current=null},[a,m]),Sn(function(){a&&s&&s[m]&&N(s[m],"reset")},[a,m]),[R,N]}function A0e(e,t){var n=g.useRef(e),r=g.useState({}),a=fe(r,2),i=a[1],o=function(u){return u&&t!==void 0?t:n.current},l=function(u){n.current=u,i({})};return[o,l,o(!0)]}var aet=[];function I0e(e,t,n){var r=function(o){return o.map(function(l){return xi(l,{generateConfig:e,locale:t,format:n[0]})})},a=function(o,l){for(var s=Math.max(o.length,l.length),u=-1,c=0;c2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],l=n>=1?n|0:1,s=e;s<=t;s+=l){var u=a.includes(s);(!u||!r)&&o.push({label:Z7(s,i),value:s,disabled:u})}return o}function r9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,i=r.hourStep,o=i===void 0?1:i,l=r.minuteStep,s=l===void 0?1:l,u=r.secondStep,c=u===void 0?1:u,d=r.millisecondStep,f=d===void 0?100:d,p=r.hideDisabledOptions,h=r.disabledTime,m=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,b=g.useMemo(function(){return n||e.getNow()},[n,e]),x=g.useCallback(function(P){var B=(h==null?void 0:h(P))||{};return[B.disabledHours||m||qw,B.disabledMinutes||v||qw,B.disabledSeconds||y||qw,B.disabledMilliseconds||qw]},[h,m,v,y]),E=g.useMemo(function(){return x(b)},[b,x]),S=fe(E,4),C=S[0],w=S[1],I=S[2],T=S[3],A=g.useCallback(function(P,B,F,D){var j=Yw(0,23,o,p,P()),z=a?j.map(function(Y){return Q(Q({},Y),{},{label:Z7(Y.value%12||12,2)})}):j,V=function(J){return Yw(0,59,s,p,B(J))},G=function(J,Z){return Yw(0,59,c,p,F(J,Z))},W=function(J,Z,K){return Yw(0,999,f,p,D(J,Z,K),3)};return[z,V,G,W]},[p,o,a,f,s,c]),O=g.useMemo(function(){return A(C,w,I,T)},[A,C,w,I,T]),R=fe(O,4),N=R[0],_=R[1],L=R[2],$=R[3],k=function(B,F){var D=function(){return N},j=_,z=L,V=$;if(F){var G=x(F),W=fe(G,4),Y=W[0],J=W[1],Z=W[2],K=W[3],ee=A(Y,J,Z,K),ae=fe(ee,4),te=ae[0],re=ae[1],se=ae[2],ve=ae[3];D=function(){return te},j=re,z=se,V=ve}var ge=oet(B,D,j,z,V,e);return ge};return[k,N,_,L,$]}function set(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,i=e.showTime,o=e.onSubmit,l=e.onNow,s=e.invalid,u=e.needConfirm,c=e.generateConfig,d=e.disabledDate,f=g.useContext(qu),p=f.prefixCls,h=f.locale,m=f.button,v=m===void 0?"button":m,y=c.getNow(),b=r9(c,i,y),x=fe(b,1),E=x[0],S=r==null?void 0:r(t),C=d(y,{type:t}),w=function(){if(!C){var _=E(y);l(_)}},I="".concat(p,"-now"),T="".concat(I,"-btn"),A=a&&g.createElement("li",{className:I},g.createElement("a",{className:ie(T,C&&"".concat(T,"-disabled")),"aria-disabled":C,onClick:w},n==="date"?h.today:h.now)),O=u&&g.createElement("li",{className:"".concat(p,"-ok")},g.createElement(v,{disabled:s,onClick:o},h.ok)),R=(A||O)&&g.createElement("ul",{className:"".concat(p,"-ranges")},A,O);return!S&&!R?null:g.createElement("div",{className:"".concat(p,"-footer")},S&&g.createElement("div",{className:"".concat(p,"-footer-extra")},S),R)}function N0e(e,t,n){function r(a,i){var o=a.findIndex(function(s){return Ao(e,t,s,i,n)});if(o===-1)return[].concat(Ue(a),[i]);var l=Ue(a);return l.splice(o,1),l}return r}var qg=g.createContext(null);function gR(){return g.useContext(qg)}function Oy(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,i=e.disabledDate,o=e.minDate,l=e.maxDate,s=e.cellRender,u=e.hoverValue,c=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,h=e.onSelect,m=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,b=e.superNextIcon,x=r.getNow(),E={now:x,values:f,pickerValue:p,prefixCls:n,disabledDate:i,minDate:o,maxDate:l,cellRender:s,hoverValue:u,hoverRangeValue:c,onHover:d,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:m,nextIcon:v,superPrevIcon:y,superNextIcon:b};return[E,x]}var ip=g.createContext({});function zS(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,i=e.prefixColumn,o=e.rowClassName,l=e.titleFormat,s=e.getCellText,u=e.getCellClassName,c=e.headerCells,d=e.cellSelection,f=d===void 0?!0:d,p=e.disabledDate,h=gR(),m=h.prefixCls,v=h.panelType,y=h.now,b=h.disabledDate,x=h.cellRender,E=h.onHover,S=h.hoverValue,C=h.hoverRangeValue,w=h.generateConfig,I=h.values,T=h.locale,A=h.onSelect,O=p||b,R="".concat(m,"-cell"),N=g.useContext(ip),_=N.onCellDblClick,L=function(z){return I.some(function(V){return V&&Ao(w,T,z,V,v)})},$=[],k=0;k1&&arguments[1]!==void 0?arguments[1]:!1;Ie($e),v==null||v($e),Fe&&ke($e)},pe=function($e,Fe){Z($e),Fe&&Te(Fe),ke(Fe,$e)},Se=function($e){if(xe($e),Te($e),J!==E){var Fe=["decade","year"],He=[].concat(Fe,["month"]),Le={quarter:[].concat(Fe,["quarter"]),week:[].concat(Ue(He),["week"]),date:[].concat(Ue(He),["date"])},Ke=Le[E]||He,ft=Ke.indexOf(J),gt=Ke[ft+1];gt&&pe(gt,$e)}},Ee=g.useMemo(function(){var Me,$e;if(Array.isArray(w)){var Fe=fe(w,2);Me=Fe[0],$e=Fe[1]}else Me=w;return!Me&&!$e?null:(Me=Me||$e,$e=$e||Me,a.isAfter(Me,$e)?[$e,Me]:[Me,$e])},[w,a]),we=J7(I,T,A),ue=R[K]||bet[K]||mR,Ae=g.useContext(ip),_e=g.useMemo(function(){return Q(Q({},Ae),{},{hideHeader:N})},[Ae,N]),Re="".concat(_,"-panel"),Be=pR(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return g.createElement(ip.Provider,{value:_e},g.createElement("div",{ref:L,tabIndex:s,className:ie(Re,X({},"".concat(Re,"-rtl"),i==="rtl"))},g.createElement(ue,Ne({},Be,{showTime:V,prefixCls:_,locale:j,generateConfig:a,onModeChange:pe,pickerValue:Ce,onPickerValueChange:function($e){Te($e,!0)},value:ve[0],onSelect:Se,values:ve,cellRender:we,hoverRangeValue:Ee,hoverValue:C}))))}var HD=g.memo(g.forwardRef(xet));function Eet(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,o=e.onSubmit,l=e.range,s=e.hoverValue,u=g.useContext(qu),c=u.prefixCls,d=u.generateConfig,f=g.useCallback(function(b,x){return T1(d,t,b,x)},[d,t]),p=g.useMemo(function(){return f(r,1)},[r,f]),h=function(x){a(f(x,-1))},m={onCellDblClick:function(){i&&o()}},v=t==="time",y=Q(Q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return l?y.hoverRangeValue=s:y.hoverValue=s,n?g.createElement("div",{className:"".concat(c,"-panels")},g.createElement(ip.Provider,{value:Q(Q({},m),{},{hideNext:!0})},g.createElement(HD,y)),g.createElement(ip.Provider,{value:Q(Q({},m),{},{hidePrev:!0})},g.createElement(HD,Ne({},y,{pickerValue:p,onPickerValueChange:h})))):g.createElement(ip.Provider,{value:Q({},m)},g.createElement(HD,y))}function TJ(e){return typeof e=="function"?e():e}function Cet(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?g.createElement("div",{className:"".concat(t,"-presets")},g.createElement("ul",null,n.map(function(i,o){var l=i.label,s=i.value;return g.createElement("li",{key:o,onClick:function(){r(TJ(s))},onMouseEnter:function(){a(TJ(s))},onMouseLeave:function(){a(null)}},l)}))):null}function M0e(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,i=e.range,o=e.multiple,l=e.activeOffset,s=l===void 0?0:l,u=e.presets,c=e.onPresetHover,d=e.onPresetSubmit,f=e.onFocus,p=e.onBlur,h=e.direction,m=e.value,v=e.onSelect,y=e.isInvalid,b=e.defaultOpenValue,x=e.onOk,E=e.onSubmit,S=g.useContext(qu),C=S.prefixCls,w="".concat(C,"-panel"),I=h==="rtl",T=g.useRef(null),A=g.useRef(null),O=g.useState(0),R=fe(O,2),N=R[0],_=R[1],L=g.useState(0),$=fe(L,2),k=$[0],P=$[1],B=function(te){te.offsetWidth&&_(te.offsetWidth)};g.useEffect(function(){if(i){var ae,te=((ae=T.current)===null||ae===void 0?void 0:ae.offsetWidth)||0,re=N-te;s<=re?P(0):P(s+te-N)}},[N,s,i]);function F(ae){return ae.filter(function(te){return te})}var D=g.useMemo(function(){return F(Gg(m))},[m]),j=r==="time"&&!D.length,z=g.useMemo(function(){return j?F([b]):D},[j,D,b]),V=j?b:D,G=g.useMemo(function(){return z.length?z.some(function(ae){return y(ae)}):!0},[z,y]),W=function(){j&&v(b),x(),E()},Y=g.createElement("div",{className:"".concat(C,"-panel-layout")},g.createElement(Cet,{prefixCls:C,presets:u,onClick:d,onHover:c}),g.createElement("div",null,g.createElement(Eet,Ne({},e,{value:V})),g.createElement(set,Ne({},e,{showNow:o?!1:a,invalid:G,onSubmit:W}))));t&&(Y=t(Y));var J="".concat(w,"-container"),Z="marginLeft",K="marginRight",ee=g.createElement("div",{tabIndex:-1,className:ie(J,"".concat(C,"-").concat(n,"-panel-container")),style:X(X({},I?K:Z,k),I?Z:K,"auto"),onFocus:f,onBlur:p},Y);return i&&(ee=g.createElement("div",{ref:A,className:ie("".concat(C,"-range-wrapper"),"".concat(C,"-").concat(r,"-range-wrapper"))},g.createElement("div",{ref:T,className:"".concat(C,"-range-arrow"),style:X({},I?"right":"left",s)}),g.createElement(Si,{onResize:B},ee))),ee}function $0e(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,i=e.locale,o=e.preserveInvalidOnBlur,l=e.inputReadOnly,s=e.required,u=e["aria-required"],c=e.onSubmit,d=e.onFocus,f=e.onBlur,p=e.onInputChange,h=e.onInvalid,m=e.open,v=e.onOpenChange,y=e.onKeyDown,b=e.onChange,x=e.activeHelp,E=e.name,S=e.autoComplete,C=e.id,w=e.value,I=e.invalid,T=e.placeholder,A=e.disabled,O=e.activeIndex,R=e.allHelp,N=e.picker,_=function(j,z){var V=a.locale.parse(i.locale,j,[z]);return V&&a.isValidate(V)?V:null},L=n[0],$=g.useCallback(function(D){return xi(D,{locale:i,format:L,generateConfig:a})},[i,a,L]),k=g.useMemo(function(){return w.map($)},[w,$]),P=g.useMemo(function(){var D=N==="time"?8:10,j=typeof L=="function"?L(a.getNow()).length:L.length;return Math.max(D,j)+2},[L,N,a]),B=function(j){for(var z=0;z=l&&n<=s)return i;var u=Math.min(Math.abs(n-l),Math.abs(n-s));u0?Ye:at));var ut=tt+je,wt=at-Ye+1;return String(Ye+(wt+ut-Ye)%wt)};switch($e){case"Backspace":case"Delete":Fe="",He=Ke;break;case"ArrowLeft":Fe="",ft(-1);break;case"ArrowRight":Fe="",ft(1);break;case"ArrowUp":Fe="",He=gt(1);break;case"ArrowDown":Fe="",He=gt(-1);break;default:isNaN(Number($e))||(Fe=D+$e,He=Fe);break}if(Fe!==null&&(j(Fe),Fe.length>=Le&&(ft(1),j(""))),He!==null){var Nt=ee.slice(0,ge)+Z7(He,Le)+ee.slice(xe);de(Nt.slice(0,o.length))}K({})},_e=g.useRef();Sn(function(){if(!(!N||!o||ke.current)){if(!re.match(ee)){de(o);return}return te.current.setSelectionRange(ge,xe),_e.current=bn(function(){te.current.setSelectionRange(ge,xe)}),function(){bn.cancel(_e.current)}}},[re,o,N,ee,G,ge,xe,Z,de]);var Re=o?{onFocus:Se,onBlur:we,onKeyDown:Ae,onMouseDown:Te,onMouseUp:pe,onPaste:Ie}:{};return g.createElement("div",{ref:ae,className:ie(A,X(X({},"".concat(A,"-active"),n&&a),"".concat(A,"-placeholder"),u))},g.createElement(T,Ne({ref:te,"aria-invalid":m,autoComplete:"off"},y,{onKeyDown:ue,onBlur:Ee},Re,{value:ee,onChange:Ce})),g.createElement(vR,{type:"suffix",icon:i}),v)}),Ret=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],_et=["index"];function Net(e,t){var n=e.id,r=e.clearIcon,a=e.suffixIcon,i=e.separator,o=i===void 0?"~":i,l=e.activeIndex;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,c=e.className,d=e.style,f=e.onClick,p=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var m=e.disabled,v=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var b=e.onActiveOffset,x=e.onMouseDown;e.required,e["aria-required"];var E=e.autoFocus,S=Lt(e,Ret),C=y==="rtl",w=g.useContext(qu),I=w.prefixCls,T=g.useMemo(function(){if(typeof n=="string")return[n];var J=n||{};return[J.start,J.end]},[n]),A=g.useRef(),O=g.useRef(),R=g.useRef(),N=function(Z){var K;return(K=[O,R][Z])===null||K===void 0?void 0:K.current};g.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(Z){if(zt(Z)==="object"){var K,ee=Z||{},ae=ee.index,te=ae===void 0?0:ae,re=Lt(ee,_et);(K=N(te))===null||K===void 0||K.focus(re)}else{var se;(se=N(Z??0))===null||se===void 0||se.focus()}},blur:function(){var Z,K;(Z=N(0))===null||Z===void 0||Z.blur(),(K=N(1))===null||K===void 0||K.blur()}}});var _=L0e(S),L=g.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),$=$0e(Q(Q({},e),{},{id:T,placeholder:L})),k=fe($,1),P=k[0],B=C?"right":"left",F=g.useState(X({position:"absolute",width:0},B,0)),D=fe(F,2),j=D[0],z=D[1],V=jn(function(){var J=N(l);if(J){var Z=J.nativeElement,K=Z.offsetWidth,ee=Z.offsetLeft,ae=Z.offsetParent,te=ee;if(C){var re=ae,se=getComputedStyle(re);te=re.offsetWidth-parseFloat(se.borderRightWidth)-parseFloat(se.borderLeftWidth)-ee-K}z(function(ve){return Q(Q({},ve),{},X({width:K},B,te))}),b(l===0?0:te)}});g.useEffect(function(){V()},[l]);var G=r&&(h[0]&&!m[0]||h[1]&&!m[1]),W=E&&!m[0],Y=E&&!W&&!m[1];return g.createElement(Si,{onResize:V},g.createElement("div",Ne({},_,{className:ie(I,"".concat(I,"-range"),X(X(X(X({},"".concat(I,"-focused"),s),"".concat(I,"-disabled"),m.every(function(J){return J})),"".concat(I,"-invalid"),v.some(function(J){return J})),"".concat(I,"-rtl"),C),c),style:d,ref:A,onClick:f,onMouseDown:function(Z){var K=Z.target;K!==O.current.inputElement&&K!==R.current.inputElement&&Z.preventDefault(),x==null||x(Z)}}),g.createElement(S6,Ne({ref:O},P(0),{autoFocus:W,"date-range":"start"})),g.createElement("div",{className:"".concat(I,"-range-separator")},o),g.createElement(S6,Ne({ref:R},P(1),{autoFocus:Y,"date-range":"end"})),g.createElement("div",{className:"".concat(I,"-active-bar"),style:j}),g.createElement(vR,{type:"suffix",icon:a}),G&&g.createElement(E6,{icon:r,onClear:p})))}var Det=g.forwardRef(Net);function IJ(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Xw(e){return e===1?"end":"start"}function Met(e,t){var n=x0e(e,function(){var Rt=e.disabled,_t=e.allowEmpty,ln=IJ(Rt,!1),sn=IJ(_t,!1);return{disabled:ln,allowEmpty:sn}}),r=fe(n,6),a=r[0],i=r[1],o=r[2],l=r[3],s=r[4],u=r[5],c=a.prefixCls,d=a.styles,f=a.classNames,p=a.defaultValue,h=a.value,m=a.needConfirm,v=a.onKeyDown,y=a.disabled,b=a.allowEmpty,x=a.disabledDate,E=a.minDate,S=a.maxDate,C=a.defaultOpen,w=a.open,I=a.onOpenChange,T=a.locale,A=a.generateConfig,O=a.picker,R=a.showNow,N=a.showToday,_=a.showTime,L=a.mode,$=a.onPanelChange,k=a.onCalendarChange,P=a.onOk,B=a.defaultPickerValue,F=a.pickerValue,D=a.onPickerValueChange,j=a.inputReadOnly,z=a.suffixIcon,V=a.onFocus,G=a.onBlur,W=a.presets,Y=a.ranges,J=a.components,Z=a.cellRender,K=a.dateRender,ee=a.monthCellRender,ae=a.onClick,te=S0e(t),re=E0e(w,C,y,I),se=fe(re,2),ve=se[0],ge=se[1],xe=function(_t,ln){(y.some(function(sn){return!sn})||!_t)&&ge(_t,ln)},me=k0e(A,T,l,!0,!1,p,h,k,P),de=fe(me,5),Ce=de[0],Ie=de[1],ke=de[2],Te=de[3],pe=de[4],Se=ke(),Ee=w0e(y,b),we=fe(Ee,7),ue=we[0],Ae=we[1],_e=we[2],Re=we[3],Be=we[4],Me=we[5],$e=we[6],Fe=function(_t,ln){Ae(!0),V==null||V(_t,{range:Xw(ln??Re)})},He=function(_t,ln){Ae(!1),G==null||G(_t,{range:Xw(ln??Re)})},Le=g.useMemo(function(){if(!_)return null;var Rt=_.disabledTime,_t=Rt?function(ln){var sn=Xw(Re);return Rt(ln,sn)}:void 0;return Q(Q({},_),{},{disabledTime:_t})},[_,Re]),Ke=or([O,O],{value:L}),ft=fe(Ke,2),gt=ft[0],Nt=ft[1],Je=gt[Re]||O,je=Je==="date"&&Le?"datetime":Je,Ze=je===O&&je!=="time",Xe=_0e(O,Je,R,N,!0),Ye=R0e(a,Ce,Ie,ke,Te,y,l,ue,ve,u),at=fe(Ye,2),It=at[0],Bt=at[1],tt=ret(Se,y,$e,A,T,x),ut=p0e(Se,u,b),wt=fe(ut,2),Pt=wt[0],Yt=wt[1],Kt=T0e(A,T,Se,gt,ve,Re,i,Ze,B,F,Le==null?void 0:Le.defaultOpenValue,D,E,S),tn=fe(Kt,2),Ot=tn[0],lt=tn[1],st=jn(function(Rt,_t,ln){var sn=sx(gt,Re,_t);if((sn[0]!==gt[0]||sn[1]!==gt[1])&&Nt(sn),$&&ln!==!1){var ma=Ue(Se);Rt&&(ma[Re]=Rt),$(ma,sn)}}),Ht=function(_t,ln){return sx(Se,ln,_t)},ot=function(_t,ln){var sn=Se;_t&&(sn=Ht(_t,Re));var ma=Me(sn);Te(sn),It(Re,ma===null),ma===null?xe(!1,{force:!0}):ln||te.current.focus({index:ma})},Tt=function(_t){if(!te.current.nativeElement.contains(document.activeElement)){var ln=y.findIndex(function(sn){return!sn});ln>=0&&te.current.focus({index:ln})}xe(!0),ae==null||ae(_t)},Ft=function(){Bt(null),xe(!1,{force:!0})},an=g.useState(null),Bn=fe(an,2),zn=Bn[0],kn=Bn[1],zr=g.useState(null),qr=fe(zr,2),lr=qr[0],gr=qr[1],Xa=g.useMemo(function(){return lr||Se},[Se,lr]);g.useEffect(function(){ve||gr(null)},[ve]);var Qa=g.useState(0),jt=fe(Qa,2),mn=jt[0],Rn=jt[1],kr=C0e(W,Y),ha=function(_t){gr(_t),kn("preset")},mo=function(_t){var ln=Bt(_t);ln&&xe(!1,{force:!0})},vo=function(_t){ot(_t)},Za=function(_t){gr(_t?Ht(_t,Re):null),kn("cell")},Yi=function(_t){xe(!0),Fe(_t)},Ja=function(_t){_e("panel");var ln=sx(Se,Re,_t);Te(ln),!m&&!o&&i===je&&ot(_t)},An=function(){xe(!1)},Dt=J7(Z,K,ee,Xw(Re)),Mt=Se[Re]||null,_n=jn(function(Rt){return u(Rt,{activeIndex:Re})}),Hn=g.useMemo(function(){var Rt=La(a,!1),_t=Dr(a,[].concat(Ue(Object.keys(Rt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return _t},[a]),ar=g.createElement(M0e,Ne({},Hn,{showNow:Xe,showTime:Le,range:!0,multiplePanel:Ze,activeOffset:mn,disabledDate:tt,onFocus:Yi,onBlur:He,picker:O,mode:Je,internalMode:je,onPanelChange:st,format:s,value:Mt,isInvalid:_n,onChange:null,onSelect:Ja,pickerValue:Ot,defaultOpenValue:Gg(_==null?void 0:_.defaultOpenValue)[Re],onPickerValueChange:lt,hoverValue:Xa,onHover:Za,needConfirm:m,onSubmit:ot,onOk:pe,presets:kr,onPresetHover:ha,onPresetSubmit:mo,onNow:vo,cellRender:Dt})),Tr=function(_t,ln){var sn=Ht(_t,ln);Te(sn)},Qt=function(){_e("input")},Gt=function(_t,ln){_e("input"),xe(!0,{inherit:!0}),Be(ln),Fe(_t,ln)},sr=function(_t,ln){xe(!1),He(_t,ln)},Ar=function(_t,ln){_t.key==="Tab"&&ot(null,!0),v==null||v(_t,ln)},ga=g.useMemo(function(){return{prefixCls:c,locale:T,generateConfig:A,button:J.button,input:J.input}},[c,T,A,J.button,J.input]);return Sn(function(){ve&&Re!==void 0&&st(null,O,!1)},[ve,Re,O]),Sn(function(){var Rt=_e();!ve&&Rt==="input"&&(xe(!1),ot(null,!0)),!ve&&o&&!m&&Rt==="panel"&&(xe(!0),ot())},[ve]),g.createElement(qu.Provider,{value:ga},g.createElement(c0e,Ne({},f0e(a),{popupElement:ar,popupStyle:d.popup,popupClassName:f.popup,visible:ve,onClose:An,range:!0}),g.createElement(Det,Ne({},a,{ref:te,suffixIcon:z,activeIndex:ue||ve?Re:null,activeHelp:!!lr,allHelp:!!lr&&zn==="preset",focused:ue,onFocus:Gt,onBlur:sr,onKeyDown:Ar,onSubmit:ot,value:Xa,maskFormat:s,onChange:Tr,onInputChange:Qt,format:l,inputReadOnly:j,disabled:y,open:ve,onOpenChange:xe,onClick:Tt,onClear:Ft,invalid:Pt,onInvalid:Yt,onActiveOffset:Rn}))))}var $et=g.forwardRef(Met);function Let(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,i=a===void 0?"×":a,o=e.formatDate,l=e.disabled,s=e.maxTagCount,u="".concat(t,"-selector"),c="".concat(t,"-selection"),d="".concat(c,"-overflow");function f(m,v){return g.createElement("span",{className:ie("".concat(c,"-item")),title:typeof m=="string"?m:null},g.createElement("span",{className:"".concat(c,"-item-content")},m),!l&&v&&g.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:v,className:"".concat(c,"-item-remove")},i))}function p(m){var v=o(m),y=function(x){x&&x.stopPropagation(),r(m)};return f(v,y)}function h(m){var v="+ ".concat(m.length," ...");return f(v)}return g.createElement("div",{className:u},g.createElement(Ou,{prefixCls:d,data:n,renderItem:p,renderRest:h,itemKey:function(v){return o(v)},maxCount:s}))}var Pet=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function Fet(e,t){e.id;var n=e.open,r=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var o=e.locale,l=e.generateConfig;e.placeholder;var s=e.className,u=e.style,c=e.onClick,d=e.onClear,f=e.internalPicker,p=e.value,h=e.onChange,m=e.onSubmit;e.onInputChange;var v=e.multiple,y=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,x=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var S=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,w=e.removeIcon,I=Lt(e,Pet),T=E==="rtl",A=g.useContext(qu),O=A.prefixCls,R=g.useRef(),N=g.useRef();g.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(V){var G;(G=N.current)===null||G===void 0||G.focus(V)},blur:function(){var V;(V=N.current)===null||V===void 0||V.blur()}}});var _=L0e(I),L=function(V){h([V])},$=function(V){var G=p.filter(function(W){return W&&!Ao(l,o,W,V,f)});h(G),n||m()},k=$0e(Q(Q({},e),{},{onChange:L}),function(z){var V=z.valueTexts;return{value:V[0]||"",active:i}}),P=fe(k,2),B=P[0],F=P[1],D=!!(r&&p.length&&!b),j=v?g.createElement(g.Fragment,null,g.createElement(Let,{prefixCls:O,value:p,onRemove:$,formatDate:F,maxTagCount:y,disabled:b,removeIcon:w}),g.createElement("input",{className:"".concat(O,"-multiple-input"),value:p.map(F).join(","),ref:N,readOnly:!0,autoFocus:C}),g.createElement(vR,{type:"suffix",icon:a}),D&&g.createElement(E6,{icon:r,onClear:d})):g.createElement(S6,Ne({ref:N},B(),{autoFocus:C,suffixIcon:a,clearIcon:D&&g.createElement(E6,{icon:r,onClear:d}),showActiveCls:!1}));return g.createElement("div",Ne({},_,{className:ie(O,X(X(X(X(X({},"".concat(O,"-multiple"),v),"".concat(O,"-focused"),i),"".concat(O,"-disabled"),b),"".concat(O,"-invalid"),x),"".concat(O,"-rtl"),T),s),style:u,ref:R,onClick:c,onMouseDown:function(V){var G,W=V.target;W!==((G=N.current)===null||G===void 0?void 0:G.inputElement)&&V.preventDefault(),S==null||S(V)}}),j)}var Bet=g.forwardRef(Fet);function zet(e,t){var n=x0e(e),r=fe(n,6),a=r[0],i=r[1],o=r[2],l=r[3],s=r[4],u=r[5],c=a,d=c.prefixCls,f=c.styles,p=c.classNames,h=c.order,m=c.defaultValue,v=c.value,y=c.needConfirm,b=c.onChange,x=c.onKeyDown,E=c.disabled,S=c.disabledDate,C=c.minDate,w=c.maxDate,I=c.defaultOpen,T=c.open,A=c.onOpenChange,O=c.locale,R=c.generateConfig,N=c.picker,_=c.showNow,L=c.showToday,$=c.showTime,k=c.mode,P=c.onPanelChange,B=c.onCalendarChange,F=c.onOk,D=c.multiple,j=c.defaultPickerValue,z=c.pickerValue,V=c.onPickerValueChange,G=c.inputReadOnly,W=c.suffixIcon,Y=c.removeIcon,J=c.onFocus,Z=c.onBlur,K=c.presets,ee=c.components,ae=c.cellRender,te=c.dateRender,re=c.monthCellRender,se=c.onClick,ve=S0e(t);function ge(Qt){return Qt===null?null:D?Qt:Qt[0]}var xe=N0e(R,O,i),me=E0e(T,I,[E],A),de=fe(me,2),Ce=de[0],Ie=de[1],ke=function(Gt,sr,Ar){if(B){var ga=Q({},Ar);delete ga.range,B(ge(Gt),ge(sr),ga)}},Te=function(Gt){F==null||F(ge(Gt))},pe=k0e(R,O,l,!1,h,m,v,ke,Te),Se=fe(pe,5),Ee=Se[0],we=Se[1],ue=Se[2],Ae=Se[3],_e=Se[4],Re=ue(),Be=w0e([E]),Me=fe(Be,4),$e=Me[0],Fe=Me[1],He=Me[2],Le=Me[3],Ke=function(Gt){Fe(!0),J==null||J(Gt,{})},ft=function(Gt){Fe(!1),Z==null||Z(Gt,{})},gt=or(N,{value:k}),Nt=fe(gt,2),Je=Nt[0],je=Nt[1],Ze=Je==="date"&&$?"datetime":Je,Xe=_0e(N,Je,_,L),Ye=b&&function(Qt,Gt){b(ge(Qt),ge(Gt))},at=R0e(Q(Q({},a),{},{onChange:Ye}),Ee,we,ue,Ae,[],l,$e,Ce,u),It=fe(at,2),Bt=It[1],tt=p0e(Re,u),ut=fe(tt,2),wt=ut[0],Pt=ut[1],Yt=g.useMemo(function(){return wt.some(function(Qt){return Qt})},[wt]),Kt=function(Gt,sr){if(V){var Ar=Q(Q({},sr),{},{mode:sr.mode[0]});delete Ar.range,V(Gt[0],Ar)}},tn=T0e(R,O,Re,[Je],Ce,Le,i,!1,j,z,Gg($==null?void 0:$.defaultOpenValue),Kt,C,w),Ot=fe(tn,2),lt=Ot[0],st=Ot[1],Ht=jn(function(Qt,Gt,sr){if(je(Gt),P&&sr!==!1){var Ar=Qt||Re[Re.length-1];P(Ar,Gt)}}),ot=function(){Bt(ue()),Ie(!1,{force:!0})},Tt=function(Gt){!E&&!ve.current.nativeElement.contains(document.activeElement)&&ve.current.focus(),Ie(!0),se==null||se(Gt)},Ft=function(){Bt(null),Ie(!1,{force:!0})},an=g.useState(null),Bn=fe(an,2),zn=Bn[0],kn=Bn[1],zr=g.useState(null),qr=fe(zr,2),lr=qr[0],gr=qr[1],Xa=g.useMemo(function(){var Qt=[lr].concat(Ue(Re)).filter(function(Gt){return Gt});return D?Qt:Qt.slice(0,1)},[Re,lr,D]),Qa=g.useMemo(function(){return!D&&lr?[lr]:Re.filter(function(Qt){return Qt})},[Re,lr,D]);g.useEffect(function(){Ce||gr(null)},[Ce]);var jt=C0e(K),mn=function(Gt){gr(Gt),kn("preset")},Rn=function(Gt){var sr=D?xe(ue(),Gt):[Gt],Ar=Bt(sr);Ar&&!D&&Ie(!1,{force:!0})},kr=function(Gt){Rn(Gt)},ha=function(Gt){gr(Gt),kn("cell")},mo=function(Gt){Ie(!0),Ke(Gt)},vo=function(Gt){He("panel");var sr=D?xe(ue(),Gt):[Gt];Ae(sr),!y&&!o&&i===Ze&&ot()},Za=function(){Ie(!1)},Yi=J7(ae,te,re),Ja=g.useMemo(function(){var Qt=La(a,!1),Gt=Dr(a,[].concat(Ue(Object.keys(Qt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Q(Q({},Gt),{},{multiple:a.multiple})},[a]),An=g.createElement(M0e,Ne({},Ja,{showNow:Xe,showTime:$,disabledDate:S,onFocus:mo,onBlur:ft,picker:N,mode:Je,internalMode:Ze,onPanelChange:Ht,format:s,value:Re,isInvalid:u,onChange:null,onSelect:vo,pickerValue:lt,defaultOpenValue:$==null?void 0:$.defaultOpenValue,onPickerValueChange:st,hoverValue:Xa,onHover:ha,needConfirm:y,onSubmit:ot,onOk:_e,presets:jt,onPresetHover:mn,onPresetSubmit:Rn,onNow:kr,cellRender:Yi})),Dt=function(Gt){Ae(Gt)},Mt=function(){He("input")},_n=function(Gt){He("input"),Ie(!0,{inherit:!0}),Ke(Gt)},Hn=function(Gt){Ie(!1),ft(Gt)},ar=function(Gt,sr){Gt.key==="Tab"&&ot(),x==null||x(Gt,sr)},Tr=g.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:R,button:ee.button,input:ee.input}},[d,O,R,ee.button,ee.input]);return Sn(function(){Ce&&Le!==void 0&&Ht(null,N,!1)},[Ce,Le,N]),Sn(function(){var Qt=He();!Ce&&Qt==="input"&&(Ie(!1),ot()),!Ce&&o&&!y&&Qt==="panel"&&(Ie(!0),ot())},[Ce]),g.createElement(qu.Provider,{value:Tr},g.createElement(c0e,Ne({},f0e(a),{popupElement:An,popupStyle:f.popup,popupClassName:p.popup,visible:Ce,onClose:Za}),g.createElement(Bet,Ne({},a,{ref:ve,suffixIcon:W,removeIcon:Y,activeHelp:!!lr,allHelp:!!lr&&zn==="preset",focused:$e,onFocus:_n,onBlur:Hn,onKeyDown:ar,onSubmit:ot,value:Qa,maskFormat:s,onChange:Dt,onInputChange:Mt,internalPicker:i,format:l,inputReadOnly:G,disabled:E,open:Ce,onOpenChange:Ie,onClick:Tt,onClear:Ft,invalid:Yt,onInvalid:function(Gt){Pt(Gt,0)}}))))}var Het=g.forwardRef(zet);const P0e=g.createContext(null),jet=P0e.Provider,F0e=g.createContext(null),Uet=F0e.Provider;var Vet=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],B0e=g.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,i=e.style,o=e.checked,l=e.disabled,s=e.defaultChecked,u=s===void 0?!1:s,c=e.type,d=c===void 0?"checkbox":c,f=e.title,p=e.onChange,h=Lt(e,Vet),m=g.useRef(null),v=or(u,{value:o}),y=fe(v,2),b=y[0],x=y[1];g.useImperativeHandle(t,function(){return{focus:function(w){var I;(I=m.current)===null||I===void 0||I.focus(w)},blur:function(){var w;(w=m.current)===null||w===void 0||w.blur()},input:m.current}});var E=ie(r,a,X(X({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),l)),S=function(w){l||("checked"in e||x(w.target.checked),p==null||p({target:Q(Q({},e),{},{type:d,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return g.createElement("span",{className:E,title:f,style:i},g.createElement("input",Ne({},h,{className:"".concat(r,"-input"),ref:m,onChange:S,disabled:l,checked:!!b,type:d})),g.createElement("span",{className:"".concat(r,"-inner")}))});const Wet=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},In(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Get=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:i,motionDurationMid:o,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:u,lineWidth:c,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:h,lineType:m,radioColor:v,radioBgColor:y,calc:b}=e,x=`${t}-inner`,E=4,S=b(a).sub(b(E).mul(2)),C=b(1).mul(a).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},In(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ne(c)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},In(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},bp(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(a).div(-2).equal(),marginInlineStart:b(1).mul(a).div(-2).equal(),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:s,borderColor:u,borderStyle:"solid",borderWidth:c,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:d,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${b(S).div(a).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},qet=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:i,colorBorder:o,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:u,fontSize:c,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:h,paddingXS:m,borderRadius:v,borderRadiusSM:y,borderRadiusLG:b,buttonCheckedBg:x,buttonSolidCheckedColor:E,colorTextDisabled:S,colorBgContainerDisabled:C,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:I,colorPrimary:T,colorPrimaryHover:A,colorPrimaryActive:O,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:_,calc:L}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:ne(L(n).sub(L(a).mul(2)).equal()),background:d,border:`${ne(a)} ${i} ${o}`,borderBlockStartWidth:L(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:L(a).mul(-1).equal(),insetInlineStart:L(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:o,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${ne(a)} ${i} ${o}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:ne(L(p).sub(L(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:h,paddingInline:L(m).sub(a).equal(),paddingBlock:0,lineHeight:ne(L(h).sub(L(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:T},"&:has(:focus-visible)":Object.assign({},bp(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:T,background:x,borderColor:T,"&::before":{backgroundColor:T},"&:first-child":{borderColor:T},"&:hover":{color:A,borderColor:A,"&::before":{backgroundColor:A}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:R,borderColor:R,"&:hover":{color:E,background:N,borderColor:N},"&:active":{color:E,background:_,borderColor:_}},"&-disabled":{color:S,backgroundColor:C,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:C,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:w,borderColor:o,boxShadow:"none"}}}},Yet=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:i,colorText:o,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:u,colorTextLightSolid:c,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:h}=e,m=4,v=i,y=t?v-m*2:v-(m+a)*2;return{radioSize:v,dotSize:y,dotColorDisabled:s,buttonSolidCheckedColor:c,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:o,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:s,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?l:d}},z0e=On("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ne(n)} ${t}`,i=pn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Wet(i),Get(i),qet(i)]},Yet,{unitless:{radioSize:!0,dotSize:!0}});var Ket=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=g.useContext(P0e),i=g.useContext(F0e),{getPrefixCls:o,direction:l,radio:s}=g.useContext(dt),u=g.useRef(null),c=uo(t,u),{isFormItemInput:d}=g.useContext(No),f=_=>{var L,$;(L=e.onChange)===null||L===void 0||L.call(e,_),($=a==null?void 0:a.onChange)===null||$===void 0||$.call(a,_)},{prefixCls:p,className:h,rootClassName:m,children:v,style:y,title:b}=e,x=Ket(e,["prefixCls","className","rootClassName","children","style","title"]),E=o("radio",p),S=((a==null?void 0:a.optionType)||i)==="button",C=S?`${E}-button`:E,w=oa(E),[I,T,A]=z0e(E,w),O=Object.assign({},x),R=g.useContext(Ws);a&&(O.name=a.name,O.onChange=f,O.checked=e.value===a.value,O.disabled=(n=O.disabled)!==null&&n!==void 0?n:a.disabled),O.disabled=(r=O.disabled)!==null&&r!==void 0?r:R;const N=ie(`${C}-wrapper`,{[`${C}-wrapper-checked`]:O.checked,[`${C}-wrapper-disabled`]:O.disabled,[`${C}-wrapper-rtl`]:l==="rtl",[`${C}-wrapper-in-form-item`]:d},s==null?void 0:s.className,h,m,T,A,w);return I(g.createElement(qk,{component:"Radio",disabled:O.disabled},g.createElement("label",{className:N,style:Object.assign(Object.assign({},s==null?void 0:s.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b},g.createElement(B0e,Object.assign({},O,{className:ie(O.className,!S&&Gk),type:"radio",prefixCls:C,ref:c})),v!==void 0?g.createElement("span",null,v):null)))},Qet=g.forwardRef(Xet),_I=Qet,Zet=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(dt),[a,i]=or(e.defaultValue,{value:e.value}),o=_=>{const L=a,$=_.target.value;"value"in e||i($);const{onChange:k}=e;k&&$!==L&&k(_)},{prefixCls:l,className:s,rootClassName:u,options:c,buttonStyle:d="outline",disabled:f,children:p,size:h,style:m,id:v,onMouseEnter:y,onMouseLeave:b,onFocus:x,onBlur:E}=e,S=n("radio",l),C=`${S}-group`,w=oa(S),[I,T,A]=z0e(S,w);let O=p;c&&c.length>0&&(O=c.map(_=>typeof _=="string"||typeof _=="number"?g.createElement(_I,{key:_.toString(),prefixCls:S,disabled:f,value:_,checked:a===_},_):g.createElement(_I,{key:`radio-group-value-options-${_.value}`,prefixCls:S,disabled:_.disabled||f,value:_.value,checked:a===_.value,title:_.title,style:_.style,id:_.id,required:_.required},_.label)));const R=co(h),N=ie(C,`${C}-${d}`,{[`${C}-${R}`]:R,[`${C}-rtl`]:r==="rtl"},s,u,T,A,w);return I(g.createElement("div",Object.assign({},La(e,{aria:!0,data:!0}),{className:N,style:m,onMouseEnter:y,onMouseLeave:b,onFocus:x,onBlur:E,id:v,ref:t}),g.createElement(jet,{value:{onChange:o,value:a,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),Jet=g.memo(Zet);var ett=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=g.useContext(dt),{prefixCls:r}=e,a=ett(e,["prefixCls"]),i=n("radio",r);return g.createElement(Uet,{value:"button"},g.createElement(_I,Object.assign({prefixCls:i},a,{type:"radio",ref:t})))},ntt=g.forwardRef(ttt),yR=_I;yR.Button=ntt;yR.Group=Jet;yR.__ANT_RADIO=!0;const H0e=yR;function bR(e){return pn(e,{inputAffixPadding:e.paddingXXS})}const xR=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:i,controlHeightLG:o,fontSizeLG:l,lineHeightLG:s,paddingSM:u,controlPaddingHorizontalSM:c,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:v,colorErrorOutline:y,colorWarningOutline:b,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((o-l*s)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:c-a,paddingInlineLG:d-a,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${v}`,errorActiveShadow:`0 0 0 ${m}px ${y}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},rtt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ER=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},rtt(pn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),a9=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),OJ=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},a9(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),i9=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a9(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ER(e))}),OJ(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),OJ(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),kJ=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),j0e=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},kJ(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),kJ(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ER(e))}})}),o9=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),U0e=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),RJ=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},U0e(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),l9=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},U0e(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ER(e))}),RJ(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),RJ(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),_J=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),V0e=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},_J(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),_J(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),s9=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),W0e=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${ne(t)} ${ne(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},u9=e=>({padding:`${ne(e.paddingBlockSM)} ${ne(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),HS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ne(e.paddingBlock)} ${ne(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},s9(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},W0e(e)),"&-sm":Object.assign({},u9(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),G0e=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},W0e(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},u9(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ne(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ne(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ne(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${ne(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Lu()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${n}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},att=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=16,o=a(n).sub(a(r).mul(2)).sub(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),HS(e)),i9(e)),l9(e)),o9(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},itt=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ne(e.inputAffixPadding)}`}}}},ott=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:i,colorIconHover:o,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},HS(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),itt(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:o}}})}},ltt=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},In(e)),G0e(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},j0e(e)),V0e(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},stt=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},utt=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},ctt=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},c9=On("Input",e=>{const t=pn(e,bR(e));return[att(t),utt(t),ott(t),ltt(t),stt(t),ctt(t),kS(t)]},xR),UD=(e,t)=>{const{componentCls:n,selectHeight:r,fontHeight:a,lineWidth:i,calc:o}=e,l=t?`${n}-${t}`:"",s=e.calc(a).add(2).equal(),u=()=>o(r).sub(s).sub(o(i).mul(2)),c=e.max(u().div(2).equal(),0),d=e.max(u().sub(c).equal(),0);return[M7(e,t),{[`${n}-multiple${l}`]:{paddingTop:c,paddingBottom:d,paddingInlineStart:c}}]},dtt=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=pn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),i=pn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[UD(a,"small"),UD(e),UD(i,"large"),M7(e),{[`${t}${t}-multiple`]:{width:"100%",[`${t}-selector`]:{flex:"auto",padding:0,"&:after":{margin:0}},[`${t}-selection-item`]:{marginBlock:0},[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},ftt=dtt,ptt=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:i,cellHoverBg:o,lineWidth:l,lineType:s,colorPrimary:u,cellActiveWithRangeBg:c,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ne(r),borderRadius:a,transition:`background ${i}`},[`&:hover:not(${t}-in-view), + &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ne(l)} ${s} ${u}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:c}},[`&-in-view${t}-selected, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},htt=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:i,cellWidth:o,paddingSM:l,paddingXS:s,paddingXXS:u,colorBgContainer:c,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:h,colorTextHeading:m,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:b,textHeight:x,motionDurationMid:E,colorIconHover:S,fontWeightStrong:C,cellHeight:w,pickerCellPaddingVertical:I,colorTextDisabled:T,colorText:A,fontSize:O,motionDurationSlow:R,withoutTimeCellHeight:N,pickerQuarterPanelContentHeight:_,borderRadiusSM:L,colorTextLightSolid:$,cellHoverBg:k,timeColumnHeight:P,timeColumnWidth:B,timeCellHeight:F,controlItemBgActive:D,marginXXS:j,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:V}=e,G=e.calc(o).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{direction:"rtl",[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:G},"&-header":{display:"flex",padding:`0 ${ne(s)}`,color:m,borderBottom:`${ne(d)} ${f} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:ne(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:O,"&:hover":{color:S},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:ne(x),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:y,borderBlockEndWidth:0,borderInlineStartWidth:y,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:V,insetInlineStart:V,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:y,borderBlockEndWidth:0,borderInlineStartWidth:y,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(I).mul(2)).equal(),color:A,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ne(I)} 0`,color:T,cursor:"pointer","&-in-view":{color:A}},ptt(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(N).mul(4).equal()},[r]:{padding:`0 ${ne(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:_}},"&-decade-panel":{[r]:{padding:`0 ${ne(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ne(s)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${ne(s)} ${ne(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + &-selected ${r}, + ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${E}`},"&:first-child:before":{borderStartStartRadius:L,borderEndStartRadius:L},"&:last-child:before":{borderStartEndRadius:L,borderEndEndRadius:L}},"&:hover td":{"&:before":{background:k}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Wn($).setAlpha(.5).toHexString()},[r]:{color:$}}},"&-range-hover td:before":{background:D}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ne(s)} ${ne(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ne(d)} ${f} ${v}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${R}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:P},"&-column":{flex:"1 0 auto",width:B,margin:`${ne(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${E}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(F).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${ne(d)} ${f} ${v}`},"&-active":{background:new Wn(D).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:j,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(B).sub(e.calc(j).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(B).sub(F).div(2).equal(),color:A,lineHeight:ne(F),borderRadius:L,cursor:"pointer",transition:`background ${E}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:D}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:"transparent",cursor:"not-allowed"}}}}}}}}},gtt=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:i,colorPrimary:o,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:u,colorSplit:c}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ne(r)} ${u} ${c}`,"&-extra":{padding:`0 ${ne(a)}`,lineHeight:ne(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ne(r)} ${u} ${c}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ne(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ne(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:o,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},mtt=gtt,vtt=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},ytt=e=>{const{colorBgContainerDisabled:t,controlHeightSM:n,controlHeightLG:r}=e;return{cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Wn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Wn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:r*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:n*1.5,cellHeight:n,textHeight:r,withoutTimeCellHeight:r*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:n,multipleItemHeightLG:e.controlHeight,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},btt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},xR(e)),ytt(e)),oR(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),xtt=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},i9(e)),l9(e)),o9(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Ett=xtt,VD=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(a).div(2).equal(),0),o=e.max(e.calc(t).sub(a).sub(i).equal(),0);return{padding:`${ne(i)} ${ne(r)} ${ne(o)}`}},Stt=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Ctt=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:i,lineType:o,colorBorder:l,borderRadius:s,motionDurationMid:u,colorTextDisabled:c,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:m,paddingXS:v,marginXS:y,colorTextDescription:b,lineWidthBold:x,colorPrimary:E,motionDurationSlow:S,zIndexPopup:C,paddingXXS:w,sizePopupArrow:I,colorBgElevated:T,borderRadiusLG:A,boxShadowSecondary:O,borderRadiusSM:R,colorSplit:N,cellHoverBg:_,presetsWidth:L,presetsMaxWidth:$,boxShadowPopoverArrow:k,fontHeight:P,fontHeightLG:B,lineHeightLG:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},In(e)),VD(e,r,P,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},s9(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:c,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},VD(e,f,B,a)),{[`${t}-input > input`]:{fontSize:p,lineHeight:F}}),"&-small":Object.assign({},VD(e,h,P,m)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:c,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:c,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:c,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:E,opacity:0,transition:`all ${S} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ne(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},In(e)),htt(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Zk},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Xk},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Jk},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Qk},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${S} ease-out`},mve(e,T,k)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:T,borderRadius:A,boxShadow:O,transition:`margin ${S}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:L,maxWidth:$,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${ne(i)} ${o} ${N}`,li:Object.assign(Object.assign({},Ps),{borderRadius:R,paddingInline:v,paddingBlock:e.calc(h).sub(P).div(2).equal(),cursor:"pointer",transition:`all ${S}`,"+ li":{marginTop:y},"&:hover":{background:_}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${ne(e.calc(I).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Rc(e,"slide-up"),Rc(e,"slide-down"),P0(e,"move-up"),P0(e,"move-down")]},q0e=On("DatePicker",e=>{const t=pn(bR(e),vtt(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[mtt(t),Ctt(t),Ett(t),Stt(t),ftt(t),kS(e,{focusElCls:`${e.componentCls}-focused`})]},btt),wtt=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:i}=e,o=ie({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),l=ie({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=g.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return g.createElement("span",{className:ie(t,o,l,n),style:Object.assign(Object.assign({},s),r)})},SR=wtt,Ttt=new gn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),CR=e=>({height:e,lineHeight:ne(e)}),Uv=e=>Object.assign({width:e},CR(e)),Att=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ttt,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),WD=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},CR(e)),Itt=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Uv(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Uv(a)),[`${t}${t}-sm`]:Object.assign({},Uv(i))}},Ott=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},WD(t,l)),[`${r}-lg`]:Object.assign({},WD(a,l)),[`${r}-sm`]:Object.assign({},WD(i,l))}},NJ=e=>Object.assign({width:e},CR(e)),ktt=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:a},NJ(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},NJ(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},GD=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},qD=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},CR(e)),Rtt=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},qD(r,l))},GD(e,r,n)),{[`${n}-lg`]:Object.assign({},qD(a,l))}),GD(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},qD(i,l))}),GD(e,i,`${n}-sm`))},_tt=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:o,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:c,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:m,blockRadius:v,paragraphLiHeight:y,controlHeightXS:b,paragraphMarginTop:x}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Uv(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Uv(u)),[`${n}-sm`]:Object.assign({},Uv(c))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:v,[`+ ${a}`]:{marginBlockStart:c}},[`${a}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${a}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Rtt(e)),Itt(e)),Ott(e)),ktt(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${o}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${r}, + ${a} > li, + ${n}, + ${i}, + ${o}, + ${l} + `]:Object.assign({},Att(e))}}},Ntt=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Ry=On("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=pn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[_tt(r)]},Ntt,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Dtt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:i="circle",size:o="default"}=e,{getPrefixCls:l}=g.useContext(dt),s=l("skeleton",t),[u,c,d]=Ry(s),f=Dr(e,["prefixCls","className"]),p=ie(s,`${s}-element`,{[`${s}-active`]:a},n,r,c,d);return u(g.createElement("div",{className:p},g.createElement(SR,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:o},f))))},Mtt=Dtt,$tt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i=!1,size:o="default"}=e,{getPrefixCls:l}=g.useContext(dt),s=l("skeleton",t),[u,c,d]=Ry(s),f=Dr(e,["prefixCls"]),p=ie(s,`${s}-element`,{[`${s}-active`]:a,[`${s}-block`]:i},n,r,c,d);return u(g.createElement("div",{className:p},g.createElement(SR,Object.assign({prefixCls:`${s}-button`,size:o},f))))},Ltt=$tt,Ptt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Ftt=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i}=e,{getPrefixCls:o}=g.useContext(dt),l=o("skeleton",t),[s,u,c]=Ry(l),d=ie(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,c);return s(g.createElement("div",{className:d},g.createElement("div",{className:ie(`${l}-image`,n),style:a},g.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},g.createElement("path",{d:Ptt,className:`${l}-image-path`})))))},Btt=Ftt,ztt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i,size:o="default"}=e,{getPrefixCls:l}=g.useContext(dt),s=l("skeleton",t),[u,c,d]=Ry(s),f=Dr(e,["prefixCls"]),p=ie(s,`${s}-element`,{[`${s}-active`]:a,[`${s}-block`]:i},n,r,c,d);return u(g.createElement("div",{className:p},g.createElement(SR,Object.assign({prefixCls:`${s}-input`,size:o},f))))},Htt=ztt;var jtt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const Utt=jtt;var Vtt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Utt}))};const Wtt=g.forwardRef(Vtt),Gtt=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i,children:o}=e,{getPrefixCls:l}=g.useContext(dt),s=l("skeleton",t),[u,c,d]=Ry(s),f=ie(s,`${s}-element`,{[`${s}-active`]:i},c,n,r,d),p=o??g.createElement(Wtt,null);return u(g.createElement("div",{className:f},g.createElement("div",{className:ie(`${s}-image`,n),style:a},p)))},qtt=Gtt,Ytt=e=>{const t=l=>{const{width:s,rows:u=2}=e;if(Array.isArray(s))return s[l];if(u-1===l)return s},{prefixCls:n,className:r,style:a,rows:i}=e,o=Ue(Array(i)).map((l,s)=>g.createElement("li",{key:s,style:{width:t(s)}}));return g.createElement("ul",{className:ie(n,r),style:a},o)},Ktt=Ytt,Xtt=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return g.createElement("h3",{className:ie(t,n),style:Object.assign({width:r},a)})},Qtt=Xtt;function YD(e){return e&&typeof e=="object"?e:{}}function Ztt(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Jtt(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function ent(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const _y=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:i,children:o,avatar:l=!1,title:s=!0,paragraph:u=!0,active:c,round:d}=e,{getPrefixCls:f,direction:p,skeleton:h}=g.useContext(dt),m=f("skeleton",t),[v,y,b]=Ry(m);if(n||!("loading"in e)){const x=!!l,E=!!s,S=!!u;let C;if(x){const T=Object.assign(Object.assign({prefixCls:`${m}-avatar`},Ztt(E,S)),YD(l));C=g.createElement("div",{className:`${m}-header`},g.createElement(SR,Object.assign({},T)))}let w;if(E||S){let T;if(E){const O=Object.assign(Object.assign({prefixCls:`${m}-title`},Jtt(x,S)),YD(s));T=g.createElement(Qtt,Object.assign({},O))}let A;if(S){const O=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},ent(x,E)),YD(u));A=g.createElement(Ktt,Object.assign({},O))}w=g.createElement("div",{className:`${m}-content`},T,A)}const I=ie(m,{[`${m}-with-avatar`]:x,[`${m}-active`]:c,[`${m}-rtl`]:p==="rtl",[`${m}-round`]:d},h==null?void 0:h.className,r,a,y,b);return v(g.createElement("div",{className:I,style:Object.assign(Object.assign({},h==null?void 0:h.style),i)},C,w))}return typeof o<"u"?o:null};_y.Button=Ltt;_y.Avatar=Mtt;_y.Input=Htt;_y.Image=Btt;_y.Node=qtt;const gl=_y;var tnt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const nnt=tnt;var rnt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:nnt}))};const d9=g.forwardRef(rnt),wR=g.createContext(null);var ant=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,i=t.indicator,o=i===void 0?{}:i,l=o.size,s=o.align,u=s===void 0?"center":s,c=g.useState(),d=fe(c,2),f=d[0],p=d[1],h=g.useRef(),m=M.useCallback(function(y){return typeof l=="function"?l(y):typeof l=="number"?l:y},[l]);function v(){bn.cancel(h.current)}return g.useEffect(function(){var y={};if(n)if(r){y.width=m(n.width);var b=a?"right":"left";u==="start"&&(y[b]=n[b]),u==="center"&&(y[b]=n[b]+n.width/2,y.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[b]=n[b]+n.width,y.transform="translateX(-100%)")}else y.height=m(n.height),u==="start"&&(y.top=n.top),u==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),h.current=bn(function(){p(y)}),v},[n,r,a,u,m]),{style:f}},DJ={width:0,height:0,left:0,top:0};function int(e,t,n){return g.useMemo(function(){for(var r,a=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||DJ,o=i.left+i.width,l=0;l_?(R=A,C.current="x"):(R=O,C.current="y"),t(-R,-R)&&T.preventDefault()}var I=g.useRef(null);I.current={onTouchStart:x,onTouchMove:E,onTouchEnd:S,onWheel:w},g.useEffect(function(){function T(N){I.current.onTouchStart(N)}function A(N){I.current.onTouchMove(N)}function O(N){I.current.onTouchEnd(N)}function R(N){I.current.onWheel(N)}return document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",O,{passive:!1}),e.current.addEventListener("touchstart",T,{passive:!1}),e.current.addEventListener("wheel",R),function(){document.removeEventListener("touchmove",A),document.removeEventListener("touchend",O)}},[])}function Y0e(e){var t=g.useState(0),n=fe(t,2),r=n[0],a=n[1],i=g.useRef(0),o=g.useRef();return o.current=e,Yh(function(){var l;(l=o.current)===null||l===void 0||l.call(o)},[r]),function(){i.current===r&&(i.current+=1,a(i.current))}}function snt(e){var t=g.useRef([]),n=g.useState({}),r=fe(n,2),a=r[1],i=g.useRef(typeof e=="function"?e():e),o=Y0e(function(){var s=i.current;t.current.forEach(function(u){s=u(s)}),t.current=[],i.current=s,a({})});function l(s){t.current.push(s),o()}return[i.current,l]}var PJ={width:0,height:0,left:0,top:0,right:0};function unt(e,t,n,r,a,i,o){var l=o.tabs,s=o.tabPosition,u=o.rtl,c,d,f;return["top","bottom"].includes(s)?(c="width",d=u?"right":"left",f=Math.abs(n)):(c="height",d="top",f=-n),g.useMemo(function(){if(!l.length)return[0,0];for(var p=l.length,h=p,m=0;mf+t){h=m-1;break}}for(var y=0,b=p-1;b>=0;b-=1){var x=e.get(l[b].key)||PJ;if(x[d]=h?[0,0]:[y,h]},[e,t,r,a,i,f,s,l.map(function(p){return p.key}).join("_"),u])}function FJ(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var cnt="TABS_DQ";function K0e(e){return String(e).replace(/"/g,cnt)}function X0e(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Q0e=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return!r||r.showAdd===!1?null:g.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),BJ=g.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var i,o={};return zt(a)==="object"&&!g.isValidElement(a)?o=a:o.right=a,n==="right"&&(i=o.right),n==="left"&&(i=o.left),i?g.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),dnt=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,i=e.locale,o=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,u=e.moreTransitionName,c=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,v=e.onTabClick,y=e.getPopupContainer,b=e.popupClassName,x=g.useState(!1),E=fe(x,2),S=E[0],C=E[1],w=g.useState(null),I=fe(w,2),T=I[0],A=I[1],O="".concat(r,"-more-popup"),R="".concat(n,"-dropdown"),N=T!==null?"".concat(O,"-").concat(T):null,_=i==null?void 0:i.dropdownAriaLabel;function L(j,z){j.preventDefault(),j.stopPropagation(),f.onEdit("remove",{key:z,event:j})}var $=g.createElement(Iy,{onClick:function(z){var V=z.key,G=z.domEvent;v(V,G),C(!1)},prefixCls:"".concat(R,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[T],"aria-label":_!==void 0?_:"expanded dropdown"},a.map(function(j){var z=j.closable,V=j.disabled,G=j.closeIcon,W=j.key,Y=j.label,J=X0e(z,G,f,V);return g.createElement(FS,{key:W,id:"".concat(O,"-").concat(W),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(W),disabled:V},g.createElement("span",null,Y),J&&g.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(K){K.stopPropagation(),L(K,W)}},G||f.removeIcon||"×"))}));function k(j){for(var z=a.filter(function(J){return!J.disabled}),V=z.findIndex(function(J){return J.key===T})||0,G=z.length,W=0;Wst?"left":"right"})}),N=fe(R,2),_=N[0],L=N[1],$=MJ(0,function(lt,st){!O&&m&&m({direction:lt>st?"top":"bottom"})}),k=fe($,2),P=k[0],B=k[1],F=g.useState([0,0]),D=fe(F,2),j=D[0],z=D[1],V=g.useState([0,0]),G=fe(V,2),W=G[0],Y=G[1],J=g.useState([0,0]),Z=fe(J,2),K=Z[0],ee=Z[1],ae=g.useState([0,0]),te=fe(ae,2),re=te[0],se=te[1],ve=snt(new Map),ge=fe(ve,2),xe=ge[0],me=ge[1],de=int(x,xe,W[0]),Ce=Qw(j,O),Ie=Qw(W,O),ke=Qw(K,O),Te=Qw(re,O),pe=Ceue?ue:lt}var _e=g.useRef(null),Re=g.useState(),Be=fe(Re,2),Me=Be[0],$e=Be[1];function Fe(){$e(Date.now())}function He(){_e.current&&clearTimeout(_e.current)}lnt(w,function(lt,st){function Ht(ot,Tt){ot(function(Ft){var an=Ae(Ft+Tt);return an})}return pe?(O?Ht(L,lt):Ht(B,st),He(),Fe(),!0):!1}),g.useEffect(function(){return He(),Me&&(_e.current=setTimeout(function(){$e(0)},100)),He},[Me]);var Le=unt(de,Se,O?_:P,Ie,ke,Te,Q(Q({},e),{},{tabs:x})),Ke=fe(Le,2),ft=Ke[0],gt=Ke[1],Nt=jn(function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,st=de.get(lt)||{width:0,height:0,left:0,right:0,top:0};if(O){var Ht=_;l?st.right<_?Ht=st.right:st.right+st.width>_+Se&&(Ht=st.right+st.width-Se):st.left<-_?Ht=-st.left:st.left+st.width>-_+Se&&(Ht=-(st.left+st.width-Se)),B(0),L(Ae(Ht))}else{var ot=P;st.top<-P?ot=-st.top:st.top+st.height>-P+Se&&(ot=-(st.top+st.height-Se)),L(0),B(Ae(ot))}}),Je={};d==="top"||d==="bottom"?Je[l?"marginRight":"marginLeft"]=f:Je.marginTop=f;var je=x.map(function(lt,st){var Ht=lt.key;return g.createElement(pnt,{id:a,prefixCls:b,key:Ht,tab:lt,style:st===0?void 0:Je,closable:lt.closable,editable:u,active:Ht===o,renderWrapper:p,removeAriaLabel:c==null?void 0:c.removeAriaLabel,onClick:function(Tt){h(Ht,Tt)},onFocus:function(){Nt(Ht),Fe(),w.current&&(l||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),Ze=function(){return me(function(){var st,Ht=new Map,ot=(st=I.current)===null||st===void 0?void 0:st.getBoundingClientRect();return x.forEach(function(Tt){var Ft,an=Tt.key,Bn=(Ft=I.current)===null||Ft===void 0?void 0:Ft.querySelector('[data-node-key="'.concat(K0e(an),'"]'));if(Bn){var zn=hnt(Bn,ot),kn=fe(zn,4),zr=kn[0],qr=kn[1],lr=kn[2],gr=kn[3];Ht.set(an,{width:zr,height:qr,left:lr,top:gr})}}),Ht})};g.useEffect(function(){Ze()},[x.map(function(lt){return lt.key}).join("_")]);var Xe=Y0e(function(){var lt=Lm(E),st=Lm(S),Ht=Lm(C);z([lt[0]-st[0]-Ht[0],lt[1]-st[1]-Ht[1]]);var ot=Lm(A);ee(ot);var Tt=Lm(T);se(Tt);var Ft=Lm(I);Y([Ft[0]-ot[0],Ft[1]-ot[1]]),Ze()}),Ye=x.slice(0,ft),at=x.slice(gt+1),It=[].concat(Ue(Ye),Ue(at)),Bt=de.get(o),tt=ant({activeTabOffset:Bt,horizontal:O,indicator:v,rtl:l}),ut=tt.style;g.useEffect(function(){Nt()},[o,we,ue,FJ(Bt),FJ(de),O]),g.useEffect(function(){Xe()},[l]);var wt=!!It.length,Pt="".concat(b,"-nav-wrap"),Yt,Kt,tn,Ot;return O?l?(Kt=_>0,Yt=_!==ue):(Yt=_<0,Kt=_!==we):(tn=P<0,Ot=P!==we),g.createElement(Si,{onResize:Xe},g.createElement("div",{ref:zc(t,E),role:"tablist",className:ie("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Fe()}},g.createElement(BJ,{ref:S,position:"left",extra:s,prefixCls:b}),g.createElement(Si,{onResize:Xe},g.createElement("div",{className:ie(Pt,X(X(X(X({},"".concat(Pt,"-ping-left"),Yt),"".concat(Pt,"-ping-right"),Kt),"".concat(Pt,"-ping-top"),tn),"".concat(Pt,"-ping-bottom"),Ot)),ref:w},g.createElement(Si,{onResize:Xe},g.createElement("div",{ref:I,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(P,"px)"),transition:Me?"none":void 0}},je,g.createElement(Q0e,{ref:A,prefixCls:b,locale:c,editable:u,style:Q(Q({},je.length===0?void 0:Je),{},{visibility:wt?"hidden":null})}),g.createElement("div",{className:ie("".concat(b,"-ink-bar"),X({},"".concat(b,"-ink-bar-animated"),i.inkBar)),style:ut}))))),g.createElement(fnt,Ne({},e,{removeAriaLabel:c==null?void 0:c.removeAriaLabel,ref:T,prefixCls:b,tabs:It,className:!wt&&Ee,tabMoving:!!Me})),g.createElement(BJ,{ref:C,position:"right",extra:s,prefixCls:b})))}),Z0e=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.id,o=e.active,l=e.tabKey,s=e.children;return g.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!o,style:a,className:ie(n,o&&"".concat(n,"-active"),r),ref:t},s)}),gnt=["renderTabBar"],mnt=["label","key"],vnt=function(t){var n=t.renderTabBar,r=Lt(t,gnt),a=g.useContext(wR),i=a.tabs;if(n){var o=Q(Q({},r),{},{panes:i.map(function(l){var s=l.label,u=l.key,c=Lt(l,mnt);return g.createElement(Z0e,Ne({tab:s,key:u,tabKey:u},c))})});return n(o,zJ)}return g.createElement(zJ,r)},ynt=["key","forceRender","style","className","destroyInactiveTabPane"],bnt=function(t){var n=t.id,r=t.activeKey,a=t.animated,i=t.tabPosition,o=t.destroyInactiveTabPane,l=g.useContext(wR),s=l.prefixCls,u=l.tabs,c=a.tabPane,d="".concat(s,"-tabpane");return g.createElement("div",{className:ie("".concat(s,"-content-holder"))},g.createElement("div",{className:ie("".concat(s,"-content"),"".concat(s,"-content-").concat(i),X({},"".concat(s,"-content-animated"),c))},u.map(function(f){var p=f.key,h=f.forceRender,m=f.style,v=f.className,y=f.destroyInactiveTabPane,b=Lt(f,ynt),x=p===r;return g.createElement(io,Ne({key:p,visible:x,forceRender:h,removeOnLeave:!!(o||y),leavedClassName:"".concat(d,"-hidden")},a.tabPaneMotion),function(E,S){var C=E.style,w=E.className;return g.createElement(Z0e,Ne({},b,{prefixCls:d,id:n,tabKey:p,animated:c,active:x,style:Q(Q({},m),C),className:ie(v,w),ref:S}))})})))};function xnt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Q({inkBar:!0},zt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Ent=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],HJ=0,Snt=g.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,i=e.className,o=e.items,l=e.direction,s=e.activeKey,u=e.defaultActiveKey,c=e.editable,d=e.animated,f=e.tabPosition,p=f===void 0?"top":f,h=e.tabBarGutter,m=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,b=e.moreIcon,x=e.moreTransitionName,E=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,w=e.onTabClick,I=e.onTabScroll,T=e.getPopupContainer,A=e.popupClassName,O=e.indicator,R=Lt(e,Ent),N=g.useMemo(function(){return(o||[]).filter(function(se){return se&&zt(se)==="object"&&"key"in se})},[o]),_=l==="rtl",L=xnt(d),$=g.useState(!1),k=fe($,2),P=k[0],B=k[1];g.useEffect(function(){B(nR())},[]);var F=or(function(){var se;return(se=N[0])===null||se===void 0?void 0:se.key},{value:s,defaultValue:u}),D=fe(F,2),j=D[0],z=D[1],V=g.useState(function(){return N.findIndex(function(se){return se.key===j})}),G=fe(V,2),W=G[0],Y=G[1];g.useEffect(function(){var se=N.findIndex(function(ge){return ge.key===j});if(se===-1){var ve;se=Math.max(0,Math.min(W,N.length-1)),z((ve=N[se])===null||ve===void 0?void 0:ve.key)}Y(se)},[N.map(function(se){return se.key}).join("_"),j,W]);var J=or(null,{value:n}),Z=fe(J,2),K=Z[0],ee=Z[1];g.useEffect(function(){n||(ee("rc-tabs-".concat(HJ)),HJ+=1)},[]);function ae(se,ve){w==null||w(se,ve);var ge=se!==j;z(se),ge&&(C==null||C(se))}var te={id:K,activeKey:j,animated:L,tabPosition:p,rtl:_,mobile:P},re=Q(Q({},te),{},{editable:c,locale:y,moreIcon:b,moreTransitionName:x,tabBarGutter:h,onTabClick:ae,onTabScroll:I,extra:v,style:m,panes:null,getPopupContainer:T,popupClassName:A,indicator:O});return g.createElement(wR.Provider,{value:{tabs:N,prefixCls:a}},g.createElement("div",Ne({ref:t,id:n,className:ie(a,"".concat(a,"-").concat(p),X(X(X({},"".concat(a,"-mobile"),P),"".concat(a,"-editable"),c),"".concat(a,"-rtl"),_),i)},R),g.createElement(vnt,Ne({},re,{renderTabBar:S})),g.createElement(bnt,Ne({destroyInactiveTabPane:E},te,{animated:L}))))});const Cnt={motionAppear:!1,motionEnter:!0,motionLeave:!0};function wnt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Cnt),{motionName:ml(e,"switch")})),n}var Tnt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function Int(e,t){if(e)return e;const n=wi(t).map(r=>{if(g.isValidElement(r)){const{key:a,props:i}=r,o=i||{},{tab:l}=o,s=Tnt(o,["tab"]);return Object.assign(Object.assign({key:String(a)},s),{label:l})}return null});return Ant(n)}const Ont=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Rc(e,"slide-up"),Rc(e,"slide-down")]]},knt=Ont,Rnt=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:i,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ne(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ne(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ne(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ne(e.borderRadiusLG)} 0 0 ${ne(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},_nt=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},In(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ne(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ps),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ne(e.paddingXXS)} ${ne(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Nnt=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:i,verticalItemMargin:o,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ne(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Dnt=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ne(e.borderRadius)} ${ne(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ne(e.borderRadius)} ${ne(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ne(e.borderRadius)} ${ne(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ne(e.borderRadius)} 0 0 ${ne(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Mnt=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:i,horizontalItemPadding:o,itemSelectedColor:l,itemColor:s}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},xp(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:i}}}},$nt=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ne(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ne(e.marginXS)},marginLeft:{_skip_check_:!0,value:ne(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Lnt=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:i,itemActiveColor:o,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${ne(e.paddingXS)}`,background:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:o}},xp(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Mnt(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Pnt=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Fnt=On("Tabs",e=>{const t=pn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ne(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ne(e.horizontalItemGutter)}`});return[Dnt(t),$nt(t),Nnt(t),_nt(t),Rnt(t),Lnt(t),knt(t)]},Pnt),Bnt=()=>null,znt=Bnt;var Hnt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,i,o,l,s;const{type:u,className:c,rootClassName:d,size:f,onEdit:p,hideAdd:h,centered:m,addIcon:v,removeIcon:y,moreIcon:b,popupClassName:x,children:E,items:S,animated:C,style:w,indicatorSize:I,indicator:T}=e,A=Hnt(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=A,{direction:R,tabs:N,getPrefixCls:_,getPopupContainer:L}=g.useContext(dt),$=_("tabs",O),k=oa($),[P,B,F]=Fnt($,k);let D;u==="editable-card"&&(D={onEdit:(J,Z)=>{let{key:K,event:ee}=Z;p==null||p(J==="add"?ee:K,J)},removeIcon:(t=y??(N==null?void 0:N.removeIcon))!==null&&t!==void 0?t:g.createElement(Gu,null),addIcon:(v??(N==null?void 0:N.addIcon))||g.createElement(d9,null),showAdd:h!==!0});const j=_(),z=co(f),V=Int(S,E),G=wnt($,C),W=Object.assign(Object.assign({},N==null?void 0:N.style),w),Y={align:(n=T==null?void 0:T.align)!==null&&n!==void 0?n:(r=N==null?void 0:N.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(a=T==null?void 0:T.size)!==null&&a!==void 0?a:I)!==null&&i!==void 0?i:(o=N==null?void 0:N.indicator)===null||o===void 0?void 0:o.size)!==null&&l!==void 0?l:N==null?void 0:N.indicatorSize};return P(g.createElement(Snt,Object.assign({direction:R,getPopupContainer:L,moreTransitionName:`${j}-slide-up`},A,{items:V,className:ie({[`${$}-${z}`]:z,[`${$}-card`]:["card","editable-card"].includes(u),[`${$}-editable-card`]:u==="editable-card",[`${$}-centered`]:m},N==null?void 0:N.className,c,d,B,F,k),popupClassName:ie(x,B,F,k),style:W,editable:D,moreIcon:(s=b??(N==null?void 0:N.moreIcon))!==null&&s!==void 0?s:g.createElement(q7,null),prefixCls:$,animated:G,indicator:Y})))};J0e.TabPane=znt;const jnt=J0e;var Unt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=Unt(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=g.useContext(dt),o=i("card",t),l=ie(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return g.createElement("div",Object.assign({},a,{className:l}))},eye=Vnt,Wnt=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ne(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`},Lu()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ps),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Gnt=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${ne(a)} 0 0 0 ${n}, + 0 ${ne(a)} 0 0 ${n}, + ${ne(a)} ${ne(a)} 0 0 ${n}, + ${ne(a)} 0 0 0 ${n} inset, + 0 ${ne(a)} 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},qnt=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},Lu()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:ne(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:ne(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${i}`}}})},Ynt=e=>Object.assign(Object.assign({margin:`${ne(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Lu()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Ps),"&-description":{color:e.colorTextDescription}}),Knt=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${ne(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ne(e.padding)} ${ne(n)}`}}},Xnt=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Qnt=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:a,colorBorderSecondary:i,boxShadowTertiary:o,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},In(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:o},[`${n}-head`]:Wnt(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},Lu()),[`${n}-grid`]:Gnt(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:qnt(e),[`${n}-meta`]:Ynt(e)}),[`${n}-bordered`]:{border:`${ne(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:a}}},[`${n}-type-inner`]:Knt(e),[`${n}-loading`]:Xnt(e),[`${n}-rtl`]:{direction:"rtl"}}},Znt=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${ne(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Jnt=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),ert=On("Card",e=>{const t=pn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Qnt(t),Znt(t)]},Jnt);var jJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return g.createElement("ul",{className:t,style:r},n.map((a,i)=>{const o=`action-${i}`;return g.createElement("li",{style:{width:`${100/n.length}%`},key:o},g.createElement("span",null,a))}))},nrt=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,extra:o,headStyle:l={},bodyStyle:s={},title:u,loading:c,bordered:d=!0,size:f,type:p,cover:h,actions:m,tabList:v,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:E,hoverable:S,tabProps:C={},classNames:w,styles:I}=e,T=jJ(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:A,direction:O,card:R}=g.useContext(dt),N=xe=>{var me;(me=e.onTabChange)===null||me===void 0||me.call(e,xe)},_=xe=>{var me;return ie((me=R==null?void 0:R.classNames)===null||me===void 0?void 0:me[xe],w==null?void 0:w[xe])},L=xe=>{var me;return Object.assign(Object.assign({},(me=R==null?void 0:R.styles)===null||me===void 0?void 0:me[xe]),I==null?void 0:I[xe])},$=g.useMemo(()=>{let xe=!1;return g.Children.forEach(y,me=>{me&&me.type&&me.type===eye&&(xe=!0)}),xe},[y]),k=A("card",n),[P,B,F]=ert(k),D=g.createElement(gl,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),j=b!==void 0,z=Object.assign(Object.assign({},C),{[j?"activeKey":"defaultActiveKey"]:j?b:x,tabBarExtraContent:E});let V;const G=co(f),W=!G||G==="default"?"large":G,Y=v?g.createElement(jnt,Object.assign({size:W},z,{className:`${k}-head-tabs`,onChange:N,items:v.map(xe=>{var{tab:me}=xe,de=jJ(xe,["tab"]);return Object.assign({label:me},de)})})):null;if(u||o||Y){const xe=ie(`${k}-head`,_("header")),me=ie(`${k}-head-title`,_("title")),de=ie(`${k}-extra`,_("extra")),Ce=Object.assign(Object.assign({},l),L("header"));V=g.createElement("div",{className:xe,style:Ce},g.createElement("div",{className:`${k}-head-wrapper`},u&&g.createElement("div",{className:me,style:L("title")},u),o&&g.createElement("div",{className:de,style:L("extra")},o)),Y)}const J=ie(`${k}-cover`,_("cover")),Z=h?g.createElement("div",{className:J,style:L("cover")},h):null,K=ie(`${k}-body`,_("body")),ee=Object.assign(Object.assign({},s),L("body")),ae=g.createElement("div",{className:K,style:ee},c?D:y),te=ie(`${k}-actions`,_("actions")),re=m&&m.length?g.createElement(trt,{actionClasses:te,actionStyle:L("actions"),actions:m}):null,se=Dr(T,["onTabChange"]),ve=ie(k,R==null?void 0:R.className,{[`${k}-loading`]:c,[`${k}-bordered`]:d,[`${k}-hoverable`]:S,[`${k}-contain-grid`]:$,[`${k}-contain-tabs`]:v&&v.length,[`${k}-${G}`]:G,[`${k}-type-${p}`]:!!p,[`${k}-rtl`]:O==="rtl"},r,a,B,F),ge=Object.assign(Object.assign({},R==null?void 0:R.style),i);return P(g.createElement("div",Object.assign({ref:t},se,{className:ve,style:ge}),V,Z,ae,re))}),rrt=nrt;var art=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:i}=e,o=art(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=g.useContext(dt),s=l("card",t),u=ie(`${s}-meta`,n),c=r?g.createElement("div",{className:`${s}-meta-avatar`},r):null,d=a?g.createElement("div",{className:`${s}-meta-title`},a):null,f=i?g.createElement("div",{className:`${s}-meta-description`},i):null,p=d||f?g.createElement("div",{className:`${s}-meta-detail`},d,f):null;return g.createElement("div",Object.assign({},o,{className:u}),c,p)},ort=irt,f9=rrt;f9.Grid=eye;f9.Meta=ort;const fo=f9;function lrt(e,t,n){var r=n||{},a=r.noTrailing,i=a===void 0?!1:a,o=r.noLeading,l=o===void 0?!1:o,s=r.debounceMode,u=s===void 0?void 0:s,c,d=!1,f=0;function p(){c&&clearTimeout(c)}function h(v){var y=v||{},b=y.upcomingOnly,x=b===void 0?!1:b;p(),d=!x}function m(){for(var v=arguments.length,y=new Array(v),b=0;be?l?(f=Date.now(),i||(c=setTimeout(u?C:S,e))):S():i!==!0&&(c=setTimeout(u?C:S,u===void 0?e-E:e))}return m.cancel=h,m}function srt(e,t,n){var r=n||{},a=r.atBegin,i=a===void 0?!1:a;return lrt(e,t,{debounceMode:i!==!1})}function Vl(e,t){return e[t]}var urt=["children"];function tye(e,t){return"".concat(e,"-").concat(t)}function crt(e){return e&&e.type&&e.type.isTreeNode}function jS(e,t){return e??t}function H0(e){var t=e||{},n=t.title,r=t._title,a=t.key,i=t.children,o=n||"title";return{title:o,_title:r||[o],key:a||"key",children:i||"children"}}function nye(e){function t(n){var r=wi(n);return r.map(function(a){if(!crt(a))return Rr(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var i=a.key,o=a.props,l=o.children,s=Lt(o,urt),u=Q({key:i},s),c=t(l);return c.length&&(u.children=c),u}).filter(function(a){return a})}return t(e)}function KD(e,t,n){var r=H0(n),a=r._title,i=r.key,o=r.children,l=new Set(t===!0?[]:t),s=[];function u(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(f,p){for(var h=tye(d?d.pos:"0",p),m=jS(f[i],h),v,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,o=t.childrenPropName,l=t.fieldNames,s=arguments.length>2?arguments[2]:void 0,u=i||s,c={},d={},f={posEntities:c,keyEntities:d};return n&&(f=n(f)||f),drt(e,function(p){var h=p.node,m=p.index,v=p.pos,y=p.key,b=p.parentPos,x=p.level,E=p.nodes,S={node:h,nodes:E,index:m,key:y,pos:v,level:x},C=jS(y,v);c[v]=S,d[C]=S,S.parent=c[b],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),r&&r(S,f)},{externalGetKey:u,childrenPropName:o,fieldNames:l}),a&&a(f),f}function ux(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,o=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,u=t.dropPosition,c=t.keyEntities,d=Vl(c,e),f={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1};return f}function si(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,i=e.loaded,o=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,c=e.dragOverGapBottom,d=e.pos,f=e.active,p=e.eventKey,h=Q(Q({},t),{},{expanded:n,selected:r,checked:a,loaded:i,loading:o,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Rr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function rye(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function frt(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function prt(e,t,n,r){for(var a=new Set(e),i=new Set,o=0;o<=n;o+=1){var l=t.get(o)||new Set;l.forEach(function(d){var f=d.key,p=d.node,h=d.children,m=h===void 0?[]:h;a.has(f)&&!r(p)&&m.filter(function(v){return!r(v.node)}).forEach(function(v){a.add(v.key)})})}for(var s=new Set,u=n;u>=0;u-=1){var c=t.get(u)||new Set;c.forEach(function(d){var f=d.parent,p=d.node;if(!(r(p)||!d.parent||s.has(d.parent.key))){if(r(d.parent.node)){s.add(f.key);return}var h=!0,m=!1;(f.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,b=a.has(y);h&&!b&&(h=!1),!m&&(b||i.has(y))&&(m=!0)}),h&&a.add(f.key),m&&i.add(f.key),s.add(f.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(rye(i,a))}}function hrt(e,t,n,r,a){for(var i=new Set(e),o=new Set(t),l=0;l<=r;l+=1){var s=n.get(l)||new Set;s.forEach(function(f){var p=f.key,h=f.node,m=f.children,v=m===void 0?[]:m;!i.has(p)&&!o.has(p)&&!a(h)&&v.filter(function(y){return!a(y.node)}).forEach(function(y){i.delete(y.key)})})}o=new Set;for(var u=new Set,c=r;c>=0;c-=1){var d=n.get(c)||new Set;d.forEach(function(f){var p=f.parent,h=f.node;if(!(a(h)||!f.parent||u.has(f.parent.key))){if(a(f.parent.node)){u.add(p.key);return}var m=!0,v=!1;(p.children||[]).filter(function(y){return!a(y.node)}).forEach(function(y){var b=y.key,x=i.has(b);m&&!x&&(m=!1),!v&&(x||o.has(b))&&(v=!0)}),m||i.delete(p.key),v&&o.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(rye(o,i))}}function Vv(e,t,n,r){var a=[],i;r?i=r:i=frt;var o=new Set(e.filter(function(c){var d=!!Vl(n,c);return d||a.push(c),d})),l=new Map,s=0;Object.keys(n).forEach(function(c){var d=n[c],f=d.level,p=l.get(f);p||(p=new Set,l.set(f,p)),p.add(d),s=Math.max(s,f)}),Rr(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var u;return t===!0?u=prt(o,l,s,i):u=hrt(o,t.halfCheckedKeys,l,s,i),u}const grt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},In(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},In(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},In(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},bp(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ne(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + ${n}:not(${n}-disabled), + ${t}:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` + ${n}-checked:not(${n}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function aye(e,t){const n=pn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[grt(n)]}const iye=On("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[aye(n,e)]}),mrt=M.createContext(null),oye=mrt;var vrt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:i,children:o,indeterminate:l=!1,style:s,onMouseEnter:u,onMouseLeave:c,skipGroup:d=!1,disabled:f}=e,p=vrt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:m,checkbox:v}=g.useContext(dt),y=g.useContext(oye),{isFormItemInput:b}=g.useContext(No),x=g.useContext(Ws),E=(n=(y==null?void 0:y.disabled)||f)!==null&&n!==void 0?n:x,S=g.useRef(p.value);g.useEffect(()=>{y==null||y.registerValue(p.value)},[]),g.useEffect(()=>{if(!d)return p.value!==S.current&&(y==null||y.cancelValue(S.current),y==null||y.registerValue(p.value),S.current=p.value),()=>y==null?void 0:y.cancelValue(p.value)},[p.value]);const C=h("checkbox",r),w=oa(C),[I,T,A]=iye(C,w),O=Object.assign({},p);y&&!d&&(O.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),y.toggleOption&&y.toggleOption({label:o,value:p.value})},O.name=y.name,O.checked=y.value.includes(p.value));const R=ie(`${C}-wrapper`,{[`${C}-rtl`]:m==="rtl",[`${C}-wrapper-checked`]:O.checked,[`${C}-wrapper-disabled`]:E,[`${C}-wrapper-in-form-item`]:b},v==null?void 0:v.className,a,i,A,w,T),N=ie({[`${C}-indeterminate`]:l},Gk,T),_=l?"mixed":void 0;return I(g.createElement(qk,{component:"Checkbox",disabled:E},g.createElement("label",{className:R,style:Object.assign(Object.assign({},v==null?void 0:v.style),s),onMouseEnter:u,onMouseLeave:c},g.createElement(B0e,Object.assign({"aria-checked":_},O,{prefixCls:C,className:N,disabled:E,ref:t})),o!==void 0&&g.createElement("span",null,o))))},brt=g.forwardRef(yrt),lye=brt;var xrt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:i,className:o,rootClassName:l,style:s,onChange:u}=e,c=xrt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=g.useContext(dt),[p,h]=g.useState(c.value||n||[]),[m,v]=g.useState([]);g.useEffect(()=>{"value"in c&&h(c.value||[])},[c.value]);const y=g.useMemo(()=>a.map(L=>typeof L=="string"||typeof L=="number"?{label:L,value:L}:L),[a]),b=L=>{v($=>$.filter(k=>k!==L))},x=L=>{v($=>[].concat(Ue($),[L]))},E=L=>{const $=p.indexOf(L.value),k=Ue(p);$===-1?k.push(L.value):k.splice($,1),"value"in c||h(k),u==null||u(k.filter(P=>m.includes(P)).sort((P,B)=>{const F=y.findIndex(j=>j.value===P),D=y.findIndex(j=>j.value===B);return F-D}))},S=d("checkbox",i),C=`${S}-group`,w=oa(S),[I,T,A]=iye(S,w),O=Dr(c,["value","disabled"]),R=a.length?y.map(L=>g.createElement(lye,{prefixCls:S,key:L.value.toString(),disabled:"disabled"in L?L.disabled:c.disabled,value:L.value,checked:p.includes(L.value),onChange:L.onChange,className:`${C}-item`,style:L.style,title:L.title,id:L.id,required:L.required},L.label)):r,N={toggleOption:E,value:p,disabled:c.disabled,name:c.name,registerValue:x,cancelValue:b},_=ie(C,{[`${C}-rtl`]:f==="rtl"},o,l,A,w,T);return I(g.createElement("div",Object.assign({className:_,style:s},O,{ref:t}),g.createElement(oye.Provider,{value:N},R)))}),Srt=Ert,h9=lye;h9.Group=Srt;h9.__ANT_CHECKBOX=!0;const xg=h9,Crt=g.createContext({}),sye=Crt,wrt=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Trt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Art=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,i={};for(let o=a;o>=0;o--)o===0?(i[`${r}${t}-${o}`]={display:"none"},i[`${r}-push-${o}`]={insetInlineStart:"auto"},i[`${r}-pull-${o}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${o}`]={marginInlineStart:0},i[`${r}${t}-order-${o}`]={order:0}):(i[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/a*100}%`,maxWidth:`${o/a*100}%`}],i[`${r}${t}-push-${o}`]={insetInlineStart:`${o/a*100}%`},i[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/a*100}%`},i[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/a*100}%`},i[`${r}${t}-order-${o}`]={order:o});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},C6=(e,t)=>Art(e,t),Irt=(e,t,n)=>({[`@media (min-width: ${ne(t)})`]:Object.assign({},C6(e,n))}),Ort=()=>({}),krt=()=>({}),Rrt=On("Grid",wrt,Ort),_rt=On("Grid",e=>{const t=pn(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Trt(t),C6(t,""),C6(t,"-xs"),Object.keys(n).map(r=>Irt(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},krt);var Nrt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=g.useContext(dt),{gutter:a,wrap:i}=g.useContext(sye),{prefixCls:o,span:l,order:s,offset:u,push:c,pull:d,className:f,children:p,flex:h,style:m}=e,v=Nrt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",o),[b,x,E]=_rt(y),S={};let C={};Drt.forEach(T=>{let A={};const O=e[T];typeof O=="number"?A.span=O:typeof O=="object"&&(A=O||{}),delete v[T],C=Object.assign(Object.assign({},C),{[`${y}-${T}-${A.span}`]:A.span!==void 0,[`${y}-${T}-order-${A.order}`]:A.order||A.order===0,[`${y}-${T}-offset-${A.offset}`]:A.offset||A.offset===0,[`${y}-${T}-push-${A.push}`]:A.push||A.push===0,[`${y}-${T}-pull-${A.pull}`]:A.pull||A.pull===0,[`${y}-rtl`]:r==="rtl"}),A.flex&&(C[`${y}-${T}-flex`]=!0,S[`--${y}-${T}-flex`]=UJ(A.flex))});const w=ie(y,{[`${y}-${l}`]:l!==void 0,[`${y}-order-${s}`]:s,[`${y}-offset-${u}`]:u,[`${y}-push-${c}`]:c,[`${y}-pull-${d}`]:d},f,C,x,E),I={};if(a&&a[0]>0){const T=a[0]/2;I.paddingLeft=T,I.paddingRight=T}return h&&(I.flex=UJ(h),i===!1&&!I.minWidth&&(I.minWidth=0)),b(g.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},I),m),S),className:w,ref:t}),p))}),Ji=Mrt;var $rt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i{a()},[JSON.stringify(e),t]),n}const Lrt=g.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:i,style:o,children:l,gutter:s=0,wrap:u}=e,c=$rt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=g.useContext(dt),[p,h]=g.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,v]=g.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=VJ(a,m),b=VJ(r,m),x=g.useRef(s),E=pve();g.useEffect(()=>{const k=E.subscribe(P=>{v(P);const B=x.current||0;(!Array.isArray(B)&&typeof B=="object"||Array.isArray(B)&&(typeof B[0]=="object"||typeof B[1]=="object"))&&h(P)});return()=>E.unsubscribe(k)},[]);const S=()=>{const k=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((B,F)=>{if(typeof B=="object")for(let D=0;D0?A[0]/-2:void 0;N&&(R.marginLeft=N,R.marginRight=N);const[_,L]=A;R.rowGap=L;const $=g.useMemo(()=>({gutter:[_,L],wrap:u}),[_,L,u]);return w(g.createElement(sye.Provider,{value:$},g.createElement("div",Object.assign({},c,{className:O,style:Object.assign(Object.assign({},R),o),ref:t}),l)))}),Ns=Lrt;function Prt(){return LS()}const Up={useBreakpoint:Prt},Frt=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:i,orientationMargin:o,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},In(e)),{borderBlockStart:`${ne(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ne(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ne(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ne(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ne(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ne(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Brt=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),zrt=On("Divider",e=>{const t=pn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Frt(t)]},Brt,{unitless:{orientationMargin:!0}});var Hrt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,divider:r}=g.useContext(dt),{prefixCls:a,type:i="horizontal",orientation:o="center",orientationMargin:l,className:s,rootClassName:u,children:c,dashed:d,plain:f,style:p}=e,h=Hrt(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),m=t("divider",a),[v,y,b]=zrt(m),x=o.length>0?`-${o}`:o,E=!!c,S=o==="left"&&l!=null,C=o==="right"&&l!=null,w=ie(m,r==null?void 0:r.className,y,b,`${m}-${i}`,{[`${m}-with-text`]:E,[`${m}-with-text${x}`]:E,[`${m}-dashed`]:!!d,[`${m}-plain`]:!!f,[`${m}-rtl`]:n==="rtl",[`${m}-no-default-orientation-margin-left`]:S,[`${m}-no-default-orientation-margin-right`]:C},s,u),I=g.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),T=Object.assign(Object.assign({},S&&{marginLeft:I}),C&&{marginRight:I});return v(g.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},r==null?void 0:r.style),p)},h,{role:"separator"}),c&&i!=="vertical"&&g.createElement("span",{className:`${m}-inner-text`,style:T},c)))},uye=jrt;var Urt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const Vrt=Urt;var Wrt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Vrt}))};const Grt=g.forwardRef(Wrt);function w6(){return typeof BigInt=="function"}function cye(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Zh(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),i=a[0]||"0",o=a[1]||"0";i==="0"&&o==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:o,fullStr:"".concat(l).concat(r)}}function g9(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Lh(e){var t=String(e);if(g9(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&m9(t)?t.length-t.indexOf(".")-1:0}function TR(e){var t=String(e);if(g9(e)){if(e>Number.MAX_SAFE_INTEGER)return String(w6()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Zh("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Yrt=function(){function e(t){if(Pa(this,e),X(this,"origin",""),X(this,"number",void 0),X(this,"empty",void 0),cye(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Fa(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":TR(this.number):this.origin}}]),e}();function pu(e){return w6()?new qrt(e):new Yrt(e)}function YT(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Zh(e),i=a.negativeStr,o=a.integerStr,l=a.decimalStr,s="".concat(t).concat(l),u="".concat(i).concat(o);if(n>=0){var c=Number(l[n]);if(c>=5&&!r){var d=pu(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-c));return YT(d.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return s===".0"?u:"".concat(u).concat(s)}function Krt(e){return!!(e.addonBefore||e.addonAfter)}function Xrt(e){return!!(e.prefix||e.suffix||e.allowClear)}function NI(e,t,n,r){if(n){var a=t;if(t.type==="click"){var i=e.cloneNode(!0);a=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(a);return}if(e.type!=="file"&&r!==void 0){var o=e.cloneNode(!0);a=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value=r,n(a);return}n(a)}}function dye(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var v9=function(t){var n,r,a=t.inputElement,i=t.children,o=t.prefixCls,l=t.prefix,s=t.suffix,u=t.addonBefore,c=t.addonAfter,d=t.className,f=t.style,p=t.disabled,h=t.readOnly,m=t.focused,v=t.triggerFocus,y=t.allowClear,b=t.value,x=t.handleReset,E=t.hidden,S=t.classes,C=t.classNames,w=t.dataAttrs,I=t.styles,T=t.components,A=i??a,O=(T==null?void 0:T.affixWrapper)||"span",R=(T==null?void 0:T.groupWrapper)||"span",N=(T==null?void 0:T.wrapper)||"span",_=(T==null?void 0:T.groupAddon)||"span",L=g.useRef(null),$=function(re){var se;(se=L.current)!==null&&se!==void 0&&se.contains(re.target)&&(v==null||v())},k=Xrt(t),P=g.cloneElement(A,{value:b,className:ie(A.props.className,!k&&(C==null?void 0:C.variant))||null});if(k){var B,F=null;if(y){var D,j=!p&&!h&&b,z="".concat(o,"-clear-icon"),V=zt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";F=M.createElement("span",{onClick:x,onMouseDown:function(re){return re.preventDefault()},className:ie(z,(D={},X(D,"".concat(z,"-hidden"),!j),X(D,"".concat(z,"-has-suffix"),!!s),D)),role:"button",tabIndex:-1},V)}var G="".concat(o,"-affix-wrapper"),W=ie(G,(B={},X(B,"".concat(o,"-disabled"),p),X(B,"".concat(G,"-disabled"),p),X(B,"".concat(G,"-focused"),m),X(B,"".concat(G,"-readonly"),h),X(B,"".concat(G,"-input-with-clear-btn"),s&&y&&b),B),S==null?void 0:S.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),Y=(s||y)&&M.createElement("span",{className:ie("".concat(o,"-suffix"),C==null?void 0:C.suffix),style:I==null?void 0:I.suffix},F,s);P=M.createElement(O,Ne({className:W,style:I==null?void 0:I.affixWrapper,onClick:$},w==null?void 0:w.affixWrapper,{ref:L}),l&&M.createElement("span",{className:ie("".concat(o,"-prefix"),C==null?void 0:C.prefix),style:I==null?void 0:I.prefix},l),P,Y)}if(Krt(t)){var J="".concat(o,"-group"),Z="".concat(J,"-addon"),K="".concat(J,"-wrapper"),ee=ie("".concat(o,"-wrapper"),J,S==null?void 0:S.wrapper,C==null?void 0:C.wrapper),ae=ie(K,X({},"".concat(K,"-disabled"),p),S==null?void 0:S.group,C==null?void 0:C.groupWrapper);P=M.createElement(R,{className:ae},M.createElement(N,{className:ee},u&&M.createElement(_,{className:Z},u),P,c&&M.createElement(_,{className:Z},c)))}return M.cloneElement(P,{className:ie((n=P.props)===null||n===void 0?void 0:n.className,d)||null,style:Q(Q({},(r=P.props)===null||r===void 0?void 0:r.style),f),hidden:E})},Qrt=["show"];function fye(e,t){return g.useMemo(function(){var n={};t&&(n.show=zt(t)==="object"&&t.formatter?t.formatter:!!t),n=Q(Q({},n),e);var r=n,a=r.show,i=Lt(r,Qrt);return Q(Q({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(o){return o.length}})},[e,t])}var Zrt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Jrt=g.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,u=s===void 0?"rc-input":s,c=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,m=e.showCount,v=e.count,y=e.type,b=y===void 0?"text":y,x=e.classes,E=e.classNames,S=e.styles,C=e.onCompositionStart,w=e.onCompositionEnd,I=Lt(e,Zrt),T=g.useState(!1),A=fe(T,2),O=A[0],R=A[1],N=g.useRef(!1),_=g.useRef(null),L=function(de){_.current&&dye(_.current,de)},$=or(e.defaultValue,{value:e.value}),k=fe($,2),P=k[0],B=k[1],F=P==null?"":String(P),D=g.useState(null),j=fe(D,2),z=j[0],V=j[1],G=fye(v,m),W=G.max||p,Y=G.strategy(F),J=!!W&&Y>W;g.useImperativeHandle(t,function(){return{focus:L,blur:function(){var de;(de=_.current)===null||de===void 0||de.blur()},setSelectionRange:function(de,Ce,Ie){var ke;(ke=_.current)===null||ke===void 0||ke.setSelectionRange(de,Ce,Ie)},select:function(){var de;(de=_.current)===null||de===void 0||de.select()},input:_.current}}),g.useEffect(function(){R(function(me){return me&&c?!1:me})},[c]);var Z=function(de,Ce,Ie){var ke=Ce;if(!N.current&&G.exceedFormatter&&G.max&&G.strategy(Ce)>G.max){if(ke=G.exceedFormatter(Ce,{max:G.max}),Ce!==ke){var Te,pe;V([((Te=_.current)===null||Te===void 0?void 0:Te.selectionStart)||0,((pe=_.current)===null||pe===void 0?void 0:pe.selectionEnd)||0])}}else if(Ie.source==="compositionEnd")return;B(ke),_.current&&NI(_.current,de,r,ke)};g.useEffect(function(){if(z){var me;(me=_.current)===null||me===void 0||me.setSelectionRange.apply(me,Ue(z))}},[z]);var K=function(de){Z(de,de.target.value,{source:"change"})},ee=function(de){N.current=!1,Z(de,de.currentTarget.value,{source:"compositionEnd"}),w==null||w(de)},ae=function(de){o&&de.key==="Enter"&&o(de),l==null||l(de)},te=function(de){R(!0),a==null||a(de)},re=function(de){R(!1),i==null||i(de)},se=function(de){B(""),L(),_.current&&NI(_.current,de,r)},ve=J&&"".concat(u,"-out-of-range"),ge=function(){var de=Dr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return M.createElement("input",Ne({autoComplete:n},de,{onChange:K,onFocus:te,onBlur:re,onKeyDown:ae,className:ie(u,X({},"".concat(u,"-disabled"),c),E==null?void 0:E.input),style:S==null?void 0:S.input,ref:_,size:d,type:b,onCompositionStart:function(Ie){N.current=!0,C==null||C(Ie)},onCompositionEnd:ee}))},xe=function(){var de=Number(W)>0;if(h||G.show){var Ce=G.showFormatter?G.showFormatter({value:F,count:Y,maxLength:W}):"".concat(Y).concat(de?" / ".concat(W):"");return M.createElement(M.Fragment,null,G.show&&M.createElement("span",{className:ie("".concat(u,"-show-count-suffix"),X({},"".concat(u,"-show-count-has-suffix"),!!h),E==null?void 0:E.count),style:Q({},S==null?void 0:S.count)},Ce),h)}return null};return M.createElement(v9,Ne({},I,{prefixCls:u,className:ie(f,ve),handleReset:se,value:F,focused:O,triggerFocus:L,suffix:xe(),disabled:c,classes:x,classNames:E,styles:S}),ge())});function eat(e,t){var n=g.useRef(null);function r(){try{var i=e.selectionStart,o=e.selectionEnd,l=e.value,s=l.substring(0,i),u=l.substring(o);n.current={start:i,end:o,value:l,beforeTxt:s,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var i=e.value,o=n.current,l=o.beforeTxt,s=o.afterTxt,u=o.start,c=i.length;if(i.endsWith(s))c=i.length-n.current.afterTxt.length;else if(i.startsWith(l))c=l.length;else{var d=l[u-1],f=i.indexOf(d,u-1);f!==-1&&(c=f+1)}e.setSelectionRange(c,c)}catch(p){Rr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,a]}var tat=function(){var t=g.useState(!1),n=fe(t,2),r=n[0],a=n[1];return Sn(function(){a(nR())},[]),r},nat=200,rat=600;function aat(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,i=e.downDisabled,o=e.onStep,l=g.useRef(),s=g.useRef([]),u=g.useRef();u.current=o;var c=function(){clearTimeout(l.current)},d=function(x,E){x.preventDefault(),c(),u.current(E);function S(){u.current(E),l.current=setTimeout(S,nat)}l.current=setTimeout(S,rat)};g.useEffect(function(){return function(){c(),s.current.forEach(function(b){return bn.cancel(b)})}},[]);var f=tat();if(f)return null;var p="".concat(t,"-handler"),h=ie(p,"".concat(p,"-up"),X({},"".concat(p,"-up-disabled"),a)),m=ie(p,"".concat(p,"-down"),X({},"".concat(p,"-down-disabled"),i)),v=function(){return s.current.push(bn(c))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return g.createElement("div",{className:"".concat(p,"-wrap")},g.createElement("span",Ne({},y,{onMouseDown:function(x){d(x,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||g.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),g.createElement("span",Ne({},y,{onMouseDown:function(x){d(x,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:m}),r||g.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function WJ(e){var t=typeof e=="number"?TR(e):Zh(e).fullStr,n=t.includes(".");return n?Zh(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const iat=function(){var e=g.useRef(0),t=function(){bn.cancel(e.current)};return g.useEffect(function(){return t},[]),function(n){t(),e.current=bn(function(){n()})}};var oat=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],lat=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],GJ=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},qJ=function(t){var n=pu(t);return n.isInvalidate()?null:n},sat=g.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-input-number":r,i=e.className,o=e.style,l=e.min,s=e.max,u=e.step,c=u===void 0?1:u,d=e.defaultValue,f=e.value,p=e.disabled,h=e.readOnly,m=e.upHandler,v=e.downHandler,y=e.keyboard,b=e.changeOnWheel,x=b===void 0?!1:b,E=e.controls,S=E===void 0?!0:E;e.classNames;var C=e.stringMode,w=e.parser,I=e.formatter,T=e.precision,A=e.decimalSeparator,O=e.onChange,R=e.onInput,N=e.onPressEnter,_=e.onStep,L=e.changeOnBlur,$=L===void 0?!0:L,k=Lt(e,oat),P="".concat(a,"-input"),B=g.useRef(null),F=g.useState(!1),D=fe(F,2),j=D[0],z=D[1],V=g.useRef(!1),G=g.useRef(!1),W=g.useRef(!1),Y=g.useState(function(){return pu(f??d)}),J=fe(Y,2),Z=J[0],K=J[1];function ee(Je){f===void 0&&K(Je)}var ae=g.useCallback(function(Je,je){if(!je)return T>=0?T:Math.max(Lh(Je),Lh(c))},[T,c]),te=g.useCallback(function(Je){var je=String(Je);if(w)return w(je);var Ze=je;return A&&(Ze=Ze.replace(A,".")),Ze.replace(/[^\w.-]+/g,"")},[w,A]),re=g.useRef(""),se=g.useCallback(function(Je,je){if(I)return I(Je,{userTyping:je,input:String(re.current)});var Ze=typeof Je=="number"?TR(Je):Je;if(!je){var Xe=ae(Ze,je);if(m9(Ze)&&(A||Xe>=0)){var Ye=A||".";Ze=YT(Ze,Ye,Xe)}}return Ze},[I,ae,A]),ve=g.useState(function(){var Je=d??f;return Z.isInvalidate()&&["string","number"].includes(zt(Je))?Number.isNaN(Je)?"":Je:se(Z.toString(),!1)}),ge=fe(ve,2),xe=ge[0],me=ge[1];re.current=xe;function de(Je,je){me(se(Je.isInvalidate()?Je.toString(!1):Je.toString(!je),je))}var Ce=g.useMemo(function(){return qJ(s)},[s,T]),Ie=g.useMemo(function(){return qJ(l)},[l,T]),ke=g.useMemo(function(){return!Ce||!Z||Z.isInvalidate()?!1:Ce.lessEquals(Z)},[Ce,Z]),Te=g.useMemo(function(){return!Ie||!Z||Z.isInvalidate()?!1:Z.lessEquals(Ie)},[Ie,Z]),pe=eat(B.current,j),Se=fe(pe,2),Ee=Se[0],we=Se[1],ue=function(je){return Ce&&!je.lessEquals(Ce)?Ce:Ie&&!Ie.lessEquals(je)?Ie:null},Ae=function(je){return!ue(je)},_e=function(je,Ze){var Xe=je,Ye=Ae(Xe)||Xe.isEmpty();if(!Xe.isEmpty()&&!Ze&&(Xe=ue(Xe)||Xe,Ye=!0),!h&&!p&&Ye){var at=Xe.toString(),It=ae(at,Ze);return It>=0&&(Xe=pu(YT(at,".",It)),Ae(Xe)||(Xe=pu(YT(at,".",It,!0)))),Xe.equals(Z)||(ee(Xe),O==null||O(Xe.isEmpty()?null:GJ(C,Xe)),f===void 0&&de(Xe,Ze)),Xe}return Z},Re=iat(),Be=function Je(je){if(Ee(),re.current=je,me(je),!G.current){var Ze=te(je),Xe=pu(Ze);Xe.isNaN()||_e(Xe,!0)}R==null||R(je),Re(function(){var Ye=je;w||(Ye=je.replace(/。/g,".")),Ye!==je&&Je(Ye)})},Me=function(){G.current=!0},$e=function(){G.current=!1,Be(B.current.value)},Fe=function(je){Be(je.target.value)},He=function(je){var Ze;if(!(je&&ke||!je&&Te)){V.current=!1;var Xe=pu(W.current?WJ(c):c);je||(Xe=Xe.negate());var Ye=(Z||pu(0)).add(Xe.toString()),at=_e(Ye,!1);_==null||_(GJ(C,at),{offset:W.current?WJ(c):c,type:je?"up":"down"}),(Ze=B.current)===null||Ze===void 0||Ze.focus()}},Le=function(je){var Ze=pu(te(xe)),Xe=Ze;Ze.isNaN()?Xe=_e(Z,je):Xe=_e(Ze,je),f!==void 0?de(Z,!1):Xe.isNaN()||de(Xe,!1)},Ke=function(){V.current=!0},ft=function(je){var Ze=je.key,Xe=je.shiftKey;V.current=!0,W.current=Xe,Ze==="Enter"&&(G.current||(V.current=!1),Le(!1),N==null||N(je)),y!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ze)&&(He(Ze==="Up"||Ze==="ArrowUp"),je.preventDefault())},gt=function(){V.current=!1,W.current=!1};g.useEffect(function(){if(x&&j){var Je=function(Xe){He(Xe.deltaY<0),Xe.preventDefault()},je=B.current;if(je)return je.addEventListener("wheel",Je,{passive:!1}),function(){return je.removeEventListener("wheel",Je)}}});var Nt=function(){$&&Le(!1),z(!1),V.current=!1};return Yh(function(){Z.isInvalidate()||de(Z,!1)},[T,I]),Yh(function(){var Je=pu(f);K(Je);var je=pu(te(xe));(!Je.equals(je)||!V.current||I)&&de(Je,V.current)},[f]),Yh(function(){I&&we()},[xe]),g.createElement("div",{className:ie(a,i,(n={},X(n,"".concat(a,"-focused"),j),X(n,"".concat(a,"-disabled"),p),X(n,"".concat(a,"-readonly"),h),X(n,"".concat(a,"-not-a-number"),Z.isNaN()),X(n,"".concat(a,"-out-of-range"),!Z.isInvalidate()&&!Ae(Z)),n)),style:o,onFocus:function(){z(!0)},onBlur:Nt,onKeyDown:ft,onKeyUp:gt,onCompositionStart:Me,onCompositionEnd:$e,onBeforeInput:Ke},S&&g.createElement(aat,{prefixCls:a,upNode:m,downNode:v,upDisabled:ke,downDisabled:Te,onStep:He}),g.createElement("div",{className:"".concat(P,"-wrap")},g.createElement("input",Ne({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":Z.isInvalidate()?null:Z.toString(),step:c},k,{ref:uo(B,t),className:P,value:xe,onChange:Fe,disabled:p,readOnly:h}))))}),pye=g.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,i=e.value,o=e.prefix,l=e.suffix,s=e.addonBefore,u=e.addonAfter,c=e.className,d=e.classNames,f=Lt(e,lat),p=g.useRef(null),h=function(v){p.current&&dye(p.current,v)};return g.createElement(v9,{className:c,triggerFocus:h,prefixCls:a,value:i,disabled:n,style:r,prefix:o,suffix:l,addonAfter:u,addonBefore:s,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},g.createElement(sat,Ne({prefixCls:a,disabled:n,ref:uo(p,t),className:d==null?void 0:d.input},f)))});pye.displayName="InputNumber";const uat=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},xR(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Wn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},YJ=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const i=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},cat=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,fontSizeLG:i,controlHeightLG:o,controlHeightSM:l,colorError:s,paddingInlineSM:u,paddingBlockSM:c,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:p,motionDurationMid:h,handleHoverColor:m,paddingInline:v,paddingBlock:y,handleBg:b,handleActiveBg:x,colorTextDisabled:E,borderRadiusSM:S,borderRadiusLG:C,controlWidth:w,handleOpacity:I,handleBorderColor:T,filledHandleBg:A,lineHeightLG:O,calc:R}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),HS(e)),{display:"inline-block",width:w,margin:0,padding:0,borderRadius:a}),i9(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${ne(n)} ${r} ${T}`}}})),l9(e,{[`${t}-handler-wrap`]:{background:A,[`${t}-handler-down`]:{borderBlockStart:`${ne(n)} ${r} ${T}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),o9(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:O,borderRadius:C,[`input${t}-input`]:{height:R(o).sub(R(n).mul(2)).equal(),padding:`${ne(d)} ${ne(f)}`}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:R(l).sub(R(n).mul(2)).equal(),padding:`${ne(c)} ${ne(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},In(e)),G0e(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}},j0e(e)),V0e(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),{width:"100%",padding:`${ne(y)} ${ne(v)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),s9(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:I,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ne(n)} ${r} ${T}`,transition:`all ${h} linear`,"&:active":{background:x},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},AS()),{color:p,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},YJ(e,"lg")),YJ(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:E}})}]},dat=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:i,borderRadiusLG:o,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:u,paddingBlockLG:c,paddingBlockSM:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ne(n)} 0`}},HS(e)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:s,[`input${t}-input`]:{padding:`${ne(c)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${ne(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:a}}})}},fat=On("InputNumber",e=>{const t=pn(e,bR(e));return[cat(t),dat(t),kS(t)]},uat,{unitless:{handleOpacity:!0}});var pat=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=g.useContext(dt),a=g.useRef(null);g.useImperativeHandle(t,()=>a.current);const{className:i,rootClassName:o,size:l,disabled:s,prefixCls:u,addonBefore:c,addonAfter:d,prefix:f,bordered:p,readOnly:h,status:m,controls:v,variant:y}=e,b=pat(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),x=n("input-number",u),E=oa(x),[S,C,w]=fat(x,E),{compactSize:I,compactItemClassnames:T}=Hp(x,r);let A=g.createElement(Grt,{className:`${x}-handler-up-inner`}),O=g.createElement(iR,{className:`${x}-handler-down-inner`});const R=typeof v=="boolean"?v:void 0;typeof v=="object"&&(A=typeof v.upIcon>"u"?A:g.createElement("span",{className:`${x}-handler-up-inner`},v.upIcon),O=typeof v.downIcon>"u"?O:g.createElement("span",{className:`${x}-handler-down-inner`},v.downIcon));const{hasFeedback:N,status:_,isFormItemInput:L,feedbackIcon:$}=g.useContext(No),k=Cy(_,m),P=co(Y=>{var J;return(J=l??I)!==null&&J!==void 0?J:Y}),B=g.useContext(Ws),F=s??B,[D,j]=wy(y,p),z=N&&g.createElement(g.Fragment,null,$),V=ie({[`${x}-lg`]:P==="large",[`${x}-sm`]:P==="small",[`${x}-rtl`]:r==="rtl",[`${x}-in-form-item`]:L},C),G=`${x}-group`,W=g.createElement(pye,Object.assign({ref:a,disabled:F,className:ie(w,E,i,o,T),upHandler:A,downHandler:O,prefixCls:x,readOnly:h,controls:R,prefix:f,suffix:z,addonAfter:d&&g.createElement(kc,null,g.createElement(L0,{override:!0,status:!0},d)),addonBefore:c&&g.createElement(kc,null,g.createElement(L0,{override:!0,status:!0},c)),classNames:{input:V,variant:ie({[`${x}-${D}`]:j},Ep(x,k,N)),affixWrapper:ie({[`${x}-affix-wrapper-sm`]:P==="small",[`${x}-affix-wrapper-lg`]:P==="large",[`${x}-affix-wrapper-rtl`]:r==="rtl"},C),wrapper:ie({[`${G}-rtl`]:r==="rtl"},C),groupWrapper:ie({[`${x}-group-wrapper-sm`]:P==="small",[`${x}-group-wrapper-lg`]:P==="large",[`${x}-group-wrapper-rtl`]:r==="rtl",[`${x}-group-wrapper-${D}`]:j},Ep(`${x}-group-wrapper`,k,N),C)}},b));return S(W)}),gye=hye,hat=e=>g.createElement(Hc,{theme:{components:{InputNumber:{handleVisible:!0}}}},g.createElement(hye,Object.assign({},e)));gye._InternalPanelDoNotUseOrYouWillBeFired=hat;const gat=gye,mat=e=>{const{getPrefixCls:t,direction:n}=g.useContext(dt),{prefixCls:r,className:a}=e,i=t("input-group",r),o=t("input"),[l,s]=c9(o),u=ie(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,a),c=g.useContext(No),d=g.useMemo(()=>Object.assign(Object.assign({},c),{isFormItemInput:!1}),[c]);return l(g.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},g.createElement(No.Provider,{value:d},e.children)))},vat=mat,yat=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:M.createElement(Bp,null)}),t},mye=yat;function vye(e,t){const n=g.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,i,o,l;!((a=e.current)===null||a===void 0)&&a.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return g.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function bat(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var xat=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,status:i,size:o,disabled:l,onBlur:s,onFocus:u,suffix:c,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:m,styles:v,rootClassName:y,onChange:b,classNames:x,variant:E}=e,S=xat(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:w,input:I}=M.useContext(dt),T=C("input",r),A=g.useRef(null),O=oa(T),[R,N,_]=c9(T,O),{compactSize:L,compactItemClassnames:$}=Hp(T,w),k=co(te=>{var re;return(re=o??L)!==null&&re!==void 0?re:te}),P=M.useContext(Ws),B=l??P,{status:F,hasFeedback:D,feedbackIcon:j}=g.useContext(No),z=Cy(F,i),V=bat(e)||!!D;g.useRef(V);const G=vye(A,!0),W=te=>{G(),s==null||s(te)},Y=te=>{G(),u==null||u(te)},J=te=>{G(),b==null||b(te)},Z=(D||c)&&M.createElement(M.Fragment,null,c,D&&j),K=mye(d??(I==null?void 0:I.allowClear)),[ee,ae]=wy(E,a);return R(M.createElement(Jrt,Object.assign({ref:uo(t,A),prefixCls:T,autoComplete:I==null?void 0:I.autoComplete},S,{disabled:B,onBlur:W,onFocus:Y,style:Object.assign(Object.assign({},I==null?void 0:I.style),m),styles:Object.assign(Object.assign({},I==null?void 0:I.styles),v),suffix:Z,allowClear:K,className:ie(h,y,_,O,$,I==null?void 0:I.className),onChange:J,addonAfter:f&&M.createElement(kc,null,M.createElement(L0,{override:!0,status:!0},f)),addonBefore:p&&M.createElement(kc,null,M.createElement(L0,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},x),I==null?void 0:I.classNames),{input:ie({[`${T}-sm`]:k==="small",[`${T}-lg`]:k==="large",[`${T}-rtl`]:w==="rtl"},x==null?void 0:x.input,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.input,N),variant:ie({[`${T}-${ee}`]:ae},Ep(T,z)),affixWrapper:ie({[`${T}-affix-wrapper-sm`]:k==="small",[`${T}-affix-wrapper-lg`]:k==="large",[`${T}-affix-wrapper-rtl`]:w==="rtl"},N),wrapper:ie({[`${T}-group-rtl`]:w==="rtl"},N),groupWrapper:ie({[`${T}-group-wrapper-sm`]:k==="small",[`${T}-group-wrapper-lg`]:k==="large",[`${T}-group-wrapper-rtl`]:w==="rtl",[`${T}-group-wrapper-${ee}`]:ae},Ep(`${T}-group-wrapper`,z,D),N)})})))}),y9=Sat;var Cat={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const wat=Cat;var Tat=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:wat}))};const Aat=g.forwardRef(Tat);var Iat={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const yye=Iat;var Oat=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:yye}))};const AR=g.forwardRef(Oat);var kat=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae?g.createElement(AR,null):g.createElement(Aat,null),_at={click:"onClick",hover:"onMouseOver"},Nat=g.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[a,i]=g.useState(()=>r?n.visible:!1),o=g.useRef(null);g.useEffect(()=>{r&&i(n.visible)},[r,n]);const l=vye(o),s=()=>{const{disabled:S}=e;S||(a&&l(),i(C=>{var w;const I=!C;return typeof n=="object"&&((w=n.onVisibleChange)===null||w===void 0||w.call(n,I)),I}))},u=S=>{const{action:C="click",iconRender:w=Rat}=e,I=_at[C]||"",T=w(a),A={[I]:s,className:`${S}-icon`,key:"passwordIcon",onMouseDown:O=>{O.preventDefault()},onMouseUp:O=>{O.preventDefault()}};return g.cloneElement(g.isValidElement(T)?T:g.createElement("span",null,T),A)},{className:c,prefixCls:d,inputPrefixCls:f,size:p}=e,h=kat(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=g.useContext(dt),v=m("input",f),y=m("input-password",d),b=n&&u(y),x=ie(y,c,{[`${y}-${p}`]:!!p}),E=Object.assign(Object.assign({},Dr(h,["suffix","iconRender","visibilityToggle"])),{type:a?"text":"password",className:x,prefixCls:v,suffix:b});return p&&(E.size=p),g.createElement(y9,Object.assign({ref:uo(t,o)},E))}),Dat=Nat;var Mat=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:i,suffix:o,enterButton:l=!1,addonAfter:s,loading:u,disabled:c,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,m=Mat(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=g.useContext(dt),b=g.useRef(!1),x=v("input-search",n),E=v("input",r),{compactSize:S}=Hp(x,y),C=co(F=>{var D;return(D=i??S)!==null&&D!==void 0?D:F}),w=g.useRef(null),I=F=>{F&&F.target&&F.type==="click"&&d&&d(F.target.value,F,{source:"clear"}),f&&f(F)},T=F=>{var D;document.activeElement===((D=w.current)===null||D===void 0?void 0:D.input)&&F.preventDefault()},A=F=>{var D,j;d&&d((j=(D=w.current)===null||D===void 0?void 0:D.input)===null||j===void 0?void 0:j.value,F,{source:"input"})},O=F=>{b.current||u||A(F)},R=typeof l=="boolean"?g.createElement(F0,null):null,N=`${x}-button`;let _;const L=l||{},$=L.type&&L.type.__ANT_BUTTON===!0;$||L.type==="button"?_=Ta(L,Object.assign({onMouseDown:T,onClick:F=>{var D,j;(j=(D=L==null?void 0:L.props)===null||D===void 0?void 0:D.onClick)===null||j===void 0||j.call(D,F),A(F)},key:"enterButton"},$?{className:N,size:C}:{})):_=g.createElement(nn,{className:N,type:l?"primary":void 0,size:C,disabled:c,key:"enterButton",onMouseDown:T,onClick:A,loading:u,icon:R},l),s&&(_=[_,Ta(s,{key:"addonAfter"})]);const k=ie(x,{[`${x}-rtl`]:y==="rtl",[`${x}-${C}`]:!!C,[`${x}-with-button`]:!!l},a),P=F=>{b.current=!0,p==null||p(F)},B=F=>{b.current=!1,h==null||h(F)};return g.createElement(y9,Object.assign({ref:uo(w,t),onPressEnter:O},m,{size:C,onCompositionStart:P,onCompositionEnd:B,prefixCls:E,addonAfter:_,suffix:o,onChange:I,className:k,disabled:c}))}),Lat=$at;var Pat=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,Fat=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],XD={},vs;function Bat(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&XD[n])return XD[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Fat.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:o,boxSizing:a};return t&&n&&(XD[n]=s),s}function zat(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vs||(vs=document.createElement("textarea"),vs.setAttribute("tab-index","-1"),vs.setAttribute("aria-hidden","true"),document.body.appendChild(vs)),e.getAttribute("wrap")?vs.setAttribute("wrap",e.getAttribute("wrap")):vs.removeAttribute("wrap");var a=Bat(e,t),i=a.paddingSize,o=a.borderSize,l=a.boxSizing,s=a.sizingStyle;vs.setAttribute("style","".concat(s,";").concat(Pat)),vs.value=e.value||e.placeholder||"";var u=void 0,c=void 0,d,f=vs.scrollHeight;if(l==="border-box"?f+=o:l==="content-box"&&(f-=i),n!==null||r!==null){vs.value=" ";var p=vs.scrollHeight-i;n!==null&&(u=p*n,l==="border-box"&&(u=u+i+o),f=Math.max(u,f)),r!==null&&(c=p*r,l==="border-box"&&(c=c+i+o),d=f>c?"":"hidden",f=Math.min(c,f))}var h={height:f,overflowY:d,resize:"none"};return u&&(h.minHeight=u),c&&(h.maxHeight=c),h}var Hat=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],QD=0,ZD=1,JD=2,jat=g.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var a=n.defaultValue,i=n.value,o=n.autoSize,l=n.onResize,s=n.className,u=n.style,c=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=Lt(n,Hat),p=or(a,{value:i,postState:function(V){return V??""}}),h=fe(p,2),m=h[0],v=h[1],y=function(V){v(V.target.value),d==null||d(V)},b=g.useRef();g.useImperativeHandle(t,function(){return{textArea:b.current}});var x=g.useMemo(function(){return o&&zt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),E=fe(x,2),S=E[0],C=E[1],w=!!o,I=function(){try{if(document.activeElement===b.current){var V=b.current,G=V.selectionStart,W=V.selectionEnd,Y=V.scrollTop;b.current.setSelectionRange(G,W),b.current.scrollTop=Y}}catch{}},T=g.useState(JD),A=fe(T,2),O=A[0],R=A[1],N=g.useState(),_=fe(N,2),L=_[0],$=_[1],k=function(){R(QD)};Sn(function(){w&&k()},[i,S,C,w]),Sn(function(){if(O===QD)R(ZD);else if(O===ZD){var z=zat(b.current,!1,S,C);R(JD),$(z)}else I()},[O]);var P=g.useRef(),B=function(){bn.cancel(P.current)},F=function(V){O===JD&&(l==null||l(V),o&&(B(),P.current=bn(function(){k()})))};g.useEffect(function(){return B},[]);var D=w?L:null,j=Q(Q({},u),D);return(O===QD||O===ZD)&&(j.overflowY="hidden",j.overflowX="hidden"),g.createElement(Si,{onResize:F,disabled:!(o||l)},g.createElement("textarea",Ne({},f,{ref:b,style:j,className:ie(r,s,X({},"".concat(r,"-disabled"),c)),disabled:c,value:m,onChange:y})))}),Uat=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],Vat=M.forwardRef(function(e,t){var n,r,a=e.defaultValue,i=e.value,o=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,m=h===void 0?"rc-textarea":h,v=e.showCount,y=e.count,b=e.className,x=e.style,E=e.disabled,S=e.hidden,C=e.classNames,w=e.styles,I=e.onResize,T=Lt(e,Uat),A=or(a,{value:i,defaultValue:a}),O=fe(A,2),R=O[0],N=O[1],_=R==null?"":String(R),L=M.useState(!1),$=fe(L,2),k=$[0],P=$[1],B=M.useRef(!1),F=M.useState(null),D=fe(F,2),j=D[0],z=D[1],V=g.useRef(null),G=function(){var ue;return(ue=V.current)===null||ue===void 0?void 0:ue.textArea},W=function(){G().focus()};g.useImperativeHandle(t,function(){return{resizableTextArea:V.current,focus:W,blur:function(){G().blur()}}}),g.useEffect(function(){P(function(we){return!E&&we})},[E]);var Y=M.useState(null),J=fe(Y,2),Z=J[0],K=J[1];M.useEffect(function(){if(Z){var we;(we=G()).setSelectionRange.apply(we,Ue(Z))}},[Z]);var ee=fye(y,v),ae=(n=ee.max)!==null&&n!==void 0?n:c,te=Number(ae)>0,re=ee.strategy(_),se=!!ae&&re>ae,ve=function(ue,Ae){var _e=Ae;!B.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Ae)>ee.max&&(_e=ee.exceedFormatter(Ae,{max:ee.max}),Ae!==_e&&K([G().selectionStart||0,G().selectionEnd||0])),N(_e),NI(ue.currentTarget,ue,s,_e)},ge=function(ue){B.current=!0,d==null||d(ue)},xe=function(ue){B.current=!1,ve(ue,ue.currentTarget.value),f==null||f(ue)},me=function(ue){ve(ue,ue.target.value)},de=function(ue){var Ae=T.onPressEnter,_e=T.onKeyDown;ue.key==="Enter"&&Ae&&Ae(ue),_e==null||_e(ue)},Ce=function(ue){P(!0),o==null||o(ue)},Ie=function(ue){P(!1),l==null||l(ue)},ke=function(ue){N(""),W(),NI(G(),ue,s)},Te=p,pe;ee.show&&(ee.showFormatter?pe=ee.showFormatter({value:_,count:re,maxLength:ae}):pe="".concat(re).concat(te?" / ".concat(ae):""),Te=M.createElement(M.Fragment,null,Te,M.createElement("span",{className:ie("".concat(m,"-data-count"),C==null?void 0:C.count),style:w==null?void 0:w.count},pe)));var Se=function(ue){var Ae;I==null||I(ue),(Ae=G())!==null&&Ae!==void 0&&Ae.style.height&&z(!0)},Ee=!T.autoSize&&!v&&!u;return M.createElement(v9,{value:_,allowClear:u,handleReset:ke,suffix:Te,prefixCls:m,classNames:Q(Q({},C),{},{affixWrapper:ie(C==null?void 0:C.affixWrapper,(r={},X(r,"".concat(m,"-show-count"),v),X(r,"".concat(m,"-textarea-allow-clear"),u),r))}),disabled:E,focused:k,className:ie(b,se&&"".concat(m,"-out-of-range")),style:Q(Q({},x),j&&!Ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pe=="string"?pe:void 0}},hidden:S},M.createElement(jat,Ne({},T,{maxLength:c,onKeyDown:de,onChange:me,onFocus:Ce,onBlur:Ie,onCompositionStart:ge,onCompositionEnd:xe,className:ie(C==null?void 0:C.textarea),style:Q(Q({},w==null?void 0:w.textarea),{},{resize:x==null?void 0:x.resize}),disabled:E,prefixCls:m,onResize:Se,ref:V})))}),Wat=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,bordered:i=!0,size:o,disabled:l,status:s,allowClear:u,classNames:c,rootClassName:d,className:f,style:p,styles:h,variant:m}=e,v=Wat(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:y,direction:b,textArea:x}=g.useContext(dt),E=co(o),S=g.useContext(Ws),C=l??S,{status:w,hasFeedback:I,feedbackIcon:T}=g.useContext(No),A=Cy(w,s),O=g.useRef(null);g.useImperativeHandle(t,()=>{var F;return{resizableTextArea:(F=O.current)===null||F===void 0?void 0:F.resizableTextArea,focus:D=>{var j,z;Eat((z=(j=O.current)===null||j===void 0?void 0:j.resizableTextArea)===null||z===void 0?void 0:z.textArea,D)},blur:()=>{var D;return(D=O.current)===null||D===void 0?void 0:D.blur()}}});const R=y("input",a),N=oa(R),[_,L,$]=c9(R,N),[k,P]=wy(m,i),B=mye(u??(x==null?void 0:x.allowClear));return _(g.createElement(Vat,Object.assign({autoComplete:x==null?void 0:x.autoComplete},v,{style:Object.assign(Object.assign({},x==null?void 0:x.style),p),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),h),disabled:C,allowClear:B,className:ie($,N,f,d,x==null?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},c),x==null?void 0:x.classNames),{textarea:ie({[`${R}-sm`]:E==="small",[`${R}-lg`]:E==="large"},L,c==null?void 0:c.textarea,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.textarea),variant:ie({[`${R}-${k}`]:P},Ep(R,A)),affixWrapper:ie(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:b==="rtl",[`${R}-affix-wrapper-sm`]:E==="small",[`${R}-affix-wrapper-lg`]:E==="large",[`${R}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},L)}),prefixCls:R,suffix:I&&g.createElement("span",{className:`${R}-textarea-suffix`},T),ref:O})))}),bye=Gat,US=y9;US.Group=vat;US.Search=Lat;US.TextArea=bye;US.Password=Dat;const Wa=US;var qat={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const Yat=qat;var Kat=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Yat}))};const b9=g.forwardRef(Kat);var Xat={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const Qat=Xat;var Zat=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Qat}))};const x9=g.forwardRef(Zat);var Jat={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const eit=Jat;var tit=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:eit}))};const nit=g.forwardRef(tit);function rit(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function ait(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function E9(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function xye(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=dve(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[g.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}function iit(e){return g.createElement(nn,Object.assign({size:"small",type:"primary"},e))}function Eye(e){return g.useMemo(()=>Object.assign({button:iit},e),[e])}var oit=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var a;const{prefixCls:i,getPopupContainer:o,components:l,className:s,style:u,placement:c,size:d,disabled:f,bordered:p=!0,placeholder:h,popupClassName:m,dropdownClassName:v,status:y,rootClassName:b,variant:x}=n,E=oit(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),S=g.useRef(null),{getPrefixCls:C,direction:w,getPopupContainer:I,rangePicker:T}=g.useContext(dt),A=C("picker",i),{compactSize:O,compactItemClassnames:R}=Hp(A,w),{picker:N}=n,_=C(),[L,$]=wy(x,p),k=oa(A),[P,B,F]=q0e(A,k),[D]=xye(n,A),j=Eye(l),z=co(re=>{var se;return(se=d??O)!==null&&se!==void 0?se:re}),V=g.useContext(Ws),G=f??V,W=g.useContext(No),{hasFeedback:Y,status:J,feedbackIcon:Z}=W,K=g.createElement(g.Fragment,null,N==="time"?g.createElement(x9,null):g.createElement(b9,null),Y&&Z);g.useImperativeHandle(r,()=>S.current);const[ee]=Wu("Calendar",xI),ae=Object.assign(Object.assign({},ee),n.locale),[te]=jc("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return P(g.createElement(kc,null,g.createElement($et,Object.assign({separator:g.createElement("span",{"aria-label":"to",className:`${A}-separator`},g.createElement(nit,null)),disabled:G,ref:S,popupAlign:E9(w,c),placeholder:ait(ae,N,h),suffixIcon:K,prevIcon:g.createElement("span",{className:`${A}-prev-icon`}),nextIcon:g.createElement("span",{className:`${A}-next-icon`}),superPrevIcon:g.createElement("span",{className:`${A}-super-prev-icon`}),superNextIcon:g.createElement("span",{className:`${A}-super-next-icon`}),transitionName:`${_}-slide-up`},E,{className:ie({[`${A}-${z}`]:z,[`${A}-${L}`]:$},Ep(A,Cy(J,y),Y),B,R,s,T==null?void 0:T.className,F,k,b),style:Object.assign(Object.assign({},T==null?void 0:T.style),u),locale:ae.lang,prefixCls:A,getPopupContainer:o||I,generateConfig:e,components:j,direction:w,classNames:{popup:ie(B,m||v,F,k,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:te})},allowClear:D}))))})}var sit=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var h;const{prefixCls:m,getPopupContainer:v,components:y,style:b,className:x,rootClassName:E,size:S,bordered:C,placement:w,placeholder:I,popupClassName:T,dropdownClassName:A,disabled:O,status:R,variant:N}=f,_=sit(f,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant"]),{getPrefixCls:L,direction:$,getPopupContainer:k,[c]:P}=g.useContext(dt),B=L("picker",m),{compactSize:F,compactItemClassnames:D}=Hp(B,$),j=g.useRef(null),[z,V]=wy(N,C),G=oa(B),[W,Y,J]=q0e(B,G);g.useImperativeHandle(p,()=>j.current);const Z={showToday:!0},K=s||f.picker,ee=L(),[ae,te]=xye(f,B),re=Eye(y),se=co(Se=>{var Ee;return(Ee=S??F)!==null&&Ee!==void 0?Ee:Se}),ve=g.useContext(Ws),ge=O??ve,xe=g.useContext(No),{hasFeedback:me,status:de,feedbackIcon:Ce}=xe,Ie=g.createElement(g.Fragment,null,K==="time"?g.createElement(x9,null):g.createElement(b9,null),me&&Ce),[ke]=Wu("DatePicker",xI),Te=Object.assign(Object.assign({},ke),f.locale),[pe]=jc("DatePicker",(h=f.popupStyle)===null||h===void 0?void 0:h.zIndex);return W(g.createElement(kc,null,g.createElement(Het,Object.assign({ref:j,placeholder:rit(Te,K,I),suffixIcon:Ie,dropdownAlign:E9($,w),prevIcon:g.createElement("span",{className:`${B}-prev-icon`}),nextIcon:g.createElement("span",{className:`${B}-next-icon`}),superPrevIcon:g.createElement("span",{className:`${B}-super-prev-icon`}),superNextIcon:g.createElement("span",{className:`${B}-super-next-icon`}),transitionName:`${ee}-slide-up`,picker:s},Z,_,{locale:Te.lang,className:ie({[`${B}-${se}`]:se,[`${B}-${z}`]:V},Ep(B,Cy(de,R),me),Y,D,P==null?void 0:P.className,x,J,G,E),style:Object.assign(Object.assign({},P==null?void 0:P.style),b),prefixCls:B,getPopupContainer:v||k,generateConfig:e,components:re,direction:$,disabled:ge,classNames:{popup:ie(Y,J,G,E,T||A)},styles:{popup:Object.assign(Object.assign({},f.popupStyle),{zIndex:pe})},allowClear:ae,removeIcon:te}))))})}const n=t(),r=t("week","WeekPicker"),a=t("month","MonthPicker"),i=t("year","YearPicker"),o=t("time","TimePicker"),l=t("quarter","QuarterPicker");return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:i,TimePicker:o,QuarterPicker:l}}function Sye(e){const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:i,QuarterPicker:o}=uit(e),l=lit(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=a,s.RangePicker=l,s.TimePicker=i,s.QuarterPicker=o,s}const Ny=Sye(UJe);function Cye(e){const t=E9(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const cit=tR(Ny,"picker",null,Cye);Ny._InternalPanelDoNotUseOrYouWillBeFired=cit;const dit=tR(Ny.RangePicker,"picker",null,Cye);Ny._InternalRangePanelDoNotUseOrYouWillBeFired=dit;Ny.generatePicker=Sye;const wye=Ny;var KJ=g.createContext(null),Tye=g.createContext({}),fit=["prefixCls","className","containerRef"],pit=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,i=Lt(t,fit),o=g.useContext(Tye),l=o.panel,s=zc(l,a);return g.createElement("div",Ne({className:ie("".concat(n,"-content"),r),role:"dialog",ref:s},La(t,{aria:!0}),{"aria-modal":"true"},i))};function XJ(e){return typeof e=="string"&&String(Number(e))===e?(Rr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var QJ={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function hit(e,t){var n,r,a,i=e.prefixCls,o=e.open,l=e.placement,s=e.inline,u=e.push,c=e.forceRender,d=e.autoFocus,f=e.keyboard,p=e.classNames,h=e.rootClassName,m=e.rootStyle,v=e.zIndex,y=e.className,b=e.id,x=e.style,E=e.motion,S=e.width,C=e.height,w=e.children,I=e.mask,T=e.maskClosable,A=e.maskMotion,O=e.maskClassName,R=e.maskStyle,N=e.afterOpenChange,_=e.onClose,L=e.onMouseEnter,$=e.onMouseOver,k=e.onMouseLeave,P=e.onClick,B=e.onKeyDown,F=e.onKeyUp,D=e.styles,j=g.useRef(),z=g.useRef(),V=g.useRef();g.useImperativeHandle(t,function(){return j.current});var G=function(Ce){var Ie=Ce.keyCode,ke=Ce.shiftKey;switch(Ie){case Ve.TAB:{if(Ie===Ve.TAB){if(!ke&&document.activeElement===V.current){var Te;(Te=z.current)===null||Te===void 0||Te.focus({preventScroll:!0})}else if(ke&&document.activeElement===z.current){var pe;(pe=V.current)===null||pe===void 0||pe.focus({preventScroll:!0})}}break}case Ve.ESC:{_&&f&&(Ce.stopPropagation(),_(Ce));break}}};g.useEffect(function(){if(o&&d){var de;(de=j.current)===null||de===void 0||de.focus({preventScroll:!0})}},[o]);var W=g.useState(!1),Y=fe(W,2),J=Y[0],Z=Y[1],K=g.useContext(KJ),ee;typeof u=="boolean"?ee=u?{}:{distance:0}:ee=u||{};var ae=(n=(r=(a=ee)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:K==null?void 0:K.pushDistance)!==null&&n!==void 0?n:180,te=g.useMemo(function(){return{pushDistance:ae,push:function(){Z(!0)},pull:function(){Z(!1)}}},[ae]);g.useEffect(function(){if(o){var de;K==null||(de=K.push)===null||de===void 0||de.call(K)}else{var Ce;K==null||(Ce=K.pull)===null||Ce===void 0||Ce.call(K)}},[o]),g.useEffect(function(){return function(){var de;K==null||(de=K.pull)===null||de===void 0||de.call(K)}},[]);var re=I&&g.createElement(io,Ne({key:"mask"},A,{visible:o}),function(de,Ce){var Ie=de.className,ke=de.style;return g.createElement("div",{className:ie("".concat(i,"-mask"),Ie,p==null?void 0:p.mask,O),style:Q(Q(Q({},ke),R),D==null?void 0:D.mask),onClick:T&&o?_:void 0,ref:Ce})}),se=typeof E=="function"?E(l):E,ve={};if(J&&ae)switch(l){case"top":ve.transform="translateY(".concat(ae,"px)");break;case"bottom":ve.transform="translateY(".concat(-ae,"px)");break;case"left":ve.transform="translateX(".concat(ae,"px)");break;default:ve.transform="translateX(".concat(-ae,"px)");break}l==="left"||l==="right"?ve.width=XJ(S):ve.height=XJ(C);var ge={onMouseEnter:L,onMouseOver:$,onMouseLeave:k,onClick:P,onKeyDown:B,onKeyUp:F},xe=g.createElement(io,Ne({key:"panel"},se,{visible:o,forceRender:c,onVisibleChanged:function(Ce){N==null||N(Ce)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(de,Ce){var Ie=de.className,ke=de.style;return g.createElement("div",Ne({className:ie("".concat(i,"-content-wrapper"),p==null?void 0:p.wrapper,Ie),style:Q(Q(Q({},ve),ke),D==null?void 0:D.wrapper)},La(e,{data:!0})),g.createElement(pit,Ne({id:b,containerRef:Ce,prefixCls:i,className:ie(y,p==null?void 0:p.content),style:Q(Q({},x),D==null?void 0:D.content)},La(e,{aria:!0}),ge),w))}),me=Q({},m);return v&&(me.zIndex=v),g.createElement(KJ.Provider,{value:te},g.createElement("div",{className:ie(i,"".concat(i,"-").concat(l),h,X(X({},"".concat(i,"-open"),o),"".concat(i,"-inline"),s)),style:me,tabIndex:-1,ref:j,onKeyDown:G},re,g.createElement("div",{tabIndex:0,ref:z,style:QJ,"aria-hidden":"true","data-sentinel":"start"}),xe,g.createElement("div",{tabIndex:0,ref:V,style:QJ,"aria-hidden":"true","data-sentinel":"end"})))}var git=g.forwardRef(hit),mit=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,i=a===void 0?"rc-drawer":a,o=t.placement,l=o===void 0?"right":o,s=t.autoFocus,u=s===void 0?!0:s,c=t.keyboard,d=c===void 0?!0:c,f=t.width,p=f===void 0?378:f,h=t.mask,m=h===void 0?!0:h,v=t.maskClosable,y=v===void 0?!0:v,b=t.getContainer,x=t.forceRender,E=t.afterOpenChange,S=t.destroyOnClose,C=t.onMouseEnter,w=t.onMouseOver,I=t.onMouseLeave,T=t.onClick,A=t.onKeyDown,O=t.onKeyUp,R=t.panelRef,N=g.useState(!1),_=fe(N,2),L=_[0],$=_[1],k=g.useState(!1),P=fe(k,2),B=P[0],F=P[1];Sn(function(){F(!0)},[]);var D=B?r:!1,j=g.useRef(),z=g.useRef();Sn(function(){D&&(z.current=document.activeElement)},[D]);var V=function(Z){var K;if($(Z),E==null||E(Z),!Z&&z.current&&!((K=j.current)!==null&&K!==void 0&&K.contains(z.current))){var ee;(ee=z.current)===null||ee===void 0||ee.focus({preventScroll:!0})}},G=g.useMemo(function(){return{panel:R}},[R]);if(!x&&!L&&!D&&S)return null;var W={onMouseEnter:C,onMouseOver:w,onMouseLeave:I,onClick:T,onKeyDown:A,onKeyUp:O},Y=Q(Q({},t),{},{open:D,prefixCls:i,placement:l,autoFocus:u,keyboard:d,width:p,mask:m,maskClosable:y,inline:b===!1,afterOpenChange:V,ref:j},W);return g.createElement(Tye.Provider,{value:G},g.createElement(_S,{open:D||x||L,autoDestroy:!1,getContainer:b,autoLock:m&&(D||L)},g.createElement(git,Y)))};const vit=e=>{var t,n;const{prefixCls:r,title:a,footer:i,extra:o,closeIcon:l,closable:s,onClose:u,headerStyle:c,bodyStyle:d,footerStyle:f,children:p,classNames:h,styles:m}=e,{drawer:v}=g.useContext(dt),y=g.useCallback(w=>g.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},w),[u]),b=g.useMemo(()=>typeof(v==null?void 0:v.closable)=="object"&&v.closable.closeIcon?v.closable.closeIcon:v==null?void 0:v.closeIcon,[v==null?void 0:v.closable,v==null?void 0:v.closeIcon]),[x,E]=x7({closable:s??(v==null?void 0:v.closable),closeIcon:typeof l<"u"?l:b,customCloseIconRender:y,defaultClosable:!0}),S=g.useMemo(()=>{var w,I;return!a&&!x?null:g.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=v==null?void 0:v.styles)===null||w===void 0?void 0:w.header),c),m==null?void 0:m.header),className:ie(`${r}-header`,{[`${r}-header-close-only`]:x&&!a&&!o},(I=v==null?void 0:v.classNames)===null||I===void 0?void 0:I.header,h==null?void 0:h.header)},g.createElement("div",{className:`${r}-header-title`},E,a&&g.createElement("div",{className:`${r}-title`},a)),o&&g.createElement("div",{className:`${r}-extra`},o))},[x,E,o,c,r,a]),C=g.useMemo(()=>{var w,I;if(!i)return null;const T=`${r}-footer`;return g.createElement("div",{className:ie(T,(w=v==null?void 0:v.classNames)===null||w===void 0?void 0:w.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(I=v==null?void 0:v.styles)===null||I===void 0?void 0:I.footer),f),m==null?void 0:m.footer)},i)},[i,f,r]);return g.createElement(g.Fragment,null,S,g.createElement("div",{className:ie(`${r}-body`,h==null?void 0:h.body,(t=v==null?void 0:v.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=v==null?void 0:v.styles)===null||n===void 0?void 0:n.body),d),m==null?void 0:m.body)},p),C)},Aye=vit,yit=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Iye=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Oye=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Iye({opacity:e},{opacity:1})),bit=(e,t)=>[Oye(.7,t),Iye({transform:yit(e)},{transform:"none"})],xit=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Oye(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:bit(a,n)}),{})}}},Eit=xit,Sit=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:a,motionDurationSlow:i,motionDurationMid:o,padding:l,paddingLG:s,fontSizeLG:u,lineHeightLG:c,lineWidth:d,lineType:f,colorSplit:p,marginSM:h,colorIcon:m,colorIconHover:v,colorText:y,fontWeightStrong:b,footerPaddingBlock:x,footerPaddingInline:E}=e,S=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[S]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${S}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${S}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${S}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${S}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ne(l)} ${ne(s)}`,fontSize:u,lineHeight:c,borderBottom:`${ne(d)} ${f} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:m,fontWeight:b,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${o}`,textRendering:"auto","&:focus, &:hover":{color:v,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:y,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${ne(x)} ${ne(E)}`,borderTop:`${ne(d)} ${f} ${p}`},"&-rtl":{direction:"rtl"}}}},Cit=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),kye=On("Drawer",e=>{const t=pn(e,{});return[Sit(t),Eit(t)]},Cit);var Rye=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:i=!0,push:o=wit,open:l,afterOpenChange:s,onClose:u,prefixCls:c,getContainer:d,style:f,className:p,visible:h,afterVisibleChange:m,maskStyle:v,drawerStyle:y,contentWrapperStyle:b}=e,x=Rye(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:E,getPrefixCls:S,direction:C,drawer:w}=g.useContext(dt),I=S("drawer",c),[T,A,O]=kye(I),R=d===void 0&&E?()=>E(document.body):d,N=ie({"no-mask":!i,[`${I}-rtl`]:C==="rtl"},t,A,O),_=g.useMemo(()=>n??(a==="large"?736:378),[n,a]),L=g.useMemo(()=>r??(a==="large"?736:378),[r,a]),$={motionName:ml(I,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},k=G=>({motionName:ml(I,`panel-motion-${G}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),P=bme(),[B,F]=jc("Drawer",x.zIndex),{classNames:D={},styles:j={}}=x,{classNames:z={},styles:V={}}=w||{};return T(g.createElement(kc,null,g.createElement(L0,{status:!0,override:!0},g.createElement(IS.Provider,{value:F},g.createElement(mit,Object.assign({prefixCls:I,onClose:u,maskMotion:$,motion:k},x,{classNames:{mask:ie(D.mask,z.mask),content:ie(D.content,z.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},j.mask),v),V.mask),content:Object.assign(Object.assign(Object.assign({},j.content),y),V.content),wrapper:Object.assign(Object.assign(Object.assign({},j.wrapper),b),V.wrapper)},open:l??h,mask:i,push:o,width:_,height:L,style:Object.assign(Object.assign({},w==null?void 0:w.style),f),className:ie(w==null?void 0:w.className,p),rootClassName:N,getContainer:R,afterOpenChange:s??m,panelRef:P,zIndex:B}),g.createElement(Aye,Object.assign({prefixCls:I},x,{onClose:u})))))))},Tit=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,i=Rye(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=g.useContext(dt),l=o("drawer",t),[s,u,c]=kye(l),d=ie(l,`${l}-pure`,`${l}-${a}`,u,c,r);return s(g.createElement("div",{className:d,style:n},g.createElement(Aye,Object.assign({prefixCls:l},i))))};_ye._InternalPanelDoNotUseOrYouWillBeFired=Tit;const yE=_ye;function ZJ(e){return["small","middle","large"].includes(e)}function JJ(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Nye=M.createContext({latestIndex:0}),Ait=Nye.Provider,Iit=e=>{let{className:t,index:n,children:r,split:a,style:i}=e;const{latestIndex:o}=g.useContext(Nye);return r==null?null:g.createElement(g.Fragment,null,g.createElement("div",{className:t,style:i},r),n{var n,r;const{getPrefixCls:a,space:i,direction:o}=g.useContext(dt),{size:l=(i==null?void 0:i.size)||"small",align:s,className:u,rootClassName:c,children:d,direction:f="horizontal",prefixCls:p,split:h,style:m,wrap:v=!1,classNames:y,styles:b}=e,x=kit(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,S]=Array.isArray(l)?l:[l,l],C=ZJ(S),w=ZJ(E),I=JJ(S),T=JJ(E),A=wi(d,{keepEmpty:!0}),O=s===void 0&&f==="horizontal"?"center":s,R=a("space",p),[N,_,L]=Yge(R),$=ie(R,i==null?void 0:i.className,_,`${R}-${f}`,{[`${R}-rtl`]:o==="rtl",[`${R}-align-${O}`]:O,[`${R}-gap-row-${S}`]:C,[`${R}-gap-col-${E}`]:w},u,c,L),k=ie(`${R}-item`,(n=y==null?void 0:y.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item);let P=0;const B=A.map((j,z)=>{var V,G;j!=null&&(P=z);const W=j&&j.key||`${k}-${z}`;return g.createElement(Oit,{className:k,key:W,index:z,split:h,style:(V=b==null?void 0:b.item)!==null&&V!==void 0?V:(G=i==null?void 0:i.styles)===null||G===void 0?void 0:G.item},j)}),F=g.useMemo(()=>({latestIndex:P}),[P]);if(A.length===0)return null;const D={};return v&&(D.flexWrap="wrap"),!w&&T&&(D.columnGap=E),!C&&I&&(D.rowGap=S),N(g.createElement("div",Object.assign({ref:t,className:$,style:Object.assign(Object.assign(Object.assign({},D),i==null?void 0:i.style),m)},x),g.createElement(Ait,{value:F},B)))}),Dye=Rit;Dye.Compact=cWe;const Un=Dye;var _it=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=g.useContext(dt),{prefixCls:a,type:i="default",danger:o,disabled:l,loading:s,onClick:u,htmlType:c,children:d,className:f,menu:p,arrow:h,autoFocus:m,overlay:v,trigger:y,align:b,open:x,onOpenChange:E,placement:S,getPopupContainer:C,href:w,icon:I=g.createElement(q7,null),title:T,buttonsRender:A=J=>J,mouseEnterDelay:O,mouseLeaveDelay:R,overlayClassName:N,overlayStyle:_,destroyPopupOnHide:L,dropdownRender:$}=e,k=_it(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),P=n("dropdown",a),B=`${P}-button`,F={menu:p,arrow:h,autoFocus:m,align:b,disabled:l,trigger:l?[]:y,onOpenChange:E,getPopupContainer:C||t,mouseEnterDelay:O,mouseLeaveDelay:R,overlayClassName:N,overlayStyle:_,destroyPopupOnHide:L,dropdownRender:$},{compactSize:D,compactItemClassnames:j}=Hp(P,r),z=ie(B,j,f);"overlay"in e&&(F.overlay=v),"open"in e&&(F.open=x),"placement"in e?F.placement=S:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const V=g.createElement(nn,{type:i,danger:o,disabled:l,loading:s,onClick:u,htmlType:c,href:w,title:T},d),G=g.createElement(nn,{type:i,danger:o,icon:I}),[W,Y]=A([V,G]);return g.createElement(Un.Compact,Object.assign({className:z,size:D,block:!0},k),W,g.createElement(K7,Object.assign({},F),Y))};Mye.__ANT_BUTTON=!0;const Nit=Mye,$ye=K7;$ye.Button=Nit;const S9=$ye;function DI(e){const[t,n]=g.useState(e);return g.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Dit=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Mit=Dit,$it=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ne(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),eee=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Lit=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},In(e)),$it(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},eee(e,e.controlHeightSM)),"&-large":Object.assign({},eee(e,e.controlHeightLG))})}},Pit=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:a,labelRequiredMarkColor:i,labelColor:o,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:c,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},In(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:o,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:c},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${a}-col-'"]):not([class*="' ${a}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:A7,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Fit=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Bit=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},rv=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zit=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:rv(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Hit=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, + .${r}-col-24${n}-label, + .${r}-col-xl-24${n}-label`]:rv(e),[`@media (max-width: ${ne(e.screenXSMax)})`]:[zit(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:rv(e)}}],[`@media (max-width: ${ne(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:rv(e)}},[`@media (max-width: ${ne(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:rv(e)}},[`@media (max-width: ${ne(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:rv(e)}}}},jit=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),Lye=(e,t)=>pn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),C9=On("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Lye(e,n);return[Lit(r),Pit(r),Mit(r),Fit(r),Bit(r),Hit(r),eR(r),A7]},jit,{order:-1e3}),tee=[];function e4(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Uit=e=>{let{help:t,helpStatus:n,errors:r=tee,warnings:a=tee,className:i,fieldId:o,onVisibleChanged:l}=e;const{prefixCls:s}=g.useContext(w7),u=`${s}-item-explain`,c=oa(s),[d,f,p]=C9(s,c),h=g.useMemo(()=>dE(s),[s]),m=DI(r),v=DI(a),y=g.useMemo(()=>t!=null?[e4(t,"help",n)]:[].concat(Ue(m.map((x,E)=>e4(x,"error","error",E))),Ue(v.map((x,E)=>e4(x,"warning","warning",E)))),[t,n,m,v]),b={};return o&&(b.id=`${o}_help`),d(g.createElement(io,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:l},x=>{const{className:E,style:S}=x;return g.createElement("div",Object.assign({},b,{className:ie(u,E,p,c,i,f),style:S,role:"alert"}),g.createElement(c7,Object.assign({keys:y},dE(s),{motionName:`${s}-show-help-item`,component:!1}),C=>{const{key:w,error:I,errorStatus:T,className:A,style:O}=C;return g.createElement("div",{key:w,className:ie(A,{[`${u}-${T}`]:T}),style:O},I)}))}))},Pye=Uit,Vit=["parentNode"],Wit="form_item";function cx(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Fye(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Vit.includes(n)?`${Wit}_${n}`:n}function Bye(e,t,n,r,a,i){let o=r;return i!==void 0?o=i:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||a&&n.validated)&&(o="success"),o}function nee(e){return cx(e).join("_")}function zye(e){const[t]=C7(),n=g.useRef({}),r=g.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>i=>{const o=nee(a);i?n.current[o]=i:delete n.current[o]}},scrollToField:function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=cx(a),l=Fye(o,r.__INTERNAL__.name),s=l?document.getElementById(l):null;s&&aVe(s,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:a=>{const i=nee(a);return n.current[i]}}),[e,t]);return[r]}var Git=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=g.useContext(Ws),{getPrefixCls:r,direction:a,form:i}=g.useContext(dt),{prefixCls:o,className:l,rootClassName:s,size:u,disabled:c=n,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:m,wrapperCol:v,hideRequiredMark:y,layout:b="horizontal",scrollToFirstError:x,requiredMark:E,onFinishFailed:S,name:C,style:w,feedbackIcons:I,variant:T}=e,A=Git(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),O=co(u),R=g.useContext(Zhe),N=g.useMemo(()=>E!==void 0?E:y?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[y,E,i]),_=f??(i==null?void 0:i.colon),L=r("form",o),$=oa(L),[k,P,B]=C9(L,$),F=ie(L,`${L}-${b}`,{[`${L}-hide-required-mark`]:N===!1,[`${L}-rtl`]:a==="rtl",[`${L}-${O}`]:O},B,$,P,i==null?void 0:i.className,l,s),[D]=zye(d),{__INTERNAL__:j}=D;j.name=C;const z=g.useMemo(()=>({name:C,labelAlign:p,labelCol:m,labelWrap:h,wrapperCol:v,vertical:b==="vertical",colon:_,requiredMark:N,itemRef:j.itemRef,form:D,feedbackIcons:I}),[C,p,m,v,b,_,N,D,I]);g.useImperativeHandle(t,()=>D);const V=(W,Y)=>{if(W){let J={block:"nearest"};typeof W=="object"&&(J=W),D.scrollToField(Y,J)}},G=W=>{if(S==null||S(W),W.errorFields.length){const Y=W.errorFields[0].name;if(x!==void 0){V(x,Y);return}i&&i.scrollToFirstError!==void 0&&V(i.scrollToFirstError,Y)}};return k(g.createElement(yme.Provider,{value:T},g.createElement(i7,{disabled:c},g.createElement(TS.Provider,{value:O},g.createElement(vme,{validateMessages:R},g.createElement(Bd.Provider,{value:z},g.createElement(Ey,Object.assign({id:C},A,{name:C,onFinishFailed:G,form:D,style:Object.assign(Object.assign({},i==null?void 0:i.style),w),className:F}))))))))},Yit=g.forwardRef(qit),Kit=Yit;function Xit(e){if(typeof e=="function")return e;const t=wi(e);return t.length<=1?t[0]:t}const Hye=()=>{const{status:e,errors:t=[],warnings:n=[]}=g.useContext(No);return{status:e,errors:t,warnings:n}};Hye.Context=No;const Qit=Hye;function Zit(e){const[t,n]=g.useState(e),r=g.useRef(null),a=g.useRef([]),i=g.useRef(!1);g.useEffect(()=>(i.current=!1,()=>{i.current=!0,bn.cancel(r.current),r.current=null}),[]);function o(l){i.current||(r.current===null&&(a.current=[],r.current=bn(()=>{r.current=null,n(s=>{let u=s;return a.current.forEach(c=>{u=c(u)}),u})})),a.current.push(l))}return[t,o]}function Jit(){const{itemRef:e}=g.useContext(Bd),t=g.useRef({});function n(r,a){const i=a&&typeof a=="object"&&a.ref,o=r.join("_");return(t.current.name!==o||t.current.originRef!==i)&&(t.current.name=o,t.current.originRef=i,t.current.ref=uo(e(r),i)),t.current.ref}return n}const eot=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},tot=Vg(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Lye(e,n);return[eot(r)]}),not=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:a,errors:i,warnings:o,_internalItemRender:l,extra:s,help:u,fieldId:c,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,h=g.useContext(Bd),m=r||h.wrapperCol||{},v=ie(`${p}-control`,m.className),y=g.useMemo(()=>Object.assign({},h),[h]);delete y.labelCol,delete y.wrapperCol;const b=g.createElement("div",{className:`${p}-control-input`},g.createElement("div",{className:`${p}-control-input-content`},a)),x=g.useMemo(()=>({prefixCls:t,status:n}),[t,n]),E=d!==null||i.length||o.length?g.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},g.createElement(w7.Provider,{value:x},g.createElement(Pye,{fieldId:c,errors:i,warnings:o,help:u,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&g.createElement("div",{style:{width:0,height:d}})):null,S={};c&&(S.id=`${c}_extra`);const C=s?g.createElement("div",Object.assign({},S,{className:`${p}-extra`}),s):null,w=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:b,errorList:E,extra:C}):g.createElement(g.Fragment,null,b,E,C);return g.createElement(Bd.Provider,{value:y},g.createElement(Ji,Object.assign({},m,{className:v}),w),g.createElement(tot,{prefixCls:t}))},rot=not;var aot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const iot=aot;var oot=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:iot}))};const lot=g.forwardRef(oot);var sot=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:i,colon:o,required:l,requiredMark:s,tooltip:u}=e;var c;const[d]=Wu("Form"),{vertical:f,labelAlign:p,labelCol:h,labelWrap:m,colon:v}=g.useContext(Bd);if(!n)return null;const y=a||h||{},b=i||p,x=`${t}-item-label`,E=ie(x,b==="left"&&`${x}-left`,y.className,{[`${x}-wrap`]:!!m});let S=n;const C=o===!0||v!==!1&&o!==!1;C&&!f&&typeof n=="string"&&n.trim()!==""&&(S=n.replace(/[:|:]\s*$/,""));const I=uot(u);if(I){const{icon:R=g.createElement(lot,null)}=I,N=sot(I,["icon"]),_=g.createElement(Gs,Object.assign({},N),g.cloneElement(R,{className:`${t}-item-tooltip`,title:"",onClick:L=>{L.preventDefault()},tabIndex:null}));S=g.createElement(g.Fragment,null,S,_)}const T=s==="optional",A=typeof s=="function";A?S=s(S,{required:!!l}):T&&!l&&(S=g.createElement(g.Fragment,null,S,g.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((c=ns.Form)===null||c===void 0?void 0:c.optional))));const O=ie({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:T||A,[`${t}-item-no-colon`]:!C});return g.createElement(Ji,Object.assign({},y,{className:E}),g.createElement("label",{htmlFor:r,className:O,title:typeof n=="string"?n:""},S))},dot=cot,fot={success:by,warning:Wg,error:Bp,validating:vg};function jye(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:i,prefixCls:o,meta:l,noStyle:s}=e;const u=`${o}-item`,{feedbackIcons:c}=g.useContext(Bd),d=Bye(n,r,l,null,!!a,i),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:m}=g.useContext(No),v=g.useMemo(()=>{var y;let b;if(a){const E=a!==!0&&a.icons||c,S=d&&((y=E==null?void 0:E({status:d,errors:n,warnings:r}))===null||y===void 0?void 0:y[d]),C=d&&fot[d];b=S!==!1&&C?g.createElement("span",{className:ie(`${u}-feedback-icon`,`${u}-feedback-icon-${d}`)},S||g.createElement(C,null)):null}const x={status:d||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:b,isFormItemInput:!0};return s&&(x.status=(d??p)||"",x.isFormItemInput=f,x.hasFeedback=!!(a??h),x.feedbackIcon=a!==void 0?x.feedbackIcon:m),x},[d,a,s,f,p]);return g.createElement(No.Provider,{value:v},t)}var pot=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(I&&E.current){const $=getComputedStyle(E.current);O(parseInt($.marginBottom,10))}},[I,T]);const R=$=>{$||O(null)},_=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const k=$?S:u.errors,P=$?C:u.warnings;return Bye(k,P,u,"",!!c,s)}(),L=ie(b,n,r,{[`${b}-with-help`]:w||S.length||C.length,[`${b}-has-feedback`]:_&&c,[`${b}-has-success`]:_==="success",[`${b}-has-warning`]:_==="warning",[`${b}-has-error`]:_==="error",[`${b}-is-validating`]:_==="validating",[`${b}-hidden`]:d});return g.createElement("div",{className:L,style:a,ref:E},g.createElement(Ns,Object.assign({className:`${b}-row`},Dr(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),g.createElement(dot,Object.assign({htmlFor:p},e,{requiredMark:x,required:h??m,prefixCls:t})),g.createElement(rot,Object.assign({},e,u,{errors:S,warnings:C,prefixCls:t,status:_,help:i,marginBottom:A,onErrorVisibleChanged:R}),g.createElement(mme.Provider,{value:v},g.createElement(jye,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:c,validateStatus:_},f)))),!!A&&g.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-A}}))}const got="__SPLIT__";function mot(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const i=e[a],o=t[a];return i===o||typeof i=="function"||typeof o=="function"})}const vot=g.memo(e=>{let{children:t}=e;return t},(e,t)=>mot(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function ree(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yot(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:i,shouldUpdate:o,rules:l,children:s,required:u,label:c,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:m}=e,{getPrefixCls:v}=g.useContext(dt),{name:y}=g.useContext(Bd),b=Xit(s),x=typeof b=="function",E=g.useContext(mme),{validateTrigger:S}=g.useContext(yg),C=p!==void 0?p:S,w=t!=null,I=v("form",i),T=oa(I),[A,O,R]=C9(I,T);Qd();const N=g.useContext(pE),_=g.useRef(),[L,$]=Zit({}),[k,P]=ap(()=>ree()),B=W=>{const Y=N==null?void 0:N.getKey(W.name);if(P(W.destroy?ree():W,!0),n&&m!==!1&&E){let J=W.name;if(W.destroy)J=_.current||J;else if(Y!==void 0){const[Z,K]=Y;J=[Z].concat(Ue(K)),_.current=J}E(W,J)}},F=(W,Y)=>{$(J=>{const Z=Object.assign({},J),ee=[].concat(Ue(W.name.slice(0,-1)),Ue(Y)).join(got);return W.destroy?delete Z[ee]:Z[ee]=W,Z})},[D,j]=g.useMemo(()=>{const W=Ue(k.errors),Y=Ue(k.warnings);return Object.values(L).forEach(J=>{W.push.apply(W,Ue(J.errors||[])),Y.push.apply(Y,Ue(J.warnings||[]))}),[W,Y]},[L,k.errors,k.warnings]),z=Jit();function V(W,Y,J){return n&&!h?g.createElement(jye,{prefixCls:I,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:k,errors:D,warnings:j,noStyle:!0},W):g.createElement(hot,Object.assign({key:"row"},e,{className:ie(r,R,T,O),prefixCls:I,fieldId:Y,isRequired:J,errors:D,warnings:j,meta:k,onSubItemMetaChange:F}),W)}if(!w&&!x&&!a)return A(V(b));let G={};return typeof c=="string"?G.label=c:t&&(G.label=String(t)),d&&(G=Object.assign(Object.assign({},G),d)),A(g.createElement(S7,Object.assign({},e,{messageVariables:G,trigger:f,validateTrigger:C,onMetaChange:B}),(W,Y,J)=>{const Z=cx(t).length&&Y?Y.name:[],K=Fye(Z,y),ee=u!==void 0?u:!!(l&&l.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const se=re(J);return se&&se.required&&!se.warningOnly}return!1})),ae=Object.assign({},W);let te=null;if(Array.isArray(b)&&w)te=b;else if(!(x&&(!(o||a)||w))){if(!(a&&!x&&!w))if(g.isValidElement(b)){const re=Object.assign(Object.assign({},b.props),ae);if(re.id||(re.id=K),m||D.length>0||j.length>0||e.extra){const ge=[];(m||D.length>0)&&ge.push(`${K}_help`),e.extra&&ge.push(`${K}_extra`),re["aria-describedby"]=ge.join(" ")}D.length>0&&(re["aria-invalid"]="true"),ee&&(re["aria-required"]="true"),Mu(b)&&(re.ref=z(Z,b)),new Set([].concat(Ue(cx(f)),Ue(cx(C)))).forEach(ge=>{re[ge]=function(){for(var xe,me,de,Ce,Ie,ke=arguments.length,Te=new Array(ke),pe=0;pe{var{prefixCls:t,children:n}=e,r=xot(e,["prefixCls","children"]);const{getPrefixCls:a}=g.useContext(dt),i=a("form",t),o=g.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return g.createElement(fme,Object.assign({},r),(l,s,u)=>g.createElement(w7.Provider,{value:o},n(l.map(c=>Object.assign(Object.assign({},c),{fieldKey:c.key})),s,{errors:u.errors,warnings:u.warnings})))},Sot=Eot;function Cot(){const{form:e}=g.useContext(Bd);return e}const Zd=Kit;Zd.Item=bot;Zd.List=Sot;Zd.ErrorList=Pye;Zd.useForm=zye;Zd.useFormInstance=Cot;Zd.useWatch=gme;Zd.Provider=vme;Zd.create=()=>{};const en=Zd;function Vye(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function T6(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var A6=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],VS=g.createContext(null),aee=0;function wot(e,t){var n=g.useState(function(){return aee+=1,String(aee)}),r=fe(n,1),a=r[0],i=g.useContext(VS),o={data:t,canPreview:e};return g.useEffect(function(){if(i)return i.register(a,o)},[]),g.useEffect(function(){i&&i.register(a,o)},[e,t]),a}function Tot(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function Wye(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=g.useState(n?"loading":"normal"),i=fe(a,2),o=i[0],l=i[1],s=g.useRef(!1),u=o==="error";g.useEffect(function(){var p=!0;return Tot(t).then(function(h){!h&&p&&l("error")}),function(){p=!1}},[t]),g.useEffect(function(){n&&!s.current?l("loading"):u&&l("normal")},[t]);var c=function(){l("normal")},d=function(h){s.current=!1,o==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(s.current=!0,c())},f=u&&r?{src:r}:{onLoad:c,src:t};return[d,f,o]}function vc(e,t,n,r){var a=tI.unstable_batchedUpdates?function(o){tI.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var Zw={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Aot(e,t,n,r){var a=g.useRef(null),i=g.useRef([]),o=g.useState(Zw),l=fe(o,2),s=l[0],u=l[1],c=function(h){u(Zw),r&&!Oc(Zw,s)&&r({transform:Zw,action:h})},d=function(h,m){a.current===null&&(i.current=[],a.current=bn(function(){u(function(v){var y=v;return i.current.forEach(function(b){y=Q(Q({},y),b)}),a.current=null,r==null||r({transform:y,action:m}),y})})),i.current.push(Q(Q({},s),h))},f=function(h,m,v,y,b){var x=e.current,E=x.width,S=x.height,C=x.offsetWidth,w=x.offsetHeight,I=x.offsetLeft,T=x.offsetTop,A=h,O=s.scale*h;O>n?(O=n,A=n/s.scale):Or){if(t>0)return X({},e,i);if(t<0&&ar)return X({},e,t<0?i:-i);return{}}function Gye(e,t,n,r){var a=Vye(),i=a.width,o=a.height,l=null;return e<=i&&t<=o?l={x:0,y:0}:(e>i||t>o)&&(l=Q(Q({},iee("x",n,e,i)),iee("y",r,t,o))),l}var Iv=1,Iot=1;function Oot(e,t,n,r,a,i,o){var l=a.rotate,s=a.scale,u=a.x,c=a.y,d=g.useState(!1),f=fe(d,2),p=f[0],h=f[1],m=g.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(S){!t||S.button!==0||(S.preventDefault(),S.stopPropagation(),m.current={diffX:S.pageX-u,diffY:S.pageY-c,transformX:u,transformY:c},h(!0))},y=function(S){n&&p&&i({x:S.pageX-m.current.diffX,y:S.pageY-m.current.diffY},"move")},b=function(){if(n&&p){h(!1);var S=m.current,C=S.transformX,w=S.transformY,I=u!==C&&c!==w;if(!I)return;var T=e.current.offsetWidth*s,A=e.current.offsetHeight*s,O=e.current.getBoundingClientRect(),R=O.left,N=O.top,_=l%180!==0,L=Gye(_?A:T,_?T:A,R,N);L&&i(Q({},L),"dragRebound")}},x=function(S){if(!(!n||S.deltaY==0)){var C=Math.abs(S.deltaY/100),w=Math.min(C,Iot),I=Iv+w*r;S.deltaY>0&&(I=Iv/I),o(I,"wheel",S.clientX,S.clientY)}};return g.useEffect(function(){var E,S,C,w;if(t){C=vc(window,"mouseup",b,!1),w=vc(window,"mousemove",y,!1);try{window.top!==window.self&&(E=vc(window.top,"mouseup",b,!1),S=vc(window.top,"mousemove",y,!1))}catch{}}return function(){var I,T,A,O;(I=C)===null||I===void 0||I.remove(),(T=w)===null||T===void 0||T.remove(),(A=E)===null||A===void 0||A.remove(),(O=S)===null||O===void 0||O.remove()}},[n,p,u,c,l,t]),{isMoving:p,onMouseDown:v,onMouseMove:y,onMouseUp:b,onWheel:x}}function MI(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function kot(e,t,n,r){var a=MI(e,n),i=MI(t,r);if(a===0&&i===0)return[e.x,e.y];var o=a/(a+i),l=e.x+o*(t.x-e.x),s=e.y+o*(t.y-e.y);return[l,s]}function Rot(e,t,n,r,a,i,o){var l=a.rotate,s=a.scale,u=a.x,c=a.y,d=g.useState(!1),f=fe(d,2),p=f[0],h=f[1],m=g.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(S){m.current=Q(Q({},m.current),S)},y=function(S){if(t){S.stopPropagation(),h(!0);var C=S.touches,w=C===void 0?[]:C;w.length>1?v({point1:{x:w[0].clientX,y:w[0].clientY},point2:{x:w[1].clientX,y:w[1].clientY},eventType:"touchZoom"}):v({point1:{x:w[0].clientX-u,y:w[0].clientY-c},eventType:"move"})}},b=function(S){var C=S.touches,w=C===void 0?[]:C,I=m.current,T=I.point1,A=I.point2,O=I.eventType;if(w.length>1&&O==="touchZoom"){var R={x:w[0].clientX,y:w[0].clientY},N={x:w[1].clientX,y:w[1].clientY},_=kot(T,A,R,N),L=fe(_,2),$=L[0],k=L[1],P=MI(R,N)/MI(T,A);o(P,"touchZoom",$,k,!0),v({point1:R,point2:N,eventType:"touchZoom"})}else O==="move"&&(i({x:w[0].clientX-T.x,y:w[0].clientY-T.y},"move"),v({eventType:"move"}))},x=function(){if(n){if(p&&h(!1),v({eventType:"none"}),r>s)return i({x:0,y:0,scale:r},"touchZoom");var S=e.current.offsetWidth*s,C=e.current.offsetHeight*s,w=e.current.getBoundingClientRect(),I=w.left,T=w.top,A=l%180!==0,O=Gye(A?C:S,A?S:C,I,T);O&&i(Q({},O),"dragRebound")}};return g.useEffect(function(){var E;return n&&t&&(E=vc(window,"touchmove",function(S){return S.preventDefault()},{passive:!1})),function(){var S;(S=E)===null||S===void 0||S.remove()}},[n,t]),{isTouching:p,onTouchStart:y,onTouchMove:b,onTouchEnd:x}}var _ot=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,i=t.prefixCls,o=t.rootClassName,l=t.icons,s=t.countRender,u=t.showSwitch,c=t.showProgress,d=t.current,f=t.transform,p=t.count,h=t.scale,m=t.minScale,v=t.maxScale,y=t.closeIcon,b=t.onSwitchLeft,x=t.onSwitchRight,E=t.onClose,S=t.onZoomIn,C=t.onZoomOut,w=t.onRotateRight,I=t.onRotateLeft,T=t.onFlipX,A=t.onFlipY,O=t.toolbarRender,R=t.zIndex,N=g.useContext(VS),_=l.rotateLeft,L=l.rotateRight,$=l.zoomIn,k=l.zoomOut,P=l.close,B=l.left,F=l.right,D=l.flipX,j=l.flipY,z="".concat(i,"-operations-operation");g.useEffect(function(){var Y=function(Z){Z.keyCode===Ve.ESC&&E()};return n&&window.addEventListener("keydown",Y),function(){window.removeEventListener("keydown",Y)}},[n]);var V=[{icon:j,onClick:A,type:"flipY"},{icon:D,onClick:T,type:"flipX"},{icon:_,onClick:I,type:"rotateLeft"},{icon:L,onClick:w,type:"rotateRight"},{icon:k,onClick:C,type:"zoomOut",disabled:h<=m},{icon:$,onClick:S,type:"zoomIn",disabled:h===v}],G=V.map(function(Y){var J,Z=Y.icon,K=Y.onClick,ee=Y.type,ae=Y.disabled;return g.createElement("div",{className:ie(z,(J={},X(J,"".concat(i,"-operations-operation-").concat(ee),!0),X(J,"".concat(i,"-operations-operation-disabled"),!!ae),J)),onClick:K,key:ee},Z)}),W=g.createElement("div",{className:"".concat(i,"-operations")},G);return g.createElement(io,{visible:n,motionName:r},function(Y){var J=Y.className,Z=Y.style;return g.createElement(_S,{open:!0,getContainer:a??document.body},g.createElement("div",{className:ie("".concat(i,"-operations-wrapper"),J,o),style:Q(Q({},Z),{},{zIndex:R})},y===null?null:g.createElement("button",{className:"".concat(i,"-close"),onClick:E},y||P),u&&g.createElement(g.Fragment,null,g.createElement("div",{className:ie("".concat(i,"-switch-left"),X({},"".concat(i,"-switch-left-disabled"),d===0)),onClick:b},B),g.createElement("div",{className:ie("".concat(i,"-switch-right"),X({},"".concat(i,"-switch-right-disabled"),d===p-1)),onClick:x},F)),g.createElement("div",{className:"".concat(i,"-footer")},c&&g.createElement("div",{className:"".concat(i,"-progress")},s?s(d+1,p):"".concat(d+1," / ").concat(p)),O?O(W,Q({icons:{flipYIcon:G[0],flipXIcon:G[1],rotateLeftIcon:G[2],rotateRightIcon:G[3],zoomOutIcon:G[4],zoomInIcon:G[5]},actions:{onFlipY:A,onFlipX:T,onRotateLeft:I,onRotateRight:w,onZoomOut:C,onZoomIn:S},transform:f},N?{current:d,total:p}:{})):W)))})},Not=["fallback","src","imgRef"],Dot=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Mot=function(t){var n=t.fallback,r=t.src,a=t.imgRef,i=Lt(t,Not),o=Wye({src:r,fallback:n}),l=fe(o,2),s=l[0],u=l[1];return M.createElement("img",Ne({ref:function(d){a.current=d,s(d)}},i,u))},qye=function(t){var n=t.prefixCls,r=t.src,a=t.alt,i=t.fallback,o=t.movable,l=o===void 0?!0:o,s=t.onClose,u=t.visible,c=t.icons,d=c===void 0?{}:c,f=t.rootClassName,p=t.closeIcon,h=t.getContainer,m=t.current,v=m===void 0?0:m,y=t.count,b=y===void 0?1:y,x=t.countRender,E=t.scaleStep,S=E===void 0?.5:E,C=t.minScale,w=C===void 0?1:C,I=t.maxScale,T=I===void 0?50:I,A=t.transitionName,O=A===void 0?"zoom":A,R=t.maskTransitionName,N=R===void 0?"fade":R,_=t.imageRender,L=t.imgCommonProps,$=t.toolbarRender,k=t.onTransform,P=t.onChange,B=Lt(t,Dot),F=g.useRef(),D=g.useContext(VS),j=D&&b>1,z=D&&b>=1,V=g.useState(!0),G=fe(V,2),W=G[0],Y=G[1],J=Aot(F,w,T,k),Z=J.transform,K=J.resetTransform,ee=J.updateTransform,ae=J.dispatchZoomChange,te=Oot(F,l,u,S,Z,ee,ae),re=te.isMoving,se=te.onMouseDown,ve=te.onWheel,ge=Rot(F,l,u,w,Z,ee,ae),xe=ge.isTouching,me=ge.onTouchStart,de=ge.onTouchMove,Ce=ge.onTouchEnd,Ie=Z.rotate,ke=Z.scale,Te=ie(X({},"".concat(n,"-moving"),re));g.useEffect(function(){W||Y(!0)},[W]);var pe=function(){K("close")},Se=function(){ae(Iv+S,"zoomIn")},Ee=function(){ae(Iv/(Iv+S),"zoomOut")},we=function(){ee({rotate:Ie+90},"rotateRight")},ue=function(){ee({rotate:Ie-90},"rotateLeft")},Ae=function(){ee({flipX:!Z.flipX},"flipX")},_e=function(){ee({flipY:!Z.flipY},"flipY")},Re=function(Le){Le==null||Le.preventDefault(),Le==null||Le.stopPropagation(),v>0&&(Y(!1),K("prev"),P==null||P(v-1,v))},Be=function(Le){Le==null||Le.preventDefault(),Le==null||Le.stopPropagation(),v({position:e||"absolute",inset:0}),olt=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:i,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new Wn("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Ps),{padding:`0 ${ne(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},llt=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:i,paddingLG:o,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:u,iconCls:c,colorTextLightSolid:d}=e,f=new Wn(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${c}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ne(o)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${c}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${c}`]:{fontSize:e.previewOperationSize}}}}},slt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:i,motionDurationSlow:o}=e,l=new Wn(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},ult=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},I6()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},I6()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[llt(e),slt(e)]}]},clt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},olt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},I6())}}},dlt=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Sy(e,"zoom"),"&":T7(e,!0)}},flt=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Wn(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Wn(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Wn(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Yye=On("Image",e=>{const t=`${e.componentCls}-preview`,n=pn(e,{previewCls:t,modalMaskBg:new Wn("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[clt(n),ult(n),Sme(pn(n,{componentCls:t})),dlt(n)]},flt);var plt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{previewPrefixCls:t,preview:n}=e,r=plt(e,["previewPrefixCls","preview"]);const{getPrefixCls:a}=g.useContext(dt),i=a("image",t),o=`${i}-preview`,l=a(),s=oa(i),[u,c,d]=Yye(i,s),[f]=jc("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=g.useMemo(()=>{var h;if(n===!1)return n;const m=typeof n=="object"?n:{},v=ie(c,d,s,(h=m.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},m),{transitionName:ml(l,"zoom",m.transitionName),maskTransitionName:ml(l,"fade",m.maskTransitionName),rootClassName:v,zIndex:f})},[n]);return u(g.createElement(IR.PreviewGroup,Object.assign({preview:p,previewPrefixCls:o,icons:Kye},r)))},glt=hlt;var lee=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,preview:r,className:a,rootClassName:i,style:o}=e,l=lee(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=ns,getPopupContainer:c,image:d}=g.useContext(dt),f=s("image",n),p=s(),h=u.Image||ns.Image,m=oa(f),[v,y,b]=Yye(f,m),x=ie(i,y,b,m),E=ie(a,y,d==null?void 0:d.className),[S]=jc("ImagePreview",typeof r=="object"?r.zIndex:void 0),C=g.useMemo(()=>{var I;if(r===!1)return r;const T=typeof r=="object"?r:{},{getContainer:A,closeIcon:O}=T,R=lee(T,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:g.createElement("div",{className:`${f}-mask-info`},g.createElement(AR,null),h==null?void 0:h.preview),icons:Kye},R),{getContainer:A??c,transitionName:ml(p,"zoom",T.transitionName),maskTransitionName:ml(p,"fade",T.maskTransitionName),zIndex:S,closeIcon:O??((I=d==null?void 0:d.preview)===null||I===void 0?void 0:I.closeIcon)})},[r,h,(t=d==null?void 0:d.preview)===null||t===void 0?void 0:t.closeIcon]),w=Object.assign(Object.assign({},d==null?void 0:d.style),o);return v(g.createElement(IR,Object.assign({prefixCls:f,preview:C,rootClassName:x,className:E,style:w},l)))};Xye.PreviewGroup=glt;const mlt=Xye;function vlt(e,t,n){return typeof n=="boolean"?n:e.length?!0:wi(t).some(a=>a.type===Wve)}const ylt=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:a,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:a},[`${t}-sider-zero-width-trigger`]:{color:i,background:a,border:`1px solid ${n}`,borderInlineStart:0}}}},blt=ylt,xlt=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:a,footerBg:i,triggerBg:o,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:c,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:h,motionDurationSlow:m,fontSize:v,borderRadius:y,bodyBg:b,headerBg:x,siderBg:E}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:E,transition:`all ${h}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:a,lineHeight:ne(d),textAlign:"center",background:o,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:E,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},blt(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:s,color:u,lineHeight:ne(l),background:x,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:v,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Elt=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:i,marginXXS:o,colorTextLightSolid:l,colorBgContainer:s}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:a}},Qye=On("Layout",e=>[xlt(e)],Elt,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var Zye=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ag.forwardRef((o,l)=>g.createElement(a,Object.assign({ref:l,suffixCls:t,tagName:n},o)))}const w9=g.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:i}=e,o=Zye(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=g.useContext(dt),s=l("layout",n),[u,c,d]=Qye(s),f=r?`${s}-${r}`:s;return u(g.createElement(i,Object.assign({className:ie(n||f,a,c,d),ref:t},o)))}),Slt=g.forwardRef((e,t)=>{const{direction:n}=g.useContext(dt),[r,a]=g.useState([]),{prefixCls:i,className:o,rootClassName:l,children:s,hasSider:u,tagName:c,style:d}=e,f=Zye(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=Dr(f,["suffixCls"]),{getPrefixCls:h,layout:m}=g.useContext(dt),v=h("layout",i),y=vlt(r,s,u),[b,x,E]=Qye(v),S=ie(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},m==null?void 0:m.className,o,l,x,E),C=g.useMemo(()=>({siderHook:{addSider:w=>{a(I=>[].concat(Ue(I),[w]))},removeSider:w=>{a(I=>I.filter(T=>T!==w))}}}),[]);return b(g.createElement(Vve.Provider,{value:C},g.createElement(c,Object.assign({ref:t,className:S,style:Object.assign(Object.assign({},m==null?void 0:m.style),d)},p),s)))}),Clt=OR({tagName:"div",displayName:"Layout"})(Slt),wlt=OR({suffixCls:"header",tagName:"header",displayName:"Header"})(w9),Tlt=OR({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(w9),Alt=OR({suffixCls:"content",tagName:"main",displayName:"Content"})(w9),Ilt=Clt,Dy=Ilt;Dy.Header=wlt;Dy.Footer=Tlt;Dy.Content=Alt;Dy.Sider=Wve;Dy._InternalSiderContext=fR;const jr=Dy,Olt=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e},Jye=Olt;var klt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const Rlt=klt;var _lt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Rlt}))};const see=g.forwardRef(_lt);var Nlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Dlt=Nlt;var Mlt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Dlt}))};const uee=g.forwardRef(Mlt);var $lt={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Llt=["10","20","50","100"],Plt=function(t){var n=t.pageSizeOptions,r=n===void 0?Llt:n,a=t.locale,i=t.changeSize,o=t.pageSize,l=t.goButton,s=t.quickGo,u=t.rootPrefixCls,c=t.selectComponentClass,d=t.selectPrefixCls,f=t.disabled,p=t.buildOptionText,h=M.useState(""),m=fe(h,2),v=m[0],y=m[1],b=function(){return!v||Number.isNaN(v)?void 0:Number(v)},x=typeof p=="function"?p:function(_){return"".concat(_," ").concat(a.items_per_page)},E=function(L){i==null||i(Number(L))},S=function(L){y(L.target.value)},C=function(L){l||v===""||(y(""),!(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||L.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(s==null||s(b())))},w=function(L){v!==""&&(L.keyCode===Ve.ENTER||L.type==="click")&&(y(""),s==null||s(b()))},I=function(){return r.some(function(L){return L.toString()===o.toString()})?r:r.concat([o.toString()]).sort(function(L,$){var k=Number.isNaN(Number(L))?0:Number(L),P=Number.isNaN(Number($))?0:Number($);return k-P})},T="".concat(u,"-options");if(!i&&!s)return null;var A=null,O=null,R=null;if(i&&c){var N=I().map(function(_,L){return M.createElement(c.Option,{key:L,value:_.toString()},x(_))});A=M.createElement(c,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(T,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(o||r[0]).toString(),onChange:E,getPopupContainer:function(L){return L.parentNode},"aria-label":a.page_size,defaultOpen:!1},N)}return s&&(l&&(R=typeof l=="boolean"?M.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:f,className:"".concat(T,"-quick-jumper-button")},a.jump_to_confirm):M.createElement("span",{onClick:w,onKeyUp:w},l)),O=M.createElement("div",{className:"".concat(T,"-quick-jumper")},a.jump_to,M.createElement("input",{disabled:f,type:"text",value:v,onChange:S,onKeyUp:w,onBlur:C,"aria-label":a.page}),a.page,R)),M.createElement("li",{className:T},A,O)},qb=function(t){var n,r=t.rootPrefixCls,a=t.page,i=t.active,o=t.className,l=t.showTitle,s=t.onClick,u=t.onKeyPress,c=t.itemRender,d="".concat(r,"-item"),f=ie(d,"".concat(d,"-").concat(a),(n={},X(n,"".concat(d,"-active"),i),X(n,"".concat(d,"-disabled"),!a),n),o),p=function(){s(a)},h=function(y){u(y,s,a)},m=c(a,"page",M.createElement("a",{rel:"nofollow"},a));return m?M.createElement("li",{title:l?String(a):null,className:f,onClick:p,onKeyDown:h,tabIndex:0},m):null},Flt=function(t,n,r){return r};function cee(){}function dee(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function eh(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Blt=function(t){var n,r=t.prefixCls,a=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,o=i===void 0?"rc-select":i,l=t.className,s=t.selectComponentClass,u=t.current,c=t.defaultCurrent,d=c===void 0?1:c,f=t.total,p=f===void 0?0:f,h=t.pageSize,m=t.defaultPageSize,v=m===void 0?10:m,y=t.onChange,b=y===void 0?cee:y,x=t.hideOnSinglePage,E=t.showPrevNextJumpers,S=E===void 0?!0:E,C=t.showQuickJumper,w=t.showLessItems,I=t.showTitle,T=I===void 0?!0:I,A=t.onShowSizeChange,O=A===void 0?cee:A,R=t.locale,N=R===void 0?$lt:R,_=t.style,L=t.totalBoundaryShowSizeChanger,$=L===void 0?50:L,k=t.disabled,P=t.simple,B=t.showTotal,F=t.showSizeChanger,D=t.pageSizeOptions,j=t.itemRender,z=j===void 0?Flt:j,V=t.jumpPrevIcon,G=t.jumpNextIcon,W=t.prevIcon,Y=t.nextIcon,J=M.useRef(null),Z=or(10,{value:h,defaultValue:v}),K=fe(Z,2),ee=K[0],ae=K[1],te=or(1,{value:u,defaultValue:d,postState:function(mn){return Math.max(1,Math.min(mn,eh(void 0,ee,p)))}}),re=fe(te,2),se=re[0],ve=re[1],ge=M.useState(se),xe=fe(ge,2),me=xe[0],de=xe[1];g.useEffect(function(){de(se)},[se]);var Ce=Math.max(1,se-(w?3:5)),Ie=Math.min(eh(void 0,ee,p),se+(w?3:5));function ke(jt,mn){var Rn=jt||M.createElement("button",{type:"button","aria-label":mn,className:"".concat(a,"-item-link")});return typeof jt=="function"&&(Rn=M.createElement(jt,Q({},t))),Rn}function Te(jt){var mn=jt.target.value,Rn=eh(void 0,ee,p),kr;return mn===""?kr=mn:Number.isNaN(Number(mn))?kr=me:mn>=Rn?kr=Rn:kr=Number(mn),kr}function pe(jt){return dee(jt)&&jt!==se&&dee(p)&&p>0}var Se=p>ee?C:!1;function Ee(jt){(jt.keyCode===Ve.UP||jt.keyCode===Ve.DOWN)&&jt.preventDefault()}function we(jt){var mn=Te(jt);switch(mn!==me&&de(mn),jt.keyCode){case Ve.ENTER:_e(mn);break;case Ve.UP:_e(mn-1);break;case Ve.DOWN:_e(mn+1);break}}function ue(jt){_e(Te(jt))}function Ae(jt){var mn=eh(jt,ee,p),Rn=se>mn&&mn!==0?mn:se;ae(jt),de(Rn),O==null||O(se,jt),ve(Rn),b==null||b(Rn,jt)}function _e(jt){if(pe(jt)&&!k){var mn=eh(void 0,ee,p),Rn=jt;return jt>mn?Rn=mn:jt<1&&(Rn=1),Rn!==me&&de(Rn),ve(Rn),b==null||b(Rn,ee),Rn}return se}var Re=se>1,Be=se$;function $e(){Re&&_e(se-1)}function Fe(){Be&&_e(se+1)}function He(){_e(Ce)}function Le(){_e(Ie)}function Ke(jt,mn){if(jt.key==="Enter"||jt.charCode===Ve.ENTER||jt.keyCode===Ve.ENTER){for(var Rn=arguments.length,kr=new Array(Rn>2?Rn-2:0),ha=2;hap?p:se*ee])),Bt=null,tt=eh(void 0,ee,p);if(x&&p<=ee)return null;var ut=[],wt={rootPrefixCls:a,onClick:_e,onKeyPress:Ke,showTitle:T,itemRender:z,page:-1},Pt=se-1>0?se-1:0,Yt=se+1=lt*2&&se!==1+2&&(ut[0]=M.cloneElement(ut[0],{className:ie("".concat(a,"-item-after-jump-prev"),ut[0].props.className)}),ut.unshift(Ye)),tt-se>=lt*2&&se!==tt-2){var kn=ut[ut.length-1];ut[ut.length-1]=M.cloneElement(kn,{className:ie("".concat(a,"-item-before-jump-next"),kn.props.className)}),ut.push(Bt)}an!==1&&ut.unshift(M.createElement(qb,Ne({},wt,{key:1,page:1}))),Bn!==tt&&ut.push(M.createElement(qb,Ne({},wt,{key:tt,page:tt})))}var zr=je(Pt);if(zr){var qr=!Re||!tt;zr=M.createElement("li",{title:T?N.prev_page:null,onClick:$e,tabIndex:qr?null:0,onKeyDown:ft,className:ie("".concat(a,"-prev"),X({},"".concat(a,"-disabled"),qr)),"aria-disabled":qr},zr)}var lr=Ze(Yt);if(lr){var gr,Xa;P?(gr=!Be,Xa=Re?0:null):(gr=!Be||!tt,Xa=gr?null:0),lr=M.createElement("li",{title:T?N.next_page:null,onClick:Fe,tabIndex:Xa,onKeyDown:gt,className:ie("".concat(a,"-next"),X({},"".concat(a,"-disabled"),gr)),"aria-disabled":gr},lr)}var Qa=ie(a,l,(n={},X(n,"".concat(a,"-simple"),P),X(n,"".concat(a,"-disabled"),k),n));return M.createElement("ul",Ne({className:Qa,style:_,ref:J},at),It,zr,P?Ot:ut,lr,M.createElement(Plt,{locale:N,rootPrefixCls:a,disabled:k,selectComponentClass:s,selectPrefixCls:o,changeSize:Me?Ae:null,pageSize:ee,pageSizeOptions:D,quickGo:Se?_e:null,goButton:tn}))};const ebe=e=>g.createElement(cl,Object.assign({},e,{showSearch:!0,size:"small"})),tbe=e=>g.createElement(cl,Object.assign({},e,{showSearch:!0,size:"middle"}));ebe.Option=cl.Option;tbe.Option=cl.Option;const zlt=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Hlt=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ne(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM),input:Object.assign(Object.assign({},u9(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},jlt=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${ne(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ne(e.inputOutlineOffset)} 0 ${ne(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Ult=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${ne(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ne(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},HS(e)),a9(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ER(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Vlt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ne(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ne(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Wlt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},In(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ne(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Vlt(e)),Ult(e)),jlt(e)),Hlt(e)),zlt(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Glt=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},xp(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},bp(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},bp(e))}}}},nbe=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},xR(e)),rbe=e=>pn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},bR(e)),qlt=On("Pagination",e=>{const t=rbe(e);return[Wlt(t),Glt(t)]},nbe),Ylt=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Klt=Vg(["Pagination","bordered"],e=>{const t=rbe(e);return[Ylt(t)]},nbe);var Xlt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:a,style:i,size:o,locale:l,selectComponentClass:s,responsive:u,showSizeChanger:c}=e,d=Xlt(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=LS(u),[,p]=Ka(),{getPrefixCls:h,direction:m,pagination:v={}}=g.useContext(dt),y=h("pagination",t),[b,x,E]=qlt(y),S=c??v.showSizeChanger,C=g.useMemo(()=>{const _=g.createElement("span",{className:`${y}-item-ellipsis`},"•••"),L=g.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},m==="rtl"?g.createElement(z0,null):g.createElement(vE,null)),$=g.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},m==="rtl"?g.createElement(vE,null):g.createElement(z0,null)),k=g.createElement("a",{className:`${y}-item-link`},g.createElement("div",{className:`${y}-item-container`},m==="rtl"?g.createElement(uee,{className:`${y}-item-link-icon`}):g.createElement(see,{className:`${y}-item-link-icon`}),_)),P=g.createElement("a",{className:`${y}-item-link`},g.createElement("div",{className:`${y}-item-container`},m==="rtl"?g.createElement(see,{className:`${y}-item-link-icon`}):g.createElement(uee,{className:`${y}-item-link-icon`}),_));return{prevIcon:L,nextIcon:$,jumpPrevIcon:k,jumpNextIcon:P}},[m,y]),[w]=Wu("Pagination",Jhe),I=Object.assign(Object.assign({},w),l),T=co(o),A=T==="small"||!!(f&&!T&&u),O=h("select",n),R=ie({[`${y}-mini`]:A,[`${y}-rtl`]:m==="rtl",[`${y}-bordered`]:p.wireframe},v==null?void 0:v.className,r,a,x,E),N=Object.assign(Object.assign({},v==null?void 0:v.style),i);return b(g.createElement(g.Fragment,null,p.wireframe&&g.createElement(Klt,{prefixCls:y}),g.createElement(Blt,Object.assign({},C,d,{style:N,prefixCls:y,selectPrefixCls:O,className:R,selectComponentClass:s||(A?ebe:tbe),locale:I,showSizeChanger:S}))))},abe=Qlt,Zlt=new gn("antSpinMove",{to:{opacity:1}}),Jlt=new gn("antRotate",{to:{transform:"rotate(405deg)"}}),est=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},In(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Zlt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Jlt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},tst=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},nst=On("Spin",e=>{const t=pn(e,{spinDotDefault:e.colorTextDescription});return[est(t)]},tst);var rst=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,spinning:n=!0,delay:r=0,className:a,rootClassName:i,size:o="default",tip:l,wrapperClassName:s,style:u,children:c,fullscreen:d=!1}=e,f=rst(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:p}=g.useContext(dt),h=p("spin",t),[m,v,y]=nst(h),[b,x]=g.useState(()=>n&&!ist(n,r));g.useEffect(()=>{if(n){const R=srt(r,()=>{x(!0)});return R(),()=>{var N;(N=R==null?void 0:R.cancel)===null||N===void 0||N.call(R)}}x(!1)},[r,n]);const E=g.useMemo(()=>typeof c<"u"&&!d,[c,d]),{direction:S,spin:C}=g.useContext(dt),w=ie(h,C==null?void 0:C.className,{[`${h}-sm`]:o==="small",[`${h}-lg`]:o==="large",[`${h}-spinning`]:b,[`${h}-show-text`]:!!l,[`${h}-fullscreen`]:d,[`${h}-fullscreen-show`]:d&&b,[`${h}-rtl`]:S==="rtl"},a,i,v,y),I=ie(`${h}-container`,{[`${h}-blur`]:b}),T=Dr(f,["indicator"]),A=Object.assign(Object.assign({},C==null?void 0:C.style),u),O=g.createElement("div",Object.assign({},T,{style:A,className:w,"aria-live":"polite","aria-busy":b}),ast(h,e),l&&(E||d)?g.createElement("div",{className:`${h}-text`},l):null);return m(E?g.createElement("div",Object.assign({},T,{className:ie(`${h}-nested-loading`,s,v,y)}),b&&g.createElement("div",{key:"loading"},O),g.createElement("div",{className:I,key:"container"},c)):O)};ibe.setDefaultIndicator=e=>{KT=e};const My=ibe,T9=M.createContext({});T9.Consumer;var obe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:i}=e,o=obe(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=g.useContext(dt),s=l("list",t),u=ie(`${s}-item-meta`,n),c=M.createElement("div",{className:`${s}-item-meta-content`},a&&M.createElement("h4",{className:`${s}-item-meta-title`},a),i&&M.createElement("div",{className:`${s}-item-meta-description`},i));return M.createElement("div",Object.assign({},o,{className:u}),r&&M.createElement("div",{className:`${s}-item-meta-avatar`},r),(a||i)&&c)},lst=(e,t)=>{var{prefixCls:n,children:r,actions:a,extra:i,className:o,colStyle:l}=e,s=obe(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:u,itemLayout:c}=g.useContext(T9),{getPrefixCls:d}=g.useContext(dt),f=()=>{let b;return g.Children.forEach(r,x=>{typeof x=="string"&&(b=!0)}),b&&g.Children.count(r)>1},p=()=>c==="vertical"?!!i:!f(),h=d("list",n),m=a&&a.length>0&&M.createElement("ul",{className:`${h}-item-action`,key:"actions"},a.map((b,x)=>M.createElement("li",{key:`${h}-item-action-${x}`},b,x!==a.length-1&&M.createElement("em",{className:`${h}-item-action-split`})))),v=u?"div":"li",y=M.createElement(v,Object.assign({},s,u?{}:{ref:t},{className:ie(`${h}-item`,{[`${h}-item-no-flex`]:!p()},o)}),c==="vertical"&&i?[M.createElement("div",{className:`${h}-item-main`,key:"content"},r,m),M.createElement("div",{className:`${h}-item-extra`,key:"extra"},i)]:[r,m,Ta(i,{key:"extra"})]);return u?M.createElement(Ji,{ref:t,flex:1,style:l},y):y},lbe=g.forwardRef(lst);lbe.Meta=ost;const sst=lbe,ust=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:i,itemPaddingLG:o,marginLG:l,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ne(a)} ${ne(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},cst=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:i,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ne(o)}`}}}}}},dst=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:i,marginLG:o,padding:l,itemPadding:s,colorPrimary:u,itemPaddingSM:c,itemPaddingLG:d,paddingXS:f,margin:p,colorText:h,colorTextDescription:m,motionDurationSlow:v,lineWidth:y,headerBg:b,footerBg:x,emptyTextPadding:E,metaMarginBottom:S,avatarMarginRight:C,titleMarginBottom:w,descriptionFontSize:I}=e,T={};return["start","center","end"].forEach(A=>{T[`&-align-${A}`]={textAlign:A}}),{[`${t}`]:Object.assign(Object.assign({},In(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:x},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:o},T),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:C},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${ne(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${v}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:m,fontSize:I,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ne(f)}`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ne(l)} 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:E,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:S,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:w,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${ne(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:c},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},fst=e=>({contentWidth:220,itemPadding:`${ne(e.paddingContentVertical)} 0`,itemPaddingSM:`${ne(e.paddingContentVerticalSM)} ${ne(e.paddingContentHorizontal)}`,itemPaddingLG:`${ne(e.paddingContentVerticalLG)} ${ne(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),pst=On("List",e=>{const t=pn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[dst(t),ust(t),cst(t)]},fst);var hst=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(Ie,ke)=>{var Te;I(Ie),A(ke),n&&n[Ce]&&((Te=n==null?void 0:n[Ce])===null||Te===void 0||Te.call(n,Ie,ke))},k=$("onChange"),P=$("onShowSizeChange"),B=(Ce,Ie)=>{if(!x)return null;let ke;return typeof b=="function"?ke=b(Ce):b?ke=Ce[b]:ke=Ce.key,ke||(ke=`list-item-${Ie}`),g.createElement(g.Fragment,{key:ke},x(Ce,Ie))},F=()=>!!(d||n||v),D=O("list",r),[j,z,V]=pst(D);let G=y;typeof G=="boolean"&&(G={spinning:G});const W=G&&G.spinning,Y=co(h);let J="";switch(Y){case"large":J="lg";break;case"small":J="sm";break}const Z=ie(D,{[`${D}-vertical`]:c==="vertical",[`${D}-${J}`]:J,[`${D}-split`]:i,[`${D}-bordered`]:a,[`${D}-loading`]:W,[`${D}-grid`]:!!f,[`${D}-something-after-last-item`]:F(),[`${D}-rtl`]:N==="rtl"},_==null?void 0:_.className,o,l,z,V),K=Jye(L,{total:p.length,current:w,pageSize:T},n||{}),ee=Math.ceil(K.total/K.pageSize);K.current>ee&&(K.current=ee);const ae=n?g.createElement("div",{className:ie(`${D}-pagination`,`${D}-pagination-align-${(t=K==null?void 0:K.align)!==null&&t!==void 0?t:"end"}`)},g.createElement(abe,Object.assign({},K,{onChange:k,onShowSizeChange:P}))):null;let te=Ue(p);n&&p.length>(K.current-1)*K.pageSize&&(te=Ue(p).splice((K.current-1)*K.pageSize,K.pageSize));const re=Object.keys(f||{}).some(Ce=>["xs","sm","md","lg","xl","xxl"].includes(Ce)),se=LS(re),ve=g.useMemo(()=>{for(let Ce=0;Ce{if(!f)return;const Ce=ve&&f[ve]?f[ve]:f.column;if(Ce)return{width:`${100/Ce}%`,maxWidth:`${100/Ce}%`}},[f==null?void 0:f.column,ve]);let xe=W&&g.createElement("div",{style:{minHeight:53}});if(te.length>0){const Ce=te.map((Ie,ke)=>B(Ie,ke));xe=f?g.createElement(Ns,{gutter:f.gutter},g.Children.map(Ce,Ie=>g.createElement("div",{key:Ie==null?void 0:Ie.key,style:ge},Ie))):g.createElement("ul",{className:`${D}-items`},Ce)}else!u&&!W&&(xe=g.createElement("div",{className:`${D}-empty-text`},E&&E.emptyText||(R==null?void 0:R("List"))||g.createElement(D7,{componentName:"List"})));const me=K.position||"bottom",de=g.useMemo(()=>({grid:f,itemLayout:c}),[JSON.stringify(f),c]);return j(g.createElement(T9.Provider,{value:de},g.createElement("div",Object.assign({style:Object.assign(Object.assign({},_==null?void 0:_.style),s),className:Z},S),(me==="top"||me==="both")&&ae,m&&g.createElement("div",{className:`${D}-header`},m),g.createElement(My,Object.assign({},G),xe,u),v&&g.createElement("div",{className:`${D}-footer`},v),d||(me==="bottom"||me==="both")&&ae)))}Yl.Item=sst;var gst=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:i,title:o,children:l,footer:s}=e,u=gst(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:c}=g.useContext(dt),d=c(),f=t||c("modal"),p=oa(d),[h,m,v]=Tme(f,p),y=`${f}-confirm`;let b={};return i?b={closable:a??!1,title:"",footer:"",children:g.createElement(Ime,Object.assign({},e,{prefixCls:f,confirmPrefixCls:y,rootPrefixCls:d,content:l}))}:b={closable:a??!0,title:o,footer:s!==null&&g.createElement(Eme,Object.assign({},e)),children:l},h(g.createElement(ome,Object.assign({prefixCls:f,className:ie(m,`${f}-pure-panel`,i&&y,i&&`${y}-${i}`,n,v,p)},u,{closeIcon:xme(f,r),closable:a},b)))},vst=qme(mst);function sbe(e){return DS(_me(e))}const Yu=Ame;Yu.useModal=Lme;Yu.info=function(t){return DS(Nme(t))};Yu.success=function(t){return DS(Dme(t))};Yu.error=function(t){return DS(Mme(t))};Yu.warning=sbe;Yu.warn=sbe;Yu.confirm=function(t){return DS($me(t))};Yu.destroyAll=function(){for(;$h.length;){const t=$h.pop();t&&t()}};Yu.config=Wqe;Yu._InternalPanelDoNotUseOrYouWillBeFired=vst;const A9=Yu;let yu=null,XT=e=>e(),$I=[],bE={};function fee(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:a}=bE,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:a}}const yst=M.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:a}=g.useContext(dt),i=bE.prefixCls||a("notification"),o=g.useContext(o6),[l,s]=jme(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),o.notification));return M.useEffect(r,[]),M.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(c=>{u[c]=function(){return r(),l[c].apply(l,arguments)}}),{instance:u,sync:r}}),s}),bst=M.forwardRef((e,t)=>{const[n,r]=M.useState(fee),a=()=>{r(fee)};M.useEffect(a,[]);const i=Mge(),o=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),u=M.createElement(yst,{ref:t,sync:a,notificationConfig:n});return M.createElement(Hc,{prefixCls:o,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(u):u)});function I9(){if(!yu){const e=document.createDocumentFragment(),t={fragment:e};yu=t,XT(()=>{p7(M.createElement(bst,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,I9())})}}),e)});return}yu.instance&&($I.forEach(e=>{switch(e.type){case"open":{XT(()=>{yu.instance.open(Object.assign(Object.assign({},bE),e.config))});break}case"destroy":XT(()=>{yu==null||yu.instance.destroy(e.key)});break}}),$I=[])}function xst(e){bE=Object.assign(Object.assign({},bE),e),XT(()=>{var t;(t=yu==null?void 0:yu.sync)===null||t===void 0||t.call(yu)})}function ube(e){$I.push({type:"open",config:e}),I9()}function Est(e){$I.push({type:"destroy",key:e}),I9()}const Sst=["success","info","warning","error"],Cst={open:ube,destroy:Est,config:xst,useNotification:Ume,_InternalPanelDoNotUseOrYouWillBeFired:uYe},cbe=Cst;Sst.forEach(e=>{cbe[e]=t=>ube(Object.assign(Object.assign({},t),{type:e}))});const O6=cbe,wst=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:i,colorWarning:o,marginXXS:l,marginXS:s,fontSize:u,fontWeightStrong:c,colorTextHeading:d}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:o,fontSize:u,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:c,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}},Tst=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},dbe=On("Popconfirm",e=>wst(e),Tst,{resetStyle:!1});var Ast=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:i,cancelText:o,okText:l,okType:s="primary",icon:u=g.createElement(Wg,null),showCancel:c=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:h}=e,{getPrefixCls:m}=g.useContext(dt),[v]=Wu("Popconfirm",ns.Popconfirm),y=B0(a),b=B0(i);return g.createElement("div",{className:`${t}-inner-content`,onClick:h},g.createElement("div",{className:`${t}-message`},u&&g.createElement("span",{className:`${t}-message-icon`},u),g.createElement("div",{className:`${t}-message-text`},y&&g.createElement("div",{className:ie(`${t}-title`)},y),b&&g.createElement("div",{className:`${t}-description`},b))),g.createElement("div",{className:`${t}-buttons`},c&&g.createElement(nn,Object.assign({onClick:p,size:"small"},r),o||(v==null?void 0:v.cancelText)),g.createElement(y7,{buttonProps:Object.assign(Object.assign({size:"small"},h7(s)),n),actionFn:f,close:d,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(v==null?void 0:v.okText))))},Ist=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,i=Ast(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=g.useContext(dt),l=o("popconfirm",t),[s]=dbe(l);return s(g.createElement(Cve,{placement:n,className:ie(l,r),style:a,content:g.createElement(fbe,Object.assign({prefixCls:l},i))}))},Ost=Ist;var kst=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,placement:i="top",trigger:o="click",okType:l="primary",icon:s=g.createElement(Wg,null),children:u,overlayClassName:c,onOpenChange:d,onVisibleChange:f}=e,p=kst(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=g.useContext(dt),[m,v]=or(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),y=(A,O)=>{v(A,!0),f==null||f(A),d==null||d(A,O)},b=A=>{y(!1,A)},x=A=>{var O;return(O=e.onConfirm)===null||O===void 0?void 0:O.call(globalThis,A)},E=A=>{var O;y(!1,A),(O=e.onCancel)===null||O===void 0||O.call(globalThis,A)},S=A=>{A.keyCode===Ve.ESC&&m&&y(!1,A)},C=A=>{const{disabled:O=!1}=e;O||y(A)},w=h("popconfirm",a),I=ie(w,c),[T]=dbe(w);return T(g.createElement(B7,Object.assign({},Dr(p,["title"]),{trigger:o,placement:i,onOpenChange:C,open:m,ref:t,overlayClassName:I,content:g.createElement(fbe,Object.assign({okType:l,icon:s},e,{prefixCls:w,close:b,onConfirm:x,onCancel:E})),"data-popover-inject":!0}),Ta(u,{onKeyDown:A=>{var O,R;g.isValidElement(u)&&((R=u==null?void 0:(O=u.props).onKeyDown)===null||R===void 0||R.call(O,A)),S(A)}})))});pbe._InternalPanelDoNotUseOrYouWillBeFired=Ost;const Rst=pbe;var _st={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Nst=function(){var t=g.useRef([]),n=g.useRef(null);return g.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},pee=0,Dst=Ti();function Mst(){var e;return Dst?(e=pee,pee+=1):e="TEST_OR_SSR",e}const $st=function(e){var t=g.useState(),n=fe(t,2),r=n[0],a=n[1];return g.useEffect(function(){a("rc_progress_".concat(Mst()))},[]),e||r};var hee=function(t){var n=t.bg,r=t.children;return g.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function gee(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var Lst=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,i=e.radius,o=e.style,l=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,c=e.size,d=e.gapDegree,f=r&&zt(r)==="object",p=f?"#FFF":void 0,h=c/2,m=g.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:h,cy:h,stroke:p,strokeLinecap:s,strokeWidth:u,opacity:l===0?0:1,style:o,ref:t});if(!f)return m;var v="".concat(a,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",b=gee(r,(360-d)/360),x=gee(r,1),E="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(x.join(", "),")");return g.createElement(g.Fragment,null,g.createElement("mask",{id:v},m),g.createElement("foreignObject",{x:0,y:0,width:c,height:c,mask:"url(#".concat(v,")")},g.createElement(hee,{bg:S},g.createElement(hee,{bg:E}))))}),A1=100,t4=function(t,n,r,a,i,o,l,s,u,c){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=r/100*360*((360-o)/360),p=o===0?0:{bottom:0,top:180,left:90,right:-90}[l],h=(100-a)/100*n;u==="round"&&a!==100&&(h+=c/2,h>=n&&(h=n-.01));var m=A1/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(i+f+p,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Pst=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function mee(e){var t=e??[];return Array.isArray(t)?t:[t]}var Fst=function(t){var n=Q(Q({},_st),t),r=n.id,a=n.prefixCls,i=n.steps,o=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,u=s===void 0?0:s,c=n.gapPosition,d=n.trailColor,f=n.strokeLinecap,p=n.style,h=n.className,m=n.strokeColor,v=n.percent,y=Lt(n,Pst),b=A1/2,x=$st(r),E="".concat(x,"-gradient"),S=b-o/2,C=Math.PI*2*S,w=u>0?90+u/2:-90,I=C*((360-u)/360),T=zt(i)==="object"?i:{count:i,space:2},A=T.count,O=T.space,R=mee(v),N=mee(m),_=N.find(function(D){return D&&zt(D)==="object"}),L=_&&zt(_)==="object",$=L?"butt":f,k=t4(C,I,0,100,w,u,c,d,$,o),P=Nst(),B=function(){var j=0;return R.map(function(z,V){var G=N[V]||N[N.length-1],W=t4(C,I,j,z,w,u,c,G,$,o);return j+=z,g.createElement(Lst,{key:V,color:G,ptg:z,radius:S,prefixCls:a,gradientId:E,style:W,strokeLinecap:$,strokeWidth:o,gapDegree:u,ref:function(J){P[V]=J},size:A1})}).reverse()},F=function(){var j=Math.round(A*(R[0]/100)),z=100/A,V=0;return new Array(A).fill(null).map(function(G,W){var Y=W<=j-1?N[0]:d,J=Y&&zt(Y)==="object"?"url(#".concat(E,")"):void 0,Z=t4(C,I,V,z,w,u,c,Y,"butt",o,O);return V+=(I-Z.strokeDashoffset+O)*100/I,g.createElement("circle",{key:W,className:"".concat(a,"-circle-path"),r:S,cx:b,cy:b,stroke:J,strokeWidth:o,opacity:1,style:Z,ref:function(ee){P[W]=ee}})})};return g.createElement("svg",Ne({className:ie("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(A1," ").concat(A1),style:p,id:r,role:"presentation"},y),!A&&g.createElement("circle",{className:"".concat(a,"-circle-trail"),r:S,cx:b,cy:b,stroke:d,strokeLinecap:$,strokeWidth:l||o,style:k}),A?F():B())};function op(e){return!e||e<0?0:e>100?100:e}function LI(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const Bst=e=>{let{percent:t,success:n,successPercent:r}=e;const a=op(LI({success:n,successPercent:r}));return[a,op(op(t)-a)]},zst=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Qh.green,n||null]},kR=(e,t,n)=>{var r,a,i,o;let l=-1,s=-1;if(t==="step"){const u=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=c??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,s=(o=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&o!==void 0?o:120));return[l,s]},Hst=3,jst=e=>Hst/e*100,Ust=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:i,width:o=120,type:l,children:s,success:u,size:c=o}=e,[d,f]=kR(c,"circle");let{strokeWidth:p}=e;p===void 0&&(p=Math.max(jst(d),6));const h={width:d,height:f,fontSize:d*.15+6},m=g.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),v=a||l==="dashboard"&&"bottom"||void 0,y=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=zst({success:u,strokeColor:e.strokeColor}),x=ie(`${t}-inner`,{[`${t}-circle-gradient`]:y}),E=g.createElement(Fst,{percent:Bst(e),strokeWidth:p,trailWidth:p,strokeColor:b,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:m,gapPosition:v});return g.createElement("div",{className:x,style:h},d<=20?g.createElement(Gs,{title:s},g.createElement("span",null,E)):g.createElement(g.Fragment,null,E,s))},Vst=Ust,PI="--progress-line-stroke-color",hbe="--progress-percent",vee=e=>{const t=e?"100%":"-100%";return new gn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Wst=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},In(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${ne(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${ne(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${PI})`]},height:"100%",width:`calc(1 / var(${hbe}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:vee(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:vee(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Gst=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},qst=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Yst=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Kst=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Xst=On("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=pn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Wst(n),Gst(n),qst(n),Yst(n)]},Kst);var Qst=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},Jst=(e,t)=>{const{from:n=Qh.blue,to:r=Qh.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=Qst(e,["from","to","direction"]);if(Object.keys(i).length!==0){const l=Zst(i),s=`linear-gradient(${a}, ${l})`;return{background:s,[PI]:s}}const o=`linear-gradient(${a}, ${n}, ${r})`;return{background:o,[PI]:o}},eut=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:i,strokeColor:o,strokeLinecap:l="round",children:s,trailColor:u=null,success:c}=e,d=o&&typeof o!="string"?Jst(o,n):{[PI]:o,background:o},f=l==="square"||l==="butt"?0:void 0,p=a??[-1,i||(a==="small"?6:8)],[h,m]=kR(p,"line",{strokeWidth:i}),v={backgroundColor:u||void 0,borderRadius:f},y=Object.assign(Object.assign({width:`${op(r)}%`,height:m,borderRadius:f},d),{[hbe]:op(r)/100}),b=LI(e),x={width:`${op(b)}%`,height:m,borderRadius:f,backgroundColor:c==null?void 0:c.strokeColor},E={width:h<0?"100%":h,height:m};return g.createElement(g.Fragment,null,g.createElement("div",{className:`${t}-outer`,style:E},g.createElement("div",{className:`${t}-inner`,style:v},g.createElement("div",{className:`${t}-bg`,style:y}),b!==void 0?g.createElement("div",{className:`${t}-success-bg`,style:x}):null)),s)},tut=eut,nut=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:a=8,strokeColor:i,trailColor:o=null,prefixCls:l,children:s}=e,u=Math.round(n*(r/100)),d=t??[t==="small"?2:14,a],[f,p]=kR(d,"step",{steps:n,strokeWidth:a}),h=f/n,m=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:a,steps:i,strokeColor:o,percent:l=0,size:s="default",showInfo:u=!0,type:c="line",status:d,format:f,style:p}=e,h=aut(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),m=g.useMemo(()=>{var N,_;const L=LI(e);return parseInt(L!==void 0?(N=L??0)===null||N===void 0?void 0:N.toString():(_=l??0)===null||_===void 0?void 0:_.toString(),10)},[l,e.success,e.successPercent]),v=g.useMemo(()=>!iut.includes(d)&&m>=100?"success":d||"normal",[d,m]),{getPrefixCls:y,direction:b,progress:x}=g.useContext(dt),E=y("progress",n),[S,C,w]=Xst(E),I=g.useMemo(()=>{if(!u)return null;const N=LI(e);let _;const L=f||(k=>`${k}%`),$=c==="line";return f||v!=="exception"&&v!=="success"?_=L(op(l),op(N)):v==="exception"?_=$?g.createElement(Bp,null):g.createElement(Gu,null):v==="success"&&(_=$?g.createElement(by,null):g.createElement($7,null)),g.createElement("span",{className:`${E}-text`,title:typeof _=="string"?_:void 0},_)},[u,l,m,v,c,E,f]),T=Array.isArray(o)?o[0]:o,A=typeof o=="string"||Array.isArray(o)?o:void 0;let O;c==="line"?O=i?g.createElement(rut,Object.assign({},e,{strokeColor:A,prefixCls:E,steps:i}),I):g.createElement(tut,Object.assign({},e,{strokeColor:T,prefixCls:E,direction:b}),I):(c==="circle"||c==="dashboard")&&(O=g.createElement(Vst,Object.assign({},e,{strokeColor:T,prefixCls:E,progressStatus:v}),I));const R=ie(E,`${E}-status-${v}`,`${E}-${c==="dashboard"&&"circle"||i&&"steps"||c}`,{[`${E}-inline-circle`]:c==="circle"&&kR(s,"circle")[0]<=20,[`${E}-show-info`]:u,[`${E}-${s}`]:typeof s=="string",[`${E}-rtl`]:b==="rtl"},x==null?void 0:x.className,r,a,C,w);return S(g.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},x==null?void 0:x.style),p),className:R,role:"progressbar","aria-valuenow":m},Dr(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))}),O9=out;var lut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const sut=lut;var uut=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:sut}))};const cut=g.forwardRef(uut),dut=()=>g.createElement("svg",{width:"252",height:"294"},g.createElement("defs",null,g.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(0 .012)"},g.createElement("mask",{fill:"#fff"}),g.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),g.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),g.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),g.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),g.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),g.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),g.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),g.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),g.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),g.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),g.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),g.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),g.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),g.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),g.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),g.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),g.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),g.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),g.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),g.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),g.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),g.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),g.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),g.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),g.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),g.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),g.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),g.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),g.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),g.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),g.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),g.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),g.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),g.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),g.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),g.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),g.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),g.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),g.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),g.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),g.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),g.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),fut=dut,put=()=>g.createElement("svg",{width:"254",height:"294"},g.createElement("defs",null,g.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),g.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(0 .067)"},g.createElement("mask",{fill:"#fff"}),g.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),g.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),g.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),g.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),g.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),g.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),g.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),g.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),g.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),g.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),g.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),g.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),g.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),g.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),g.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),g.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),g.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),g.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),g.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),g.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),g.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),g.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),g.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),g.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),g.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),g.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),g.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),g.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),g.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),g.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),g.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),g.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),g.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),g.createElement("mask",{fill:"#fff"}),g.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),g.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),g.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),g.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),g.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),g.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),g.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),g.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),g.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),g.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),g.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),hut=put,gut=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:a,paddingXL:i,paddingXS:o,paddingLG:l,marginXS:s,lineHeight:u}=e;return{[t]:{padding:`${ne(e.calc(l).mul(2).equal())} ${ne(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${ne(l)} ${ne(e.calc(a).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},mut=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},vut=e=>[gut(e),mut(e)],yut=e=>vut(e),but=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),xut=On("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,a=e.colorWarning,i=pn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:a,imageWidth:250,imageHeight:295});return[yut(i)]},but),Eut=()=>g.createElement("svg",{width:"251",height:"294"},g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),g.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),g.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),g.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),g.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),g.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),g.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),g.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),g.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),g.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),g.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),g.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),g.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),g.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),g.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),g.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),g.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),g.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),g.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),g.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),g.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),g.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),g.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),g.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),g.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),g.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),g.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),g.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),g.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),g.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),g.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),g.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),g.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),g.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),g.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),g.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),g.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),g.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),g.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),Sut=Eut,Cut={success:by,error:Bp,info:Wg,warning:cut},WS={404:fut,500:hut,403:Sut},wut=Object.keys(WS),Tut=e=>{let{prefixCls:t,icon:n,status:r}=e;const a=ie(`${t}-icon`);if(wut.includes(`${r}`)){const o=WS[r];return g.createElement("div",{className:`${a} ${t}-image`},g.createElement(o,null))}const i=g.createElement(Cut[r]);return n===null||n===!1?null:g.createElement("div",{className:a},n||i)},Aut=e=>{let{prefixCls:t,extra:n}=e;return n?g.createElement("div",{className:`${t}-extra`},n):null},RR=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:a,title:i,style:o,children:l,status:s="info",icon:u,extra:c}=e;const{getPrefixCls:d,direction:f,result:p}=g.useContext(dt),h=d("result",t),[m,v,y]=xut(h),b=ie(h,`${h}-${s}`,n,p==null?void 0:p.className,r,{[`${h}-rtl`]:f==="rtl"},v,y),x=Object.assign(Object.assign({},p==null?void 0:p.style),o);return m(g.createElement("div",{className:b,style:x},g.createElement(Tut,{prefixCls:h,status:s,icon:u}),g.createElement("div",{className:`${h}-title`},i),a&&g.createElement("div",{className:`${h}-subtitle`},a),g.createElement(Aut,{prefixCls:h,extra:c}),l&&g.createElement("div",{className:`${h}-content`},l)))};RR.PRESENTED_IMAGE_403=WS[403];RR.PRESENTED_IMAGE_404=WS[404];RR.PRESENTED_IMAGE_500=WS[500];const Iut=RR;var If={},GS="rc-table-internal-hook";function k9(e){var t=g.createContext(void 0),n=function(a){var i=a.value,o=a.children,l=g.useRef(i);l.current=i;var s=g.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=fe(s,1),c=u[0];return Sn(function(){di.unstable_batchedUpdates(function(){c.listeners.forEach(function(d){d(i)})})},[i]),g.createElement(t.Provider,{value:c},o)};return{Context:t,Provider:n,defaultValue:e}}function Do(e,t){var n=jn(typeof t=="function"?t:function(d){if(t===void 0)return d;if(!Array.isArray(t))return d[t];var f={};return t.forEach(function(p){f[p]=d[p]}),f}),r=g.useContext(e==null?void 0:e.Context),a=r||{},i=a.listeners,o=a.getValue,l=g.useRef();l.current=n(r?o():e==null?void 0:e.defaultValue);var s=g.useState({}),u=fe(s,2),c=u[1];return Sn(function(){if(!r)return;function d(f){var p=n(f);Oc(l.current,p,!0)||c({})}return i.add(d),function(){i.delete(d)}},[r]),l.current}function Out(){var e=g.createContext(null);function t(){return g.useContext(e)}function n(a,i){var o=Mu(a),l=function(u,c){var d=o?{ref:c}:{},f=g.useRef(0),p=g.useRef(u),h=t();return h!==null?g.createElement(a,Ne({},u,d)):((!i||i(p.current,u))&&(f.current+=1),p.current=u,g.createElement(e.Provider,{value:f.current},g.createElement(a,Ne({},u,d))))};return o?g.forwardRef(l):l}function r(a,i){var o=Mu(a),l=function(u,c){var d=o?{ref:c}:{};return t(),g.createElement(a,Ne({},u,d))};return o?g.memo(g.forwardRef(l),i):g.memo(l,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var R9=Out(),gbe=R9.makeImmutable,$y=R9.responseImmutable,kut=R9.useImmutableMark,xl=k9(),mbe=g.createContext({renderWithProps:!1}),Rut="RC_TABLE_KEY";function _ut(e){return e==null?[]:Array.isArray(e)?e:[e]}function _R(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},i=a.key,o=a.dataIndex,l=i||_ut(o).join("-")||Rut;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function k6(e){return e!=null}function Nut(e){return e&&zt(e)==="object"&&!Array.isArray(e)&&!g.isValidElement(e)}function Dut(e,t,n,r,a,i){var o=g.useContext(mbe),l=kut(),s=Ug(function(){if(k6(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],c=Gl(e,u),d=c,f=void 0;if(a){var p=a(c,e,n);Nut(p)?(d=p.children,f=p.props,o.renderWithProps=!0):d=p}return[d,f]},[l,e,r,t,a,n],function(u,c){if(i){var d=fe(u,2),f=d[1],p=fe(c,2),h=p[1];return i(h,f)}return o.renderWithProps?!0:!Oc(u,c,!0)});return s}function Mut(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function $ut(e,t){return Do(xl,function(n){var r=Mut(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Lut=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,i,o=n===!0?{showTitle:!0}:n;return o&&(o.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():g.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function Put(e){var t,n,r,a,i,o,l,s,u=e.component,c=e.children,d=e.ellipsis,f=e.scope,p=e.prefixCls,h=e.className,m=e.align,v=e.record,y=e.render,b=e.dataIndex,x=e.renderIndex,E=e.shouldCellUpdate,S=e.index,C=e.rowType,w=e.colSpan,I=e.rowSpan,T=e.fixLeft,A=e.fixRight,O=e.firstFixLeft,R=e.lastFixLeft,N=e.firstFixRight,_=e.lastFixRight,L=e.appendNode,$=e.additionalProps,k=$===void 0?{}:$,P=e.isSticky,B="".concat(p,"-cell"),F=Do(xl,["supportSticky","allColumnsFixedLeft"]),D=F.supportSticky,j=F.allColumnsFixedLeft,z=Dut(v,b,x,c,y,E),V=fe(z,2),G=V[0],W=V[1],Y={},J=typeof T=="number"&&D,Z=typeof A=="number"&&D;J&&(Y.position="sticky",Y.left=T),Z&&(Y.position="sticky",Y.right=A);var K=(t=(n=(r=W==null?void 0:W.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:w)!==null&&t!==void 0?t:1,ee=(a=(i=(o=W==null?void 0:W.rowSpan)!==null&&o!==void 0?o:k.rowSpan)!==null&&i!==void 0?i:I)!==null&&a!==void 0?a:1,ae=$ut(S,ee),te=fe(ae,2),re=te[0],se=te[1],ve=jn(function(ke){var Te;v&&se(S,S+ee-1),k==null||(Te=k.onMouseEnter)===null||Te===void 0||Te.call(k,ke)}),ge=jn(function(ke){var Te;v&&se(-1,-1),k==null||(Te=k.onMouseLeave)===null||Te===void 0||Te.call(k,ke)});if(K===0||ee===0)return null;var xe=(l=k.title)!==null&&l!==void 0?l:Lut({rowType:C,ellipsis:d,children:G}),me=ie(B,h,(s={},X(s,"".concat(B,"-fix-left"),J&&D),X(s,"".concat(B,"-fix-left-first"),O&&D),X(s,"".concat(B,"-fix-left-last"),R&&D),X(s,"".concat(B,"-fix-left-all"),R&&j&&D),X(s,"".concat(B,"-fix-right"),Z&&D),X(s,"".concat(B,"-fix-right-first"),N&&D),X(s,"".concat(B,"-fix-right-last"),_&&D),X(s,"".concat(B,"-ellipsis"),d),X(s,"".concat(B,"-with-append"),L),X(s,"".concat(B,"-fix-sticky"),(J||Z)&&P&&D),X(s,"".concat(B,"-row-hover"),!W&&re),s),k.className,W==null?void 0:W.className),de={};m&&(de.textAlign=m);var Ce=Q(Q(Q(Q({},Y),k.style),de),W==null?void 0:W.style),Ie=G;return zt(Ie)==="object"&&!Array.isArray(Ie)&&!g.isValidElement(Ie)&&(Ie=null),d&&(R||N)&&(Ie=g.createElement("span",{className:"".concat(B,"-content")},Ie)),g.createElement(u,Ne({},W,k,{className:me,style:Ce,title:xe,scope:f,onMouseEnter:ve,onMouseLeave:ge,colSpan:K!==1?K:null,rowSpan:ee!==1?ee:null}),L,Ie)}const Yg=g.memo(Put);function _9(e,t,n,r,a){var i=n[e]||{},o=n[t]||{},l,s;i.fixed==="left"?l=r.left[a==="rtl"?t:e]:o.fixed==="right"&&(s=r.right[a==="rtl"?e:t]);var u=!1,c=!1,d=!1,f=!1,p=n[t+1],h=n[e-1],m=p&&p.fixed===void 0||h&&h.fixed===void 0||n.every(function(E){return E.fixed==="left"});if(a==="rtl"){if(l!==void 0){var v=h&&h.fixed==="left";f=!v&&m}else if(s!==void 0){var y=p&&p.fixed==="right";d=!y&&m}}else if(l!==void 0){var b=p&&p.fixed==="left";u=!b&&m}else if(s!==void 0){var x=h&&h.fixed==="right";c=!x&&m}return{fixLeft:l,fixRight:s,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var vbe=g.createContext({});function Fut(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,i=a===void 0?1:a,o=e.rowSpan,l=e.align,s=Do(xl,["prefixCls","direction"]),u=s.prefixCls,c=s.direction,d=g.useContext(vbe),f=d.scrollColumnIndex,p=d.stickyOffsets,h=d.flattenColumns,m=n+i-1,v=m+1===f?i+1:i,y=_9(n,n+v-1,h,p,c);return g.createElement(Yg,Ne({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:v,rowSpan:o,render:function(){return r}},y))}var But=["children"];function zut(e){var t=e.children,n=Lt(e,But);return g.createElement("tr",n,t)}function NR(e){var t=e.children;return t}NR.Row=zut;NR.Cell=Fut;function Hut(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=Do(xl,"prefixCls"),i=r.length-1,o=r[i],l=g.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?i:null}},[o,r,i,n]);return g.createElement(vbe.Provider,{value:l},g.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Jw=$y(Hut);var ybe=NR;function jut(e){return null}function Uut(e){return null}function bbe(e,t,n,r,a,i,o){e.push({record:t,indent:n,index:o});var l=i(t),s=a==null?void 0:a.has(l);if(t&&Array.isArray(t[r])&&s)for(var u=0;u1?O-1:0),N=1;N=1?S:""),style:Q(Q({},n),y==null?void 0:y.style)}),h.map(function(T,A){var O=T.render,R=T.dataIndex,N=T.className,_=Cbe(f,T,A,s,a),L=_.key,$=_.fixedInfo,k=_.appendCellNode,P=_.additionalCellProps;return g.createElement(Yg,Ne({className:N,ellipsis:T.ellipsis,align:T.align,scope:T.rowScope,component:T.rowScope?d:c,prefixCls:p,key:L,record:r,index:a,renderIndex:i,dataIndex:R,render:O,shouldCellUpdate:T.shouldCellUpdate},$,{appendNode:k,additionalProps:P}))})),w;if(x&&(E.current||b)){var I=v(r,a,s+1,b);w=g.createElement(Sbe,{expanded:b,className:ie("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(s+1),S),prefixCls:p,component:u,cellComponent:c,colSpan:h.length,isEmpty:!1},I)}return g.createElement(g.Fragment,null,C,w)}const Wut=$y(Vut);function Gut(e){var t=e.columnKey,n=e.onColumnResize,r=g.useRef();return g.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),g.createElement(Si,{data:t},g.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},g.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function qut(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return g.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},g.createElement(Si.Collection,{onBatchResize:function(i){i.forEach(function(o){var l=o.data,s=o.size;r(l,s.offsetWidth)})}},n.map(function(a){return g.createElement(Gut,{key:a,columnKey:a,onColumnResize:r})})))}function Yut(e){var t=e.data,n=e.measureColumnWidth,r=Do(xl,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,i=r.getComponent,o=r.onColumnResize,l=r.flattenColumns,s=r.getRowKey,u=r.expandedKeys,c=r.childrenColumnName,d=r.emptyNode,f=xbe(t,c,u,s),p=g.useRef({renderWithProps:!1}),h=i(["body","wrapper"],"tbody"),m=i(["body","row"],"tr"),v=i(["body","cell"],"td"),y=i(["body","cell"],"th"),b;t.length?b=f.map(function(E,S){var C=E.record,w=E.indent,I=E.index,T=s(C,S);return g.createElement(Wut,{key:T,rowKey:T,record:C,index:S,renderIndex:I,rowComponent:m,cellComponent:v,scopeCellComponent:y,getRowKey:s,indent:w})}):b=g.createElement(Sbe,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:m,cellComponent:v,colSpan:l.length,isEmpty:!0},d);var x=_R(l);return g.createElement(mbe.Provider,{value:p.current},g.createElement(h,{className:"".concat(a,"-tbody")},n&&g.createElement(qut,{prefixCls:a,columnsKey:x,onColumnResize:o}),b))}const Kut=$y(Yut);var Xut=["expandable"],dx="RC_TABLE_INTERNAL_COL_DEFINE";function Qut(e){var t=e.expandable,n=Lt(e,Xut),r;return"expandable"in e?r=Q(Q({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Zut=["columnType"];function wbe(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=[],i=r||n.length,o=!1,l=i-1;l>=0;l-=1){var s=t[l],u=n&&n[l],c=u&&u[dx];if(s||c||o){var d=c||{};d.columnType;var f=Lt(d,Zut);a.unshift(g.createElement("col",Ne({key:l,style:{width:s}},f))),o=!0}}return g.createElement("colgroup",null,a)}var Jut=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ect(e,t){return g.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:o,prefixCls:c,key:p[m]},y,{additionalProps:b,rowType:"header"}))}))};function rct(e){var t=[];function n(o,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[s]=t[s]||[];var u=l,c=o.filter(Boolean).map(function(d){var f={key:d.key,className:d.className||"",children:d.title,column:d,colStart:u},p=1,h=d.children;return h&&h.length>0&&(p=n(h,u,s+1).reduce(function(m,v){return m+v},0),f.hasSubColumns=!0),"colSpan"in d&&(p=d.colSpan),"rowSpan"in d&&(f.rowSpan=d.rowSpan),f.colSpan=p,f.colEnd=f.colStart+p-1,t[s].push(f),u+=p,p});return c}n(e,0);for(var r=t.length,a=function(l){t[l].forEach(function(s){!("rowSpan"in s)&&!s.hasSubColumns&&(s.rowSpan=r-l)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function ict(e,t,n){return g.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(f){var p=xee(t,f.width);p?r+=p:a+=1});var i=Math.max(t,n),o=Math.max(i-r,a),l=a,s=o/a,u=0,c=e.map(function(f){var p=Q({},f),h=xee(t,p.width);if(h)p.width=h;else{var m=Math.floor(s);p.width=l===1?o:m,o-=m,l-=1}return u+=p.width,p});if(u0?Q(Q({},t),{},{children:Tbe(n)}):t})}function R6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&zt(n)==="object"}).reduce(function(n,r,a){var i=r.fixed,o=i===!0?"left":i,l="".concat(t,"-").concat(a),s=r.children;return s&&s.length>0?[].concat(Ue(n),Ue(R6(s,l).map(function(u){return Q({fixed:o},u)}))):[].concat(Ue(n),[Q(Q({key:l},r),{},{fixed:o})])},[])}function sct(e){return e.map(function(t){var n=t.fixed,r=Lt(t,lct),a=n;return n==="left"?a="right":n==="right"&&(a="left"),Q({fixed:a},r)})}function uct(e,t){var n=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,o=e.expandedKeys,l=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,c=e.expandIcon,d=e.rowExpandable,f=e.expandIconColumnIndex,p=e.direction,h=e.expandRowByClick,m=e.columnWidth,v=e.fixed,y=e.scrollWidth,b=e.clientWidth,x=g.useMemo(function(){var R=r||N9(a)||[];return Tbe(R.slice())},[r,a]),E=g.useMemo(function(){if(i){var R,N=x.slice();if(!N.includes(If)){var _=f||0;_>=0&&N.splice(_,0,If)}var L=N.indexOf(If);N=N.filter(function(B,F){return B!==If||F===L});var $=x[L],k;(v==="left"||v)&&!f?k="left":(v==="right"||v)&&f===x.length?k="right":k=$?$.fixed:null;var P=(R={},X(R,dx,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),X(R,"title",l),X(R,"fixed",k),X(R,"className","".concat(n,"-row-expand-icon-cell")),X(R,"width",m),X(R,"render",function(F,D,j){var z=s(D,j),V=o.has(z),G=d?d(D):!0,W=c({prefixCls:n,expanded:V,expandable:G,record:D,onExpand:u});return h?g.createElement("span",{onClick:function(J){return J.stopPropagation()}},W):W}),R);return N.map(function(B){return B===If?P:B})}return x.filter(function(B){return B!==If})},[i,x,s,o,c,p]),S=g.useMemo(function(){var R=E;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,E,p]),C=g.useMemo(function(){return p==="rtl"?sct(R6(S)):R6(S)},[S,p,y]),w=g.useMemo(function(){for(var R=-1,N=C.length-1;N>=0;N-=1){var _=C[N].fixed;if(_==="left"||_===!0){R=N;break}}if(R>=0)for(var L=0;L<=R;L+=1){var $=C[L].fixed;if($!=="left"&&$!==!0)return!0}var k=C.findIndex(function(F){var D=F.fixed;return D==="right"});if(k>=0)for(var P=k;P=f&&(P=f-p),o({scrollLeft:P/f*(d+2)}),x.current.x=_.pageX},O=function(){if(i.current){var _=T6(i.current).top,L=_+i.current.offsetHeight,$=s===window?document.documentElement.scrollTop+window.innerHeight:T6(s).top+s.clientHeight;L-WP()<=$||_>=$-l?b(function(k){return Q(Q({},k),{},{isHiddenScrollBar:!0})}):b(function(k){return Q(Q({},k),{},{isHiddenScrollBar:!1})})}},R=function(_){b(function(L){return Q(Q({},L),{},{scrollLeft:_/d*f||0})})};return g.useImperativeHandle(n,function(){return{setScrollLeft:R}}),g.useEffect(function(){var N=vc(document.body,"mouseup",I,!1),_=vc(document.body,"mousemove",A,!1);return O(),function(){N.remove(),_.remove()}},[p,C]),g.useEffect(function(){var N=vc(s,"scroll",O,!1),_=vc(window,"resize",O,!1);return function(){N.remove(),_.remove()}},[s]),g.useEffect(function(){y.isHiddenScrollBar||b(function(N){var _=i.current;return _?Q(Q({},N),{},{scrollLeft:_.scrollLeft/_.scrollWidth*_.clientWidth}):N})},[y.isHiddenScrollBar]),g.useEffect(function(){O()},[u]),d<=f||!p||y.isHiddenScrollBar?null:g.createElement("div",{style:{height:WP(),width:f,bottom:l},className:"".concat(c,"-sticky-scroll")},g.createElement("div",{onMouseDown:T,ref:h,className:ie("".concat(c,"-sticky-scroll-bar"),X({},"".concat(c,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const bct=g.forwardRef(yct);var Ibe="rc-table",xct=[],Ect={};function Sct(){return"No Data"}function Cct(e,t){var n,r=Q({rowKey:"key",prefixCls:Ibe,emptyText:Sct},e),a=r.prefixCls,i=r.className,o=r.rowClassName,l=r.style,s=r.data,u=r.rowKey,c=r.scroll,d=r.tableLayout,f=r.direction,p=r.title,h=r.footer,m=r.summary,v=r.caption,y=r.id,b=r.showHeader,x=r.components,E=r.emptyText,S=r.onRow,C=r.onHeaderRow,w=r.internalHooks,I=r.transformColumns,T=r.internalRefs,A=r.tailor,O=r.getContainerWidth,R=r.sticky,N=s||xct,_=!!N.length,L=w===GS,$=g.useCallback(function(Rt,_t){return Gl(x,Rt)||_t},[x]),k=g.useMemo(function(){return typeof u=="function"?u:function(Rt){var _t=Rt&&Rt[u];return _t}},[u]),P=$(["body"]),B=gct(),F=fe(B,3),D=F[0],j=F[1],z=F[2],V=fct(r,N,k),G=fe(V,6),W=G[0],Y=G[1],J=G[2],Z=G[3],K=G[4],ee=G[5],ae=c==null?void 0:c.x,te=g.useState(0),re=fe(te,2),se=re[0],ve=re[1],ge=uct(Q(Q(Q({},r),W),{},{expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:J,getRowKey:k,onTriggerExpand:ee,expandIcon:Z,expandIconColumnIndex:W.expandIconColumnIndex,direction:f,scrollWidth:L&&A&&typeof ae=="number"?ae:null,clientWidth:se}),L?I:null),xe=fe(ge,4),me=xe[0],de=xe[1],Ce=xe[2],Ie=xe[3],ke=Ce??ae,Te=g.useMemo(function(){return{columns:me,flattenColumns:de}},[me,de]),pe=g.useRef(),Se=g.useRef(),Ee=g.useRef(),we=g.useRef();g.useImperativeHandle(t,function(){return{nativeElement:pe.current,scrollTo:function(_t){var ln;if(Ee.current instanceof HTMLElement){var sn=_t.index,ma=_t.top,ou=_t.key;if(ma){var Ki;(Ki=Ee.current)===null||Ki===void 0||Ki.scrollTo({top:ma})}else{var Lo,hs=ou??k(N[sn]);(Lo=Ee.current.querySelector('[data-row-key="'.concat(hs,'"]')))===null||Lo===void 0||Lo.scrollIntoView()}}else(ln=Ee.current)!==null&&ln!==void 0&&ln.scrollTo&&Ee.current.scrollTo(_t)}}});var ue=g.useRef(),Ae=g.useState(!1),_e=fe(Ae,2),Re=_e[0],Be=_e[1],Me=g.useState(!1),$e=fe(Me,2),Fe=$e[0],He=$e[1],Le=Abe(new Map),Ke=fe(Le,2),ft=Ke[0],gt=Ke[1],Nt=_R(de),Je=Nt.map(function(Rt){return ft.get(Rt)}),je=g.useMemo(function(){return Je},[Je.join("_")]),Ze=vct(je,de,f),Xe=c&&k6(c.y),Ye=c&&k6(ke)||!!W.fixed,at=Ye&&de.some(function(Rt){var _t=Rt.fixed;return _t}),It=g.useRef(),Bt=mct(R,a),tt=Bt.isSticky,ut=Bt.offsetHeader,wt=Bt.offsetSummary,Pt=Bt.offsetScroll,Yt=Bt.stickyClassName,Kt=Bt.container,tn=g.useMemo(function(){return m==null?void 0:m(N)},[m,N]),Ot=(Xe||tt)&&g.isValidElement(tn)&&tn.type===NR&&tn.props.fixed,lt,st,Ht;Xe&&(st={overflowY:"scroll",maxHeight:c.y}),Ye&&(lt={overflowX:"auto"},Xe||(st={overflowY:"hidden"}),Ht={width:ke===!0?"auto":ke,minWidth:"100%"});var ot=g.useCallback(function(Rt,_t){xy(pe.current)&>(function(ln){if(ln.get(Rt)!==_t){var sn=new Map(ln);return sn.set(Rt,_t),sn}return ln})},[]),Tt=hct(null),Ft=fe(Tt,2),an=Ft[0],Bn=Ft[1];function zn(Rt,_t){_t&&(typeof _t=="function"?_t(Rt):_t.scrollLeft!==Rt&&(_t.scrollLeft=Rt,_t.scrollLeft!==Rt&&setTimeout(function(){_t.scrollLeft=Rt},0)))}var kn=jn(function(Rt){var _t=Rt.currentTarget,ln=Rt.scrollLeft,sn=f==="rtl",ma=typeof ln=="number"?ln:_t.scrollLeft,ou=_t||Ect;if(!Bn()||Bn()===ou){var Ki;an(ou),zn(ma,Se.current),zn(ma,Ee.current),zn(ma,ue.current),zn(ma,(Ki=It.current)===null||Ki===void 0?void 0:Ki.setScrollLeft)}var Lo=_t||Se.current;if(Lo){var hs=Lo.scrollWidth,Zc=Lo.clientWidth;if(hs===Zc){Be(!1),He(!1);return}sn?(Be(-ma0)):(Be(ma>0),He(ma1?v-_:0,$=Q(Q(Q({},I),u),{},{flex:"0 0 ".concat(_,"px"),width:"".concat(_,"px"),marginRight:L,pointerEvents:"auto"}),k=g.useMemo(function(){return d?R<=1:A===0||R===0||R>1},[R,A,d]);k?$.visibility="hidden":d&&($.height=f==null?void 0:f(R));var P=k?function(){return null}:p,B={};return(R===0||A===0)&&(B.rowSpan=1,B.colSpan=1),g.createElement(Yg,Ne({className:ie(m,c),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:E,record:s,index:i,renderIndex:l,dataIndex:h,render:P,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:C,additionalProps:Q(Q({},w),{},{style:$},B)}))}var Ict=["data","index","className","rowKey","style","extra","getHeight"],Oct=g.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,i=e.rowKey,o=e.style,l=e.extra,s=e.getHeight,u=Lt(e,Ict),c=n.record,d=n.indent,f=n.index,p=Do(xl,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=p.scrollX,m=p.flattenColumns,v=p.prefixCls,y=p.fixColumn,b=p.componentWidth,x=Do(D9,["getComponent"]),E=x.getComponent,S=Ebe(c,i,r,d),C=E(["body","row"],"div"),w=E(["body","cell"],"div"),I=S.rowSupportExpand,T=S.expanded,A=S.rowProps,O=S.expandedRowRender,R=S.expandedRowClassName,N;if(I&&T){var _=O(c,r,d+1,T),L=R==null?void 0:R(c,r,d),$={};y&&($={style:X({},"--virtual-width","".concat(b,"px"))});var k="".concat(v,"-expanded-row-cell");N=g.createElement(C,{className:ie("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(d+1),L)},g.createElement(Yg,{component:w,prefixCls:v,className:ie(k,X({},"".concat(k,"-fixed"),y)),additionalProps:$},_))}var P=Q(Q({},o),{},{width:h});l&&(P.position="absolute",P.pointerEvents="none");var B=g.createElement(C,Ne({},A,u,{ref:I?null:t,className:ie(a,"".concat(v,"-row"),A==null?void 0:A.className,X({},"".concat(v,"-row-extra"),l)),style:Q(Q({},P),A==null?void 0:A.style)}),m.map(function(F,D){return g.createElement(Act,{key:D,component:w,rowInfo:S,column:F,colIndex:D,indent:d,index:r,renderIndex:f,record:c,inverse:l,getHeight:s})}));return I?g.createElement("div",{ref:t},B,N):B}),Cee=$y(Oct),kct=g.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=Do(xl,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=a.flattenColumns,o=a.onColumnResize,l=a.getRowKey,s=a.expandedKeys,u=a.prefixCls,c=a.childrenColumnName,d=a.emptyNode,f=a.scrollX,p=Do(D9),h=p.sticky,m=p.scrollY,v=p.listItemHeight,y=p.getComponent,b=g.useRef(),x=xbe(n,c,s,l),E=g.useMemo(function(){var L=0;return i.map(function($){var k=$.width,P=$.key;return L+=k,[P,k,L]})},[i]),S=g.useMemo(function(){return E.map(function(L){return L[2]})},[E]);g.useEffect(function(){E.forEach(function(L){var $=fe(L,2),k=$[0],P=$[1];o(k,P)})},[E]),g.useImperativeHandle(t,function(){var L={scrollTo:function(k){var P;(P=b.current)===null||P===void 0||P.scrollTo(k)}};return Object.defineProperty(L,"scrollLeft",{get:function(){var k;return((k=b.current)===null||k===void 0?void 0:k.getScrollInfo().x)||0},set:function(k){var P;(P=b.current)===null||P===void 0||P.scrollTo({left:k})}}),L});var C=function($,k){var P,B=(P=x[k])===null||P===void 0?void 0:P.record,F=$.onCell;if(F){var D,j=F(B,k);return(D=j==null?void 0:j.rowSpan)!==null&&D!==void 0?D:1}return 1},w=function($){var k=$.start,P=$.end,B=$.getSize,F=$.offsetY;if(P<0)return null;for(var D=i.filter(function(te){return C(te,k)===0}),j=k,z=function(re){if(D=D.filter(function(se){return C(se,re)===0}),!D.length)return j=re,1},V=k;V>=0&&!z(V);V-=1);for(var G=i.filter(function(te){return C(te,P)!==1}),W=P,Y=function(re){if(G=G.filter(function(se){return C(se,re)!==1}),!G.length)return W=Math.max(re-1,P),1},J=P;J1})&&Z.push(re)},ee=j;ee<=W;ee+=1)K(ee);var ae=Z.map(function(te){var re=x[te],se=l(re.record,te),ve=function(me){var de=te+me-1,Ce=l(x[de].record,de),Ie=B(se,Ce);return Ie.bottom-Ie.top},ge=B(se);return g.createElement(Cee,{key:te,data:re,rowKey:se,index:te,style:{top:-F+ge.top},extra:!0,getHeight:ve})});return ae},I=g.useMemo(function(){return{columnsOffset:S}},[S]),T="".concat(u,"-tbody"),A=y(["body","wrapper"]),O=y(["body","row"],"div"),R=y(["body","cell"],"div"),N;if(x.length){var _={};h&&(_.position="sticky",_.bottom=0,zt(h)==="object"&&h.offsetScroll&&(_.bottom=h.offsetScroll)),N=g.createElement(aR,{fullHeight:!1,ref:b,prefixCls:"".concat(T,"-virtual"),styles:{horizontalScrollBar:_},className:T,height:m,itemHeight:v||24,data:x,itemKey:function($){return l($.record)},component:A,scrollWidth:f,onVirtualScroll:function($){var k=$.x;r({scrollLeft:k})},extraRender:w},function(L,$,k){var P=l(L.record,$);return g.createElement(Cee,Ne({data:L,rowKey:P,index:$},k))})}else N=g.createElement(O,{className:ie("".concat(u,"-placeholder"))},g.createElement(Yg,{component:R,prefixCls:u},d));return g.createElement(kbe.Provider,{value:I},N)}),Rct=$y(kct),_ct=function(t,n){var r=n.ref,a=n.onScroll;return g.createElement(Rct,{ref:r,data:t,onScroll:a})};function Nct(e,t){var n=e.columns,r=e.scroll,a=e.sticky,i=e.prefixCls,o=i===void 0?Ibe:i,l=e.className,s=e.listItemHeight,u=e.components,c=r||{},d=c.x,f=c.y;typeof d!="number"&&(d=1),typeof f!="number"&&(f=500);var p=jn(function(m,v){return Gl(u,m)||v}),h=g.useMemo(function(){return{sticky:a,scrollY:f,listItemHeight:s,getComponent:p}},[a,f,s,p]);return g.createElement(D9.Provider,{value:h},g.createElement(Ly,Ne({},e,{className:ie(l,"".concat(o,"-virtual")),scroll:Q(Q({},r),{},{x:d}),components:Q(Q({},u),{},{body:_ct}),columns:n,internalHooks:GS,tailor:!0,ref:t})))}var Dct=g.forwardRef(Nct);function Rbe(e){return gbe(Dct,e)}Rbe();function Mct(e){return null}function $ct(e){return null}var M9=g.createContext(null),Lct=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,i=t.isEnd,o="".concat(n,"-indent-unit"),l=[],s=0;s=0&&n.splice(r,1),n}function ld(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function $9(e){return e.split("-")}function Hct(e,t){var n=[],r=Vl(t,e);function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(o){var l=o.key,s=o.children;n.push(l),a(s)})}return a(r.children),n}function jct(e){if(e.parent){var t=$9(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Uct(e){var t=$9(e.pos);return Number(t[t.length-1])===0}function Aee(e,t,n,r,a,i,o,l,s,u){var c,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,m=p.height,v=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-d),y=(v-12)/r,b=s.filter(function($){var k;return(k=l[$])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),x=Vl(l,n.props.eventKey);if(f-1.5?i({dragNode:N,dropNode:_,dropPosition:1})?A=1:L=!1:i({dragNode:N,dropNode:_,dropPosition:0})?A=0:i({dragNode:N,dropNode:_,dropPosition:1})?A=1:L=!1:i({dragNode:N,dropNode:_,dropPosition:1})?A=1:L=!1,{dropPosition:A,dropLevelOffset:O,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:T,dropContainerKey:A===0?null:((c=x.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:L}}function Iee(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function n4(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(zt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Rr(!1,"`checkedKeys` is not an array or an object"),null;return t}function _6(e,t){var n=new Set;function r(a){if(!n.has(a)){var i=Vl(t,a);if(i){n.add(a);var o=i.parent,l=i.node;l.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(a){r(a)}),Ue(n)}function Vct(e){const[t,n]=g.useState(null);return[g.useCallback((i,o,l)=>{const s=t??i,u=Math.min(s||0,i),c=Math.max(s||0,i),d=o.slice(u,c+1).map(h=>e(h)),f=d.some(h=>!l.has(h)),p=[];return d.forEach(h=>{f?(l.has(h)||p.push(h),l.add(h)):(l.delete(h),p.push(h))}),n(f?c:null),p},[t]),i=>{n(i)}]}const yf={},N6="SELECT_ALL",D6="SELECT_INVERT",M6="SELECT_NONE",Oee=[],_be=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ue(n),Ue(_be(e,r[e]))))}),n},Wct=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:i,onChange:o,onSelect:l,onSelectAll:s,onSelectInvert:u,onSelectNone:c,onSelectMultiple:d,columnWidth:f,type:p,selections:h,fixed:m,renderCell:v,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:x,data:E,pageData:S,getRecordByKey:C,getRowKey:w,expandType:I,childrenColumnName:T,locale:A,getPopupContainer:O}=e,R=Qd(),[N,_]=Vct(ee=>ee),[L,$]=or(r||a||Oee,{value:r}),k=g.useRef(new Map),P=g.useCallback(ee=>{if(n){const ae=new Map;ee.forEach(te=>{let re=C(te);!re&&k.current.has(te)&&(re=k.current.get(te)),ae.set(te,re)}),k.current=ae}},[C,n]);g.useEffect(()=>{P(L)},[L]);const{keyEntities:B}=g.useMemo(()=>{if(b)return{keyEntities:null};let ee=E;if(n){const ae=new Set(E.map((re,se)=>w(re,se))),te=Array.from(k.current).reduce((re,se)=>{let[ve,ge]=se;return ae.has(ve)?re:re.concat(ge)},[]);ee=[].concat(Ue(ee),Ue(te))}return p9(ee,{externalGetKey:w,childrenPropName:T})},[E,w,b,T,n]),F=g.useMemo(()=>_be(T,S),[T,S]),D=g.useMemo(()=>{const ee=new Map;return F.forEach((ae,te)=>{const re=w(ae,te),se=(i?i(ae):null)||{};ee.set(re,se)}),ee},[F,w,i]),j=g.useCallback(ee=>{var ae;return!!(!((ae=D.get(w(ee)))===null||ae===void 0)&&ae.disabled)},[D,w]),[z,V]=g.useMemo(()=>{if(b)return[L||[],[]];const{checkedKeys:ee,halfCheckedKeys:ae}=Vv(L,!0,B,j);return[ee||[],ae]},[L,b,B,j]),G=g.useMemo(()=>{const ee=p==="radio"?z.slice(0,1):z;return new Set(ee)},[z,p]),W=g.useMemo(()=>p==="radio"?new Set:new Set(V),[V,p]);g.useEffect(()=>{t||$(Oee)},[!!t]);const Y=g.useCallback((ee,ae)=>{let te,re;P(ee),n?(te=ee,re=ee.map(se=>k.current.get(se))):(te=[],re=[],ee.forEach(se=>{const ve=C(se);ve!==void 0&&(te.push(se),re.push(ve))})),$(te),o==null||o(te,re,{type:ae})},[$,C,o,n]),J=g.useCallback((ee,ae,te,re)=>{if(l){const se=te.map(ve=>C(ve));l(C(ee),ae,se,re)}Y(te,"single")},[l,C,Y]),Z=g.useMemo(()=>!h||y?null:(h===!0?[N6,D6,M6]:h).map(ae=>ae===N6?{key:"all",text:A.selectionAll,onSelect(){Y(E.map((te,re)=>w(te,re)).filter(te=>{const re=D.get(te);return!(re!=null&&re.disabled)||G.has(te)}),"all")}}:ae===D6?{key:"invert",text:A.selectInvert,onSelect(){const te=new Set(G);S.forEach((se,ve)=>{const ge=w(se,ve),xe=D.get(ge);xe!=null&&xe.disabled||(te.has(ge)?te.delete(ge):te.add(ge))});const re=Array.from(te);u&&(R.deprecated(!1,"onSelectInvert","onChange"),u(re)),Y(re,"invert")}}:ae===M6?{key:"none",text:A.selectNone,onSelect(){c==null||c(),Y(Array.from(G).filter(te=>{const re=D.get(te);return re==null?void 0:re.disabled}),"none")}}:ae).map(ae=>Object.assign(Object.assign({},ae),{onSelect:function(){for(var te,re,se=arguments.length,ve=new Array(se),ge=0;ge{var ae;if(!t)return ee.filter(Ae=>Ae!==yf);let te=Ue(ee);const re=new Set(G),se=F.map(w).filter(Ae=>!D.get(Ae).disabled),ve=se.every(Ae=>re.has(Ae)),ge=se.some(Ae=>re.has(Ae)),xe=()=>{const Ae=[];ve?se.forEach(Re=>{re.delete(Re),Ae.push(Re)}):se.forEach(Re=>{re.has(Re)||(re.add(Re),Ae.push(Re))});const _e=Array.from(re);s==null||s(!ve,_e.map(Re=>C(Re)),Ae.map(Re=>C(Re))),Y(_e,"all"),_(null)};let me,de;if(p!=="radio"){let Ae;if(Z){const $e={getPopupContainer:O,items:Z.map((Fe,He)=>{const{key:Le,text:Ke,onSelect:ft}=Fe;return{key:Le??He,onClick:()=>{ft==null||ft(se)},label:Ke}})};Ae=g.createElement("div",{className:`${x}-selection-extra`},g.createElement(S9,{menu:$e,getPopupContainer:O},g.createElement("span",null,g.createElement(iR,null))))}const _e=F.map(($e,Fe)=>{const He=w($e,Fe),Le=D.get(He)||{};return Object.assign({checked:re.has(He)},Le)}).filter($e=>{let{disabled:Fe}=$e;return Fe}),Re=!!_e.length&&_e.length===F.length,Be=Re&&_e.every($e=>{let{checked:Fe}=$e;return Fe}),Me=Re&&_e.some($e=>{let{checked:Fe}=$e;return Fe});de=g.createElement(xg,{checked:Re?Be:!!F.length&&ve,indeterminate:Re?!Be&&Me:!ve&&ge,onChange:xe,disabled:F.length===0||Re,"aria-label":Ae?"Custom selection":"Select all",skipGroup:!0}),me=!y&&g.createElement("div",{className:`${x}-selection`},de,Ae)}let Ce;p==="radio"?Ce=(Ae,_e,Re)=>{const Be=w(_e,Re),Me=re.has(Be);return{node:g.createElement(H0e,Object.assign({},D.get(Be),{checked:Me,onClick:$e=>$e.stopPropagation(),onChange:$e=>{re.has(Be)||J(Be,!0,[Be],$e.nativeEvent)}})),checked:Me}}:Ce=(Ae,_e,Re)=>{var Be;const Me=w(_e,Re),$e=re.has(Me),Fe=W.has(Me),He=D.get(Me);let Le;return I==="nest"?Le=Fe:Le=(Be=He==null?void 0:He.indeterminate)!==null&&Be!==void 0?Be:Fe,{node:g.createElement(xg,Object.assign({},He,{indeterminate:Le,checked:$e,skipGroup:!0,onClick:Ke=>Ke.stopPropagation(),onChange:Ke=>{let{nativeEvent:ft}=Ke;const{shiftKey:gt}=ft,Nt=se.findIndex(je=>je===Me),Je=z.some(je=>se.includes(je));if(gt&&b&&Je){const je=N(Nt,se,re),Ze=Array.from(re);d==null||d(!$e,Ze.map(Xe=>C(Xe)),je.map(Xe=>C(Xe))),Y(Ze,"multiple")}else{const je=z;if(b){const Ze=$e?lc(je,Me):ld(je,Me);J(Me,!$e,Ze,ft)}else{const Ze=Vv([].concat(Ue(je),[Me]),!0,B,j),{checkedKeys:Xe,halfCheckedKeys:Ye}=Ze;let at=Xe;if($e){const It=new Set(Xe);It.delete(Me),at=Vv(Array.from(It),{checked:!1,halfCheckedKeys:Ye},B,j).checkedKeys}J(Me,!$e,at,ft)}}_($e?null:Nt)}})),checked:$e}};const Ie=(Ae,_e,Re)=>{const{node:Be,checked:Me}=Ce(Ae,_e,Re);return v?v(Me,_e,Re,Be):Be};if(!te.includes(yf))if(te.findIndex(Ae=>{var _e;return((_e=Ae[dx])===null||_e===void 0?void 0:_e.columnType)==="EXPAND_COLUMN"})===0){const[Ae,..._e]=te;te=[Ae,yf].concat(Ue(_e))}else te=[yf].concat(Ue(te));const ke=te.indexOf(yf);te=te.filter((Ae,_e)=>Ae!==yf||_e===ke);const Te=te[ke-1],pe=te[ke+1];let Se=m;Se===void 0&&((pe==null?void 0:pe.fixed)!==void 0?Se=pe.fixed:(Te==null?void 0:Te.fixed)!==void 0&&(Se=Te.fixed)),Se&&Te&&((ae=Te[dx])===null||ae===void 0?void 0:ae.columnType)==="EXPAND_COLUMN"&&Te.fixed===void 0&&(Te.fixed=Se);const Ee=ie(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&p==="checkbox"}),we=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(de):t.columnTitle:me,ue={fixed:Se,width:f,className:`${x}-selection-column`,title:we(),render:Ie,onCell:t.onCell,[dx]:{className:Ee}};return te.map(Ae=>Ae===yf?ue:Ae)},[w,F,t,z,G,W,f,Z,I,D,d,J,j]),G]};function Gct(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function qct(e,t){return g.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,i){return n[i]?n[i]:Reflect.get(a,i)}}):Gct(r,n)})}function Yct(e){return function(n){let{prefixCls:r,onExpand:a,record:i,expanded:o,expandable:l}=n;const s=`${r}-row-expand-icon`;return g.createElement("button",{type:"button",onClick:u=>{a(i,u),u.stopPropagation()},className:ie(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&o,[`${s}-collapsed`]:l&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function Kct(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let i=r;if(a){const o=getComputedStyle(a),l=parseInt(o.borderLeftWidth,10),s=parseInt(o.borderRightWidth,10);i=r-l-s}return i}}function Eg(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function qS(e,t){return t?`${t}-${e}`:`${e}`}function DR(e,t){return typeof e=="function"?e(t):e}function Xct(e,t){const n=DR(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var Qct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const Zct=Qct;var Jct=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Zct}))};const edt=g.forwardRef(Jct);function tdt(e){const t=g.useRef(e),n=L7();return[()=>t.current,r=>{t.current=r,n()}]}function ndt(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return g.createElement("div",{style:a})}function L9(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function rdt(e,t){var n=g.useState(!1),r=fe(n,2),a=r[0],i=r[1];Sn(function(){if(a)return e(),function(){t()}},[a]),Sn(function(){return i(!0),function(){i(!1)}},[])}var adt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Nbe=function(t,n){var r=t.className,a=t.style,i=t.motion,o=t.motionNodes,l=t.motionType,s=t.onMotionStart,u=t.onMotionEnd,c=t.active,d=t.treeNodeRequiredProps,f=Lt(t,adt),p=g.useState(!0),h=fe(p,2),m=h[0],v=h[1],y=g.useContext(M9),b=y.prefixCls,x=o&&l!=="hide";Sn(function(){o&&x!==m&&v(x)},[o]);var E=function(){o&&s()},S=g.useRef(!1),C=function(){o&&!S.current&&(S.current=!0,u())};rdt(E,C);var w=function(T){x===T&&C()};return o?g.createElement(io,Ne({ref:n,visible:m},i,{motionAppear:l==="show",onVisibleChanged:w}),function(I,T){var A=I.className,O=I.style;return g.createElement("div",{ref:T,className:ie("".concat(b,"-treenode-motion"),A),style:O},o.map(function(R){var N=Object.assign({},(L9(R.data),R.data)),_=R.title,L=R.key,$=R.isStart,k=R.isEnd;delete N.children;var P=ux(L,d);return g.createElement(j0,Ne({},N,P,{title:_,active:c,data:R.data,key:L,isStart:$,isEnd:k}))}))}):g.createElement(j0,Ne({domRef:n,className:r,style:a},f,{active:c}))};Nbe.displayName="MotionTreeNode";var idt=g.forwardRef(Nbe);function odt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(i,o){var l=new Map;i.forEach(function(u){l.set(u,!0)});var s=o.filter(function(u){return!l.has(u)});return s.length===1?s[0]:null}return n ").concat(t);return t}var Mbe=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,i=e.selectedKeys,o=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,u=e.halfCheckedKeys,c=e.keyEntities,d=e.disabled,f=e.dragging,p=e.dragOverNodeKey,h=e.dropPosition,m=e.motion,v=e.height,y=e.itemHeight,b=e.virtual,x=e.focusable,E=e.activeItem,S=e.focused,C=e.tabIndex,w=e.onKeyDown,I=e.onFocus,T=e.onBlur,A=e.onActiveChange,O=e.onListChangeStart,R=e.onListChangeEnd,N=Lt(e,ldt),_=g.useRef(null),L=g.useRef(null);g.useImperativeHandle(t,function(){return{scrollTo:function(Ce){_.current.scrollTo(Ce)},getIndentWidth:function(){return L.current.offsetWidth}}});var $=g.useState(a),k=fe($,2),P=k[0],B=k[1],F=g.useState(r),D=fe(F,2),j=D[0],z=D[1],V=g.useState(r),G=fe(V,2),W=G[0],Y=G[1],J=g.useState([]),Z=fe(J,2),K=Z[0],ee=Z[1],ae=g.useState(null),te=fe(ae,2),re=te[0],se=te[1],ve=g.useRef(r);ve.current=r;function ge(){var de=ve.current;z(de),Y(de),ee([]),se(null),R()}Sn(function(){B(a);var de=odt(P,a);if(de.key!==null)if(de.add){var Ce=j.findIndex(function(Ee){var we=Ee.key;return we===de.key}),Ie=Nee(kee(j,r,de.key),b,v,y),ke=j.slice();ke.splice(Ce+1,0,_ee),Y(ke),ee(Ie),se("show")}else{var Te=r.findIndex(function(Ee){var we=Ee.key;return we===de.key}),pe=Nee(kee(r,j,de.key),b,v,y),Se=r.slice();Se.splice(Te+1,0,_ee),Y(Se),ee(pe),se("hide")}else j!==r&&(z(r),Y(r))},[a,r]),g.useEffect(function(){f||ge()},[f]);var xe=m?W:r,me={expandedKeys:a,selectedKeys:i,loadedKeys:l,loadingKeys:s,checkedKeys:o,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:h,keyEntities:c};return g.createElement(g.Fragment,null,S&&E&&g.createElement("span",{style:Ree,"aria-live":"assertive"},udt(E)),g.createElement("div",null,g.createElement("input",{style:Ree,disabled:x===!1||d,tabIndex:x!==!1?C:null,onKeyDown:w,onFocus:I,onBlur:T,value:"",onChange:sdt,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(n,"-indent")},g.createElement("div",{ref:L,className:"".concat(n,"-indent-unit")}))),g.createElement(aR,Ne({},N,{data:xe,itemKey:Dee,height:v,fullHeight:!1,virtual:b,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:_,onVisibleChange:function(Ce,Ie){var ke=new Set(Ce),Te=Ie.filter(function(pe){return!ke.has(pe)});Te.some(function(pe){return Dee(pe)===Sg})&&ge()}}),function(de){var Ce=de.pos,Ie=Object.assign({},(L9(de.data),de.data)),ke=de.title,Te=de.key,pe=de.isStart,Se=de.isEnd,Ee=jS(Te,Ce);delete Ie.key,delete Ie.children;var we=ux(Ee,me);return g.createElement(idt,Ne({},Ie,we,{title:ke,active:!!E&&Te===E.key,pos:Ce,data:de.data,isStart:pe,isEnd:Se,motion:m,motionNodes:Te===Sg?K:null,motionType:re,onMotionStart:O,onMotionEnd:ge,treeNodeRequiredProps:me,onMouseMove:function(){A(null)}}))}))});Mbe.displayName="NodeList";var cdt=10,P9=function(e){Vu(n,e);var t=Xd(n);function n(){var r;Pa(this,n);for(var a=arguments.length,i=new Array(a),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,f=d.dragChildrenKeys,p=d.dropPosition,h=d.dropTargetKey,m=d.dropTargetPos,v=d.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var b=Q(Q({},ux(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:Vl(r.state.keyEntities,h).node}),x=f.indexOf(h)!==-1;Rr(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=$9(m),S={event:l,node:si(b),dragNode:r.dragNode?si(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(f),dropToGap:p!==0,dropPosition:p+Number(E[E.length-1])};c||y==null||y(S),r.dragNode=null}}}),X(et(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),X(et(r),"triggerExpandActionExpand",function(l,s){var u=r.state,c=u.expandedKeys,d=u.flattenNodes,f=s.expanded,p=s.key,h=s.isLeaf;if(!(h||l.shiftKey||l.metaKey||l.ctrlKey)){var m=d.filter(function(y){return y.key===p})[0],v=si(Q(Q({},ux(p,r.getTreeNodeRequiredProps())),{},{data:m.data}));r.setExpandedKeys(f?lc(c,p):ld(c,p)),r.onNodeExpand(l,v)}}),X(et(r),"onNodeClick",function(l,s){var u=r.props,c=u.onClick,d=u.expandAction;d==="click"&&r.triggerExpandActionExpand(l,s),c==null||c(l,s)}),X(et(r),"onNodeDoubleClick",function(l,s){var u=r.props,c=u.onDoubleClick,d=u.expandAction;d==="doubleClick"&&r.triggerExpandActionExpand(l,s),c==null||c(l,s)}),X(et(r),"onNodeSelect",function(l,s){var u=r.state.selectedKeys,c=r.state,d=c.keyEntities,f=c.fieldNames,p=r.props,h=p.onSelect,m=p.multiple,v=s.selected,y=s[f.key],b=!v;b?m?u=ld(u,y):u=[y]:u=lc(u,y);var x=u.map(function(E){var S=Vl(d,E);return S?S.node:null}).filter(function(E){return E});r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:b,node:s,selectedNodes:x,nativeEvent:l.nativeEvent})}),X(et(r),"onNodeCheck",function(l,s,u){var c=r.state,d=c.keyEntities,f=c.checkedKeys,p=c.halfCheckedKeys,h=r.props,m=h.checkStrictly,v=h.onCheck,y=s.key,b,x={event:"check",node:s,checked:u,nativeEvent:l.nativeEvent};if(m){var E=u?ld(f,y):lc(f,y),S=lc(p,y);b={checked:E,halfChecked:S},x.checkedNodes=E.map(function(O){return Vl(d,O)}).filter(function(O){return O}).map(function(O){return O.node}),r.setUncontrolledState({checkedKeys:E})}else{var C=Vv([].concat(Ue(f),[y]),!0,d),w=C.checkedKeys,I=C.halfCheckedKeys;if(!u){var T=new Set(w);T.delete(y);var A=Vv(Array.from(T),{checked:!1,halfCheckedKeys:I},d);w=A.checkedKeys,I=A.halfCheckedKeys}b=w,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=I,w.forEach(function(O){var R=Vl(d,O);if(R){var N=R.node,_=R.pos;x.checkedNodes.push(N),x.checkedNodesPositions.push({node:N,pos:_})}}),r.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:I})}v==null||v(b,x)}),X(et(r),"onNodeLoad",function(l){var s=l.key,u=new Promise(function(c,d){r.setState(function(f){var p=f.loadedKeys,h=p===void 0?[]:p,m=f.loadingKeys,v=m===void 0?[]:m,y=r.props,b=y.loadData,x=y.onLoad;if(!b||h.indexOf(s)!==-1||v.indexOf(s)!==-1)return null;var E=b(l);return E.then(function(){var S=r.state.loadedKeys,C=ld(S,s);x==null||x(C,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:C}),r.setState(function(w){return{loadingKeys:lc(w.loadingKeys,s)}}),c()}).catch(function(S){if(r.setState(function(w){return{loadingKeys:lc(w.loadingKeys,s)}}),r.loadingRetryTimes[s]=(r.loadingRetryTimes[s]||0)+1,r.loadingRetryTimes[s]>=cdt){var C=r.state.loadedKeys;Rr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ld(C,s)}),c()}d(S)}),{loadingKeys:ld(v,s)}})});return u.catch(function(){}),u}),X(et(r),"onNodeMouseEnter",function(l,s){var u=r.props.onMouseEnter;u==null||u({event:l,node:s})}),X(et(r),"onNodeMouseLeave",function(l,s){var u=r.props.onMouseLeave;u==null||u({event:l,node:s})}),X(et(r),"onNodeContextMenu",function(l,s){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:s}))}),X(et(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var s=arguments.length,u=new Array(s),c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var c=!1,d=!0,f={};Object.keys(l).forEach(function(p){if(p in r.props){d=!1;return}c=!0,f[p]=l[p]}),c&&(!s||d)&&r.setState(Q(Q({},f),u))}}),X(et(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Fa(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,i=a.activeKey,o=a.itemScrollOffset,l=o===void 0?0:o;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,i=a.focused,o=a.flattenNodes,l=a.keyEntities,s=a.draggingNodeKey,u=a.activeKey,c=a.dropLevelOffset,d=a.dropContainerKey,f=a.dropTargetKey,p=a.dropPosition,h=a.dragOverNodeKey,m=a.indent,v=this.props,y=v.prefixCls,b=v.className,x=v.style,E=v.showLine,S=v.focusable,C=v.tabIndex,w=C===void 0?0:C,I=v.selectable,T=v.showIcon,A=v.icon,O=v.switcherIcon,R=v.draggable,N=v.checkable,_=v.checkStrictly,L=v.disabled,$=v.motion,k=v.loadData,P=v.filterTreeNode,B=v.height,F=v.itemHeight,D=v.virtual,j=v.titleRender,z=v.dropIndicatorRender,V=v.onContextMenu,G=v.onScroll,W=v.direction,Y=v.rootClassName,J=v.rootStyle,Z=La(this.props,{aria:!0,data:!0}),K;return R&&(zt(R)==="object"?K=R:typeof R=="function"?K={nodeDraggable:R}:K={}),g.createElement(M9.Provider,{value:{prefixCls:y,selectable:I,showIcon:T,icon:A,switcherIcon:O,draggable:K,draggingNodeKey:s,checkable:N,checkStrictly:_,disabled:L,keyEntities:l,dropLevelOffset:c,dropContainerKey:d,dropTargetKey:f,dropPosition:p,dragOverNodeKey:h,indent:m,direction:W,dropIndicatorRender:z,loadData:k,filterTreeNode:P,titleRender:j,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},g.createElement("div",{role:"tree",className:ie(y,b,Y,X(X(X({},"".concat(y,"-show-line"),E),"".concat(y,"-focused"),i),"".concat(y,"-active-focused"),u!==null)),style:J},g.createElement(Mbe,Ne({ref:this.listRef,prefixCls:y,style:x,data:o,disabled:L,selectable:I,checkable:!!N,motion:$,dragging:s!==null,height:B,itemHeight:F,virtual:D,focusable:S,focused:i,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:G},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,l={prevProps:a};function s(C){return!o&&C in a||o&&o[C]!==a[C]}var u,c=i.fieldNames;if(s("fieldNames")&&(c=H0(a.fieldNames),l.fieldNames=c),s("treeData")?u=a.treeData:s("children")&&(Rr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=nye(a.children)),u){l.treeData=u;var d=p9(u,{fieldNames:c});l.keyEntities=Q(X({},Sg,Dbe),d.keyEntities)}var f=l.keyEntities||i.keyEntities;if(s("expandedKeys")||o&&s("autoExpandParent"))l.expandedKeys=a.autoExpandParent||!o&&a.defaultExpandParent?_6(a.expandedKeys,f):a.expandedKeys;else if(!o&&a.defaultExpandAll){var p=Q({},f);delete p[Sg],l.expandedKeys=Object.keys(p).map(function(C){return p[C].key})}else!o&&a.defaultExpandedKeys&&(l.expandedKeys=a.autoExpandParent||a.defaultExpandParent?_6(a.defaultExpandedKeys,f):a.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var h=KD(u||i.treeData,l.expandedKeys||i.expandedKeys,c);l.flattenNodes=h}if(a.selectable&&(s("selectedKeys")?l.selectedKeys=Iee(a.selectedKeys,a):!o&&a.defaultSelectedKeys&&(l.selectedKeys=Iee(a.defaultSelectedKeys,a))),a.checkable){var m;if(s("checkedKeys")?m=n4(a.checkedKeys)||{}:!o&&a.defaultCheckedKeys?m=n4(a.defaultCheckedKeys)||{}:u&&(m=n4(a.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),m){var v=m,y=v.checkedKeys,b=y===void 0?[]:y,x=v.halfCheckedKeys,E=x===void 0?[]:x;if(!a.checkStrictly){var S=Vv(b,!0,f);b=S.checkedKeys,E=S.halfCheckedKeys}l.checkedKeys=b,l.halfCheckedKeys=E}}return s("loadedKeys")&&(l.loadedKeys=a.loadedKeys),l}}]),n}(g.Component);X(P9,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ndt,allowDrop:function(){return!0},expandAction:!1});X(P9,"TreeNode",j0);var ddt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const fdt=ddt;var pdt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:fdt}))};const $be=g.forwardRef(pdt);var hdt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const gdt=hdt;var mdt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:gdt}))};const vdt=g.forwardRef(mdt);var ydt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const Lbe=ydt;var bdt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Lbe}))};const xdt=g.forwardRef(bdt);var Edt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const Sdt=Edt;var Cdt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Sdt}))};const wdt=g.forwardRef(Cdt),Tdt=new gn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Adt=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Idt=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ne(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Odt=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:i,nodeSelectedBg:o,nodeHoverBg:l}=t,s=t.paddingXS;return{[n]:Object.assign(Object.assign({},In(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},bp(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Tdt,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${ne(a)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${ne(i)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},Adt(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${ne(i)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:s,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${ne(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${ne(i)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:o},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${ne(i)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${ne(i)}`,userSelect:"none"},Idt(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ne(t.calc(i).div(2).equal())} !important`}}}}})}},kdt=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:a,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:a},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},Rdt=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),i=pn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[Odt(e,i),kdt(i)]},_dt=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},Ndt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},_dt(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Ddt=On("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:aye(`${n}-checkbox`,e)},Rdt(n,e),eR(e)]},Ndt),Mee=4;function Mdt(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:i="ltr"}=e,o=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[o]:-n*a+Mee,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[o]=a+Mee;break}return M.createElement("div",{style:s,className:`${r}-drop-indicator`})}var $dt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const Ldt=$dt;var Pdt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Ldt}))};const Fdt=g.forwardRef(Pdt);var Bdt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const zdt=Bdt;var Hdt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:zdt}))};const jdt=g.forwardRef(Hdt);var Udt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const Pbe=Udt;var Vdt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Pbe}))};const Fbe=g.forwardRef(Vdt),Wdt=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a}=e,{isLeaf:i,expanded:o,loading:l}=r;if(l)return g.createElement(vg,{className:`${t}-switcher-loading-icon`});let s;if(a&&typeof a=="object"&&(s=a.showLeafIcon),i){if(!a)return null;if(typeof s!="boolean"&&s){const d=typeof s=="function"?s(r):s,f=`${t}-switcher-line-custom-icon`;return g.isValidElement(d)?Ta(d,{className:ie(d.props.className||"",f)}):d}return s?g.createElement($be,{className:`${t}-switcher-line-icon`}):g.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,c=typeof n=="function"?n(r):n;return g.isValidElement(c)?Ta(c,{className:ie(c.props.className||"",u)}):c!==void 0?c:a?o?g.createElement(jdt,{className:`${t}-switcher-line-icon`}):g.createElement(Fbe,{className:`${t}-switcher-line-icon`}):g.createElement(Fdt,{className:u})},Gdt=Wdt,qdt=M.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:i,tree:o}=M.useContext(dt),{prefixCls:l,className:s,showIcon:u=!1,showLine:c,switcherIcon:d,blockNode:f=!1,children:p,checkable:h=!1,selectable:m=!0,draggable:v,motion:y,style:b}=e,x=r("tree",l),E=r(),S=y??Object.assign(Object.assign({},dE(E)),{motionAppear:!1}),C=Object.assign(Object.assign({},e),{checkable:h,selectable:m,showIcon:u,motion:S,blockNode:f,showLine:!!c,dropIndicatorRender:Mdt}),[w,I,T]=Ddt(x),[,A]=Ka(),O=A.paddingXS/2+(((n=A.Tree)===null||n===void 0?void 0:n.titleHeight)||A.controlHeightSM),R=M.useMemo(()=>{if(!v)return!1;let _={};switch(typeof v){case"function":_.nodeDraggable=v;break;case"object":_=Object.assign({},v);break}return _.icon!==!1&&(_.icon=_.icon||M.createElement(wdt,null)),_},[v]),N=_=>M.createElement(Gdt,{prefixCls:x,switcherIcon:d,treeNodeProps:_,showLine:c});return w(M.createElement(P9,Object.assign({itemHeight:O,ref:t,virtual:i},C,{style:Object.assign(Object.assign({},o==null?void 0:o.style),b),prefixCls:x,className:ie({[`${x}-icon-hide`]:!u,[`${x}-block-node`]:f,[`${x}-unselectable`]:!m,[`${x}-rtl`]:a==="rtl"},o==null?void 0:o.className,s,I,T),direction:a,checkable:h&&M.createElement("span",{className:`${x}-checkbox-inner`}),selectable:m,switcherIcon:N,draggable:R}),p))}),Bbe=qdt;var ud;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(ud||(ud={}));function F9(e,t,n){const{key:r,children:a}=n;function i(o){const l=o[r],s=o[a];t(l,o)!==!1&&F9(s||[],t,n)}e.forEach(i)}function Ydt(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:i}=e;const o=[];let l=ud.None;if(r&&r===a)return[r];if(!r||!a)return[];function s(u){return u===r||u===a}return F9(t,u=>{if(l===ud.End)return!1;if(s(u)){if(o.push(u),l===ud.None)l=ud.Start;else if(l===ud.Start)return l=ud.End,!1}else l===ud.Start&&o.push(u);return n.includes(u)},H0(i)),o}function r4(e,t,n){const r=Ue(t),a=[];return F9(e,(i,o)=>{const l=r.indexOf(i);return l!==-1&&(a.push(o),r.splice(l,1)),!!r.length},H0(n)),a}var $ee=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,i=$ee(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=g.useRef(),l=g.useRef(),s=()=>{const{keyEntities:I}=p9(Lee(i));let T;return n?T=Object.keys(I):r?T=_6(i.expandedKeys||a||[],I):T=i.expandedKeys||a||[],T},[u,c]=g.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[d,f]=g.useState(()=>s());g.useEffect(()=>{"selectedKeys"in i&&c(i.selectedKeys)},[i.selectedKeys]),g.useEffect(()=>{"expandedKeys"in i&&f(i.expandedKeys)},[i.expandedKeys]);const p=(I,T)=>{var A;return"expandedKeys"in i||f(I),(A=i.onExpand)===null||A===void 0?void 0:A.call(i,I,T)},h=(I,T)=>{var A;const{multiple:O,fieldNames:R}=i,{node:N,nativeEvent:_}=T,{key:L=""}=N,$=Lee(i),k=Object.assign(Object.assign({},T),{selected:!0}),P=(_==null?void 0:_.ctrlKey)||(_==null?void 0:_.metaKey),B=_==null?void 0:_.shiftKey;let F;O&&P?(F=I,o.current=L,l.current=F,k.selectedNodes=r4($,F,R)):O&&B?(F=Array.from(new Set([].concat(Ue(l.current||[]),Ue(Ydt({treeData:$,expandedKeys:d,startKey:L,endKey:o.current,fieldNames:R}))))),k.selectedNodes=r4($,F,R)):(F=[L],o.current=L,l.current=F,k.selectedNodes=r4($,F,R)),(A=i.onSelect)===null||A===void 0||A.call(i,F,k),"selectedKeys"in i||c(F)},{getPrefixCls:m,direction:v}=g.useContext(dt),{prefixCls:y,className:b,showIcon:x=!0,expandAction:E="click"}=i,S=$ee(i,["prefixCls","className","showIcon","expandAction"]),C=m("tree",y),w=ie(`${C}-directory`,{[`${C}-directory-rtl`]:v==="rtl"},b);return g.createElement(Bbe,Object.assign({icon:Kdt,ref:t,blockNode:!0},S,{showIcon:x,expandAction:E,prefixCls:C,className:w,expandedKeys:d,selectedKeys:u,onSelect:h,onExpand:p}))},Qdt=g.forwardRef(Xdt),Zdt=Qdt,B9=Bbe;B9.DirectoryTree=Zdt;B9.TreeNode=j0;const Jdt=B9;function Pee(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:a,locale:i}=e;return r?g.createElement("div",{className:`${a}-filter-dropdown-search`},g.createElement(Wa,{prefix:g.createElement(F0,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${a}-filter-dropdown-search-input`})):null}const eft=e=>{const{keyCode:t}=e;t===Ve.ENTER&&e.stopPropagation()},tft=g.forwardRef((e,t)=>g.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:eft,ref:t},e.children)),nft=tft;function Wv(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(Ue(t),Ue(Wv(a))))}),t}function rft(e){return e.some(t=>{let{children:n}=t;return n})}function zbe(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Hbe(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:i,filterSearch:o}=e;return t.map((l,s)=>{const u=String(l.value);if(l.children)return{key:u||s,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:Hbe({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:i,filterSearch:o})};const c=a?xg:H0e,d={key:l.value!==void 0?u:s,label:g.createElement(g.Fragment,null,g.createElement(c,{checked:r.includes(u)}),g.createElement("span",null,l.text))};return i.trim()?typeof o=="function"?o(i,l)?d:null:zbe(i,l.text)?d:null:d})}function a4(e){return e||[]}function aft(e){var t,n;const{tablePrefixCls:r,prefixCls:a,column:i,dropdownPrefixCls:o,columnKey:l,filterOnClose:s,filterMultiple:u,filterMode:c="menu",filterSearch:d=!1,filterState:f,triggerFilter:p,locale:h,children:m,getPopupContainer:v,rootClassName:y}=e,{filterDropdownOpen:b,onFilterDropdownOpenChange:x,filterResetToDefaultFilteredValue:E,defaultFilteredValue:S,filterDropdownVisible:C,onFilterDropdownVisibleChange:w}=i,[I,T]=g.useState(!1),A=!!(f&&(!((t=f.filteredKeys)===null||t===void 0)&&t.length||f.forceFiltered)),O=ge=>{T(ge),x==null||x(ge),w==null||w(ge)},R=(n=b??C)!==null&&n!==void 0?n:I,N=f==null?void 0:f.filteredKeys,[_,L]=tdt(a4(N)),$=ge=>{let{selectedKeys:xe}=ge;L(xe)},k=(ge,xe)=>{let{node:me,checked:de}=xe;$(u?{selectedKeys:ge}:{selectedKeys:de&&me.key?[me.key]:[]})};g.useEffect(()=>{I&&$({selectedKeys:a4(N)})},[N]);const[P,B]=g.useState([]),F=ge=>{B(ge)},[D,j]=g.useState(""),z=ge=>{const{value:xe}=ge.target;j(xe)};g.useEffect(()=>{I||j("")},[I]);const V=ge=>{const xe=ge&&ge.length?ge:null;if(xe===null&&(!f||!f.filteredKeys)||Oc(xe,f==null?void 0:f.filteredKeys,!0))return null;p({column:i,key:l,filteredKeys:xe})},G=()=>{O(!1),V(_())},W=function(){let{confirm:ge,closeDropdown:xe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ge&&V([]),xe&&O(!1),j(""),L(E?(S||[]).map(me=>String(me)):[])},Y=function(){let{closeDropdown:ge}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ge&&O(!1),V(_())},J=(ge,xe)=>{xe.source==="trigger"&&(ge&&N!==void 0&&L(a4(N)),O(ge),!ge&&!i.filterDropdown&&s&&G())},Z=ie({[`${o}-menu-without-submenu`]:!rft(i.filters||[])}),K=ge=>{if(ge.target.checked){const xe=Wv(i==null?void 0:i.filters).map(me=>String(me));L(xe)}else L([])},ee=ge=>{let{filters:xe}=ge;return(xe||[]).map((me,de)=>{const Ce=String(me.value),Ie={title:me.text,key:me.value!==void 0?Ce:String(de)};return me.children&&(Ie.children=ee({filters:me.children})),Ie})},ae=ge=>{var xe;return Object.assign(Object.assign({},ge),{text:ge.title,value:ge.key,children:((xe=ge.children)===null||xe===void 0?void 0:xe.map(me=>ae(me)))||[]})};let te;if(typeof i.filterDropdown=="function")te=i.filterDropdown({prefixCls:`${o}-custom`,setSelectedKeys:ge=>$({selectedKeys:ge}),selectedKeys:_(),confirm:Y,clearFilters:W,filters:i.filters,visible:R,close:()=>{O(!1)}});else if(i.filterDropdown)te=i.filterDropdown;else{const ge=_()||[],xe=()=>(i.filters||[]).length===0?g.createElement(Eh,{image:Eh.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):c==="tree"?g.createElement(g.Fragment,null,g.createElement(Pee,{filterSearch:d,value:D,onChange:z,tablePrefixCls:r,locale:h}),g.createElement("div",{className:`${r}-filter-dropdown-tree`},u?g.createElement(xg,{checked:ge.length===Wv(i.filters).length,indeterminate:ge.length>0&&ge.lengthtypeof d=="function"?d(D,ae(de)):zbe(D,de.title):void 0}))):g.createElement(g.Fragment,null,g.createElement(Pee,{filterSearch:d,value:D,onChange:z,tablePrefixCls:r,locale:h}),g.createElement(eo,{selectable:!0,multiple:u,prefixCls:`${o}-menu`,className:Z,onSelect:$,onDeselect:$,selectedKeys:ge,getPopupContainer:v,openKeys:P,onOpenChange:F,items:Hbe({filters:i.filters||[],filterSearch:d,prefixCls:a,filteredKeys:_(),filterMultiple:u,searchValue:D})})),me=()=>E?Oc((S||[]).map(de=>String(de)),ge,!0):ge.length===0;te=g.createElement(g.Fragment,null,xe(),g.createElement("div",{className:`${a}-dropdown-btns`},g.createElement(nn,{type:"link",size:"small",disabled:me(),onClick:()=>W()},h.filterReset),g.createElement(nn,{type:"primary",size:"small",onClick:G},h.filterConfirm)))}i.filterDropdown&&(te=g.createElement(Xve,{selectable:void 0},te));const re=()=>g.createElement(nft,{className:`${a}-dropdown`},te);let se;typeof i.filterIcon=="function"?se=i.filterIcon(A):i.filterIcon?se=i.filterIcon:se=g.createElement(edt,null);const{direction:ve}=g.useContext(dt);return g.createElement("div",{className:`${a}-column`},g.createElement("span",{className:`${r}-column-title`},m),g.createElement(S9,{dropdownRender:re,trigger:["click"],open:R,onOpenChange:J,getPopupContainer:v,placement:ve==="rtl"?"bottomLeft":"bottomRight",rootClassName:y},g.createElement("span",{role:"button",tabIndex:-1,className:ie(`${a}-trigger`,{active:A}),onClick:ge=>{ge.stopPropagation()}},se)))}function L6(e,t,n){let r=[];return(e||[]).forEach((a,i)=>{var o;const l=qS(i,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let s=a.filteredValue;"filterDropdown"in a||(s=(o=s==null?void 0:s.map(String))!==null&&o!==void 0?o:s),r.push({column:a,key:Eg(a,l),filteredKeys:s,forceFiltered:a.filtered})}else r.push({column:a,key:Eg(a,l),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Ue(r),Ue(L6(a.children,t,l))))}),r}function jbe(e,t,n,r,a,i,o,l,s){return n.map((u,c)=>{const d=qS(c,l),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:h,filterSearch:m}=u;let v=u;if(v.filters||v.filterDropdown){const y=Eg(v,d),b=r.find(x=>{let{key:E}=x;return y===E});v=Object.assign(Object.assign({},v),{title:x=>g.createElement(aft,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:b,filterOnClose:f,filterMultiple:p,filterMode:h,filterSearch:m,triggerFilter:i,locale:a,getPopupContainer:o,rootClassName:s},DR(u.title,x))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:jbe(e,t,v.children,r,a,i,o,d,s)})),v})}function Fee(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:i}=n;const o=r,{filters:l,filterDropdown:s}=i;if(s)t[o]=a||null;else if(Array.isArray(a)){const u=Wv(l);t[o]=u.filter(c=>a.includes(String(c)))}else t[o]=null}),t}function P6(e,t,n){return t.reduce((r,a)=>{const{column:{onFilter:i,filters:o},filteredKeys:l}=a;return i&&l&&l.length?r.map(s=>Object.assign({},s)).filter(s=>l.some(u=>{const c=Wv(o),d=c.findIndex(p=>String(p)===String(u)),f=d!==-1?c[d]:u;return s[n]&&(s[n]=P6(s[n],t,n)),i(f,s)})):r},e)}const Ube=e=>e.flatMap(t=>"children"in t?[t].concat(Ue(Ube(t.children||[]))):[t]);function ift(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:i,locale:o,rootClassName:l}=e;Qd();const s=g.useMemo(()=>Ube(r||[]),[r]),[u,c]=g.useState(()=>L6(s,!0)),d=g.useMemo(()=>{const m=L6(s,!1);if(m.length===0)return m;let v=!0;if(m.forEach(y=>{let{filteredKeys:b}=y;b!==void 0&&(v=!1)}),v){const y=(s||[]).map((b,x)=>Eg(b,qS(x)));return u.filter(b=>{let{key:x}=b;return y.includes(x)}).map(b=>{const x=s[y.findIndex(E=>E===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),x),forceFiltered:x.filtered})})}return m},[s,u]),f=g.useMemo(()=>Fee(d),[d]),p=m=>{const v=d.filter(y=>{let{key:b}=y;return b!==m.key});v.push(m),c(v),a(Fee(v),v)};return[m=>jbe(t,n,m,d,o,p,i,void 0,l),d,f]}function oft(e,t,n){const r=g.useRef({});function a(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(u){u.forEach((c,d)=>{const f=n(c,d);l.set(f,c),c&&typeof c=="object"&&t in c&&s(c[t]||[])})};var o=s;const l=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(i)}return[a]}var lft=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const i=e[a];typeof i!="function"&&(n[a]=i)}),n}function uft(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,i=lft(r,["total"]),[o,l]=g.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:Vbe})),s=Jye(o,i,{total:a>0?a:e}),u=Math.ceil((a||e)/s.pageSize);s.current>u&&(s.current=u||1);const c=(f,p)=>{l({current:f??1,pageSize:p||s.pageSize})},d=(f,p)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,f,p)),c(f,p),t(f,p||(s==null?void 0:s.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:d}),c]}var cft={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const dft=cft;var fft=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:dft}))};const pft=g.forwardRef(fft);var hft={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const gft=hft;var mft=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:gft}))};const vft=g.forwardRef(mft),QT="ascend",i4="descend";function FI(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Bee(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function yft(e,t){return t?e[e.indexOf(t)+1]:e[0]}function F6(e,t,n){let r=[];function a(i,o){r.push({column:i,key:Eg(i,o),multiplePriority:FI(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,o)=>{const l=qS(o,n);i.children?("sortOrder"in i&&a(i,l),r=[].concat(Ue(r),Ue(F6(i.children,t,l)))):i.sorter&&("sortOrder"in i?a(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:Eg(i,l),multiplePriority:FI(i),sortOrder:i.defaultSortOrder}))}),r}function Wbe(e,t,n,r,a,i,o,l){return(t||[]).map((s,u)=>{const c=qS(u,l);let d=s;if(d.sorter){const f=d.sortDirections||a,p=d.showSorterTooltip===void 0?o:d.showSorterTooltip,h=Eg(d,c),m=n.find(I=>{let{key:T}=I;return T===h}),v=m?m.sortOrder:null,y=yft(f,v);let b;if(s.sortIcon)b=s.sortIcon({sortOrder:v});else{const I=f.includes(QT)&&g.createElement(vft,{className:ie(`${e}-column-sorter-up`,{active:v===QT})}),T=f.includes(i4)&&g.createElement(pft,{className:ie(`${e}-column-sorter-down`,{active:v===i4})});b=g.createElement("span",{className:ie(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(I&&T)})},g.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},I,T))}const{cancelSort:x,triggerAsc:E,triggerDesc:S}=i||{};let C=x;y===i4?C=S:y===QT&&(C=E);const w=typeof p=="object"?Object.assign({title:C},p):{title:C};d=Object.assign(Object.assign({},d),{className:ie(d.className,{[`${e}-column-sort`]:v}),title:I=>{const T=g.createElement("div",{className:`${e}-column-sorters`},g.createElement("span",{className:`${e}-column-title`},DR(s.title,I)),b);return p?g.createElement(Gs,Object.assign({},w),T):T},onHeaderCell:I=>{const T=s.onHeaderCell&&s.onHeaderCell(I)||{},A=T.onClick,O=T.onKeyDown;T.onClick=_=>{r({column:s,key:h,sortOrder:y,multiplePriority:FI(s)}),A==null||A(_)},T.onKeyDown=_=>{_.keyCode===Ve.ENTER&&(r({column:s,key:h,sortOrder:y,multiplePriority:FI(s)}),O==null||O(_))};const R=Xct(s.title,{}),N=R==null?void 0:R.toString();return v?T["aria-sort"]=v==="ascend"?"ascending":"descending":T["aria-label"]=N||"",T.className=ie(T.className,`${e}-column-has-sorters`),T.tabIndex=0,s.ellipsis&&(T.title=(R??"").toString()),T}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:Wbe(e,d.children,n,r,a,i,o,c)})),d})}function zee(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function Hee(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(zee);return t.length===0&&e.length?Object.assign(Object.assign({},zee(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function B6(e,t,n){const r=t.slice().sort((o,l)=>l.multiplePriority-o.multiplePriority),a=e.slice(),i=r.filter(o=>{let{column:{sorter:l},sortOrder:s}=o;return Bee(l)&&s});return i.length?a.sort((o,l)=>{for(let s=0;s{const l=o[n];return l?Object.assign(Object.assign({},o),{[n]:B6(l,t,n)}):o}):a}function bft(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:a,tableLocale:i,showSorterTooltip:o}=e;const[l,s]=g.useState(F6(n,!0)),u=g.useMemo(()=>{let h=!0;const m=F6(n,!1);if(!m.length)return l;const v=[];function y(x){h?v.push(x):v.push(Object.assign(Object.assign({},x),{sortOrder:null}))}let b=null;return m.forEach(x=>{b===null?(y(x),x.sortOrder&&(x.multiplePriority===!1?h=!1:b=!0)):(b&&x.multiplePriority!==!1||(h=!1),y(x))}),v},[n,l]),c=g.useMemo(()=>{const h=u.map(m=>{let{column:v,sortOrder:y}=m;return{column:v,order:y}});return{sortColumns:h,sortColumn:h[0]&&h[0].column,sortOrder:h[0]&&h[0].order}},[u]);function d(h){let m;h.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?m=[h]:m=[].concat(Ue(u.filter(v=>{let{key:y}=v;return y!==h.key})),[h]),s(m),r(Hee(m),m)}return[h=>Wbe(t,h,u,d,a,i,o),u,c,()=>Hee(u)]}function Gbe(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=DR(n.title,t),"children"in r&&(r.children=Gbe(r.children,t)),r})}function xft(e){return[g.useCallback(n=>Gbe(n,e),[e])]}const Eft=Obe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Sft=Rbe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Cft=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:i,tablePaddingVertical:o,tablePaddingHorizontal:l,calc:s}=e,u=`${ne(n)} ${r} ${a}`,c=(d,f,p)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ne(s(f).mul(-1).equal())} + ${ne(s(s(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ne(s(o).mul(-1).equal())} ${ne(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},c("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),c("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ne(n)} 0 ${ne(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},wft=Cft,Tft=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ps),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Aft=Tft,Ift=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Oft=Ift,kft=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:i,lineType:o,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:c,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:h,expandIconMarginTop:m,expandIconSize:v,expandIconHalfInner:y,expandIconScale:b,calc:x}=e,E=`${ne(a)} ${o} ${l}`,S=x(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},l7(e)),{position:"relative",float:"left",boxSizing:"border-box",width:v,height:v,padding:0,color:"inherit",lineHeight:ne(v),background:s,border:E,borderRadius:c,transform:`scale(${b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:a},"&::after":{top:S,bottom:S,insetInlineStart:y,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:m,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ne(x(d).mul(-1).equal())} ${ne(x(f).mul(-1).equal())}`,padding:`${ne(d)} ${ne(f)}`}}}},Rft=kft,_ft=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:i,paddingXXS:o,paddingXS:l,colorText:s,lineWidth:u,lineType:c,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:h,borderRadius:m,motionDurationSlow:v,colorTextDescription:y,colorPrimary:b,tableHeaderFilterActiveBg:x,colorTextDisabled:E,tableFilterDropdownBg:S,tableFilterDropdownHeight:C,controlItemBgHover:w,controlItemBgActive:I,boxShadowSecondary:T,filterDropdownMenuBg:A,calc:O}=e,R=`${n}-dropdown`,N=`${t}-filter-dropdown`,_=`${n}-tree`,L=`${ne(u)} ${c} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:O(o).mul(-1).equal(),marginInline:`${ne(o)} ${ne(O(h).div(2).mul(-1).equal())}`,padding:`0 ${ne(o)}`,color:f,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:y,background:x},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[N]:Object.assign(Object.assign({},In(e)),{minWidth:a,backgroundColor:S,borderRadius:m,boxShadow:T,overflow:"hidden",[`${R}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:A,"&:empty::after":{display:"block",padding:`${ne(l)} 0`,color:E,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${N}-tree`]:{paddingBlock:`${ne(l)} 0`,paddingInline:l,[_]:{padding:0},[`${_}-treenode ${_}-node-content-wrapper:hover`]:{backgroundColor:w},[`${_}-treenode-checkbox-checked ${_}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${N}-search`]:{padding:l,borderBottom:L,"&-input":{input:{minWidth:i},[r]:{color:E}}},[`${N}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${N}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ne(O(l).sub(u).equal())} ${ne(l)}`,overflow:"hidden",borderTop:L}})}},{[`${n}-dropdown ${N}, ${N}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Nft=_ft,Dft=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:i,tableBg:o,zIndexTableSticky:l,calc:s}=e,u=r;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:i,background:o},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after, + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},Mft=Dft,$ft=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ne(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Lft=$ft,Pft=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ne(n)} ${ne(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ne(n)} ${ne(n)}`}}}}},Fft=Pft,Bft=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},zft=Bft,Hft=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:i,paddingXS:o,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:u,tableSelectedRowBg:c,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(a).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(u).add(h(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(a).add(h(i).div(4)).add(h(o).mul(2)).equal()}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column, + ${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ne(h(p).div(4).equal()),[r]:{color:l,fontSize:a,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:c,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},jft=Hft,Uft=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(i,o,l,s)=>({[`${t}${t}-${i}`]:{fontSize:s,[` + ${t}-title, + ${t}-footer, + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${ne(o)} ${ne(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ne(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ne(r(o).mul(-1).equal())} ${ne(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ne(r(o).mul(-1).equal()),marginInline:`${ne(r(n).sub(l).equal())} ${ne(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ne(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Vft=Uft,Wft=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},Gft=Wft,qft=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:i,tableScrollBg:o,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:u,lineType:c,tableBorderColor:d}=e,f=`${ne(u)} ${c} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ne(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},Yft=qft,Kft=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,i=`${ne(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${ne(a(n).mul(-1).equal())} 0 ${r}`}}}},jee=Kft,Xft=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:i,calc:o}=e,l=`${ne(r)} ${a} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ne(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},Qft=Xft,Zft=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:i,lineWidth:o,lineType:l,tableBorderColor:s,tableFontSize:u,tableBg:c,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:m,tableFooterTextColor:v,tableFooterBg:y,calc:b}=e,x=`${ne(o)} ${l} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Lu()),{[t]:Object.assign(Object.assign({},In(e)),{fontSize:u,background:c,borderRadius:`${ne(d)} ${ne(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ne(d)} ${ne(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${ne(r)} ${ne(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ne(r)} ${ne(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:x,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:ne(b(r).mul(-1).equal()),marginInline:`${ne(b(i).sub(a).equal())} + ${ne(b(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${ne(r)} ${ne(a)}`,color:v,background:y}})}},Jft=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:i,controlItemBgActive:o,controlItemBgActiveHover:l,padding:s,paddingSM:u,paddingXS:c,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:h,fontSize:m,fontSizeSM:v,lineHeight:y,lineWidth:b,colorIcon:x,colorIconHover:E,opacityLoading:S,controlInteractiveSize:C}=e,w=new Wn(a).onBackground(n).toHexShortString(),I=new Wn(i).onBackground(n).toHexShortString(),T=new Wn(t).onBackground(n).toHexShortString(),A=new Wn(x),O=new Wn(E),R=C/2-b,N=R*2+b*3;return{headerBg:T,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:I,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:u,cellPaddingInlineMD:c,cellPaddingBlockSM:c,cellPaddingInlineSM:c,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:d,fixedHeaderSortActiveBg:w,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*y-b*3)/2-Math.ceil((v*1.4-b*3)/2),headerIconColor:A.clone().setAlpha(A.getAlpha()*S).toRgbString(),headerIconHoverColor:O.clone().setAlpha(O.getAlpha()*S).toRgbString(),expandIconHalfInner:R,expandIconSize:N,expandIconScale:C/N}},ept=On("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:i,headerColor:o,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:u,rowHoverBg:c,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:h,cellPaddingInline:m,cellPaddingBlockMD:v,cellPaddingInlineMD:y,cellPaddingBlockSM:b,cellPaddingInlineSM:x,borderColor:E,footerBg:S,footerColor:C,headerBorderRadius:w,cellFontSize:I,cellFontSizeMD:T,cellFontSizeSM:A,headerSplitColor:O,fixedHeaderSortActiveBg:R,headerFilterHoverBg:N,filterDropdownBg:_,expandIconBg:L,selectionColumnWidth:$,stickyScrollBarBg:k,calc:P}=e,B=2,F=pn(e,{tableFontSize:I,tableBg:r,tableRadius:w,tablePaddingVertical:h,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:x,tableBorderColor:E,tableHeaderTextColor:o,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:S,tableHeaderCellSplitColor:O,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:u,tableFixedHeaderSortActiveBg:R,tableHeaderFilterActiveBg:N,tableFilterDropdownBg:_,tableRowHoverBg:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:B,zIndexTableSticky:B+1,tableFontSizeMiddle:T,tableFontSizeSmall:A,tableSelectionColumnWidth:$,tableExpandIconBg:L,tableExpandColumnWidth:P(a).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[Zft(F),Lft(F),jee(F),Gft(F),Nft(F),wft(F),Fft(F),Rft(F),jee(F),Oft(F),jft(F),Mft(F),Yft(F),Aft(F),Vft(F),zft(F),Qft(F)]},Jft,{unitless:{expandIconScale:!0}}),tpt=[],npt=(e,t)=>{var n,r;const{prefixCls:a,className:i,rootClassName:o,style:l,size:s,bordered:u,dropdownPrefixCls:c,dataSource:d,pagination:f,rowSelection:p,rowKey:h="key",rowClassName:m,columns:v,children:y,childrenColumnName:b,onChange:x,getPopupContainer:E,loading:S,expandIcon:C,expandable:w,expandedRowRender:I,expandIconColumnIndex:T,indentSize:A,scroll:O,sortDirections:R,locale:N,showSorterTooltip:_=!0,virtual:L}=e;Qd();const $=g.useMemo(()=>v||N9(y),[v,y]),k=g.useMemo(()=>$.some(Ot=>Ot.responsive),[$]),P=LS(k),B=g.useMemo(()=>{const Ot=new Set(Object.keys(P).filter(lt=>P[lt]));return $.filter(lt=>!lt.responsive||lt.responsive.some(st=>Ot.has(st)))},[$,P]),F=Dr(e,["className","style","columns"]),{locale:D=ns,direction:j,table:z,renderEmpty:V,getPrefixCls:G,getPopupContainer:W}=g.useContext(dt),Y=co(s),J=Object.assign(Object.assign({},D.Table),N),Z=d||tpt,K=G("table",a),ee=G("dropdown",c),[,ae]=Ka(),te=oa(K),[re,se,ve]=ept(K,te),ge=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:T},w),{expandIcon:(n=w==null?void 0:w.expandIcon)!==null&&n!==void 0?n:(r=z==null?void 0:z.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:xe="children"}=ge,me=g.useMemo(()=>Z.some(Ot=>Ot==null?void 0:Ot[xe])?"nest":I||w&&w.expandedRowRender?"row":null,[Z]),de={body:g.useRef()},Ce=Kct(K),Ie=g.useRef(null),ke=g.useRef(null);qct(t,()=>Object.assign(Object.assign({},ke.current),{nativeElement:Ie.current}));const Te=g.useMemo(()=>typeof h=="function"?h:Ot=>Ot==null?void 0:Ot[h],[h]),[pe]=oft(Z,xe,Te),Se={},Ee=function(Ot,lt){let st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ht,ot,Tt;const Ft=Object.assign(Object.assign({},Se),Ot);st&&((Ht=Se.resetPagination)===null||Ht===void 0||Ht.call(Se),!((ot=Ft.pagination)===null||ot===void 0)&&ot.current&&(Ft.pagination.current=1),f&&f.onChange&&f.onChange(1,(Tt=Ft.pagination)===null||Tt===void 0?void 0:Tt.pageSize)),O&&O.scrollToFirstRowOnChange!==!1&&de.body.current&&lVe(0,{getContainer:()=>de.body.current}),x==null||x(Ft.pagination,Ft.filters,Ft.sorter,{currentDataSource:P6(B6(Z,Ft.sorterStates,xe),Ft.filterStates,xe),action:lt})},we=(Ot,lt)=>{Ee({sorter:Ot,sorterStates:lt},"sort",!1)},[ue,Ae,_e,Re]=bft({prefixCls:K,mergedColumns:B,onSorterChange:we,sortDirections:R||["ascend","descend"],tableLocale:J,showSorterTooltip:_}),Be=g.useMemo(()=>B6(Z,Ae,xe),[Z,Ae]);Se.sorter=Re(),Se.sorterStates=Ae;const Me=(Ot,lt)=>{Ee({filters:Ot,filterStates:lt},"filter",!0)},[$e,Fe,He]=ift({prefixCls:K,locale:J,dropdownPrefixCls:ee,mergedColumns:B,onFilterChange:Me,getPopupContainer:E||W,rootClassName:ie(o,te)}),Le=P6(Be,Fe,xe);Se.filters=He,Se.filterStates=Fe;const Ke=g.useMemo(()=>{const Ot={};return Object.keys(He).forEach(lt=>{He[lt]!==null&&(Ot[lt]=He[lt])}),Object.assign(Object.assign({},_e),{filters:Ot})},[_e,He]),[ft]=xft(Ke),gt=(Ot,lt)=>{Ee({pagination:Object.assign(Object.assign({},Se.pagination),{current:Ot,pageSize:lt})},"paginate")},[Nt,Je]=uft(Le.length,gt,f);Se.pagination=f===!1?{}:sft(Nt,f),Se.resetPagination=Je;const je=g.useMemo(()=>{if(f===!1||!Nt.pageSize)return Le;const{current:Ot=1,total:lt,pageSize:st=Vbe}=Nt;return Le.lengthst?Le.slice((Ot-1)*st,Ot*st):Le:Le.slice((Ot-1)*st,Ot*st)},[!!f,Le,Nt&&Nt.current,Nt&&Nt.pageSize,Nt&&Nt.total]),[Ze,Xe]=Wct({prefixCls:K,data:Le,pageData:je,getRowKey:Te,getRecordByKey:pe,expandType:me,childrenColumnName:xe,locale:J,getPopupContainer:E||W},p),Ye=(Ot,lt,st)=>{let Ht;return typeof m=="function"?Ht=ie(m(Ot,lt,st)):Ht=ie(m),ie({[`${K}-row-selected`]:Xe.has(Te(Ot,lt))},Ht)};ge.__PARENT_RENDER_ICON__=ge.expandIcon,ge.expandIcon=ge.expandIcon||C||Yct(J),me==="nest"&&ge.expandIconColumnIndex===void 0?ge.expandIconColumnIndex=p?1:0:ge.expandIconColumnIndex>0&&p&&(ge.expandIconColumnIndex-=1),typeof ge.indentSize!="number"&&(ge.indentSize=typeof A=="number"?A:15);const at=g.useCallback(Ot=>ft(Ze($e(ue(Ot)))),[ue,$e,Ze]);let It,Bt;if(f!==!1&&(Nt!=null&&Nt.total)){let Ot;Nt.size?Ot=Nt.size:Ot=Y==="small"||Y==="middle"?"small":void 0;const lt=ot=>g.createElement(abe,Object.assign({},Nt,{className:ie(`${K}-pagination ${K}-pagination-${ot}`,Nt.className),size:Ot})),st=j==="rtl"?"left":"right",{position:Ht}=Nt;if(Ht!==null&&Array.isArray(Ht)){const ot=Ht.find(an=>an.includes("top")),Tt=Ht.find(an=>an.includes("bottom")),Ft=Ht.every(an=>`${an}`=="none");!ot&&!Tt&&!Ft&&(Bt=lt(st)),ot&&(It=lt(ot.toLowerCase().replace("top",""))),Tt&&(Bt=lt(Tt.toLowerCase().replace("bottom","")))}else Bt=lt(st)}let tt;typeof S=="boolean"?tt={spinning:S}:typeof S=="object"&&(tt=Object.assign({spinning:!0},S));const ut=ie(ve,te,`${K}-wrapper`,z==null?void 0:z.className,{[`${K}-wrapper-rtl`]:j==="rtl"},i,o,se),wt=Object.assign(Object.assign({},z==null?void 0:z.style),l),Pt=N&&N.emptyText||(V==null?void 0:V("Table"))||g.createElement(D7,{componentName:"Table"}),Yt=L?Sft:Eft,Kt={},tn=g.useMemo(()=>{const{fontSize:Ot,lineHeight:lt,padding:st,paddingXS:Ht,paddingSM:ot}=ae,Tt=Math.floor(Ot*lt);switch(Y){case"large":return st*2+Tt;case"small":return Ht*2+Tt;default:return ot*2+Tt}},[ae,Y]);return L&&(Kt.listItemHeight=tn),re(g.createElement("div",{ref:Ie,className:ut,style:wt},g.createElement(My,Object.assign({spinning:!1},tt),It,g.createElement(Yt,Object.assign({},Kt,F,{ref:ke,columns:B,direction:j,expandable:ge,prefixCls:K,className:ie({[`${K}-middle`]:Y==="middle",[`${K}-small`]:Y==="small",[`${K}-bordered`]:u,[`${K}-empty`]:Z.length===0},ve,te,se),data:je,rowKey:Te,rowClassName:Ye,emptyText:Pt,internalHooks:GS,internalRefs:de,transformColumns:at,getContainerWidth:Ce})),Bt)))},rpt=g.forwardRef(npt),apt=(e,t)=>{const n=g.useRef(0);return n.current+=1,g.createElement(rpt,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Jd=g.forwardRef(apt);Jd.SELECTION_COLUMN=yf;Jd.EXPAND_COLUMN=If;Jd.SELECTION_ALL=N6;Jd.SELECTION_INVERT=D6;Jd.SELECTION_NONE=M6;Jd.Column=Mct;Jd.ColumnGroup=$ct;Jd.Summary=ybe;const hd=Jd,ipt=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:i}=e,o=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},In(e)),{display:"inline-block",height:"auto",paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},z9=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return pn(e,{tagFontSize:a,tagLineHeight:ne(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},H9=e=>({defaultBg:new Wn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),qbe=On("Tag",e=>{const t=z9(e);return ipt(t)},H9);var opt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:i,onChange:o,onClick:l}=e,s=opt(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:c}=g.useContext(dt),d=y=>{o==null||o(!i),l==null||l(y)},f=u("tag",n),[p,h,m]=qbe(f),v=ie(f,`${f}-checkable`,{[`${f}-checkable-checked`]:i},c==null?void 0:c.className,a,h,m);return p(g.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),c==null?void 0:c.style),className:v,onClick:d})))}),spt=lpt,upt=e=>Hk(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:i,darkColor:o}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),cpt=Vg(["Tag","preset"],e=>{const t=z9(e);return upt(t)},H9);function dpt(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const e2=(e,t,n)=>{const r=dpt(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},fpt=Vg(["Tag","status"],e=>{const t=z9(e);return[e2(t,"success","Success"),e2(t,"processing","Info"),e2(t,"error","Error"),e2(t,"warning","Warning")]},H9);var ppt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:i,children:o,icon:l,color:s,onClose:u,closeIcon:c,closable:d,bordered:f=!0}=e,p=ppt(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:m,tag:v}=g.useContext(dt),[y,b]=g.useState(!0);g.useEffect(()=>{"visible"in p&&b(p.visible)},[p.visible]);const x=sR(s),E=oQe(s),S=x||E,C=Object.assign(Object.assign({backgroundColor:s&&!S?s:void 0},v==null?void 0:v.style),i),w=h("tag",n),[I,T,A]=qbe(w),O=ie(w,v==null?void 0:v.className,{[`${w}-${s}`]:S,[`${w}-has-color`]:s&&!S,[`${w}-hidden`]:!y,[`${w}-rtl`]:m==="rtl",[`${w}-borderless`]:!f},r,a,T,A),R=P=>{P.stopPropagation(),u==null||u(P),!P.defaultPrevented&&b(!1)},[,N]=x7({closable:d,closeIcon:c??(v==null?void 0:v.closeIcon),customCloseIconRender:P=>P===null?g.createElement(Gu,{className:`${w}-close-icon`,onClick:R}):g.createElement("span",{className:`${w}-close-icon`,onClick:R},P),defaultCloseIcon:null,defaultClosable:!1}),_=typeof p.onClick=="function"||o&&o.type==="a",L=l||null,$=L?g.createElement(g.Fragment,null,L,o&&g.createElement("span",null,o)):o,k=g.createElement("span",Object.assign({},p,{ref:t,className:O,style:C}),$,N,x&&g.createElement(cpt,{key:"preset",prefixCls:w}),E&&g.createElement(fpt,{key:"status",prefixCls:w}));return I(_?g.createElement(qk,{component:"Tag"},k):k)},Ybe=g.forwardRef(hpt);Ybe.CheckableTag=spt;const YS=Ybe,gpt=e=>{const t=e!=null&&e.algorithm?D0(e.algorithm):D0(wS),n=Object.assign(Object.assign({},$0),e==null?void 0:e.token);return Lhe(n,{override:e==null?void 0:e.token},t,o7)},mpt=gpt;function vpt(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const ypt=(e,t)=>{const n=t??wS(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),vpt(t??e)),sge(r)),{controlHeight:a}),oge(Object.assign(Object.assign({},n),{controlHeight:a})))},bpt=ypt,nd=(e,t)=>new Wn(e).setAlpha(t).toRgbString(),Pm=(e,t)=>new Wn(e).lighten(t).toHexString(),xpt=e=>{const t=$u(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Ept=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:nd(r,.85),colorTextSecondary:nd(r,.65),colorTextTertiary:nd(r,.45),colorTextQuaternary:nd(r,.25),colorFill:nd(r,.18),colorFillSecondary:nd(r,.12),colorFillTertiary:nd(r,.08),colorFillQuaternary:nd(r,.04),colorBgElevated:Pm(n,12),colorBgContainer:Pm(n,8),colorBgLayout:Pm(n,0),colorBgSpotlight:Pm(n,26),colorBgBlur:nd(r,.04),colorBorder:Pm(n,26),colorBorderSecondary:Pm(n,19)}},Spt=(e,t)=>{const n=Object.keys(r7).map(a=>{const i=$u(e[a],{theme:"dark"});return new Array(10).fill(1).reduce((o,l,s)=>(o[`${a}-${s+1}`]=i[s],o[`${a}${s+1}`]=i[s],o),{})}).reduce((a,i)=>(a=Object.assign(Object.assign({},a),i),a),{}),r=t??wS(e);return Object.assign(Object.assign(Object.assign({},r),n),lge(e,{generateColorPalettes:xpt,generateNeutralColorPalettes:Ept}))},Cpt=Spt;function wpt(){const[e,t,n]=Ka();return{theme:e,token:t,hashId:n}}const Na={defaultConfig:uE,defaultSeed:uE.token,useToken:wpt,defaultAlgorithm:wS,darkAlgorithm:Cpt,compactAlgorithm:bpt,getDesignToken:mpt};var Tpt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Kbe=Tpt;var Apt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Kbe}))};const Xbe=g.forwardRef(Apt);var Ipt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=u=>{const{keyCode:c}=u;c===Ve.ENTER&&u.preventDefault()},r=u=>{const{keyCode:c}=u,{onClick:d}=e;c===Ve.ENTER&&d&&d()},{style:a,noStyle:i,disabled:o}=e,l=Ipt(e,["style","noStyle","disabled"]);let s={};return i||(s=Object.assign({},Opt)),o&&(s.pointerEvents="none"),s=Object.assign(Object.assign({},s),a),g.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},l,{onKeyDown:n,onKeyUp:r,style:s}))}),Qbe=kpt;var Rpt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const Zbe=Rpt;var _pt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Zbe}))};const Npt=g.forwardRef(_pt);var Dpt=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=Uee[t.format]||Uee.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),o.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");s=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Lpt("message"in t?t.message:$pt),window.prompt(r,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),l&&document.body.removeChild(l),a()}return s}var Fpt=Ppt;const Bpt=Or(Fpt);var zpt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const Hpt=zpt;var jpt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Hpt}))};const Upt=g.forwardRef(jpt),Vpt=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:i}=r;return{marginBottom:a,color:n,fontWeight:i,fontSize:e,lineHeight:t}},Wpt=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + h${r}&, + div&-h${r}, + div&-h${r} > textarea, + h${r} + `]=Vpt(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Gpt=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},l7(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},qpt=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ige[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Ypt=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ne(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Kpt=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Xpt=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Qpt=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Wpt(e)),{[` + & + h1${t}, + & + h2${t}, + & + h3${t}, + & + h4${t}, + & + h5${t} + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),qpt(e)),Gpt(e)),{[` + ${t}-expand, + ${t}-edit, + ${t}-copy + `]:Object.assign(Object.assign({},l7(e)),{marginInlineStart:e.marginXXS})}),Ypt(e)),Kpt(e)),Xpt()),{"&-rtl":{direction:"rtl"}})}},Zpt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Jbe=On("Typography",e=>[Qpt(e)],Zpt),Jpt=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:i,maxLength:o,autoSize:l=!0,value:s,onSave:u,onCancel:c,onEnd:d,component:f,enterIcon:p=g.createElement(Upt,null)}=e,h=g.useRef(null),m=g.useRef(!1),v=g.useRef(),[y,b]=g.useState(s);g.useEffect(()=>{b(s)},[s]),g.useEffect(()=>{if(h.current&&h.current.resizableTextArea){const{textArea:L}=h.current.resizableTextArea;L.focus();const{length:$}=L.value;L.setSelectionRange($,$)}},[]);const x=L=>{let{target:$}=L;b($.value.replace(/[\n\r]/g,""))},E=()=>{m.current=!0},S=()=>{m.current=!1},C=L=>{let{keyCode:$}=L;m.current||(v.current=$)},w=()=>{u(y.trim())},I=L=>{let{keyCode:$,ctrlKey:k,altKey:P,metaKey:B,shiftKey:F}=L;v.current===$&&!m.current&&!k&&!P&&!B&&!F&&($===Ve.ENTER?(w(),d==null||d()):$===Ve.ESC&&c())},T=()=>{w()},A=f?`${t}-${f}`:"",[O,R,N]=Jbe(t),_=ie(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl"},r,A,R,N);return O(g.createElement("div",{className:_,style:a},g.createElement(bye,{ref:h,maxLength:o,value:y,onChange:x,onKeyDown:C,onKeyUp:I,onCompositionStart:E,onCompositionEnd:S,onBlur:T,"aria-label":n,rows:1,autoSize:l}),p!==null?Ta(p,{className:`${t}-edit-content-confirm`}):null))},eht=Jpt;function o4(e,t){return g.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const tht=(e,t)=>{const n=g.useRef(!1);g.useEffect(()=>{n.current?e():n.current=!0},t)},nht=tht;var rht=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:i,setContentRef:o,children:l,direction:s,style:u}=e,c=rht(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,typography:p}=g.useContext(dt),h=s??f;let m=t;o&&(m=uo(t,o));const v=d("typography",n),[y,b,x]=Jbe(v),E=ie(v,p==null?void 0:p.className,{[`${v}-rtl`]:h==="rtl"},a,i,b,x),S=Object.assign(Object.assign({},p==null?void 0:p.style),u);return y(g.createElement(r,Object.assign({className:E,style:S,ref:m},c),l))}),e1e=aht;var iht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const oht=iht;var lht=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:oht}))};const sht=g.forwardRef(lht);function Vee(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function t2(e,t,n){return e===!0||e===void 0?t:e||n&&t}function uht(e){const{prefixCls:t,copied:n,locale:r={},onCopy:a,iconOnly:i,tooltips:o,icon:l}=e,s=Vee(o),u=Vee(l),{copied:c,copy:d}=r,f=n?t2(s[1],c):t2(s[0],d),h=typeof f=="string"?f:n?c:d;return g.createElement(Gs,{key:"copy",title:f},g.createElement(Qbe,{className:ie(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:a,"aria-label":h},n?t2(u[1],g.createElement($7,null),!0):t2(u[0],g.createElement(sht,null),!0)))}const Wee=g.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=g.useRef(null);return g.useImperativeHandle(t,()=>({isExceed:()=>{const i=a.current;return i.scrollHeight>i.clientHeight},getHeight:()=>a.current.clientHeight})),g.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)});function t1e(e){const t=typeof e;return t==="string"||t==="number"}function cht(e){let t=0;return e.forEach(n=>{t1e(n)?t+=String(n).length:t+=1}),t}function Gee(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=s}return e}const l4=0,s4=1,u4=2,qee=3,Yee={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function dht(e){const{enabledMeasure:t,width:n,text:r,children:a,rows:i,miscDeps:o,onEllipsis:l}=e,s=g.useMemo(()=>wi(r),[r]),u=g.useMemo(()=>cht(s),[r]),c=g.useMemo(()=>a(s,!1,!1),[r]),[d,f]=g.useState(null),p=g.useRef(null),h=g.useRef(null),[m,v]=g.useState(l4),[y,b]=g.useState(0);Sn(()=>{v(t&&n&&u?s4:l4)},[n,r,i,t,s]),Sn(()=>{var C,w;if(m===s4){const I=!!(!((C=h.current)===null||C===void 0)&&C.isExceed());v(I?u4:qee),f(I?[0,u]:null),b((((w=h.current)===null||w===void 0?void 0:w.getHeight())||0)+1),l(I)}},[m]);const x=d?Math.ceil((d[0]+d[1])/2):0;Sn(()=>{var C;const[w,I]=d||[0,0];if(w!==I){const A=(((C=p.current)===null||C===void 0?void 0:C.getHeight())||0)>y;let O=x;I-w===1&&(O=A?w:I),f(A?[w,O]:[O,I])}},[d,x]);const E=g.useMemo(()=>{if(m!==u4||!d||d[0]!==d[1]){const C=a(s,!1,!1);return m!==qee&&m!==l4?g.createElement("span",{style:Object.assign(Object.assign({},Yee),{WebkitLineClamp:i})},C):C}return a(Gee(s,d[0]),!0,!0)},[m,d,s].concat(Ue(o))),S={width:n,whiteSpace:"normal",margin:0,padding:0};return g.createElement(g.Fragment,null,E,m===s4&&g.createElement(Wee,{style:Object.assign(Object.assign(Object.assign({},S),Yee),{WebkitLineClamp:i}),ref:h},c),m===u4&&d&&d[0]!==d[1]&&g.createElement(Wee,{style:Object.assign(Object.assign({},S),{top:400}),ref:p},a(Gee(s,x),!0,!0)))}const fht=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:g.createElement(Gs,Object.assign({open:n?void 0:!1},a),r)},pht=fht;var hht=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a;const{prefixCls:i,className:o,style:l,type:s,disabled:u,children:c,ellipsis:d,editable:f,copyable:p,component:h,title:m}=e,v=hht(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:b}=g.useContext(dt),[x]=Wu("Text"),E=g.useRef(null),S=g.useRef(null),C=y("typography",i),w=Dr(v,["mark","code","delete","underline","strong","keyboard","italic"]),[I,T]=o4(f),[A,O]=or(!1,{value:T.editing}),{triggerType:R=["icon"]}=T,N=Le=>{var Ke;Le&&((Ke=T.onStart)===null||Ke===void 0||Ke.call(T)),O(Le)};nht(()=>{var Le;A||(Le=S.current)===null||Le===void 0||Le.focus()},[A]);const _=Le=>{Le==null||Le.preventDefault(),N(!0)},L=Le=>{var Ke;(Ke=T.onChange)===null||Ke===void 0||Ke.call(T,Le),N(!1)},$=()=>{var Le;(Le=T.onCancel)===null||Le===void 0||Le.call(T),N(!1)},[k,P]=o4(p),[B,F]=g.useState(!1),D=g.useRef(null),j={};P.format&&(j.format=P.format);const z=()=>{D.current&&clearTimeout(D.current)},V=Le=>{var Ke;Le==null||Le.preventDefault(),Le==null||Le.stopPropagation(),Bpt(P.text||String(c)||"",j),F(!0),z(),D.current=setTimeout(()=>{F(!1)},3e3),(Ke=P.onCopy)===null||Ke===void 0||Ke.call(P,Le)};g.useEffect(()=>z,[]);const[G,W]=g.useState(!1),[Y,J]=g.useState(!1),[Z,K]=g.useState(!1),[ee,ae]=g.useState(!1),[te,re]=g.useState(!1),[se,ve]=g.useState(!0),[ge,xe]=o4(d,{expandable:!1}),me=ge&&!Z,{rows:de=1}=xe,Ce=g.useMemo(()=>!me||xe.suffix!==void 0||xe.onEllipsis||xe.expandable||I||k,[me,xe,I,k]);Sn(()=>{ge&&!Ce&&(W(qP("webkitLineClamp")),J(qP("textOverflow")))},[Ce,ge]);const Ie=g.useMemo(()=>Ce?!1:de===1?Y:G,[Ce,Y,G]),ke=me&&(Ie?te:ee),Te=me&&de===1&&Ie,pe=me&&de>1&&Ie,Se=Le=>{var Ke;K(!0),(Ke=xe.onExpand)===null||Ke===void 0||Ke.call(xe,Le)},[Ee,we]=g.useState(0),ue=Le=>{let{offsetWidth:Ke}=Le;we(Ke)},Ae=Le=>{var Ke;ae(Le),ee!==Le&&((Ke=xe.onEllipsis)===null||Ke===void 0||Ke.call(xe,Le))};g.useEffect(()=>{const Le=E.current;if(ge&&Ie&&Le){const Ke=pe?Le.offsetHeight{const Le=E.current;if(typeof IntersectionObserver>"u"||!Le||!Ie||!me)return;const Ke=new IntersectionObserver(()=>{ve(!!Le.offsetParent)});return Ke.observe(Le),()=>{Ke.disconnect()}},[Ie,me]);let _e={};xe.tooltip===!0?_e={title:(n=T.text)!==null&&n!==void 0?n:c}:g.isValidElement(xe.tooltip)?_e={title:xe.tooltip}:typeof xe.tooltip=="object"?_e=Object.assign({title:(r=T.text)!==null&&r!==void 0?r:c},xe.tooltip):_e={title:xe.tooltip};const Re=g.useMemo(()=>{const Le=Ke=>["string","number"].includes(typeof Ke);if(!(!ge||Ie)){if(Le(T.text))return T.text;if(Le(c))return c;if(Le(m))return m;if(Le(_e.title))return _e.title}},[ge,Ie,m,_e.title,ke]);if(A)return g.createElement(eht,{value:(a=T.text)!==null&&a!==void 0?a:typeof c=="string"?c:"",onSave:L,onCancel:$,onEnd:T.onEnd,prefixCls:C,className:o,style:l,direction:b,component:h,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Be=()=>{const{expandable:Le,symbol:Ke}=xe;if(!Le)return null;let ft;return Ke?ft=Ke:ft=x==null?void 0:x.expand,g.createElement("a",{key:"expand",className:`${C}-expand`,onClick:Se,"aria-label":x==null?void 0:x.expand},ft)},Me=()=>{if(!I)return;const{icon:Le,tooltip:Ke}=T,ft=wi(Ke)[0]||(x==null?void 0:x.edit),gt=typeof ft=="string"?ft:"";return R.includes("icon")?g.createElement(Gs,{key:"edit",title:Ke===!1?"":ft},g.createElement(Qbe,{ref:S,className:`${C}-edit`,onClick:_,"aria-label":gt},Le||g.createElement(Npt,{role:"button"}))):null},$e=()=>k?g.createElement(uht,Object.assign({key:"copy"},P,{prefixCls:C,copied:B,locale:x,onCopy:V,iconOnly:c==null})):null,Fe=Le=>[Le&&Be(),Me(),$e()],He=Le=>[Le&&g.createElement("span",{"aria-hidden":!0,key:"ellipsis"},mht),xe.suffix,Fe(Le)];return g.createElement(Si,{onResize:ue,disabled:!me},Le=>g.createElement(pht,{tooltipProps:_e,enabledEllipsis:me,isEllipsis:ke},g.createElement(e1e,Object.assign({className:ie({[`${C}-${s}`]:s,[`${C}-disabled`]:u,[`${C}-ellipsis`]:ge,[`${C}-single-line`]:me&&de===1,[`${C}-ellipsis-single-line`]:Te,[`${C}-ellipsis-multiple-line`]:pe},o),prefixCls:i,style:Object.assign(Object.assign({},l),{WebkitLineClamp:pe?de:void 0}),component:h,ref:uo(Le,E,t),direction:b,onClick:R.includes("text")?_:void 0,"aria-label":Re==null?void 0:Re.toString(),title:m},w),g.createElement(dht,{enabledMeasure:me&&!Ie,text:c,rows:de,width:Ee,onEllipsis:Ae,miscDeps:[B,Z]},(Ke,ft)=>{let gt=Ke;return Ke.length&&ft&&Re&&(gt=g.createElement("span",{key:"show-content","aria-hidden":!0},gt)),ght(e,g.createElement(g.Fragment,null,gt,He(ft)))}))))}),MR=vht;var yht=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n,rel:r}=e,a=yht(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,g.createElement(MR,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),xht=bht,Eht=g.forwardRef((e,t)=>g.createElement(MR,Object.assign({ref:t},e,{component:"div"}))),Sht=Eht;var Cht=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n}=e,r=Cht(e,["ellipsis"]);const a=g.useMemo(()=>n&&typeof n=="object"?Dr(n,["expandable","rows"]):n,[n]);return g.createElement(MR,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},Tht=g.forwardRef(wht);var Aht=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1}=e,r=Aht(e,["level"]);let a;return Iht.includes(n)?a=`h${n}`:a="h1",g.createElement(MR,Object.assign({ref:t},r,{component:a}))}),kht=Oht,KS=e1e;KS.Text=Tht;KS.Link=xht;KS.Title=kht;KS.Paragraph=Sht;const wr=KS,c4=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return n.some(function(o){var l=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(l.charAt(0)==="."){var s=r.toLowerCase(),u=l.toLowerCase(),c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(function(d){return s.endsWith(d)})}return/\/\*$/.test(l)?i===l.replace(/\/.*$/,""):a===l?!0:/^\w+$/.test(l)?(Rr(!1,"Upload takes an invalidate 'accept' type '".concat(l,"'.Skip for check.")),!0):!1})}return!0};function Rht(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function Kee(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function _ht(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var i=e.data[a];if(Array.isArray(i)){i.forEach(function(o){n.append("".concat(a,"[]"),o)});return}n.append(a,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Rht(e,t),Kee(t)):e.onSuccess(Kee(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}function Nht(e,t){var n=e.createReader(),r=[];function a(){n.readEntries(function(i){var o=Array.prototype.slice.apply(i);r=r.concat(o);var l=!o.length;l?t(r):a()})}a()}var Dht=function(t,n,r){var a=function i(o,l){o&&(o.path=l||"",o.isFile?o.file(function(s){r(s)&&(o.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),n([s]))}):o.isDirectory&&Nht(o,function(s){s.forEach(function(u){i(u,"".concat(l).concat(o.name,"/"))})}))};t.forEach(function(i){a(i.webkitGetAsEntry())})},Mht=+new Date,$ht=0;function d4(){return"rc-upload-".concat(Mht,"-").concat(++$ht)}var Lht=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Pht=function(e){Vu(n,e);var t=Xd(n);function n(){var r;Pa(this,n);for(var a=arguments.length,i=new Array(a),o=0;o{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${t}-disabled):hover, + &-hover:not(${t}-disabled) + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ne(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},Bht=Fht,zht=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:a,lineHeight:i,calc:o}=e,l=`${t}-list-item`,s=`${l}-actions`,u=`${l}-action`,c=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Lu()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:o(e.lineHeight).mul(a).equal(),marginTop:e.marginXS,fontSize:a,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},Ps),{padding:`0 ${ne(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{[u]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + ${u}:focus-visible, + &.picture ${u} + `]:{opacity:1},[`${u}${n}-btn`]:{height:c,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:a},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(a).add(e.paddingXS).equal(),fontSize:a,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${u}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Hht=zht,Xee=new gn("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Qee=new gn("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),jht=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Xee},[`${n}-leave`]:{animationName:Qee}}},{[`${t}-wrapper`]:T7(e)},Xee,Qee]},Uht=jht,Vht=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:i}=e,o=`${t}-list`,l=`${o}-item`;return{[`${t}-wrapper`]:{[` + ${o}${o}-picture, + ${o}${o}-picture-card, + ${o}${o}-picture-circle + `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},Ps),{width:r,height:r,lineHeight:ne(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:a,width:`calc(100% - ${ne(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${EI[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${EI.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:a}}},[`${o}${o}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},Wht=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:i}=e,o=`${t}-list`,l=`${o}-item`,s=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},Lu()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{[`${o}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${ne(e.marginXS)}`,marginInline:`0 ${ne(e.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + ${n}-eye, + ${n}-download, + ${n}-delete + `]:{zIndex:10,width:r,margin:`0 ${ne(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ne(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Ght=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},qht=Ght,Yht=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},In(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Kht=e=>({actionsColor:e.colorTextDescription}),Xht=On("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:i}=e,o=pn(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(a).mul(2.55).equal()});return[Yht(o),Bht(o),Vht(o),Wht(o),Hht(o),Uht(o),qht(o),eR(o)]},Kht);var Qht={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const Zht=Qht;var Jht=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Zht}))};const egt=g.forwardRef(Jht);var tgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const ngt=tgt;var rgt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:ngt}))};const agt=g.forwardRef(rgt);var igt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const ogt=igt;var lgt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:ogt}))};const sgt=g.forwardRef(lgt);function n2(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function r2(e,t){const n=Ue(t),r=n.findIndex(a=>{let{uid:i}=a;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function p4(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function ugt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const cgt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},n1e=e=>e.indexOf("image/")===0,dgt=e=>{if(e.type&&!e.thumbUrl)return n1e(e.type);const t=e.thumbUrl||e.url||"",n=cgt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},df=200;function fgt(e){return new Promise(t=>{if(!e.type||!n1e(e.type)){t("");return}const n=document.createElement("canvas");n.width=df,n.height=df,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${df}px; height: ${df}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:o}=a;let l=df,s=df,u=0,c=0;i>o?(s=o*(df/i),c=-(s-l)/2):(l=i*(df/o),u=-(l-s)/2),r.drawImage(a,u,c,l,s);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(d)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var pgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const hgt=pgt;var ggt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:hgt}))};const mgt=g.forwardRef(ggt),vgt=g.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:i,listType:o,file:l,items:s,progress:u,iconRender:c,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:m,showDownloadIcon:v,previewIcon:y,removeIcon:b,downloadIcon:x,onPreview:E,onDownload:S,onClose:C}=e;var w,I;const{status:T}=l,[A,O]=g.useState(T);g.useEffect(()=>{T!=="removed"&&O(T)},[T]);const[R,N]=g.useState(!1);g.useEffect(()=>{const K=setTimeout(()=>{N(!0)},300);return()=>{clearTimeout(K)}},[]);const _=c(l);let L=g.createElement("div",{className:`${n}-icon`},_);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(A==="uploading"||!l.thumbUrl&&!l.url){const K=ie(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:A!=="uploading"});L=g.createElement("div",{className:K},_)}else{const K=p!=null&&p(l)?g.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${n}-list-item-image`,crossOrigin:l.crossOrigin}):_,ee=ie(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(l)});L=g.createElement("a",{className:ee,onClick:ae=>E(l,ae),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},K)}const $=ie(`${n}-list-item`,`${n}-list-item-${A}`),k=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,P=m?d((typeof b=="function"?b(l):b)||g.createElement(Xbe,null),()=>C(l),n,i.removeFile,!0):null,B=v&&A==="done"?d((typeof x=="function"?x(l):x)||g.createElement(mgt,null),()=>S(l),n,i.downloadFile):null,F=o!=="picture-card"&&o!=="picture-circle"&&g.createElement("span",{key:"download-delete",className:ie(`${n}-list-item-actions`,{picture:o==="picture"})},B,P),D=ie(`${n}-list-item-name`),j=l.url?[g.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:D,title:l.name},k,{href:l.url,onClick:K=>E(l,K)}),l.name),F]:[g.createElement("span",{key:"view",className:D,onClick:K=>E(l,K),title:l.name},l.name),F],z=h&&(l.url||l.thumbUrl)?g.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:K=>E(l,K),title:i.previewFile},typeof y=="function"?y(l):y||g.createElement(AR,null)):null,V=(o==="picture-card"||o==="picture-circle")&&A!=="uploading"&&g.createElement("span",{className:`${n}-list-item-actions`},z,A==="done"&&B,P),{getPrefixCls:G}=g.useContext(dt),W=G(),Y=g.createElement("div",{className:$},L,j,V,R&&g.createElement(io,{motionName:`${W}-fade`,visible:A==="uploading",motionDeadline:2e3},K=>{let{className:ee}=K;const ae="percent"in l?g.createElement(O9,Object.assign({},u,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return g.createElement("div",{className:ie(`${n}-list-item-progress`,ee)},ae)})),J=l.response&&typeof l.response=="string"?l.response:((w=l.error)===null||w===void 0?void 0:w.statusText)||((I=l.error)===null||I===void 0?void 0:I.message)||i.uploadError,Z=A==="error"?g.createElement(Gs,{title:J,getPopupContainer:K=>K.parentNode},Y):Y;return g.createElement("div",{className:ie(`${n}-list-item-container`,r),style:a,ref:t},f?f(Z,l,s,{download:S.bind(null,l),preview:E.bind(null,l),remove:C.bind(null,l)}):Z)}),ygt=vgt,bgt=(e,t)=>{const{listType:n="text",previewFile:r=fgt,onPreview:a,onDownload:i,onRemove:o,locale:l,iconRender:s,isImageUrl:u=dgt,prefixCls:c,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:h=!1,removeIcon:m,previewIcon:v,downloadIcon:y,progress:b={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:E=!0,itemRender:S,disabled:C}=e,w=L7(),[I,T]=g.useState(!1);g.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(d||[]).forEach(z=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(z.originFileObj instanceof File||z.originFileObj instanceof Blob)||z.thumbUrl!==void 0||(z.thumbUrl="",r&&r(z.originFileObj).then(V=>{z.thumbUrl=V||"",w()}))})},[n,d,r]),g.useEffect(()=>{T(!0)},[]);const A=(z,V)=>{if(a)return V==null||V.preventDefault(),a(z)},O=z=>{typeof i=="function"?i(z):z.url&&window.open(z.url)},R=z=>{o==null||o(z)},N=z=>{if(s)return s(z,n);const V=z.status==="uploading",G=u&&u(z)?g.createElement(sgt,null):g.createElement(egt,null);let W=V?g.createElement(vg,null):g.createElement(agt,null);return n==="picture"?W=V?g.createElement(vg,null):G:(n==="picture-card"||n==="picture-circle")&&(W=V?l.uploading:G),W},_=(z,V,G,W,Y)=>{const J={type:"text",size:"small",title:W,onClick:Z=>{var K,ee;V(),g.isValidElement(z)&&((ee=(K=z.props).onClick)===null||ee===void 0||ee.call(K,Z))},className:`${G}-list-item-action`};if(Y&&(J.disabled=C),g.isValidElement(z)){const Z=Ta(z,Object.assign(Object.assign({},z.props),{onClick:()=>{}}));return g.createElement(nn,Object.assign({},J,{icon:Z}))}return g.createElement(nn,Object.assign({},J),g.createElement("span",null,z))};g.useImperativeHandle(t,()=>({handlePreview:A,handleDownload:O}));const{getPrefixCls:L}=g.useContext(dt),$=L("upload",c),k=L(),P=ie(`${$}-list`,`${$}-list-${n}`),B=Ue(d.map(z=>({key:z.uid,file:z})));let D={motionDeadline:2e3,motionName:`${$}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:B,motionAppear:I};const j=g.useMemo(()=>{const z=Object.assign({},dE(k));return delete z.onAppearEnd,delete z.onEnterEnd,delete z.onLeaveEnd,z},[k]);return n!=="picture-card"&&n!=="picture-circle"&&(D=Object.assign(Object.assign({},j),D)),g.createElement("div",{className:P},g.createElement(c7,Object.assign({},D,{component:!1}),z=>{let{key:V,file:G,className:W,style:Y}=z;return g.createElement(ygt,{key:V,locale:l,prefixCls:$,className:W,style:Y,file:G,items:d,progress:b,listType:n,isImgUrl:u,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:h,removeIcon:m,previewIcon:v,downloadIcon:y,iconRender:N,actionIconRender:_,itemRender:S,onPreview:A,onDownload:O,onClose:R})}),x&&g.createElement(io,Object.assign({},D,{visible:E,forceRender:!0}),z=>{let{className:V,style:G}=z;return Ta(x,W=>({className:ie(W.className,V),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:V?"none":void 0}),W.style)}))}))},xgt=g.forwardRef(bgt),Egt=xgt;var Sgt=globalThis&&globalThis.__awaiter||function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function s(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})};const I1=`__LIST_IGNORE_${Date.now()}__`,Cgt=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:i=!0,listType:o="text",onPreview:l,onDownload:s,onChange:u,onDrop:c,previewFile:d,disabled:f,locale:p,iconRender:h,isImageUrl:m,progress:v,prefixCls:y,className:b,type:x="select",children:E,style:S,itemRender:C,maxCount:w,data:I={},multiple:T=!1,hasControlInside:A=!0,action:O="",accept:R="",supportServerRender:N=!0,rootClassName:_}=e,L=g.useContext(Ws),$=f??L,[k,P]=or(r||[],{value:n,postState:Re=>Re??[]}),[B,F]=g.useState("drop"),D=g.useRef(null);g.useMemo(()=>{const Re=Date.now();(n||[]).forEach((Be,Me)=>{!Be.uid&&!Object.isFrozen(Be)&&(Be.uid=`__AUTO__${Re}_${Me}__`)})},[n]);const j=(Re,Be,Me)=>{let $e=Ue(Be),Fe=!1;w===1?$e=$e.slice(-1):w&&(Fe=$e.length>w,$e=$e.slice(0,w)),di.flushSync(()=>{P($e)});const He={file:Re,fileList:$e};Me&&(He.event=Me),(!Fe||$e.some(Le=>Le.uid===Re.uid))&&di.flushSync(()=>{u==null||u(He)})},z=(Re,Be)=>Sgt(void 0,void 0,void 0,function*(){const{beforeUpload:Me,transformFile:$e}=e;let Fe=Re;if(Me){const He=yield Me(Re,Be);if(He===!1)return!1;if(delete Re[I1],He===I1)return Object.defineProperty(Re,I1,{value:!0,configurable:!0}),!1;typeof He=="object"&&He&&(Fe=He)}return $e&&(Fe=yield $e(Fe)),Fe}),V=Re=>{const Be=Re.filter(Fe=>!Fe.file[I1]);if(!Be.length)return;const Me=Be.map(Fe=>n2(Fe.file));let $e=Ue(k);Me.forEach(Fe=>{$e=r2(Fe,$e)}),Me.forEach((Fe,He)=>{let Le=Fe;if(Be[He].parsedFile)Fe.status="uploading";else{const{originFileObj:Ke}=Fe;let ft;try{ft=new File([Ke],Ke.name,{type:Ke.type})}catch{ft=new Blob([Ke],{type:Ke.type}),ft.name=Ke.name,ft.lastModifiedDate=new Date,ft.lastModified=new Date().getTime()}ft.uid=Fe.uid,Le=ft}j(Le,$e)})},G=(Re,Be,Me)=>{try{typeof Re=="string"&&(Re=JSON.parse(Re))}catch{}if(!p4(Be,k))return;const $e=n2(Be);$e.status="done",$e.percent=100,$e.response=Re,$e.xhr=Me;const Fe=r2($e,k);j($e,Fe)},W=(Re,Be)=>{if(!p4(Be,k))return;const Me=n2(Be);Me.status="uploading",Me.percent=Re.percent;const $e=r2(Me,k);j(Me,$e,Re)},Y=(Re,Be,Me)=>{if(!p4(Me,k))return;const $e=n2(Me);$e.error=Re,$e.response=Be,$e.status="error";const Fe=r2($e,k);j($e,Fe)},J=Re=>{let Be;Promise.resolve(typeof a=="function"?a(Re):a).then(Me=>{var $e;if(Me===!1)return;const Fe=ugt(Re,k);Fe&&(Be=Object.assign(Object.assign({},Re),{status:"removed"}),k==null||k.forEach(He=>{const Le=Be.uid!==void 0?"uid":"name";He[Le]===Be[Le]&&!Object.isFrozen(He)&&(He.status="removed")}),($e=D.current)===null||$e===void 0||$e.abort(Be),j(Be,Fe))})},Z=Re=>{F(Re.type),Re.type==="drop"&&(c==null||c(Re))};g.useImperativeHandle(t,()=>({onBatchStart:V,onSuccess:G,onProgress:W,onError:Y,fileList:k,upload:D.current}));const{getPrefixCls:K,direction:ee,upload:ae}=g.useContext(dt),te=K("upload",y),re=Object.assign(Object.assign({onBatchStart:V,onError:Y,onProgress:W,onSuccess:G},e),{data:I,multiple:T,action:O,accept:R,supportServerRender:N,prefixCls:te,disabled:$,beforeUpload:z,onChange:void 0,hasControlInside:A});delete re.className,delete re.style,(!E||$)&&delete re.id;const se=`${te}-wrapper`,[ve,ge,xe]=Xht(te,se),[me]=Wu("Upload",ns.Upload),{showRemoveIcon:de,showPreviewIcon:Ce,showDownloadIcon:Ie,removeIcon:ke,previewIcon:Te,downloadIcon:pe}=typeof i=="boolean"?{}:i,Se=typeof de>"u"?!$:!!de,Ee=(Re,Be)=>i?g.createElement(Egt,{prefixCls:te,listType:o,items:k,previewFile:d,onPreview:l,onDownload:s,onRemove:J,showRemoveIcon:Se,showPreviewIcon:Ce,showDownloadIcon:Ie,removeIcon:ke,previewIcon:Te,downloadIcon:pe,iconRender:h,locale:Object.assign(Object.assign({},me),p),isImageUrl:m,progress:v,appendAction:Re,appendActionVisible:Be,itemRender:C,disabled:$}):Re,we=ie(se,b,_,ge,xe,ae==null?void 0:ae.className,{[`${te}-rtl`]:ee==="rtl",[`${te}-picture-card-wrapper`]:o==="picture-card",[`${te}-picture-circle-wrapper`]:o==="picture-circle"}),ue=Object.assign(Object.assign({},ae==null?void 0:ae.style),S);if(x==="drag"){const Re=ie(ge,te,`${te}-drag`,{[`${te}-drag-uploading`]:k.some(Be=>Be.status==="uploading"),[`${te}-drag-hover`]:B==="dragover",[`${te}-disabled`]:$,[`${te}-rtl`]:ee==="rtl"});return ve(g.createElement("span",{className:we},g.createElement("div",{className:Re,style:ue,onDrop:Z,onDragOver:Z,onDragLeave:Z},g.createElement(z6,Object.assign({},re,{ref:D,className:`${te}-btn`}),g.createElement("div",{className:`${te}-drag-container`},E))),Ee()))}const Ae=ie(te,`${te}-select`,{[`${te}-disabled`]:$}),_e=g.createElement("div",{className:Ae,style:E?void 0:{display:"none"}},g.createElement(z6,Object.assign({},re,{ref:D})));return ve(o==="picture-card"||o==="picture-circle"?g.createElement("span",{className:we},Ee(_e,!!E)):g.createElement("span",{className:we},_e,Ee()))},wgt=g.forwardRef(Cgt),r1e=wgt;var Tgt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{style:n,height:r,hasControlInside:a=!1}=e,i=Tgt(e,["style","height","hasControlInside"]);return g.createElement(r1e,Object.assign({ref:t,hasControlInside:a},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),Igt=Agt,j9=r1e;j9.Dragger=Igt;j9.LIST_IGNORE=I1;const Ogt=j9;var H6=function(e,t){return H6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},H6(e,t)};function De(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");H6(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var U=function(){return U=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $t(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function SE(){for(var e=0,t=0,n=arguments.length;tl-1&&(A=l-1),T<0&&(A=0),f(A)},w=function(T){return T===d?!0:T0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t},{})}function j6(e,t,n){return n?M.createElement(e.tag,Q(Q({key:t},Jee(e.attrs)),n),(e.children||[]).map(function(r,a){return j6(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):M.createElement(e.tag,Q({key:t},Jee(e.attrs)),(e.children||[]).map(function(r,a){return j6(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function i1e(e){return $u(e)[0]}function o1e(e){return e?Array.isArray(e)?e:[e]:[]}var Ngt=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,Dgt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ngt,n=g.useContext(a1e),r=n.csp,a=n.prefixCls,i=t;a&&(i=i.replace(/anticon/g,a)),g.useEffect(function(){Pd(i,"@ant-design-icons",{prepend:!0,csp:r})},[])},Mgt=["icon","className","onClick","style","primaryColor","secondaryColor"],fx={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $gt(e){var t=e.primaryColor,n=e.secondaryColor;fx.primaryColor=t,fx.secondaryColor=n||i1e(t),fx.calculated=!!n}function Lgt(){return Q({},fx)}var $R=function(t){var n=t.icon,r=t.className,a=t.onClick,i=t.style,o=t.primaryColor,l=t.secondaryColor,s=Lt(t,Mgt),u=fx;if(o&&(u={primaryColor:o,secondaryColor:l||i1e(o)}),Dgt(),_gt(Zee(n),"icon should be icon definiton, but got ".concat(n)),!Zee(n))return null;var c=n;return c&&typeof c.icon=="function"&&(c=Q(Q({},c),{},{icon:c.icon(u.primaryColor,u.secondaryColor)})),j6(c.icon,"svg-".concat(c.name),Q({className:r,onClick:a,style:i,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};$R.displayName="IconReact";$R.getTwoToneColors=Lgt;$R.setTwoToneColors=$gt;const V9=$R;function l1e(e){var t=o1e(e),n=fe(t,2),r=n[0],a=n[1];return V9.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Pgt(){var e=V9.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Fgt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];l1e("#1890ff");var LR=g.forwardRef(function(e,t){var n,r=e.className,a=e.icon,i=e.spin,o=e.rotate,l=e.tabIndex,s=e.onClick,u=e.twoToneColor,c=Lt(e,Fgt),d=g.useContext(a1e),f=d.prefixCls,p=f===void 0?"anticon":f,h=d.rootClassName,m=ie(h,p,(n={},X(n,"".concat(p,"-").concat(a.name),!!a.name),X(n,"".concat(p,"-spin"),!!i||a.name==="loading"),n),r),v=l;v===void 0&&s&&(v=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,b=o1e(u),x=fe(b,2),E=x[0],S=x[1];return g.createElement("span",Q(Q({role:"img","aria-label":a.name},c),{},{ref:t,tabIndex:v,onClick:s,className:m}),g.createElement(V9,{icon:a,primaryColor:E,secondaryColor:S,style:y}))});LR.displayName="AntdIcon";LR.getTwoToneColor=Pgt;LR.setTwoToneColor=l1e;const Br=LR;var Bgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"};const zgt=Bgt;var Hgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const jgt=Hgt;var s1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:jgt}))};s1e.displayName="ArrowLeftOutlined";const Ugt=g.forwardRef(s1e);var Vgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"};const Wgt=Vgt;var u1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:jve}))};u1e.displayName="BarsOutlined";const PR=g.forwardRef(u1e);var Ggt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const c1e=Ggt;var d1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:c1e}))};d1e.displayName="CheckCircleOutlined";const qgt=g.forwardRef(d1e);var f1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:cve}))};f1e.displayName="CheckOutlined";const Ygt=g.forwardRef(f1e);var Kgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};const Xgt=Kgt;var p1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:zge}))};p1e.displayName="CloseOutlined";const Qgt=g.forwardRef(p1e);var Zgt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"};const h1e=Zgt;var g1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:h1e}))};g1e.displayName="DashboardOutlined";const W9=g.forwardRef(g1e);var m1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Kbe}))};m1e.displayName="DeleteOutlined";const Jgt=g.forwardRef(m1e);var emt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z"}}]},name:"dollar",theme:"outlined"};const tmt=emt;var v1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Zbe}))};v1e.displayName="EditOutlined";const nmt=g.forwardRef(v1e);var y1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Gve}))};y1e.displayName="EllipsisOutlined";const rmt=g.forwardRef(y1e);var amt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const imt=amt;var b1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:imt}))};b1e.displayName="ExclamationCircleOutlined";const omt=g.forwardRef(b1e);var lmt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};const smt=lmt;var x1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:smt}))};x1e.displayName="ExportOutlined";const umt=g.forwardRef(x1e);var E1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:yye}))};E1e.displayName="EyeOutlined";const cmt=g.forwardRef(E1e);var dmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M945 412H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h256c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM811 548H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h122c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM477.3 322.5H434c-6.2 0-11.2 5-11.2 11.2v248c0 3.6 1.7 6.9 4.6 9l148.9 108.6c5 3.6 12 2.6 15.6-2.4l25.7-35.1v-.1c3.6-5 2.5-12-2.5-15.6l-126.7-91.6V333.7c.1-6.2-5-11.2-11.1-11.2z"}},{tag:"path",attrs:{d:"M804.8 673.9H747c-5.6 0-10.9 2.9-13.9 7.7a321 321 0 01-44.5 55.7 317.17 317.17 0 01-101.3 68.3c-39.3 16.6-81 25-124 25-43.1 0-84.8-8.4-124-25-37.9-16-72-39-101.3-68.3s-52.3-63.4-68.3-101.3c-16.6-39.2-25-80.9-25-124 0-43.1 8.4-84.7 25-124 16-37.9 39-72 68.3-101.3 29.3-29.3 63.4-52.3 101.3-68.3 39.2-16.6 81-25 124-25 43.1 0 84.8 8.4 124 25 37.9 16 72 39 101.3 68.3a321 321 0 0144.5 55.7c3 4.8 8.3 7.7 13.9 7.7h57.8c6.9 0 11.3-7.2 8.2-13.3-65.2-129.7-197.4-214-345-215.7-216.1-2.7-395.6 174.2-396 390.1C71.6 727.5 246.9 903 463.2 903c149.5 0 283.9-84.6 349.8-215.8a9.18 9.18 0 00-8.2-13.3z"}}]},name:"field-time",theme:"outlined"};const fmt=dmt;var pmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const S1e=pmt;var C1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:S1e}))};C1e.displayName="FilterOutlined";const hmt=g.forwardRef(C1e);var gmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z"}}]},name:"flag",theme:"outlined"};const mmt=gmt;var w1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Lbe}))};w1e.displayName="FolderOutlined";const vmt=g.forwardRef(w1e);var ymt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"};const bmt=ymt;var T1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:bmt}))};T1e.displayName="HomeOutlined";const xmt=g.forwardRef(T1e);var Emt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"};const Smt=Emt;var A1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Smt}))};A1e.displayName="ImportOutlined";const Cmt=g.forwardRef(A1e);var wmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const Tmt=wmt;var I1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Tmt}))};I1e.displayName="InfoCircleOutlined";const Amt=g.forwardRef(I1e);var O1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Uve}))};O1e.displayName="LeftOutlined";const k1e=g.forwardRef(O1e);var Imt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const Omt=Imt;var R1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Omt}))};R1e.displayName="LogoutOutlined";const G9=g.forwardRef(R1e);var kmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"};const Rmt=kmt;var _mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const Nmt=_mt;var Dmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};const Mmt=Dmt;var $mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"};const Lmt=$mt;var Pmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"};const Fmt=Pmt;var Bmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};const zmt=Bmt;var _1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Pbe}))};_1e.displayName="PlusSquareOutlined";const N1e=g.forwardRef(_1e);var Hmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"};const jmt=Hmt;var Umt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"};const Vmt=Umt;var D1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Vmt}))};D1e.displayName="ReadOutlined";const Wmt=g.forwardRef(D1e);var Gmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};const qmt=Gmt;var M1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:qmt}))};M1e.displayName="RedoOutlined";const Ymt=g.forwardRef(M1e);var $1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:kve}))};$1e.displayName="RightOutlined";const L1e=g.forwardRef($1e);var Kmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const Xmt=Kmt;var P1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:Xmt}))};P1e.displayName="SaveOutlined";const Qmt=g.forwardRef(P1e);var Zmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const Jmt=Zmt;var evt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0014.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0015.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0038.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm30-404.4c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 01512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 01-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z"}}]},name:"shop",theme:"outlined"};const tvt=evt;var nvt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const rvt=nvt;var F1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:rvt}))};F1e.displayName="SyncOutlined";const avt=g.forwardRef(F1e);var ivt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};const B1e=ivt;var z1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:B1e}))};z1e.displayName="TeamOutlined";const ovt=g.forwardRef(z1e);var lvt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"};const svt=lvt;var H1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:svt}))};H1e.displayName="UndoOutlined";const uvt=g.forwardRef(H1e);var cvt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"};const j1e=cvt;var U1e=function(t,n){return g.createElement(Br,Q(Q({},t),{},{ref:n,icon:j1e}))};U1e.displayName="UnorderedListOutlined";const U0=g.forwardRef(U1e);var dvt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z"}}]},name:"usergroup-add",theme:"outlined"};const fvt=dvt;var ete={Title:"refine-pageHeader-title",SubTitle:"refine-pageHeader-subTitle"},Uc={CloneButton:"refine-clone-button",DeleteButton:"refine-delete-button",EditButton:"refine-edit-button",SaveButton:"refine-save-button",CreateButton:"refine-create-button",ImportButton:"refine-import-button",ExportButton:"refine-export-button",ListButton:"refine-list-button",RefreshButton:"refine-refresh-button",ShowButton:"refine-show-button"},V1e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(We,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,i){var o=a.prototype,l=o.format;i.en.formats=n,o.format=function(s){s===void 0&&(s="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,h,m){var v=m&&m.toUpperCase();return h||f[m]||n[m]||f[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,b,x){return b||x.slice(1)})})}(s,u===void 0?{}:u);return l.call(this,c)}}})})(V1e);var pvt=V1e.exports;const hvt=Or(pvt);var Fm={}.hasOwnProperty,W1e=gvt;function gvt(e){return!e||typeof e!="object"?"":Fm.call(e,"position")||Fm.call(e,"type")?tte(e.position):Fm.call(e,"start")||Fm.call(e,"end")?tte(e):Fm.call(e,"line")||Fm.call(e,"column")?U6(e):""}function U6(e){return(!e||typeof e!="object")&&(e={}),nte(e.line)+":"+nte(e.column)}function tte(e){return(!e||typeof e!="object")&&(e={}),U6(e.start)+"-"+U6(e.end)}function nte(e){return e&&typeof e=="number"?e:1}var mvt=W1e,vvt=q9;function G1e(){}G1e.prototype=Error.prototype;q9.prototype=new G1e;var Vp=q9.prototype;Vp.file="";Vp.name="";Vp.reason="";Vp.message="";Vp.stack="";Vp.fatal=null;Vp.column=null;Vp.line=null;function q9(e,t,n){var r,a,i;typeof t=="string"&&(n=t,t=null),r=yvt(n),a=mvt(t)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(i=t,t=t.start):i.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=i,this.source=r[0],this.ruleId=r[1]}function yvt(e){var t=[null,null],n;return typeof e=="string"&&(n=e.indexOf(":"),n===-1?t[1]=e:(t[0]=e.slice(0,n),t[1]=e.slice(n+1))),t}var Py={};Py.basename=bvt;Py.dirname=xvt;Py.extname=Evt;Py.join=Svt;Py.sep="/";function bvt(e,t){var n=0,r=-1,a,i,o,l;if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');if(XS(e),a=e.length,t===void 0||!t.length||t.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";for(i=-1,l=t.length-1;a--;)if(e.charCodeAt(a)===47){if(o){n=a+1;break}}else i<0&&(o=!0,i=a+1),l>-1&&(e.charCodeAt(a)===t.charCodeAt(l--)?l<0&&(r=a):(l=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function xvt(e){var t,n,r;if(XS(e),!e.length)return".";for(t=-1,r=e.length;--r;)if(e.charCodeAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function Evt(e){var t=-1,n=0,r=-1,a=0,i,o,l;for(XS(e),l=e.length;l--;){if(o=e.charCodeAt(l),o===47){if(i){n=l+1;break}continue}r<0&&(i=!0,r=l+1),o===46?t<0?t=l:a!==1&&(a=1):t>-1&&(a=-1)}return t<0||r<0||a===0||a===1&&t===r-1&&t===n+1?"":e.slice(t,r)}function Svt(){for(var e=-1,t;++e2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length){n="",r=0,a=o,i=0;continue}}t&&(n=n.length?n+"/..":"..",r=2)}else n.length?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return n}function XS(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var q1e={};q1e.cwd=Tvt;function Tvt(){return"/"}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */var Avt=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},_c=Py,Ivt=q1e,Ovt=Avt,kvt=zd,Rvt={}.hasOwnProperty,h4=["history","path","basename","stem","extname","dirname"];zd.prototype.toString=Hvt;Object.defineProperty(zd.prototype,"path",{get:_vt,set:Nvt});Object.defineProperty(zd.prototype,"dirname",{get:Dvt,set:Mvt});Object.defineProperty(zd.prototype,"basename",{get:$vt,set:Lvt});Object.defineProperty(zd.prototype,"extname",{get:Pvt,set:Fvt});Object.defineProperty(zd.prototype,"stem",{get:Bvt,set:zvt});function zd(e){var t,n;if(!e)e={};else if(typeof e=="string"||Ovt(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof zd))return new zd(e);for(this.data={},this.messages=[],this.history=[],this.cwd=Ivt.cwd(),n=-1;++n-1)throw new Error("`extname` cannot contain multiple dots")}this.path=_c.join(this.dirname,this.stem+(e||""))}function Bvt(){return typeof this.path=="string"?_c.basename(this.path,this.extname):void 0}function zvt(e){K9(e,"stem"),Y9(e,"stem"),this.path=_c.join(this.dirname||"",e+(this.extname||""))}function Hvt(e){return(this.contents||"").toString(e)}function Y9(e,t){if(e&&e.indexOf(_c.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+_c.sep+"`")}function K9(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Y1e(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var jvt=vvt,FR=kvt,Uvt=FR;FR.prototype.message=Vvt;FR.prototype.info=Gvt;FR.prototype.fail=Wvt;function Vvt(e,t,n){var r=new jvt(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}function Wvt(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function Gvt(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var K1e=Uvt,qvt=Yvt;function Yvt(e){if(e)throw e}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */var Kvt=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},ZT=Object.prototype.hasOwnProperty,X1e=Object.prototype.toString,rte=Object.defineProperty,ate=Object.getOwnPropertyDescriptor,ite=function(t){return typeof Array.isArray=="function"?Array.isArray(t):X1e.call(t)==="[object Array]"},ote=function(t){if(!t||X1e.call(t)!=="[object Object]")return!1;var n=ZT.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&ZT.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||ZT.call(t,a)},lte=function(t,n){rte&&n.name==="__proto__"?rte(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ste=function(t,n){if(n==="__proto__")if(ZT.call(t,n)){if(ate)return ate(t,n).value}else return;return t[n]},Q1e=function e(){var t,n,r,a,i,o,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},Qvt=[].slice,Zvt=Jvt;function Jvt(e,t){var n;return r;function r(){var o=Qvt.call(arguments,0),l=e.length>o.length,s;l&&o.push(a);try{s=e.apply(null,o)}catch(u){if(l&&n)throw u;return a(u)}l||(s&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(){n||(n=!0,t.apply(null,arguments))}function i(o){a(null,o)}}var Z1e=Zvt,e0t=J1e;J1e.wrap=Z1e;var ute=[].slice;function J1e(){var e=[],t={};return t.run=n,t.use=r,t;function n(){var a=-1,i=ute.call(arguments,0,-1),o=arguments[arguments.length-1];if(typeof o!="function")throw new Error("Expected function as last argument, not "+o);l.apply(null,[null].concat(i));function l(s){var u=e[++a],c=ute.call(arguments,0),d=c.slice(1),f=i.length,p=-1;if(s){o(s);return}for(;++p13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":g0t(n)}var v0t=m0t,Q9={};function y0t(e){return e<-2}var fi=y0t;function b0t(e){return e===-2||e===-1||e===32}var ef=b0t,mte=ef;function x0t(e,t,n,r){var a=r?r-1:1/0,i=0;return o;function o(s){return mte(s)?(e.enter(n),l(s)):t(s)}function l(s){return mte(s)&&i++b;)t.containerState=n[E][1],n[E][0].exit.call(t,e);n.length=b}function y(b,x){var E=0;return i={},S;function S(O){return E-1?void 0:4)}function $0t(e,t,n){return axe(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}Z9.tokenize=_0t;var J9={};function L0t(e){for(var t=-1,n=0;++ta?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),b4.apply(e,o);else for(n&&b4.apply(e,[t,n]);i-1||Y0t(r.events,"linePrefix")<4?e.interrupt(r.parser.constructs.flow,n,t)(o):t(o)}}var nyt=Q0t;Object.defineProperty(J9,"__esModule",{value:!0});var ryt=nyt,ayt=ki,iyt=zR,oyt=lyt;function lyt(e){var t=this,n=e.attempt(iyt,r,e.attempt(this.parser.constructs.flowInitial,a,ayt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(ryt,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}J9.tokenize=oyt;var Fy={};Object.defineProperty(Fy,"__esModule",{value:!0});var syt=QS,vte=Kg,uyt=uxe("text"),cyt=uxe("string"),dyt={resolveAll:cxe()};function uxe(e){return{tokenize:t,resolveAll:cxe(e==="text"?fyt:void 0)};function t(n){var r=this,a=this.parser.constructs[e],i=n.attempt(a,o,l);return o;function o(c){return u(c)?i(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){var d=a[c],f=-1;if(c===null)return!0;if(d){for(;++f-1&&(o[0]=o[0].slice(r)),i>0&&o.push(e[a].slice(0,i))),o}var Ayt=Tyt,Iyt=QS,Oyt=fi,kyt=tz,Ryt=tf,x4=ez,_yt=HR,Nyt=wyt,bte=Kg,Dyt=Ayt;function Myt(e,t,n){var r=n?bte(n):{line:1,column:1,offset:0},a={},i=[],o=[],l=[],s={consume:b,enter:x,exit:E,attempt:w(S),check:w(C),interrupt:w(C,{interrupt:!0}),lazy:w(C,{lazy:!0})},u={previous:null,events:[],parser:e,sliceStream:p,sliceSerialize:f,now:h,defineSkip:m,write:d},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),r._index=0,r._bufferIndex=-1,u;function d(O){return o=kyt(o,O),v(),o[o.length-1]!==null?[]:(I(t,0),u.events=_yt(i,u.events,u),u.events)}function f(O){return Nyt(p(O))}function p(O){return Dyt(o,O)}function h(){return bte(r)}function m(O){a[O.line]=O.column,A()}function v(){for(var O,R;r._index-1?G():W.tokenize.call(R?Iyt({},u,R):u,s,V,G)(J)}}function V(W){return O(B,F),L}function G(W){return F.restore(),++P1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={type:s>1?"strongSequence":"emphasisSequence",start:Ete(ac(e[r][1].end),-s),end:ac(e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:ac(e[n][1].start),end:Ete(ac(e[n][1].start),s)},i={type:s>1?"strongText":"emphasisText",start:ac(e[r][1].end),end:ac(e[n][1].start)},a={type:s>1?"strong":"emphasis",start:ac(o.start),end:ac(l.end)},e[r][1].end=ac(o.start),e[n][1].start=ac(l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Kb(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Kb(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Kb(u,Jyt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Kb(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Kb(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Zyt(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n-1?void 0:4)}function Ebt(e){e.exit("blockQuote")}var Sbt=pxe,Cbt=Wp,wbt=Cbt(/[!-/:-@[-`{-~]/),Tbt=wbt,Abt=Tbt,Ibt={name:"characterEscape",tokenize:Obt};function Obt(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Abt(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}var kbt=Ibt,o2,Rbt=59,hxe=_bt;function _bt(e){var t="&"+e+";",n;return o2=o2||document.createElement("i"),o2.innerHTML=t,n=o2.textContent,n.charCodeAt(n.length-1)===Rbt&&e!=="semi"||n===t?!1:n}var Nbt=Wp,Dbt=Nbt(/\d/),gxe=Dbt,Mbt=Wp,$bt=Mbt(/[\dA-Fa-f]/),Lbt=$bt,Pbt=hxe,Cte=JS,Fbt=gxe,Bbt=Lbt;function zbt(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Hbt=zbt(Pbt),jbt={name:"characterReference",tokenize:Ubt};function Ubt(e,t,n){var r=this,a=0,i,o;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=Cte,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Bbt,c):(e.enter("characterReferenceValue"),i=7,o=Fbt,c(d))}function c(d){var f;return d===59&&a?(f=e.exit("characterReferenceValue"),o===Cte&&!Hbt.default(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):o(d)&&a++-1?void 0:4);function w(A){return x.enter("codeFencedFence"),x.enter("codeFencedFenceSequence"),I(A)}function I(A){return A===l?(x.consume(A),C++,I):Cu?n(y):(e.consume(y),m):y===41?c--?(e.consume(y),m):(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(y)):y===null||l1t(y)?c?n(y):(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(y)):Ote(y)?n(y):(e.consume(y),y===92?v:m)}function v(y){return y===40||y===41||y===92?(e.consume(y),m):m(y)}}var mxe=u1t,kte=fi,c1t=ef;function d1t(e,t,n,r,a,i){var o=this,l=0,s;return u;function u(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return p===null||p===91||p===93&&!s||p===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs||l>999?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):kte(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||kte(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s=s||!c1t(p),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}var vxe=d1t,f1t=fi,p1t=ef,h1t=ki;function g1t(e,t){var n;return r;function r(a){return f1t(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):p1t(a)?h1t(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}var yxe=g1t,Rte=fi,m1t=ki;function v1t(e,t,n,r,a,i){var o;return l;function l(f){return e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,s}function s(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Rte(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),m1t(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Rte(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}var bxe=v1t,xxe=fi,y1t=nf,b1t=X9,x1t=mxe,E1t=vxe,W6=ki,Exe=yxe,S1t=bxe,C1t={name:"definition",tokenize:T1t},w1t={tokenize:A1t,partial:!0};function T1t(e,t,n){var r=this,a;return i;function i(s){return e.enter("definition"),E1t.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(s)}function o(s){return a=b1t(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),s===58?(e.enter("definitionMarker"),e.consume(s),e.exit("definitionMarker"),Exe(e,x1t(e,e.attempt(w1t,W6(e,l,"whitespace"),W6(e,l,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(s)}function l(s){return s===null||xxe(s)?(e.exit("definition"),r.parser.defined.indexOf(a)<0&&r.parser.defined.push(a),t(s)):n(s)}}function A1t(e,t,n){return r;function r(o){return y1t(o)?Exe(e,a)(o):n(o)}function a(o){return o===34||o===39||o===40?S1t(e,W6(e,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o):n(o)}function i(o){return o===null||xxe(o)?t(o):n(o)}}var I1t=C1t,O1t=fi,k1t={name:"hardBreakEscape",tokenize:R1t};function R1t(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(i),a}function a(i){return O1t(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}var _1t=k1t,N1t=fi,_te=nf,D1t=ef,M1t=tf,$1t=ki,L1t={name:"headingAtx",tokenize:F1t,resolve:P1t};function P1t(e,t){var n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},M1t(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function F1t(e,t,n){var r=this,a=0;return i;function i(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&a++<6?(e.consume(c),o):c===null||_te(c)?(e.exit("atxHeadingSequence"),r.interrupt?t(c):l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||N1t(c)?(e.exit("atxHeading"),t(c)):D1t(c)?$1t(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||_te(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}var B1t=L1t,z1t=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],H1t=z1t,j1t=["pre","script","style","textarea"],U1t=j1t,Qb=jR,Nte=JS,zm=fi,Dte=nf,Hm=ef,l2=BR,V1t=H1t,Mte=U1t,W1t=zR,G1t={name:"htmlFlow",tokenize:K1t,resolveTo:Y1t,concrete:!0},q1t={tokenize:X1t,partial:!0};function Y1t(e){for(var t=e.length;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function K1t(e,t,n){var r=this,a,i,o,l,s;return u;function u(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),c}function c(D){return D===33?(e.consume(D),d):D===47?(e.consume(D),h):D===63?(e.consume(D),a=3,r.interrupt?t:P):Qb(D)?(e.consume(D),o=l2(D),i=!0,m):n(D)}function d(D){return D===45?(e.consume(D),a=2,f):D===91?(e.consume(D),a=5,o="CDATA[",l=0,p):Qb(D)?(e.consume(D),a=4,r.interrupt?t:P):n(D)}function f(D){return D===45?(e.consume(D),r.interrupt?t:P):n(D)}function p(D){return D===o.charCodeAt(l++)?(e.consume(D),l===o.length?r.interrupt?t:O:p):n(D)}function h(D){return Qb(D)?(e.consume(D),o=l2(D),m):n(D)}function m(D){return D===null||D===47||D===62||Dte(D)?D!==47&&i&&Mte.indexOf(o.toLowerCase())>-1?(a=1,r.interrupt?t(D):O(D)):V1t.indexOf(o.toLowerCase())>-1?(a=6,D===47?(e.consume(D),v):r.interrupt?t(D):O(D)):(a=7,r.interrupt?n(D):i?b(D):y(D)):D===45||Nte(D)?(e.consume(D),o+=l2(D),m):n(D)}function v(D){return D===62?(e.consume(D),r.interrupt?t:O):n(D)}function y(D){return Hm(D)?(e.consume(D),y):T(D)}function b(D){return D===47?(e.consume(D),T):D===58||D===95||Qb(D)?(e.consume(D),x):Hm(D)?(e.consume(D),b):T(D)}function x(D){return D===45||D===46||D===58||D===95||Nte(D)?(e.consume(D),x):E(D)}function E(D){return D===61?(e.consume(D),S):Hm(D)?(e.consume(D),E):b(D)}function S(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),s=D,C):Hm(D)?(e.consume(D),S):(s=void 0,w(D))}function C(D){return D===s?(e.consume(D),I):D===null||zm(D)?n(D):(e.consume(D),C)}function w(D){return D===null||D===34||D===39||D===60||D===61||D===62||D===96||Dte(D)?E(D):(e.consume(D),w)}function I(D){return D===47||D===62||Hm(D)?b(D):n(D)}function T(D){return D===62?(e.consume(D),A):n(D)}function A(D){return Hm(D)?(e.consume(D),A):D===null||zm(D)?O(D):n(D)}function O(D){return D===45&&a===2?(e.consume(D),_):D===60&&a===1?(e.consume(D),L):D===62&&a===4?(e.consume(D),B):D===63&&a===3?(e.consume(D),P):D===93&&a===5?(e.consume(D),k):zm(D)&&(a===6||a===7)?e.check(q1t,B,R)(D):D===null||zm(D)?R(D):(e.consume(D),O)}function R(D){return e.exit("htmlFlowData"),N(D)}function N(D){return D===null?F(D):zm(D)?(e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),N):(e.enter("htmlFlowData"),O(D))}function _(D){return D===45?(e.consume(D),P):O(D)}function L(D){return D===47?(e.consume(D),o="",$):O(D)}function $(D){return D===62&&Mte.indexOf(o.toLowerCase())>-1?(e.consume(D),B):Qb(D)&&o.length<8?(e.consume(D),o+=l2(D),$):O(D)}function k(D){return D===93?(e.consume(D),P):O(D)}function P(D){return D===62?(e.consume(D),B):O(D)}function B(D){return D===null||zm(D)?(e.exit("htmlFlowData"),F(D)):(e.consume(D),B)}function F(D){return e.exit("htmlFlow"),t(D)}}function X1t(e,t,n){return r;function r(a){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),e.attempt(W1t,t,n)}}var Q1t=G1t,s2=jR,E4=JS,rd=fi,S4=nf,u2=ef,Z1t=ki,J1t={name:"htmlText",tokenize:ext};function ext(e,t,n){var r=this,a,i,o,l;return s;function s(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),u}function u(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),w):D===63?(e.consume(D),S):s2(D)?(e.consume(D),A):n(D)}function c(D){return D===45?(e.consume(D),d):D===91?(e.consume(D),i="CDATA[",o=0,v):s2(D)?(e.consume(D),E):n(D)}function d(D){return D===45?(e.consume(D),f):n(D)}function f(D){return D===null||D===62?n(D):D===45?(e.consume(D),p):h(D)}function p(D){return D===null||D===62?n(D):h(D)}function h(D){return D===null?n(D):D===45?(e.consume(D),m):rd(D)?(l=h,P(D)):(e.consume(D),h)}function m(D){return D===45?(e.consume(D),F):h(D)}function v(D){return D===i.charCodeAt(o++)?(e.consume(D),o===i.length?y:v):n(D)}function y(D){return D===null?n(D):D===93?(e.consume(D),b):rd(D)?(l=y,P(D)):(e.consume(D),y)}function b(D){return D===93?(e.consume(D),x):y(D)}function x(D){return D===62?F(D):D===93?(e.consume(D),x):y(D)}function E(D){return D===null||D===62?F(D):rd(D)?(l=E,P(D)):(e.consume(D),E)}function S(D){return D===null?n(D):D===63?(e.consume(D),C):rd(D)?(l=S,P(D)):(e.consume(D),S)}function C(D){return D===62?F(D):S(D)}function w(D){return s2(D)?(e.consume(D),I):n(D)}function I(D){return D===45||E4(D)?(e.consume(D),I):T(D)}function T(D){return rd(D)?(l=T,P(D)):u2(D)?(e.consume(D),T):F(D)}function A(D){return D===45||E4(D)?(e.consume(D),A):D===47||D===62||S4(D)?O(D):n(D)}function O(D){return D===47?(e.consume(D),F):D===58||D===95||s2(D)?(e.consume(D),R):rd(D)?(l=O,P(D)):u2(D)?(e.consume(D),O):F(D)}function R(D){return D===45||D===46||D===58||D===95||E4(D)?(e.consume(D),R):N(D)}function N(D){return D===61?(e.consume(D),_):rd(D)?(l=N,P(D)):u2(D)?(e.consume(D),N):O(D)}function _(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),a=D,L):rd(D)?(l=_,P(D)):u2(D)?(e.consume(D),_):(e.consume(D),a=void 0,k)}function L(D){return D===a?(e.consume(D),$):D===null?n(D):rd(D)?(l=L,P(D)):(e.consume(D),L)}function $(D){return D===62||D===47||S4(D)?O(D):n(D)}function k(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===62||S4(D)?O(D):(e.consume(D),k)}function P(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),Z1t(e,B,"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function B(D){return e.enter("htmlTextData"),l(D)}function F(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}}var txt=J1t,nxt=nf,jm=tz,rxt=tf,Sxe=X9,axt=HR,Um=Kg,ixt=mxe,oxt=vxe,lxt=bxe,C4=yxe,sxt={name:"labelEnd",tokenize:hxt,resolveTo:pxt,resolveAll:fxt},uxt={tokenize:gxt},cxt={tokenize:mxt},dxt={tokenize:vxt};function fxt(e){for(var t=-1,n;++t-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelEnd"),s):n(c)}function s(c){return c===40?e.attempt(uxt,t,o?t:u)(c):c===91?e.attempt(cxt,t,o?e.attempt(dxt,t,u):u)(c):o?t(c):u(c)}function u(c){return i._balanced=!0,n(c)}}function gxt(e,t,n){return r;function r(s){return e.enter("resource"),e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),C4(e,a)}function a(s){return s===41?l(s):ixt(e,i,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(s)}function i(s){return nxt(s)?C4(e,o)(s):l(s)}function o(s){return s===34||s===39||s===40?lxt(e,C4(e,l),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(s):l(s)}function l(s){return s===41?(e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),e.exit("resource"),t):n(s)}}function mxt(e,t,n){var r=this;return a;function a(o){return oxt.call(r,e,i,n,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.indexOf(Sxe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(o):t(o)}}function vxt(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}var iz=sxt,yxt=iz,bxt={name:"labelStartImage",tokenize:xxt,resolveAll:yxt.resolveAll};function xxt(e,t,n){var r=this;return a;function a(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),i}function i(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}var Ext=bxt,Sxt=iz,Cxt={name:"labelStartLink",tokenize:wxt,resolveAll:Sxt.resolveAll};function wxt(e,t,n){var r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}var Txt=Cxt,Axt=ki,Ixt={name:"lineEnding",tokenize:Oxt};function Oxt(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Axt(e,t,"linePrefix")}}var kxt=Ixt,Rxt=fi,_xt=ef,Nxt=ki,Dxt={name:"thematicBreak",tokenize:Mxt};function Mxt(e,t,n){var r=0,a;return i;function i(s){return e.enter("thematicBreak"),a=s,o(s)}function o(s){return s===a?(e.enter("thematicBreakSequence"),l(s)):_xt(s)?Nxt(e,o,"whitespace")(s):r<3||s!==null&&!Rxt(s)?n(s):(e.exit("thematicBreak"),t(s))}function l(s){return s===a?(e.consume(s),r++,l):(e.exit("thematicBreakSequence"),o(s))}}var Cxe=Dxt,$te=gxe,oz=ef,lz=ZS,$xt=ixe,BI=ki,wxe=zR,Lxt=Cxe,Txe={name:"list",tokenize:Bxt,continuation:{tokenize:zxt},exit:jxt},Pxt={tokenize:Uxt,partial:!0},Fxt={tokenize:Hxt,partial:!0};function Bxt(e,t,n){var r=this,a=lz(r.events,"linePrefix"),i=0;return o;function o(f){var p=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:$te(f)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Lxt,n,s)(f):s(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return $te(f)&&++i<10?(e.consume(f),l):(!r.interrupt||i<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),s(f)):n(f)}function s(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(wxe,r.interrupt?n:u,e.attempt(Pxt,d,c))}function u(f){return r.containerState.initialBlankLine=!0,a++,d(f)}function c(f){return oz(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return r.containerState.size=a+$xt(r.sliceStream(e.exit("listItemPrefix"))),t(f)}}function zxt(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(wxe,a,i);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,BI(e,t,"listItemIndent",r.containerState.size+1)(l)}function i(l){return r.containerState.furtherBlankLines||!oz(l)?(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(Fxt,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,BI(e,e.attempt(Txe,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(l)}}function Hxt(e,t,n){var r=this;return BI(e,a,"listItemIndent",r.containerState.size+1);function a(i){return lz(r.events,"listItemIndent")===r.containerState.size?t(i):n(i)}}function jxt(e){e.exit(this.containerState.type)}function Uxt(e,t,n){var r=this;return BI(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4+1);function a(i){return oz(i)||!lz(r.events,"listItemPrefixWhitespace")?n(i):t(i)}}var Vxt=Txe,Wxt=fi,w4=Kg,Gxt=ki,qxt={name:"setextUnderline",tokenize:Kxt,resolveTo:Yxt};function Yxt(e,t){for(var n=e.length,r,a,i,o;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);return o={type:"setextHeading",start:w4(e[a][1].start),end:w4(e[e.length-1][1].end)},e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=w4(e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function Kxt(e,t,n){for(var r=this,a=r.events.length,i,o;a--;)if(r.events[a][1].type!=="lineEnding"&&r.events[a][1].type!=="linePrefix"&&r.events[a][1].type!=="content"){o=r.events[a][1].type==="paragraph";break}return l;function l(c){return!r.lazy&&(r.interrupt||o)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=c,s(c)):n(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Gxt(e,u,"lineSuffix")(c))}function u(c){return c===null||Wxt(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}var Xxt=qxt;Object.defineProperty(Vc,"__esModule",{value:!0});var Qxt=Fy,G6=rbt,Zxt=mbt,Jxt=Sbt,Axe=kbt,Ixe=Vbt,Lte=Kbt,T4=t1t,eEt=o1t,tEt=I1t,nEt=_1t,rEt=B1t,aEt=Q1t,iEt=txt,oEt=iz,lEt=Ext,sEt=Txt,A4=kxt,Ol=Vxt,Pte=Xxt,I4=Cxe,uEt={42:Ol,43:Ol,45:Ol,48:Ol,49:Ol,50:Ol,51:Ol,52:Ol,53:Ol,54:Ol,55:Ol,56:Ol,57:Ol,62:Jxt},cEt={91:tEt},dEt={"-2":T4,"-1":T4,32:T4},fEt={35:rEt,42:I4,45:[Pte,I4],60:aEt,61:Pte,95:I4,96:Lte,126:Lte},pEt={38:Ixe,92:Axe},hEt={"-5":A4,"-4":A4,"-3":A4,33:lEt,38:Ixe,42:G6,60:[Zxt,iEt],91:sEt,92:[nEt,Axe],93:oEt,95:G6,96:eEt},gEt={null:[G6,Qxt.resolver]},mEt={null:[]};Vc.contentInitial=cEt;Vc.disable=mEt;Vc.document=uEt;Vc.flow=fEt;Vc.flowInitial=dEt;Vc.insideSpan=gEt;Vc.string=pEt;Vc.text=hEt;var vEt=Q9,yEt=Z9,bEt=J9,Fte=Fy,xEt=dxe,EEt=$yt,SEt=ez,CEt=Vc;function wEt(e){var t=e||{},n={defined:[],constructs:xEt([CEt].concat(SEt(t.extensions))),content:r(vEt),document:r(yEt),flow:r(bEt),string:r(Fte.string),text:r(Fte.text)};return n;function r(a){return i;function i(o){return EEt(n,a,o)}}}var TEt=wEt,Bte=/[\0\t\n\r]/g;function AEt(){var e=!0,t=1,n="",r;return a;function a(i,o,l){var s=[],u,c,d,f,p;for(i=n+i.toString(o),d=0,n="",e&&(i.charCodeAt(0)===65279&&d++,e=void 0);d-1&&(N.call(this,ue),_.call(this,ue))}function $(){o("atHardBreak",!0)}function k(){var ue=this.resume();this.stack[this.stack.length-1].value=ue}function P(){var ue=this.resume();this.stack[this.stack.length-1].value=ue}function B(){var ue=this.resume();this.stack[this.stack.length-1].value=ue}function F(){var ue=this.stack[this.stack.length-1];l("inReference")?(ue.type+="Reference",ue.referenceType=l("referenceType")||"shortcut",delete ue.url,delete ue.title):(delete ue.identifier,delete ue.label,delete ue.referenceType),o("referenceType")}function D(){var ue=this.stack[this.stack.length-1];l("inReference")?(ue.type+="Reference",ue.referenceType=l("referenceType")||"shortcut",delete ue.url,delete ue.title):(delete ue.identifier,delete ue.label,delete ue.referenceType),o("referenceType")}function j(ue){this.stack[this.stack.length-2].identifier=O4(this.sliceSerialize(ue)).toLowerCase()}function z(){var ue=this.stack[this.stack.length-1],Ae=this.resume();this.stack[this.stack.length-1].label=Ae,o("inReference",!0),this.stack[this.stack.length-1].type==="link"?this.stack[this.stack.length-1].children=ue.children:this.stack[this.stack.length-1].alt=Ae}function V(){var ue=this.resume();this.stack[this.stack.length-1].url=ue}function G(){var ue=this.resume();this.stack[this.stack.length-1].title=ue}function W(){o("inReference")}function Y(){o("referenceType","collapsed")}function J(ue){var Ae=this.resume();this.stack[this.stack.length-1].label=Ae,this.stack[this.stack.length-1].identifier=O4(this.sliceSerialize(ue)).toLowerCase(),o("referenceType","full")}function Z(ue){o("characterReferenceType",ue.type)}function K(ue){var Ae=this.sliceSerialize(ue),_e=l("characterReferenceType"),Re,Be;_e?(Re=MEt(Ae,_e==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Re=FEt(Ae),Be=this.stack.pop(),Be.value+=Re,Be.position.end=s(ue.end)}function ee(ue){_.call(this,ue),this.stack[this.stack.length-1].url=this.sliceSerialize(ue)}function ae(ue){_.call(this,ue),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(ue)}function te(){return{type:"blockquote",children:[]}}function re(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ge(){return{type:"emphasis",children:[]}}function xe(){return{type:"heading",depth:void 0,children:[]}}function me(){return{type:"break"}}function de(){return{type:"html",value:""}}function Ce(){return{type:"image",title:null,url:"",alt:null}}function Ie(){return{type:"link",title:null,url:"",children:[]}}function ke(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Te(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function pe(){return{type:"paragraph",children:[]}}function Se(){return{type:"strong",children:[]}}function Ee(){return{type:"text",value:""}}function we(){return{type:"thematicBreak"}}}function HEt(e,t){for(var n=-1;++n":""))+")"),f;function f(){var p=u.concat(l),h=[],m,v;if((!t||i(l,s,u[u.length-1]||null))&&(h=nSt(n(l,u)),h[0]===q6))return h;if(l.children&&h[0]!==Dxe)for(v=(r?l.children.length:-1)+a;v>-1&&v-1?d=o:d=l.unknownHandler,(typeof d=="function"?d:r)(l,s,u)}function i(l){var s=l.data||{};return n.call(s,"hName")||n.call(s,"hProperties")||n.call(s,"hChildren")?!1:"value"in l}function o(l,s){var u;return s.children?(u=Object.assign({},s),u.children=t(l,s),u):s}return R4}var Hxe=pSt;function pSt(e,t){return e(t,"hr")}var eC=hSt,_4=qs;function hSt(e,t){var n=[],r=-1,a=e.length;for(t&&n.push(_4("text",` +`));++r0&&n.push(_4("text",` +`)),n}var jxe=vSt,gSt=eC,mSt=El();function vSt(e,t){var n={},r=t.ordered?"ol":"ul",a,i=-1,o;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start),a=mSt(e,t),o=a.length;++i"u"&&(n=!0),l=XSt(t),r=0,a=e.length;r=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1=56320&&o<=57343)){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[r])}return s}GR.defaultChars=";/?:@&=+$,-_.!~*'()#";GR.componentChars="-_.!~*'()";var qR=GR,Vxe=ZSt,N4=qs,QSt=El();function ZSt(e,t){var n=t.referenceType,r="]",a,i,o;return n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference"?N4("text","!["+t.alt+r):(a=QSt(e,t),i=a[0],i&&i.type==="text"?i.value="["+i.value:a.unshift(N4("text","[")),o=a[a.length-1],o&&o.type==="text"?o.value+=r:a.push(N4("text",r)),a)}var JSt=nCt,eCt=qR,tCt=Vxe;function nCt(e,t){var n=e.definition(t.identifier),r;return n?(r={src:eCt(n.url||""),alt:t.alt},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)):tCt(e,t)}var rCt=qR,aCt=iCt;function iCt(e,t){var n={src:rCt(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}var oCt=sCt,lCt=qs;function sCt(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[lCt("text",n)])}var uCt=pCt,cCt=qR,dCt=Vxe,fCt=El();function pCt(e,t){var n=e.definition(t.identifier),r;return n?(r={href:cCt(n.url||"")},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,fCt(e,t))):dCt(e,t)}var hCt=qR,gCt=El(),mCt=vCt;function vCt(e,t){var n={href:hCt(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,gCt(e,t))}var yCt=xCt,D4=qs,bCt=El();function xCt(e,t,n){var r=bCt(e,t),a=r[0],i=n?ECt(n):Wxe(t),o={},l=[],s,u,c;for(typeof t.checked=="boolean"&&((!a||a.tagName!=="p")&&(a=e(null,"p",[]),r.unshift(a)),a.children.length>0&&a.children.unshift(D4("text"," ")),a.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),o.className=["task-list-item"]),s=r.length,u=-1;++u1}var SCt=wCt,CCt=El();function wCt(e,t){return e(t,"p",CCt(e,t))}var TCt=kCt,ACt=qs,ICt=eC,OCt=El();function kCt(e,t){return e.augment(t,ACt("root",ICt(OCt(e,t))))}var RCt=NCt,_Ct=El();function NCt(e,t){return e(t,"strong",_Ct(e,t))}var DCt=$Ct,Ute=Lxe,d2=eC,MCt=El();function $Ct(e,t){for(var n=t.children,r=n.length,a=t.align||[],i=a.length,o=[],l,s,u,c,d;r--;){for(s=n[r].children,c=r===0?"th":"td",l=i||s.length,u=[];l--;)d=s[l],u[l]=e(d,c,{align:a[l]},d?MCt(e,d):[]);o[r]=e(n[r],"tr",d2(u,!0))}return e(t,"table",d2([e(o[0].position,"thead",d2([o[0]],!0))].concat(o[1]?e({start:Ute.start(o[1]),end:Ute.end(o[o.length-1])},"tbody",d2(o.slice(1),!0)):[]),!0))}var LCt=FCt,PCt=qs;function FCt(e,t){return e.augment(t,PCt("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}var BCt={blockquote:CSt,break:ISt,code:RSt,delete:DSt,emphasis:LSt,footnoteReference:Uxe,footnote:HSt,heading:VSt,html:qSt,imageReference:JSt,image:aCt,inlineCode:oCt,linkReference:uCt,link:mCt,listItem:yCt,list:jxe,paragraph:SCt,root:TCt,strong:RCt,table:DCt,text:LCt,thematicBreak:Hxe,toml:f2,yaml:f2,definition:f2,footnoteDefinition:f2};function f2(){return null}var zCt=XCt,HCt=qs,jCt=sz,Vte=Lxe,UCt=oSt,VCt=uSt,WCt=zxe(),GCt=ySt,qCt=BCt,YCt={}.hasOwnProperty,Wte=!1;function KCt(e,t){var n=t||{};n.allowDangerousHTML!==void 0&&!Wte&&(Wte=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,a={};return o.dangerous=r,o.definition=VCt(e),o.footnoteById=a,o.footnoteOrder=[],o.augment=i,o.handlers=Object.assign({},qCt,n.handlers),o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,jCt(e,"footnoteDefinition",l),o;function i(s,u){var c,d;return s&&s.data&&(c=s.data,c.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=c.hName),u.type==="element"&&c.hProperties&&(u.properties=Object.assign({},u.properties,c.hProperties)),u.children&&c.hChildren&&(u.children=c.hChildren)),d=s&&s.position?s:{position:s},UCt(d)||(u.position={start:Vte.start(d),end:Vte.end(d)}),u}function o(s,u,c,d){return d==null&&typeof c=="object"&&"length"in c&&(d=c,c={}),i(s,{type:"element",tagName:u,properties:c||{},children:d||[]})}function l(s){var u=String(s.identifier).toUpperCase();YCt.call(a,u)||(a[u]=s)}}function XCt(e,t){var n=KCt(e,t),r=WCt(n,e),a=GCt(n);return a&&(r.children=r.children.concat(HCt("text",` +`),a)),r}var QCt=zCt,Gxe=QCt,ZCt=JCt;function JCt(e,t){return e&&!e.process&&(t=e,e=null),e?ewt(e,t):twt(t)}function ewt(e,t){return n;function n(r,a,i){e.run(Gxe(r,t),a,o);function o(l){i(l)}}}function twt(e){return t;function t(n){return Gxe(n,e)}}var qxe={exports:{}},nwt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rwt=nwt,awt=rwt;function Yxe(){}function Kxe(){}Kxe.resetWarningCache=Yxe;var iwt=function(){function e(r,a,i,o,l,s){if(s!==awt){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Kxe,resetWarningCache:Yxe};return n.PropTypes=n,n};qxe.exports=iwt();var owt=qxe.exports,lwt=uwt,swt=Object.prototype.hasOwnProperty;function uwt(){for(var e={},t=0;t{zwt(n,"element",t)};function t(n,r,a){const i=n,o=a;let l;if(e.allowedElements?l=!e.allowedElements.includes(i.tagName):e.disallowedElements&&(l=e.disallowedElements.includes(i.tagName)),!l&&e.allowElement&&typeof r=="number"&&(l=!e.allowElement(i,r,o)),l&&typeof r=="number")return e.unwrapDisallowed&&i.children?o.children.splice(r,1,...i.children):o.children.splice(r,1),r}}const Xte=["http","https","mailto","tel"];var Uwt=Vwt;function Vwt(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let a=-1;for(;++aa||(a=t.indexOf("#"),a!==-1&&r>a)?t:"javascript:void(0)"}var pz={},dEe={exports:{}},Gr={};/** @license React v17.0.2 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var YR=60103,KR=60106,tC=60107,nC=60108,rC=60114,aC=60109,iC=60110,oC=60112,lC=60113,hz=60120,sC=60115,uC=60116,fEe=60121,pEe=60122,hEe=60117,gEe=60129,mEe=60131;if(typeof Symbol=="function"&&Symbol.for){var Xi=Symbol.for;YR=Xi("react.element"),KR=Xi("react.portal"),tC=Xi("react.fragment"),nC=Xi("react.strict_mode"),rC=Xi("react.profiler"),aC=Xi("react.provider"),iC=Xi("react.context"),oC=Xi("react.forward_ref"),lC=Xi("react.suspense"),hz=Xi("react.suspense_list"),sC=Xi("react.memo"),uC=Xi("react.lazy"),fEe=Xi("react.block"),pEe=Xi("react.server.block"),hEe=Xi("react.fundamental"),gEe=Xi("react.debug_trace_mode"),mEe=Xi("react.legacy_hidden")}function Xu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case YR:switch(e=e.type,e){case tC:case rC:case nC:case lC:case hz:return e;default:switch(e=e&&e.$$typeof,e){case iC:case oC:case uC:case sC:case aC:return e;default:return t}}case KR:return t}}}var Wwt=aC,Gwt=YR,qwt=oC,Ywt=tC,Kwt=uC,Xwt=sC,Qwt=KR,Zwt=rC,Jwt=nC,e2t=lC;Gr.ContextConsumer=iC;Gr.ContextProvider=Wwt;Gr.Element=Gwt;Gr.ForwardRef=qwt;Gr.Fragment=Ywt;Gr.Lazy=Kwt;Gr.Memo=Xwt;Gr.Portal=Qwt;Gr.Profiler=Zwt;Gr.StrictMode=Jwt;Gr.Suspense=e2t;Gr.isAsyncMode=function(){return!1};Gr.isConcurrentMode=function(){return!1};Gr.isContextConsumer=function(e){return Xu(e)===iC};Gr.isContextProvider=function(e){return Xu(e)===aC};Gr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===YR};Gr.isForwardRef=function(e){return Xu(e)===oC};Gr.isFragment=function(e){return Xu(e)===tC};Gr.isLazy=function(e){return Xu(e)===uC};Gr.isMemo=function(e){return Xu(e)===sC};Gr.isPortal=function(e){return Xu(e)===KR};Gr.isProfiler=function(e){return Xu(e)===rC};Gr.isStrictMode=function(e){return Xu(e)===nC};Gr.isSuspense=function(e){return Xu(e)===lC};Gr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tC||e===rC||e===gEe||e===nC||e===lC||e===hz||e===mEe||typeof e=="object"&&e!==null&&(e.$$typeof===uC||e.$$typeof===sC||e.$$typeof===aC||e.$$typeof===iC||e.$$typeof===oC||e.$$typeof===hEe||e.$$typeof===fEe||e[0]===pEe)};Gr.typeOf=Xu;dEe.exports=Gr;var t2t=dEe.exports,cC=Ku,n2t=By,r2t=lEe,a2t=cC.boolean,dn=cC.number,Qte=cC.spaceSeparated,M4=cC.commaSeparated,bs=cC.commaOrSpaceSeparated,i2t=n2t({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:r2t,properties:{about:bs,accentHeight:dn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:dn,amplitude:dn,arabicForm:null,ascent:dn,attributeName:null,attributeType:null,azimuth:dn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:dn,by:null,calcMode:null,capHeight:dn,className:Qte,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:dn,diffuseConstant:dn,direction:null,display:null,dur:null,divisor:dn,dominantBaseline:null,download:a2t,dx:null,dy:null,edgeMode:null,editable:null,elevation:dn,enableBackground:null,end:null,event:null,exponent:dn,externalResourcesRequired:null,fill:null,fillOpacity:dn,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:M4,g2:M4,glyphName:M4,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:dn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:dn,horizOriginX:dn,horizOriginY:dn,id:null,ideographic:dn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:dn,k:dn,k1:dn,k2:dn,k3:dn,k4:dn,kernelMatrix:bs,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:dn,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:dn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:dn,overlineThickness:dn,paintOrder:null,panose1:null,path:null,pathLength:dn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qte,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:dn,pointsAtY:dn,pointsAtZ:dn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bs,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bs,rev:bs,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bs,requiredFeatures:bs,requiredFonts:bs,requiredFormats:bs,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:dn,specularExponent:dn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:dn,strikethroughThickness:dn,string:null,stroke:null,strokeDashArray:bs,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:dn,strokeOpacity:dn,strokeWidth:null,style:null,surfaceScale:dn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bs,tabIndex:dn,tableValues:null,target:null,targetX:dn,targetY:dn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bs,to:null,transform:null,u1:null,u2:null,underlinePosition:dn,underlineThickness:dn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:dn,values:null,vAlphabetic:dn,vMathematical:dn,vectorEffect:null,vHanging:dn,vIdeographic:dn,version:null,vertAdvY:dn,vertOriginX:dn,vertOriginY:dn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:dn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),o2t=Zxe,l2t=iEe,s2t=oEe,u2t=uEe,c2t=cEe,d2t=i2t,f2t=o2t([s2t,l2t,u2t,c2t,d2t]),p2t=Jxe,h2t=rEe,g2t=eEe,gz="data",m2t=b2t,v2t=/^data[-\w.:]+$/i,vEe=/-[a-z]/g,y2t=/[A-Z]/g;function b2t(e,t){var n=p2t(t),r=t,a=g2t;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===gz&&v2t.test(t)&&(t.charAt(4)==="-"?r=x2t(t):t=E2t(t),a=h2t),new a(r,t))}function x2t(e){var t=e.slice(5).replace(vEe,C2t);return gz+t.charAt(0).toUpperCase()+t.slice(1)}function E2t(e){var t=e.slice(4);return vEe.test(t)?e:(t=t.replace(y2t,S2t),t.charAt(0)!=="-"&&(t="-"+t),gz+t)}function S2t(e){return"-"+e.toLowerCase()}function C2t(e){return e.charAt(1).toUpperCase()}const w2t="classID",T2t="datatype",A2t="itemID",I2t="strokeDasharray",O2t="strokeDashoffset",k2t="strokeLinecap",R2t="strokeLinejoin",_2t="strokeMiterlimit",N2t="typeof",D2t="xlinkActuate",M2t="xlinkArcrole",$2t="xlinkHref",L2t="xlinkRole",P2t="xlinkShow",F2t="xlinkTitle",B2t="xlinkType",z2t="xmlnsXlink",H2t={classId:w2t,dataType:T2t,itemId:A2t,strokeDashArray:I2t,strokeDashOffset:O2t,strokeLineCap:k2t,strokeLineJoin:R2t,strokeMiterLimit:_2t,typeOf:N2t,xLinkActuate:D2t,xLinkArcRole:M2t,xLinkHref:$2t,xLinkRole:L2t,xLinkShow:P2t,xLinkTitle:F2t,xLinkType:B2t,xmlnsXLink:z2t};var mz={};mz.parse=V2t;mz.stringify=W2t;var Zte="",j2t=" ",U2t=/[ \t\n\r\f]+/g;function V2t(e){var t=String(e||Zte).trim();return t===Zte?[]:t.split(U2t)}function W2t(e){return e.join(j2t).trim()}var vz={};vz.parse=G2t;vz.stringify=q2t;var Y6=",",Jte=" ",O1="";function G2t(e){for(var t=[],n=String(e||O1),r=n.indexOf(Y6),a=0,i=!1,o;!i;)r===-1&&(r=n.length,i=!0),o=n.slice(a,r).trim(),(o||!i)&&t.push(o),a=r+1,r=n.indexOf(Y6,a);return t}function q2t(e,t){var n=t||{},r=n.padLeft===!1?O1:Jte,a=n.padRight?Jte:O1;return e[e.length-1]===O1&&(e=e.concat(O1)),e.join(a+Y6+r).trim()}var ene=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Y2t=/\n/g,K2t=/^\s*/,X2t=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Q2t=/^:\s*/,Z2t=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,J2t=/^[;\s]*/,eTt=/^\s+|\s+$/g,tTt=` +`,tne="/",nne="*",Sh="",nTt="comment",rTt="declaration",aTt=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(h){var m=h.match(Y2t);m&&(n+=m.length);var v=h.lastIndexOf(tTt);r=~v?h.length-v:r+h.length}function i(){var h={line:n,column:r};return function(m){return m.position=new o(h),u(),m}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(h){var m=new Error(t.source+":"+n+":"+r+": "+h);if(m.reason=h,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function s(h){var m=h.exec(e);if(m){var v=m[0];return a(v),e=e.slice(v.length),m}}function u(){s(K2t)}function c(h){var m;for(h=h||[];m=d();)m!==!1&&h.push(m);return h}function d(){var h=i();if(!(tne!=e.charAt(0)||nne!=e.charAt(1))){for(var m=2;Sh!=e.charAt(m)&&(nne!=e.charAt(m)||tne!=e.charAt(m+1));)++m;if(m+=2,Sh===e.charAt(m-1))return l("End of comment missing");var v=e.slice(2,m-2);return r+=2,a(v),e=e.slice(m),r+=2,h({type:nTt,comment:v})}}function f(){var h=i(),m=s(X2t);if(m){if(d(),!s(Q2t))return l("property missing ':'");var v=s(Z2t),y=h({type:rTt,property:rne(m[0].replace(ene,Sh)),value:v?rne(v[0].replace(ene,Sh)):Sh});return s(J2t),y}}function p(){var h=[];c(h);for(var m;m=f();)m!==!1&&(h.push(m),c(h));return h}return u(),p()};function rne(e){return e?e.replace(eTt,Sh):Sh}var iTt=aTt;function oTt(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,a=iTt(e),i=typeof t=="function",o,l,s=0,u=a.length;s0?$4.createElement(f,l,c):$4.createElement(f,l)}function gTt(e){let t=-1;for(;++tString(t)).join("")}const P4=g,ine=K1e,xTt=n0t,ETt=VEt,STt=ZCt,Zn=owt,CTt=Bwt,wTt=Hwt,xEe=Uwt,TTt=pz.hastChildrenToReact;var ATt=XR;const one={}.hasOwnProperty,ITt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h2={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function XR(e){for(const i in h2)if(one.call(h2,i)&&one.call(e,i)){const o=h2[i];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${i}\` (see <${ITt}#${o.id}> for more info)`),delete h2[i]}const t=xTt().use(ETt).use(e.remarkPlugins||e.plugins||[]).use(STt,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(wTt,e);let n;typeof e.children=="string"?n=ine(e.children):(e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=ine());const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let a=P4.createElement(P4.Fragment,{},TTt({options:e,schema:CTt,listDepth:0},r));return e.className&&(a=P4.createElement("div",{className:e.className},a)),a}XR.defaultProps={transformLinkUri:xEe};XR.propTypes={children:Zn.string,className:Zn.string,allowElement:Zn.func,allowedElements:Zn.arrayOf(Zn.string),disallowedElements:Zn.arrayOf(Zn.string),unwrapDisallowed:Zn.bool,remarkPlugins:Zn.arrayOf(Zn.oneOfType([Zn.object,Zn.func,Zn.arrayOf(Zn.oneOfType([Zn.object,Zn.func]))])),rehypePlugins:Zn.arrayOf(Zn.oneOfType([Zn.object,Zn.func,Zn.arrayOf(Zn.oneOfType([Zn.object,Zn.func]))])),sourcePos:Zn.bool,rawSourcePos:Zn.bool,skipHtml:Zn.bool,includeElementIndex:Zn.bool,transformLinkUri:Zn.oneOfType([Zn.func,Zn.bool]),linkTarget:Zn.oneOfType([Zn.func,Zn.string]),transformImageUri:Zn.func,components:Zn.object};XR.uriTransformer=xEe;const OTt=Or(ATt);var EEe={},SEe=jR,CEe=JS,wEe=az,kTt=fi,TEe=nz,AEe=rz,RTt={tokenize:MTt,partial:!0},IEe={tokenize:$Tt,partial:!0},OEe={tokenize:LTt,partial:!0},qv={tokenize:FTt,partial:!0},kEe={tokenize:PTt,partial:!0},REe={tokenize:NTt,previous:DEe},_Ee={tokenize:DTt,previous:bz},rf={tokenize:_Tt,previous:MEe},Wc={};EEe.text=Wc;var nh=48;for(;nh<123;)Wc[nh]=rf,nh++,nh===58?nh=65:nh===91&&(nh=97);Wc[43]=rf;Wc[45]=rf;Wc[46]=rf;Wc[95]=rf;Wc[72]=[rf,_Ee];Wc[104]=[rf,_Ee];Wc[87]=[rf,REe];Wc[119]=[rf,REe];function _Tt(e,t,n){var r=this,a;return i;function i(f){return!lne(f)||!MEe(r.previous)||xz(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return lne(f)?(e.consume(f),o):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(qv,d,s)(f):f===45||f===95?e.check(qv,n,u)(f):CEe(f)?(e.consume(f),l):d(f)}function s(f){return e.consume(f),a=!0,l}function u(f){return e.consume(f),c}function c(f){return f===46?e.check(qv,n,s)(f):l(f)}function d(f){return a?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function NTt(e,t,n){var r=this;return a;function a(o){return o!==87&&o-32!==87||!DEe(r.previous)||xz(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(RTt,e.attempt(IEe,e.attempt(OEe,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function DTt(e,t,n){var r=this;return a;function a(h){return h!==72&&h-32!==72||!bz(r.previous)||xz(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(h),i)}function i(h){return h===84||h-32===84?(e.consume(h),o):n(h)}function o(h){return h===84||h-32===84?(e.consume(h),l):n(h)}function l(h){return h===80||h-32===80?(e.consume(h),s):n(h)}function s(h){return h===83||h-32===83?(e.consume(h),u):u(h)}function u(h){return h===58?(e.consume(h),c):n(h)}function c(h){return h===47?(e.consume(h),d):n(h)}function d(h){return h===47?(e.consume(h),f):n(h)}function f(h){return wEe(h)||AEe(h)||TEe(h)?n(h):e.attempt(IEe,e.attempt(OEe,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function MTt(e,t,n){return r;function r(s){return e.consume(s),a}function a(s){return s===87||s-32===87?(e.consume(s),i):n(s)}function i(s){return s===87||s-32===87?(e.consume(s),o):n(s)}function o(s){return s===46?(e.consume(s),l):n(s)}function l(s){return s===null||kTt(s)?n(s):t(s)}}function $Tt(e,t,n){var r,a;return i;function i(s){return s===38?e.check(kEe,l,o)(s):s===46||s===95?e.check(qv,l,o)(s):wEe(s)||AEe(s)||s!==45&&TEe(s)?l(s):(e.consume(s),i)}function o(s){return s===46?(a=r,r=void 0,e.consume(s),i):(s===95&&(r=!0),e.consume(s),i)}function l(s){return!a&&!r?t(s):n(s)}}function LTt(e,t){var n=0;return r;function r(o){return o===38?e.check(kEe,t,a)(o):(o===40&&n++,o===41?e.check(qv,i,a)(o):yz(o)?t(o):NEe(o)?e.check(qv,t,a)(o):(e.consume(o),r))}function a(o){return e.consume(o),r}function i(o){return n--,n<0?t(o):a(o)}}function PTt(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return SEe(o)?(e.consume(o),a):o===59?(e.consume(o),i):n(o)}function i(o){return yz(o)?t(o):n(o)}}function FTt(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return NEe(i)?(e.consume(i),a):yz(i)?t(i):n(i)}}function NEe(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}function yz(e){return e===null||e<0||e===32||e===60}function lne(e){return e===43||e===45||e===46||e===95||CEe(e)}function DEe(e){return e===null||e<0||e===32||e===40||e===42||e===95||e===126}function bz(e){return e===null||!SEe(e)}function MEe(e){return e!==47&&bz(e)}function xz(e){for(var t=e.length;t--;)if((e[t][1].type==="labelLink"||e[t][1].type==="labelImage")&&!e[t][1]._balanced)return!0}var BTt=EEe,zTt=jTt,sne=fxe,F4=tf,HTt=HR,g2=Kg;function jTt(e){var t=e||{},n=t.singleTilde,r={tokenize:o,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:r}};function a(l,s){for(var u=-1,c,d,f,p;++u1?u(m):(l.consume(m),f++,h):f<2&&!n?u(m):(y=l.exit("strikethroughSequenceTemporary"),b=sne(m),y._open=!b||b===2&&v,y._close=!v||v===2&&b,s(m))}}}var $Ee={};$Ee.flow={null:{tokenize:WTt,resolve:VTt,interruptible:!0}};var B4=ki,UTt={tokenize:GTt,partial:!0},une={tokenize:qTt,partial:!0};function VTt(e,t){for(var n=e.length,r=-1,a,i,o,l,s,u,c,d,f,p;++r{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},pAt=yAt,hAt=_xe,gAt=kxe,mAt=fAt,vAt=[].splice;function yAt(e,t,n,r){var a,i;return typeof t=="string"||t&&typeof t.exec=="function"?i=[[t,n]]:(i=t,r=n),a=r||{},cne(e,a,o(bAt(i))),e;function o(l){var s=l[0];return u;function u(c,d){var f=s[0],p=s[1],h=[],m=0,v=d.children.indexOf(c),y,b,x,E;for(f.lastIndex=0,b=f.exec(c.value);b&&(y=b.index,E=p.apply(null,[].concat(b,{index:b.index,input:b.input})),E!==!1&&(m!==y&&h.push({type:"text",value:c.value.slice(m,y)}),typeof E=="string"&&E.length>0&&(E={type:"text",value:E}),E&&(h=[].concat(h,E)),m=y+b[0].length),!!f.global);)b=f.exec(c.value);if(y===void 0?(h=[c],v--):(m1)for(x=o(l.slice(1)),y=-1;++y?\]}]+$/.exec(e),n,r,a;if(t)for(e=e.slice(0,t.index),t=t[0],n=t.indexOf(")"),r=pne(e,"("),a=pne(e,")");n!==-1&&r>a;)e+=t.slice(0,n+1),t=t.slice(n+1),n=t.indexOf(")"),a++;return[e,t]}function PEe(e,t){var n=e.input.charCodeAt(e.index-1);return(n!==n||SAt(n)||EAt(n))&&(!t||n!==47)}var ZR={};ZR.canContainEols=["delete"];ZR.enter={strikethrough:DAt};ZR.exit={strikethrough:MAt};function DAt(e){this.enter({type:"delete",children:[]},e)}function MAt(e){this.exit(e)}var Ez={};Ez.enter={table:$At,tableData:hne,tableHeader:hne,tableRow:PAt};Ez.exit={codeText:FAt,table:LAt,tableData:H4,tableHeader:H4,tableRow:H4};function $At(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)}function LAt(e){this.exit(e),this.setData("inTable")}function PAt(e){this.enter({type:"tableRow",children:[]},e)}function H4(e){this.exit(e)}function hne(e){this.enter({type:"tableCell",children:[]},e)}function FAt(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,BAt)),this.stack[this.stack.length-1].value=t,this.exit(e)}function BAt(e,t){return t==="|"?t:e}var FEe={};FEe.exit={taskListCheckValueChecked:gne,taskListCheckValueUnchecked:gne,paragraph:zAt};function gne(e){this.stack[this.stack.length-2].checked=e.type==="taskListCheckValueChecked"}function zAt(e){var t=this.stack[this.stack.length-2],n=this.stack[this.stack.length-1],r=t.children,a=n.children[0],i=-1,o;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&a&&a.type==="text"){for(;++i0&&(o==="\r"||o===` +`)&&u.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),o=" "),a.push(t.handle(u,e,t,{before:o,after:l})),o=a[a.length-1].slice(-1);return a.join("")}var XAt=zEe;Sz.unsafe=[{character:"~",inConstruct:"phrasing"}];Sz.handlers={delete:HEe};HEe.peek=QAt;function HEe(e,t,n){var r=n.enter("emphasis"),a=XAt(e,n,{before:"~",after:"~"});return r(),"~~"+a+"~~"}function QAt(){return"~"}var ZAt=JAt;function JAt(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}var eIt=jEe;jEe.peek=nIt;var tIt=ZAt;function jEe(e,t,n){for(var r=e.value||"",a="`",i=-1,o,l,s,u;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/[ \r\n`]/.test(r.charAt(0))||/[ \r\n`]/.test(r.charAt(r.length-1)))&&(r=" "+r+" ");++i + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */var ad="",V4,Cz=rIt;function rIt(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var n=e.length*t;if(V4!==e||typeof V4>"u")V4=e,ad="";else if(ad.length>=n)return ad.substr(0,n);for(;n>ad.length&&t>1;)t&1&&(ad+=e),t>>=1,e+=e;return ad+=e,ad=ad.substr(0,n),ad}var Vm=Cz,aIt=dIt,iIt=/ +$/,rh=" ",oIt=` +`,lIt="-",m2=":",mne="|",vne=0,sIt=67,uIt=76,cIt=82,zI=99,X6=108,HI=114;function dIt(e,t){for(var n=t||{},r=n.padding!==!1,a=n.delimiterStart!==!1,i=n.delimiterEnd!==!1,o=(n.align||[]).concat(),l=n.alignDelimiters!==!1,s=[],u=n.stringLength||pIt,c=-1,d=e.length,f=[],p=[],h=[],m=[],v=[],y=0,b,x,E,S,C,w,I,T,A,O,R;++cy&&(y=E);++xS)&&(v[x]=C)),h.push(w);f[c]=h,p[c]=m}if(x=-1,E=y,typeof o=="object"&&"length"in o)for(;++xv[x]&&(v[x]=C),m[x]=C),h[x]=w;for(f.splice(1,0,h),p.splice(1,0,m),c=-1,d=f.length,I=[];++c + +`}return` + +`}}var AIt=OIt,IIt=/\r?\n|\r/g;function OIt(e,t){for(var n=[],r=0,a=0,i;i=IIt.exec(e);)o(e.slice(r,i.index)),n.push(i[0]),r=i.index+i[0].length,a++;return o(e.slice(r)),n.join("");function o(l){n.push(t(l,a,!l))}}var kIt=MIt,bne=Cz,RIt=bIt,_It=EIt,NIt=CIt,DIt=AIt;function MIt(e,t,n){var r=RIt(n),a=_It(n),i,o,l;return t&&t.ordered&&(r=(t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),i=r.length+1,(a==="tab"||a==="mixed"&&(t&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4),l=n.enter("listItem"),o=DIt(NIt(e,n),s),l(),o;function s(u,c,d){return c?(d?"":bne(" ",i))+u:(d?r:r+bne(" ",i-r.length))+u}}var $It=kIt;wz.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];wz.handlers={listItem:LIt};function LIt(e,t,n){var r=$It(e,t,n),a=e.children[0];return typeof e.checked=="boolean"&&a&&a.type==="paragraph"&&(r=r.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,i)),r;function i(o){return o+"["+(e.checked?"x":" ")+"] "}}var PIt=UEe;function UEe(e,t){var n=-1,r;if(t.extensions)for(;++n{},As=Vf(),W4=Object,Cu=e=>e===As,Ch=e=>typeof e=="function",JR=(e,t)=>({...e,...t}),QIt=e=>Ch(e.then),v2=new WeakMap;let ZIt=0;const CE=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let a,i;if(W4(e)===e&&!r&&n!=RegExp){if(a=v2.get(e),a)return a;if(a=++ZIt+"~",v2.set(e,a),n==Array){for(a="@",i=0;i{const n=$f.get(e);return[()=>!Cu(t)&&e.get(t)||G4,r=>{if(!Cu(t)){const a=e.get(t);t in y2||(y2[t]=a),n[5](t,JR(a,r),a||G4)}},n[6],()=>!Cu(t)&&t in y2?y2[t]:!Cu(t)&&e.get(t)||G4]};let Z6=!0;const eOt=()=>Z6,[J6,eF]=Tz&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Vf,Vf],tOt=()=>{const e=Q6&&document.visibilityState;return Cu(e)||e!=="hidden"},nOt=e=>(Q6&&document.addEventListener("visibilitychange",e),J6("focus",e),()=>{Q6&&document.removeEventListener("visibilitychange",e),eF("focus",e)}),rOt=e=>{const t=()=>{Z6=!0,e()},n=()=>{Z6=!1};return J6("online",t),J6("offline",n),()=>{eF("online",t),eF("offline",n)}},aOt={isOnline:eOt,isVisible:tOt},iOt={initFocus:nOt,initReconnect:rOt};M.useId;const WEe=!Tz||"Deno"in window,q4=typeof navigator<"u"&&navigator.connection,Ene=!WEe&&q4&&(["slow-2g","2g"].includes(q4.effectiveType)||q4.saveData),GEe=e=>{if(Ch(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?CE(e):"",[e,t]};let oOt=0;const Sne=()=>++oOt,lOt=0,sOt=1,uOt=2;async function cOt(...e){const[t,n,r,a]=e,i=JR({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let o=i.populateCache;const l=i.rollbackOnError;let s=i.optimisticData;const u=f=>typeof l=="function"?l(f):l!==!1,c=i.throwOnError;if(Ch(n)){const f=n,p=[],h=t.keys();for(const m of h)!/^\$(inf|sub)\$/.test(m)&&f(t.get(m)._k)&&p.push(m);return Promise.all(p.map(d))}return d(n);async function d(f){const[p]=GEe(f);if(!p)return;const[h,m]=JIt(t,p),[v,y,b,x]=$f.get(t),E=()=>{const N=v[p];return(Ch(i.revalidate)?i.revalidate(h().data,f):i.revalidate!==!1)&&(delete b[p],delete x[p],N&&N[0])?N[0](uOt).then(()=>h().data):h().data};if(e.length<3)return E();let S=r,C;const w=Sne();y[p]=[w,0];const I=!Cu(s),T=h(),A=T.data,O=T._c,R=Cu(O)?A:O;if(I&&(s=Ch(s)?s(R,A):s,m({data:s,_c:R})),Ch(S))try{S=S(R)}catch(N){C=N}if(S&&QIt(S))if(S=await S.catch(N=>{C=N}),w!==y[p][0]){if(C)throw C;return S}else C&&I&&u(C)&&(o=!0,m({data:R,_c:As}));if(o&&!C)if(Ch(o)){const N=o(S,R);m({data:N,error:As,_c:As})}else m({data:S,error:As,_c:As});if(y[p][1]=Sne(),Promise.resolve(E()).then(()=>{m({_c:As})}),C){if(c)throw C;return}return S}}const Cne=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},dOt=(e,t)=>{if(!$f.has(e)){const n=JR(iOt,t),r={},a=cOt.bind(As,e);let i=Vf;const o={},l=(c,d)=>{const f=o[c]||[];return o[c]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},s=(c,d,f)=>{e.set(c,d);const p=o[c];if(p)for(const h of p)h(d,f)},u=()=>{if(!$f.has(e)&&($f.set(e,[r,{},{},{},a,s,l]),!WEe)){const c=n.initFocus(setTimeout.bind(As,Cne.bind(As,r,lOt))),d=n.initReconnect(setTimeout.bind(As,Cne.bind(As,r,sOt)));i=()=>{c&&c(),d&&d(),$f.delete(e)}}};return u(),[e,a,u,i]}return[e,$f.get(e)[4]]},fOt=(e,t,n,r,a)=>{const i=n.errorRetryCount,o=a.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Cu(i)&&o>i||setTimeout(r,l,a)},pOt=(e,t)=>CE(e)==CE(t),[qEe,hOt]=dOt(new Map);JR({onLoadingSlow:Vf,onSuccess:Vf,onError:Vf,onErrorRetry:fOt,onDiscarded:Vf,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ene?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ene?5e3:3e3,compare:pOt,isPaused:()=>!1,cache:qEe,mutate:hOt,fallback:{}},aOt);g.createContext({});const gOt="$inf$",YEe=Tz&&window.__SWR_DEVTOOLS_USE__,mOt=YEe?window.__SWR_DEVTOOLS_USE__:[],vOt=()=>{YEe&&(window.__SWR_DEVTOOLS_REACT__=M)},yOt=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=GEe(t),[,,,l]=$f.get(qEe);if(o.startsWith(gOt))return n(...i);const s=l[o];return Cu(s)?n(...i):(delete l[o],s)}),r);mOt.concat(yOt);vOt();M.use;function bOt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$k(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}const xOt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"默认",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}};function EOt(e,t,n){var r=t.replace(/\[(\d+)\]/g,".$1").split("."),a=e,i=n,o=bOt(r),l;try{for(o.s();!(l=o.n()).done;){var s=l.value;if(i=Object(a)[s],a=Object(a)[s],i===void 0)return n}}catch(u){o.e(u)}finally{o.f()}return i}var SOt=function(t,n){return{getMessage:function(a,i){return EOt(n,a,i)||i},locale:t}},COt=SOt("zh_CN",xOt),Y4,jI={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)",boxShadowSecondary:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",boxShadowDrawerRight:"-6px 0 16px 0 rgba(0, 0, 0, 0.08),-3px 0 6px -4px rgba(0, 0, 0, 0.12),-9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerLeft:"6px 0 16px 0 rgba(0, 0, 0, 0.08),3px 0 6px -4px rgba(0, 0, 0, 0.12),9px 0 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerUp:"0 6px 16px 0 rgba(0, 0, 0, 0.08),0 3px 6px -4px rgba(0, 0, 0, 0.12),0 9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowDrawerDown:"0 -6px 16px 0 rgba(0, 0, 0, 0.08),0 -3px 6px -4px rgba(0, 0, 0, 0.12),0 -9px 28px 8px rgba(0, 0, 0, 0.05)",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},KEe=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,a=1103547991^n,i=0,o;i>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&a)+(r>>>0)},Az=D0(function(e){return e}),XEe={theme:Az,token:Q(Q({},jI),Na==null||(Y4=Na.defaultAlgorithm)===null||Y4===void 0?void 0:Y4.call(Na,Na==null?void 0:Na.defaultSeed)),hashId:"pro-".concat(KEe(JSON.stringify(jI)))},wOt=function(){return XEe};const TOt=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:jI,emptyTheme:Az,hashCode:KEe,token:XEe,useToken:wOt},Symbol.toStringTag,{value:"Module"}));var AOt=function(){return typeof Na>"u"||!Na?TOt:Na},IOt=AOt(),OOt=IOt.useToken,K4=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}},X4=function(t){return{color:t.colorLink,outline:"none",cursor:"pointer",transition:"color ".concat(t.motionDurationSlow),"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}}};function kOt(e,t){var n,r=g.useContext(wne),a=r.token,i=a===void 0?{}:a,o=g.useContext(wne),l=o.hashId,s=l===void 0?"":l,u=o.theme,c=OOt(),d=c.token,f=g.useContext(Hc.ConfigContext),p=f.getPrefixCls;return i.layout||(i=Q({},d)),i.proComponentsCls=(n=i.proComponentsCls)!==null&&n!==void 0?n:".".concat(p("pro")),i.antCls=".".concat(p()),{wrapSSR:bI({theme:u,token:i,hashId:s,path:[e]},function(){return t(i)}),hashId:s}}var ROt={exports:{}};(function(e,t){(function(n,r){e.exports=r(r0e)})(We,function(n){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var a=r(n),i={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,l){return l==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,l){var s=100*o+l;return s<600?"凌晨":s<900?"早上":s<1100?"上午":s<1300?"中午":s<1800?"下午":"晚上"}};return a.default.locale(i,null,!0),i})})(ROt);var Iz=M.createContext({intl:Q(Q({},COt),{},{locale:"default"}),valueTypeMap:{},theme:Az,hashed:!0,dark:!1,token:jI});Iz.Consumer;Iz.displayName="ProProvider";var wne=Iz,_Ot=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:zgt}))};const NOt=g.forwardRef(_Ot);var DOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Wgt}))};const MOt=g.forwardRef(DOt);var $Ot=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:c1e}))};const LOt=g.forwardRef($Ot);var POt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Xgt}))};const FOt=g.forwardRef(POt);var BOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:h1e}))};const zOt=g.forwardRef(BOt);var HOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:tmt}))};const jOt=g.forwardRef(HOt);var UOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:fmt}))};const VOt=g.forwardRef(UOt);var WOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:S1e}))};const GOt=g.forwardRef(WOt);var qOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:mmt}))};const YOt=g.forwardRef(qOt);var KOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Rmt}))};const XOt=g.forwardRef(KOt);var QOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Nmt}))};const ZOt=g.forwardRef(QOt);var JOt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Mmt}))};const QEe=g.forwardRef(JOt);var ekt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Lmt}))};const tkt=g.forwardRef(ekt);var nkt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Fmt}))};const Tne=g.forwardRef(nkt);var rkt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:zmt}))};const Ane=g.forwardRef(rkt);var akt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:jmt}))};const ikt=g.forwardRef(akt);var okt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:Jmt}))};const lkt=g.forwardRef(okt);var skt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:tvt}))};const ZEe=g.forwardRef(skt);var ukt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:B1e}))};const JEe=g.forwardRef(ukt);var ckt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:j1e}))};const dkt=g.forwardRef(ckt);var fkt=function(t,n){return g.createElement(Ut,Ne({},t,{ref:n,icon:fvt}))};const pkt=g.forwardRef(fkt);var hkt=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],eSe=g.forwardRef(function(e,t){var n=e.className,r=e.component,a=e.viewBox,i=e.spin,o=e.rotate,l=e.tabIndex,s=e.onClick,u=e.children,c=Lt(e,hkt),d=g.useRef(),f=zc(d,t);BP(!!(r||u),"Should have `component` prop or `children`."),Fge(d);var p=g.useContext(zk),h=p.prefixCls,m=h===void 0?"anticon":h,v=p.rootClassName,y=ie(v,m,n),b=ie(X({},"".concat(m,"-spin"),!!i)),x=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,E=Q(Q({},_Ue),{},{className:b,style:x,viewBox:a});a||delete E.viewBox;var S=function(){return r?g.createElement(r,E,u):u?(BP(!!a||g.Children.count(u)===1&&g.isValidElement(u)&&g.Children.only(u).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),g.createElement("svg",Ne({},E,{viewBox:a}),u)):null},C=l;return C===void 0&&s&&(C=-1),g.createElement("span",Ne({role:"img"},c,{ref:f,tabIndex:C,onClick:s,className:y}),S())});eSe.displayName="AntdIcon";const gkt=eSe;var tF={exports:{}},tSe={},Oz={};Object.defineProperty(Oz,"__esModule",{value:!0});var mkt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};Oz.default=mkt;var kz={};const nSe=zO(gje);var Rz={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t=g,n=(0,t.createContext)({}),r=n})(Rz);var _z={},e3={},Hy={},rSe={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rSe);var vkt=rSe.exports,aSe={exports:{}},iSe={exports:{}},oSe={exports:{}},lSe={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(lSe);var sSe=lSe.exports,uSe={exports:{}};(function(e){var t=sSe.default;function n(r,a){if(t(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var o=i.call(r,a||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(uSe);var ykt=uSe.exports;(function(e){var t=sSe.default,n=ykt;function r(a){var i=n(a,"string");return t(i)=="symbol"?i:String(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(oSe);var bkt=oSe.exports;(function(e){var t=bkt;function n(r,a,i){return a=t(a),a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(iSe);var xkt=iSe.exports;(function(e){var t=xkt;function n(a,i){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);i&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),o.push.apply(o,l)}return o}function r(a){for(var i=1;i0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Akt}function t3(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Ikt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $z(e){return Array.from((UI.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Lz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,wkt.default)())return null;var n=t.csp,r=t.prepend,a=t.priority,i=a===void 0?0:a,o=Ikt(r),l=o==="prependQueue",s=document.createElement("style");s.setAttribute(One,o),l&&i&&s.setAttribute(kne,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var u=t3(t),c=u.firstChild;if(r){if(l){var d=(t.styles||$z(u)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(One)))return!1;var p=Number(f.getAttribute(kne)||0);return i>=p});if(d.length)return u.insertBefore(s,d[d.length-1].nextSibling),s}u.insertBefore(s,c)}else u.appendChild(s);return s}function dSe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t3(t);return(t.styles||$z(n)).find(function(r){return r.getAttribute(cSe(t))===e})}function Okt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=dSe(e,t);if(n){var r=t3(t);r.removeChild(n)}}function kkt(e,t){var n=UI.get(e);if(!n||!(0,Tkt.default)(document,n)){var r=Lz("",t),a=r.parentNode;UI.set(e,a),e.removeChild(r)}}function Rkt(){UI.clear()}function _kt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t3(n),a=$z(r),i=(0,Ine.default)((0,Ine.default)({},n),{},{styles:a});kkt(r,i);var o=dSe(t,i);if(o){var l,s;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&o.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var u;o.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=Lz(e,i);return c.setAttribute(cSe(i),t),c}var n3={};Object.defineProperty(n3,"__esModule",{value:!0});n3.getShadowRoot=Nkt;n3.inShadow=pSe;function fSe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function pSe(e){return fSe(e)instanceof ShadowRoot}function Nkt(e){return pSe(e)?fSe(e):null}var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});Ks.call=Pz;Ks.default=void 0;Ks.note=gSe;Ks.noteOnce=vSe;Ks.preMessage=void 0;Ks.resetWarned=mSe;Ks.warning=hSe;Ks.warningOnce=dC;var nF={},Dkt=Ks.preMessage=function(t){};function hSe(e,t){}function gSe(e,t){}function mSe(){nF={}}function Pz(e,t,n){!t&&!nF[n]&&(e(!1,n),nF[n]=!0)}function dC(e,t){Pz(hSe,e,t)}function vSe(e,t){Pz(gSe,e,t)}dC.preMessage=Dkt;dC.resetWarned=mSe;dC.noteOnce=vSe;Ks.default=dC;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,I){for(var T in I)Object.defineProperty(w,T,{enumerable:!0,get:I[T]})}t(e,{generate:function(){return y},getSecondaryColor:function(){return b},iconStyles:function(){return S},isIconDefinition:function(){return m},normalizeAttrs:function(){return v},normalizeTwoToneColors:function(){return x},svgBaseProps:function(){return E},useInsertStyles:function(){return C},warning:function(){return h}});var n=nSe,r=Hy,a=n3,i=u(Ks),o=d(g),l=u(Rz);function s(w,I,T){return I in w?Object.defineProperty(w,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):w[I]=T,w}function u(w){return w&&w.__esModule?w:{default:w}}function c(w){if(typeof WeakMap!="function")return null;var I=new WeakMap,T=new WeakMap;return(c=function(A){return A?T:I})(w)}function d(w,I){if(!I&&w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var T=c(I);if(T&&T.has(w))return T.get(w);var A={__proto__:null},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in w)if(R!=="default"&&Object.prototype.hasOwnProperty.call(w,R)){var N=O?Object.getOwnPropertyDescriptor(w,R):null;N&&(N.get||N.set)?Object.defineProperty(A,R,N):A[R]=w[R]}return A.default=w,T&&T.set(w,A),A}function f(w){for(var I=1;I0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(w).reduce(function(I,T){var A=w[T];switch(T){case"class":I.className=A,delete I.class;break;default:delete I[T],I[p(T)]=A}return I},{})}function y(w,I,T){return T?o.default.createElement(w.tag,f({key:I},v(w.attrs),T),(w.children||[]).map(function(A,O){return y(A,"".concat(I,"-").concat(w.tag,"-").concat(O))})):o.default.createElement(w.tag,f({key:I},v(w.attrs)),(w.children||[]).map(function(A,O){return y(A,"".concat(I,"-").concat(w.tag,"-").concat(O))}))}function b(w){return(0,n.generate)(w)[0]}function x(w){return w?Array.isArray(w)?w:[w]:[]}var E={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},S=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,C=function(w){var I=(0,o.useContext)(l.default),T=I.csp,A=I.prefixCls,O=S;A&&(O=O.replace(/anticon/g,A)),(0,o.useEffect)(function(){var R=w.current,N=(0,a.getShadowRoot)(R);(0,r.updateCSS)(O,"@ant-design-icons",{prepend:!0,csp:T,attachTo:N})},[])}})(e3);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return m}});var t=i(g),n=e3;function r(v,y,b){return y in v?Object.defineProperty(v,y,{value:b,enumerable:!0,configurable:!0,writable:!0}):v[y]=b,v}function a(v){if(typeof WeakMap!="function")return null;var y=new WeakMap,b=new WeakMap;return(a=function(x){return x?b:y})(v)}function i(v,y){if(!y&&v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var b=a(y);if(b&&b.has(v))return b.get(v);var x={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in v)if(S!=="default"&&Object.prototype.hasOwnProperty.call(v,S)){var C=E?Object.getOwnPropertyDescriptor(v,S):null;C&&(C.get||C.set)?Object.defineProperty(x,S,C):x[S]=v[S]}return x.default=v,b&&b.set(v,x),x}function o(v){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(v,x)&&(b[x]=v[x])}return b}function c(v,y){if(v==null)return{};var b={},x=Object.keys(v),E,S;for(S=0;S=0)&&(b[E]=v[E]);return b}var d={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function f(v){var y=v.primaryColor,b=v.secondaryColor;d.primaryColor=y,d.secondaryColor=b||(0,n.getSecondaryColor)(y),d.calculated=!!b}function p(){return o({},d)}var h=function(v){var y=v.icon,b=v.className,x=v.onClick,E=v.style,S=v.primaryColor,C=v.secondaryColor,w=u(v,["icon","className","onClick","style","primaryColor","secondaryColor"]),I=t.useRef(),T=d;if(S&&(T={primaryColor:S,secondaryColor:C||(0,n.getSecondaryColor)(S)}),(0,n.useInsertStyles)(I),(0,n.warning)((0,n.isIconDefinition)(y),"icon should be icon definiton, but got ".concat(y)),!(0,n.isIconDefinition)(y))return null;var A=y;return A&&typeof A.icon=="function"&&(A=s(o({},A),{icon:A.icon(T.primaryColor,T.secondaryColor)})),(0,n.generate)(A.icon,"svg-".concat(A.name),s(o({className:b,onClick:x,style:E,"data-icon":A.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},w),{ref:I}))};h.displayName="IconReact",h.getTwoToneColors=p,h.setTwoToneColors=f;var m=h})(_z);var ySe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,h){for(var m in h)Object.defineProperty(p,m,{enumerable:!0,get:h[m]})}t(e,{getTwoToneColor:function(){return f},setTwoToneColor:function(){return d}});var n=o(_z),r=e3;function a(p,h){(h==null||h>p.length)&&(h=p.length);for(var m=0,v=new Array(h);mT.length)&&(A=T.length);for(var O=0,R=new Array(A);O=0)&&Object.prototype.propertyIsEnumerable.call(T,R)&&(O[R]=T[R])}return O}function E(T,A){if(T==null)return{};var O={},R=Object.keys(T),N,_;for(_=0;_=0)&&(O[N]=T[N]);return O}function S(T,A){return u(T)||h(T,A)||C(T,A)||m()}function C(T,A){if(T){if(typeof T=="string")return s(T,A);var O=Object.prototype.toString.call(T).slice(8,-1);if(O==="Object"&&T.constructor&&(O=T.constructor.name),O==="Map"||O==="Set")return Array.from(O);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return s(T,A)}}(0,o.setTwoToneColor)(r.blue.primary);var w=t.forwardRef(function(T,A){var O=T.className,R=T.icon,N=T.spin,_=T.rotate,L=T.tabIndex,$=T.onClick,k=T.twoToneColor,P=x(T,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),B=t.useContext(a.default),F=B.prefixCls,D=F===void 0?"anticon":F,j=B.rootClassName,z,V=(0,n.default)(j,D,(z={},c(z,"".concat(D,"-").concat(R.name),!!R.name),c(z,"".concat(D,"-spin"),!!N||R.name==="loading"),z),O),G=L;G===void 0&&$&&(G=-1);var W=_?{msTransform:"rotate(".concat(_,"deg)"),transform:"rotate(".concat(_,"deg)")}:void 0,Y=S((0,l.normalizeTwoToneColors)(k),2),J=Y[0],Z=Y[1];return t.createElement("span",b(v({role:"img","aria-label":R.name},P),{ref:A,tabIndex:G,onClick:$,className:V}),t.createElement(i.default,{icon:R,primaryColor:J,secondaryColor:Z,style:W}))});w.displayName="AntdIcon",w.getTwoToneColor=o.getTwoToneColor,w.setTwoToneColor=o.setTwoToneColor;var I=w})(kz);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=l(g),n=i(Oz),r=i(kz);function a(p,h,m){return h in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m,p}function i(p){return p&&p.__esModule?p:{default:p}}function o(p){if(typeof WeakMap!="function")return null;var h=new WeakMap,m=new WeakMap;return(o=function(v){return v?m:h})(p)}function l(p,h){if(!h&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var m=o(h);if(m&&m.has(p))return m.get(p);var v={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in p)if(b!=="default"&&Object.prototype.hasOwnProperty.call(p,b)){var x=y?Object.getOwnPropertyDescriptor(p,b):null;x&&(x.get||x.set)?Object.defineProperty(v,b,x):v[b]=p[b]}return v.default=p,m&&m.set(p,v),v}function s(p){for(var h=1;h *":X({"white-space":"unset"},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:t.marginSM,marginInlineStart:0})},X(r,"".concat(t.componentCls,"-rlt &"),{float:"left"}),X(r,"*:first-child",X({},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:0})),r)}),X(a,"&-content",{paddingBlockStart:t.pageHeaderPaddingContentPadding}),X(a,"&-footer",{marginBlockStart:t.margin}),X(a,"&-compact &-heading",{flexWrap:"wrap"}),X(a,"&-wide",{maxWidth:1152,margin:"0 auto"}),X(a,"&-rtl",{direction:"rtl"}),a)))};function zkt(e){return kOt("ProLayoutPageHeader",function(t){var n=Q(Q({},t),{},{componentCls:".".concat(e),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:t.paddingSM,pageHeaderColorBack:t.colorTextHeading,pageHeaderFontSizeHeaderTitle:t.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:t.paddingSM});return[Bkt(n)]})}var Hkt=function(t,n,r,a){return!r||!a?null:q.jsx("div",{className:"".concat(t,"-back ").concat(n).trim(),children:q.jsx("div",{role:"button",onClick:function(o){a==null||a(o)},className:"".concat(t,"-back-button ").concat(n).trim(),"aria-label":"back",children:r})})},jkt=function(t,n){var r;return(r=t.items)!==null&&r!==void 0&&r.length?q.jsx(t0e,Q(Q({},t),{},{className:ie("".concat(n,"-breadcrumb"),t.className)})):null},Ukt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return t.backIcon!==void 0?t.backIcon:n==="rtl"?q.jsx(Fkt,{}):q.jsx($kt,{})},Vkt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=arguments.length>3?arguments[3]:void 0,i=n.title,o=n.avatar,l=n.subTitle,s=n.tags,u=n.extra,c=n.onBack,d="".concat(t,"-heading"),f=i||l||s||u;if(!f)return null;var p=Ukt(n,r),h=Hkt(t,a,p,c),m=h||o||f;return q.jsxs("div",{className:d+" "+a,children:[m&&q.jsxs("div",{className:"".concat(d,"-left ").concat(a).trim(),children:[h,o&&q.jsx(PS,Q({className:ie("".concat(d,"-avatar"),a,o.className)},o)),i&&q.jsx("span",{className:"".concat(d,"-title ").concat(a).trim(),title:typeof i=="string"?i:void 0,children:i}),l&&q.jsx("span",{className:"".concat(d,"-sub-title ").concat(a).trim(),title:typeof l=="string"?l:void 0,children:l}),s&&q.jsx("span",{className:"".concat(d,"-tags ").concat(a).trim(),children:s})]}),u&&q.jsx("span",{className:"".concat(d,"-extra ").concat(a).trim(),children:q.jsx(Un,{children:u})})]})},Wkt=function(t,n,r){return n?q.jsx("div",{className:"".concat(t,"-footer ").concat(r).trim(),children:n}):null},Gkt=function(t,n,r){return q.jsx("div",{className:"".concat(t,"-content ").concat(r).trim(),children:n})},qkt=function(t){var n,r,a=g.useState(!1),i=fe(a,2),o=i[0],l=i[1],s=function(B){var F=B.width;return l(F<768)},u=g.useContext(Hc.ConfigContext),c=u.getPrefixCls,d=u.direction,f=t.prefixCls,p=t.style,h=t.footer,m=t.children,v=t.breadcrumb,y=t.breadcrumbRender,b=t.className,x=t.contentWidth,E=t.layout,S=c("page-header",f),C=zkt(S),w=C.wrapSSR,I=C.hashId,T=function(){return v&&!(v!=null&&v.items)&&v!==null&&v!==void 0&&v.routes&&(v.items=v.routes),v!=null&&v.items?jkt(v,S):null},A=T(),O=v&&"props"in v,R=(n=y==null?void 0:y(Q(Q({},t),{},{prefixCls:S}),A))!==null&&n!==void 0?n:A,N=O?v:R,_=ie(S,I,b,(r={},X(r,"".concat(S,"-has-breadcrumb"),!!N),X(r,"".concat(S,"-has-footer"),!!h),X(r,"".concat(S,"-rtl"),d==="rtl"),X(r,"".concat(S,"-compact"),o),X(r,"".concat(S,"-wide"),x==="Fixed"&&E=="top"),X(r,"".concat(S,"-ghost"),!0),r)),L=Vkt(S,t,d,I),$=m&&Gkt(S,m,I),k=Wkt(S,h,I);return!N&&!L&&!k&&!$?q.jsx("div",{className:ie(I,["".concat(S,"-no-children")])}):w(q.jsx(Si,{onResize:s,children:q.jsxs("div",{className:_,style:p,children:[N,L,$,k]})}))},Ykt=Object.defineProperty,rt=(e,t)=>Ykt(e,"name",{value:t,configurable:!0}),Qu=rt(({action:e,resource:t,onMutationSuccess:n,onMutationError:r,autoSave:a,submitOnEnter:i=!1,warnWhenUnsavedChanges:o,redirect:l,successNotification:s,errorNotification:u,meta:c,metaData:d,queryMeta:f,mutationMeta:p,liveMode:h,liveParams:m,mutationMode:v,dataProviderName:y,onLiveEvent:b,invalidates:x,undoableTimeout:E,queryOptions:S,createMutationOptions:C,updateMutationOptions:w,id:I,overtimeOptions:T,optimisticUpdateMap:A,disableServerSideValidation:O=!1}={})=>{var R,N;let{options:_}=Aa(),L=(_==null?void 0:_.disableServerSideValidation)||O,$=on(),[k]=en.useForm(),P=U9({form:k}),{form:B}=P,F=u5e({onMutationSuccess:n||void 0,onMutationError:async(ae,te,re)=>{if(L){r==null||r(ae,te,re);return}let se=[],ve=B.getFieldsValue();se=Object.keys(aP(ve)).map(xe=>({name:qX(xe),errors:void 0})),B.setFields(se);let ge=ae==null?void 0:ae.errors;for(let xe in ge){let me=ge[xe],de=[];Array.isArray(me)&&(de=me),typeof me=="string"&&(de=[me]),typeof me=="boolean"&&me&&(de=["Field is not valid."]),typeof me=="object"&&"key"in me&&(de=[$(me.key,me.message)]),se.push({name:qX(xe),errors:de})}B.setFields([...se]),r==null||r(ae,te,re)},redirect:l,action:e,resource:t,successNotification:s,errorNotification:u,meta:Ct(c,d),metaData:Ct(c,d),queryMeta:f,mutationMeta:p,liveMode:h,liveParams:m,mutationMode:v,dataProviderName:y,onLiveEvent:b,invalidates:x,undoableTimeout:E,queryOptions:S,createMutationOptions:C,updateMutationOptions:w,id:I,overtimeOptions:T,optimisticUpdateMap:A,autoSave:a}),{formLoading:D,onFinish:j,queryResult:z,id:V,onFinishAutoSave:G}=F,{warnWhenUnsavedChanges:W,setWarnWhen:Y}=Pc(),J=o??W;M.useEffect(()=>{B.resetFields()},[(R=z==null?void 0:z.data)==null?void 0:R.data,V]);let Z=rt(ae=>{i&&ae.key==="Enter"&&B.submit()},"onKeyUp"),K=rt((ae,te)=>{if(ae&&J&&Y(!0),a!=null&&a.enabled){Y(!1);let re=(a==null?void 0:a.onFinish)??(se=>se);return G(re(te))}return ae},"onValuesChange"),ee={disabled:D,onClick:()=>{B.submit()}};return{form:P.form,formProps:{...P.formProps,onFinish:ae=>j(ae).catch(te=>te),onKeyUp:Z,onValuesChange:K,initialValues:(N=z==null?void 0:z.data)==null?void 0:N.data},saveButtonProps:ee,...F,onFinish:async ae=>await j(ae??P.form.getFieldsValue(!0))}},"useForm"),Kkt=rt(({modalProps:e={}}={})=>{let{show:t,close:n,visible:r}=$pe({defaultVisible:e.open});return{modalProps:{...e,onCancel:a=>{var i;(i=e.onCancel)==null||i.call(e,a),n()},open:r,visible:r},show:t,close:n}},"useModal"),Bz=rt(({syncWithLocation:e,defaultVisible:t=!1,autoSubmitClose:n=!0,autoResetForm:r=!0,autoSave:a,invalidates:i,...o})=>{var l,s;let[u,c]=M.useState(!1),d=js(),{resource:f,action:p,identifier:h}=xn(o.resource),m=ss(),v=Ii(),y=Fc(),b=o.action??p??"",x=!(typeof e=="object"&&(e==null?void 0:e.syncId)===!1),E=typeof e=="object"&&"key"in e?e.key:f&&b&&e?`modal-${h}-${b}`:void 0,S=Qu({meta:{...E?{[E]:void 0}:{},...o.meta},autoSave:a,invalidates:i,...o}),{form:C,formProps:w,id:I,setId:T,formLoading:A,onFinish:O,autoSaveProps:R}=S,N=on(),{warnWhen:_,setWarnWhen:L}=Pc(),{show:$,close:k,modalProps:P}=Kkt({modalProps:{open:t}}),B=P.open||!1,F={modalProps:P,form:C,formLoading:A,formProps:w,formResult:void 0,formValues:C.getFieldsValue,defaultFormValuesLoading:!1,initialValues:{},submit:O,close:k,open:P.open||!1,show:$,visible:B};M.useEffect(()=>{var Y,J,Z,K;if(u===!1&&E){let ee=(J=(Y=m==null?void 0:m.params)==null?void 0:Y[E])==null?void 0:J.open;if(typeof ee=="boolean"?ee&&$():typeof ee=="string"&&ee==="true"&&$(),x){let ae=(K=(Z=m==null?void 0:m.params)==null?void 0:Z[E])==null?void 0:K.id;ae&&(T==null||T(ae))}c(!0)}},[E,m,x,T]),M.useEffect(()=>{var Y;u===!0&&(B&&E?v({query:{[E]:{...(Y=m==null?void 0:m.params)==null?void 0:Y[E],open:!0,...x&&I&&{id:I}}},options:{keepQuery:!0},type:"replace"}):E&&!B&&v({query:{[E]:void 0},options:{keepQuery:!0},type:"replace"}))},[I,B,$,E,x]);let D={disabled:A,loading:A,onClick:()=>{C.submit()}},j=g.useCallback(()=>{if(R.status==="success"&&a!=null&&a.invalidateOnClose&&d({id:I,invalidates:i||["list","many","detail"],dataProviderName:o.dataProviderName,resource:h}),_)if(window.confirm(N("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes.")))L(!1);else return;T==null||T(void 0),F.close()},[_,R.status]),z=g.useCallback(Y=>{typeof Y<"u"&&(T==null||T(Y)),(!(b==="edit"||b==="clone")||typeof Y<"u"||typeof I<"u")&&F.show()},[I]),{visible:V,...G}=P,W={open:V,...G};return{...S,...F,show:z,close:j,open:B,formProps:{...w,...S.formProps,onValuesChange:w==null?void 0:w.onValuesChange,onKeyUp:w==null?void 0:w.onKeyUp,onFinish:async Y=>{await O(Y),n&&k(),r&&C.resetFields()}},modalProps:{...W,width:"1000px",okButtonProps:D,title:N(`${h}.titles.${o.action}`,`${y(`${o.action} ${((l=f==null?void 0:f.meta)==null?void 0:l.label)??((s=f==null?void 0:f.options)==null?void 0:s.label)??(f==null?void 0:f.label)??h}`,"singular")}`),okText:N("buttons.save","Save"),cancelText:N("buttons.cancel","Cancel"),onCancel:j,forceRender:!0},formLoading:A}},"useModalForm");rt(({syncWithLocation:e,defaultVisible:t=!1,autoSubmitClose:n=!0,autoResetForm:r=!0,autoSave:a,invalidates:i,...o})=>{let l=js(),[s,u]=M.useState(!1),{visible:c,show:d,close:f}=$pe({defaultVisible:t}),{resource:p,action:h,identifier:m}=xn(o.resource),v=ss(),y=Ii(),b=o.action??h??"",x=!(typeof e=="object"&&(e==null?void 0:e.syncId)===!1),E=typeof e=="object"&&"key"in e?e.key:p&&b&&e?`drawer-${(p==null?void 0:p.identifier)??(p==null?void 0:p.name)}-${b}`:void 0,S=Qu({meta:{...E?{[E]:void 0}:{},...o.meta},autoSave:a,invalidates:i,...o}),{form:C,formProps:w,formLoading:I,id:T,setId:A,onFinish:O,autoSaveProps:R}=S;M.useEffect(()=>{var F,D,j,z;if(s===!1&&E){let V=(D=(F=v==null?void 0:v.params)==null?void 0:F[E])==null?void 0:D.open;if(typeof V=="boolean"?V?d():f():typeof V=="string"&&V==="true"&&d(),x){let G=(z=(j=v==null?void 0:v.params)==null?void 0:j[E])==null?void 0:z.id;G&&(A==null||A(G))}u(!0)}},[E,v,x,A,s]),M.useEffect(()=>{var F;s===!0&&(c&&E?y({query:{[E]:{...(F=v==null?void 0:v.params)==null?void 0:F[E],open:!0,...x&&T&&{id:T}}},options:{keepQuery:!0},type:"replace"}):E&&!c&&y({query:{[E]:void 0},options:{keepQuery:!0},type:"replace"}))},[T,c,d,f,E,x,s]);let N=on(),{warnWhen:_,setWarnWhen:L}=Pc(),$={disabled:I,onClick:()=>{C.submit()},loading:I},k={recordItemId:T,onSuccess:()=>{A==null||A(void 0),f()}},P=g.useCallback(()=>{if(R.status==="success"&&a!=null&&a.invalidateOnClose&&l({id:T,invalidates:i||["list","many","detail"],dataProviderName:o.dataProviderName,resource:m}),_)if(window.confirm(N("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes.")))L(!1);else return;f(),A==null||A(void 0)},[_]),B=g.useCallback(F=>{typeof F<"u"&&(A==null||A(F)),(!(b==="edit"||b==="clone")||typeof F<"u"||typeof T<"u")&&d()},[T]);return{...S,show:B,close:P,formProps:{form:C,...S.formProps,onValuesChange:w==null?void 0:w.onValuesChange,onKeyUp:w==null?void 0:w.onKeyUp,onFinish:async F=>{await O(F),n&&f(),r&&C.resetFields()}},drawerProps:{width:"500px",onClose:P,open:c,forceRender:!0},saveButtonProps:$,deleteButtonProps:k,formLoading:I}},"useDrawerForm");rt((e={})=>{let t=Qu({...e}),{form:n,formProps:r}=t,a=kgt({isBackValidate:!1,form:n,submit:i=>{var o;(o=r==null?void 0:r.onFinish)==null||o.call(r,i)},...e});return{...t,...a,formLoading:t.formLoading,formProps:{...a.formProps,...t.formProps,onValuesChange:r==null?void 0:r.onValuesChange,onKeyUp:r==null?void 0:r.onKeyUp},saveButtonProps:{...t.saveButtonProps,onClick:()=>a.submit()}}},"useStepsForm");rt((e,t)=>{let n=B8e(e,t);if(n)return`${n}end`},"getDefaultSortOrder");rt((e,t,n="eq")=>Ipe(e,t,n),"getDefaultFilter");var Xkt=rt(e=>{let t=[];if(Array.isArray(e))e.sort((n,r)=>{var a,i;return(((a=n.column)==null?void 0:a.sorter).multiple??0)<(((i=r.column)==null?void 0:i.sorter).multiple??0)?-1:0}).map(n=>{if(n.field&&n.order){let r=Array.isArray(n.field)?n.field.join("."):`${n.field}`;t.push({field:`${n.columnKey??r}`,order:n.order.replace("end","")})}});else if(e.field&&e.order){let n=Array.isArray(e.field)?e.field.join("."):`${e.field}`;t.push({field:`${e.columnKey??n}`,order:e.order.replace("end","")})}return t},"mapAntdSorterToCrudSorting"),Qkt=rt((e,t,n)=>{let r=[],a=(n??[]).reduce((i,o)=>{let l=o.key||o.field;return{...i,[l]:o}},{});return Object.keys(e).map(i=>{var o,l;let s=e[i],u=((o=t.filter(c=>c.operator!=="or").find(c=>c.field===i))==null?void 0:o.operator)||((l=a[i])==null?void 0:l.operator);u!=="or"&&u!=="and"&&r.push({field:i,operator:u??(Array.isArray(s)?"in":"eq"),value:s})}),r},"mapAntdFilterToCrudFilter"),Yv=rt(({to:e,element:t})=>{let{Link:n}=Fr(),r=Gn(),a=Oi();return M.createElement(r==="legacy"?n:a,{to:e,replace:!1,onClick:i=>{i.preventDefault()}},t)},"PaginationLink"),zz=rt(({onSearch:e,initialCurrent:t,initialPageSize:n,hasPagination:r=!0,pagination:a,initialSorter:i,permanentSorter:o,initialFilter:l,permanentFilter:s,defaultSetFilterBehavior:u,filters:c,sorters:d,syncWithLocation:f,resource:p,successNotification:h,errorNotification:m,queryOptions:v,liveMode:y,onLiveEvent:b,liveParams:x,meta:E,metaData:S,dataProviderName:C}={})=>{let{tableQueryResult:w,current:I,setCurrent:T,pageSize:A,setPageSize:O,filters:R,setFilters:N,sorters:_,setSorters:L,sorter:$,setSorter:k,createLinkForSyncWithLocation:P,pageCount:B,overtime:F}=HB({permanentSorter:o,permanentFilter:s,initialCurrent:t,initialPageSize:n,pagination:a,hasPagination:r,filters:c,sorters:d,initialSorter:i,initialFilter:l,syncWithLocation:f,resource:p,defaultSetFilterBehavior:u,successNotification:h,errorNotification:m,queryOptions:v,liveMode:y,onLiveEvent:b,liveParams:x,meta:Ct(E,S),metaData:Ct(E,S),dataProviderName:C}),D=Up.useBreakpoint(),[j]=en.useForm(),z=U9({form:j}),V=LB(y),G=r===!1?"off":"server",W=((a==null?void 0:a.mode)??G)!=="off",Y=Ct(c==null?void 0:c.initial,l),{data:J,isFetched:Z,isLoading:K}=w,ee=rt((re,se,ve)=>{if(se&&Object.keys(se).length>0){let ge=Qkt(se,R,Y);N(ge)}if(ve&&Object.keys(ve).length>0){let ge=Xkt(ve);L(ge)}W&&(T==null||T(re.current||1),O==null||O(re.pageSize||10))},"onChange"),ae=rt(async re=>{if(e){let se=await e(re);N(se),W&&(T==null||T(1))}},"onFinish"),te=rt(()=>W?{itemRender:(re,se,ve)=>{var ge;let xe=P({pagination:{pageSize:A,current:re},sorters:_,filters:R});if(se==="page")return g.createElement(Yv,{to:xe,element:`${re}`});if(se==="next"||se==="prev")return g.createElement(Yv,{to:xe,element:ve});if(se==="jump-next"||se==="jump-prev"){let me=(ge=ve==null?void 0:ve.props)==null?void 0:ge.children;return g.createElement(Yv,{to:xe,element:g.Children.count(me)>1?g.createElement(g.Fragment,{},me):me})}return ve},pageSize:A,current:I,simple:!D.sm,position:D.sm?["bottomRight"]:["bottomCenter"],total:J==null?void 0:J.total}:!1,"antdPagination");return{searchFormProps:{...z.formProps,onFinish:ae},tableProps:{dataSource:J==null?void 0:J.data,loading:V==="auto"?K:!Z,onChange:ee,pagination:te(),scroll:{x:!0}},tableQueryResult:w,sorters:_,sorter:$,filters:R,setSorters:L,setSorter:k,setFilters:N,current:I,setCurrent:T,pageSize:A,setPageSize:O,pageCount:B,createLinkForSyncWithLocation:P,overtime:F}},"useTable");rt(({autoSubmitClose:e=!0,...t}={})=>{let n=zz({...t,successNotification:void 0,errorNotification:void 0}),r=Qu({...t,action:"edit",redirect:!1}),{id:a,setId:i,saveButtonProps:o}=r,l={onClick:()=>{i(void 0)}},s=rt(c=>({onClick:()=>i(c)}),"editButtonProps"),u=rt(c=>c===a,"isEditing");return{...n,...r,formProps:{...r.formProps,onFinish:async c=>{let d=await r.onFinish(c);return e&&i(void 0),d}},saveButtonProps:o,cancelButtonProps:l,editButtonProps:s,isEditing:u}},"useEditableTable");var V0=rt(e=>{let{queryResult:t,defaultValueQueryResult:n,onSearch:r,options:a}=zB(e);return{selectProps:{options:a,onSearch:r,loading:n.isFetching,showSearch:!0,filterOption:!1},queryResult:t,defaultValueQueryResult:n}},"useSelect");rt(({resource:e,sort:t,sorters:n,filters:r,optionLabel:a,optionValue:i,queryOptions:o,fetchSize:l,pagination:s,liveMode:u,defaultValue:c,onLiveEvent:d,liveParams:f,meta:p,metaData:h,dataProviderName:m})=>{let{queryResult:v,options:y}=zB({resource:e,sort:t,sorters:n,filters:r,optionLabel:a,optionValue:i,queryOptions:o,fetchSize:l,pagination:s,liveMode:u,defaultValue:c,onLiveEvent:d,liveParams:f,meta:Ct(p,h),metaData:Ct(p,h),dataProviderName:m});return{checkboxGroupProps:{options:y,defaultValue:c},queryResult:v}},"useCheckboxGroup");rt(({resource:e,sort:t,sorters:n,filters:r,optionLabel:a,optionValue:i,queryOptions:o,fetchSize:l,pagination:s,liveMode:u,defaultValue:c,onLiveEvent:d,liveParams:f,meta:p,metaData:h,dataProviderName:m})=>{let{queryResult:v,options:y}=zB({resource:e,sort:t,sorters:n,filters:r,optionLabel:a,optionValue:i,queryOptions:o,fetchSize:l,pagination:s,liveMode:u,defaultValue:c,onLiveEvent:d,liveParams:f,meta:Ct(p,h),metaData:Ct(p,h),dataProviderName:m});return{radioGroupProps:{options:y,defaultValue:c},queryResult:v}},"useRadioGroup");rt(({resource:e,resourceName:t,mapData:n=rt(c=>c,"mapData"),paparseOptions:r,batchSize:a=Number.MAX_SAFE_INTEGER,onFinish:i,meta:o,metaData:l,dataProviderName:s,onProgress:u}={})=>{let c=on(),{resource:d}=xn(e??t),{mutationResult:f,isLoading:p,handleChange:h}=f5e({resource:(d==null?void 0:d.identifier)??(d==null?void 0:d.name),mapData:n,paparseOptions:r,batchSize:a,meta:Ct(o,l),metaData:Ct(o,l),dataProviderName:s,onFinish:i,onProgress:u??(({totalAmount:m,processedAmount:v})=>{if(m>0&&v>0){let y=M.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:"-7px"}},M.createElement(O9,{type:"circle",percent:Math.floor(v/m*100),size:50,strokeColor:"#1890ff",status:"normal"}),M.createElement("span",{style:{marginLeft:8,width:"100%"}},c("notifications.importProgress",{processed:v,total:m},`Importing: ${v}/${m}`)));O6.open({description:y,message:null,key:`${d}-import`,duration:0}),v===m&&setTimeout(()=>{O6.destroy(`${d}-import`)},4500)}})});return{uploadProps:{onChange:h,beforeUpload:()=>!1,showUploadList:!1,accept:".csv"},buttonProps:{type:"default",loading:p},mutationResult:f,isLoading:p}},"useImport");rt(({resource:e,initialCurrent:t,initialPageSize:n,pagination:r,hasPagination:a=!0,initialSorter:i,permanentSorter:o,initialFilter:l,permanentFilter:s,defaultSetFilterBehavior:u,filters:c,sorters:d,onSearch:f,queryOptions:p,syncWithLocation:h,successNotification:m,errorNotification:v,liveMode:y,onLiveEvent:b,liveParams:x,meta:E,metaData:S,dataProviderName:C}={})=>{let{sorters:w,sorter:I,filters:T,current:A,pageSize:O,pageCount:R,setFilters:N,setCurrent:_,setPageSize:L,setSorter:$,setSorters:k,createLinkForSyncWithLocation:P,tableQueryResult:B,overtime:F}=HB({resource:e,initialSorter:i,permanentSorter:o,initialFilter:l,permanentFilter:s,filters:c,sorters:d,defaultSetFilterBehavior:u,initialCurrent:t,initialPageSize:n,queryOptions:p,successNotification:m,errorNotification:v,liveMode:y,onLiveEvent:b,liveParams:x,meta:Ct(E,S),metaData:Ct(E,S),syncWithLocation:h,dataProviderName:C,pagination:r,hasPagination:a}),D=a===!1?"off":"server",j=((r==null?void 0:r.mode)??D)!=="off",z=Up.useBreakpoint(),V=LB(y),[G]=en.useForm(),{data:W,isFetched:Y,isLoading:J}=B,Z=rt((ae,te)=>{j&&(_(ae),L(te||10))},"onChange"),K=rt(async ae=>{if(f){let te=await f(ae);return j&&(_==null||_(1)),N(te)}},"onFinish"),ee=rt(()=>j?{itemRender:(ae,te,re)=>{var se;let ve=P({pagination:{pageSize:O,current:ae},sorters:w,filters:T});if(te==="page")return g.createElement(Yv,{to:ve,element:`${ae}`});if(te==="next"||te==="prev")return g.createElement(Yv,{to:ve,element:re});if(te==="jump-next"||te==="jump-prev"){let ge=(se=re==null?void 0:re.props)==null?void 0:se.children;return g.createElement(Yv,{to:ve,element:g.Children.count(ge)>1?g.createElement(g.Fragment,{},ge):ge})}return re},pageSize:O,current:A,simple:!z.sm,total:W==null?void 0:W.total,onChange:Z}:!1,"antdPagination");return{searchFormProps:{form:G,onFinish:K},listProps:{dataSource:W==null?void 0:W.data,loading:V==="auto"?J:!Y,pagination:ee()},queryResult:B,filters:T,setFilters:N,sorter:I,setSorter:$,sorters:w,setSorters:k,current:A,setCurrent:_,pageSize:O,setPageSize:L,pageCount:R,createLinkForSyncWithLocation:P,overtime:F}},"useSimpleList");rt(()=>{let[e,t]=g.useState(!1),n=g.useCallback(r=>{Zkt(r.fileList).includes(!0)?t(!0):t(!1)},[]);return g.useMemo(()=>({isLoading:e,onChange:n}),[e])},"useFileUploadState");var Zkt=rt(e=>e.map(t=>{switch(t.status){case"uploading":return!0;default:return!1}}),"mapStatusToLoading"),Hz=M.createContext({siderCollapsed:!1,mobileSiderOpen:!1,setSiderCollapsed:()=>{},setMobileSiderOpen:()=>{}}),Jkt=rt(({children:e,initialSiderCollapsed:t})=>{let[n,r]=g.useState(t??!1),[a,i]=g.useState(!1);return M.createElement(Hz.Provider,{value:{siderCollapsed:n,mobileSiderOpen:a,setSiderCollapsed:r,setMobileSiderOpen:i}},e)},"ThemedLayoutContextProvider");rt(()=>{let{mobileSiderOpen:e,siderCollapsed:t,setMobileSiderOpen:n,setSiderCollapsed:r}=g.useContext(Hz);return{siderVisible:e,setSiderVisible:n,drawerSiderVisible:t,setDrawerSiderVisible:r}},"useSiderVisible");var eRt=rt(()=>{let{mobileSiderOpen:e,siderCollapsed:t,setMobileSiderOpen:n,setSiderCollapsed:r}=g.useContext(Hz);return{mobileSiderOpen:e,siderCollapsed:t,setMobileSiderOpen:n,setSiderCollapsed:r}},"useThemedLayoutContext"),tRt=rt(({message:e,cancelMutation:t,undoableTimeout:n})=>M.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:"-7px"}},M.createElement(O9,{type:"circle",percent:(n??0)*20,format:r=>r&&r/20,size:50,strokeColor:"#1890ff",status:"normal"}),M.createElement("span",{style:{marginLeft:8,width:"100%"}},e),M.createElement(nn,{style:{flexShrink:0},onClick:t,disabled:n===0,icon:M.createElement(uvt,null)})),"UndoableNotification"),nRt=rt(()=>{let{notification:e}=Gme.useApp(),t="open"in e?e:O6;return{open:({key:n,message:r,description:a,type:i,cancelMutation:o,undoableTimeout:l})=>{i==="progress"?t.open({key:n,description:M.createElement(tRt,{notificationKey:n,message:r,cancelMutation:()=>{o==null||o(),t.destroy(n??"")},undoableTimeout:l}),message:null,duration:0,closeIcon:M.createElement(M.Fragment,null)}):t.open({key:n,description:r,message:a??null,type:i})},close:n=>t.destroy(n)}},"useNotificationProvider"),rRt={borderTopLeftRadius:0,borderBottomLeftRadius:0,position:"fixed",top:64,zIndex:999},aRt=rt(({Title:e,render:t,meta:n})=>{let[r,a]=g.useState(!1),[i,o]=g.useState(!1),l=dk(),s=Gn(),u=Oi(),{warnWhen:c,setWarnWhen:d}=Pc(),{Link:f}=Fr(),p=s==="legacy"?f:u,h=kB(),m=on(),{menuItems:v,selectedKey:y,defaultOpenKeys:b}=jB({meta:n}),x=Up.useBreakpoint(),{hasDashboard:E}=Aa(),S=Wr(),{mutate:C}=A0({v3LegacyAuthProviderCompatible:!!(S!=null&&S.isLegacy)}),w=typeof x.lg>"u"?!1:!x.lg,I=e??h??oRt,T=rt((k,P)=>k.map(B=>{let{icon:F,label:D,route:j,key:z,name:V,children:G,parentName:W,meta:Y,options:J}=B;if(G.length>0)return M.createElement(I0,{key:B.key,resource:V.toLowerCase(),action:"list",params:{resource:B}},M.createElement(eo.SubMenu,{key:B.key,icon:F??M.createElement(U0,null),title:D},T(G,P)));let Z=z===P,K=!(Ct(Y==null?void 0:Y.parent,J==null?void 0:J.parent,W)!==void 0&&G.length===0);return M.createElement(I0,{key:B.key,resource:V.toLowerCase(),action:"list",params:{resource:B}},M.createElement(eo.Item,{key:B.key,style:{fontWeight:Z?"bold":"normal"},icon:F??(K&&M.createElement(U0,null))},M.createElement(p,{to:j??""},D),!r&&Z&&M.createElement("div",{className:"ant-menu-tree-arrow"})))}),"renderTreeView"),A=rt(()=>{c?window.confirm(m("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."))&&(d(!1),C()):C()},"handleLogout"),O=l&&M.createElement(eo.Item,{key:"logout",onClick:A,icon:M.createElement(G9,null)},m("buttons.logout","Logout")),R=E?M.createElement(eo.Item,{key:"dashboard",style:{fontWeight:y==="/"?"bold":"normal"},icon:M.createElement(W9,null)},M.createElement(p,{to:"/"},m("dashboard.title","Dashboard")),!r&&y==="/"&&M.createElement("div",{className:"ant-menu-tree-arrow"})):null,N=T(v,y),_=rt(()=>t?t({dashboard:R,items:N,logout:O,collapsed:r}):M.createElement(M.Fragment,null,R,N,O),"renderSider"),L=rt(()=>M.createElement(M.Fragment,null,M.createElement(eo,{theme:"dark",selectedKeys:y?[y]:[],defaultOpenKeys:b,mode:"inline",onClick:()=>{o(!1),x.lg||a(!0)}},_())),"renderMenu"),$=rt(()=>M.createElement(M.Fragment,null,M.createElement(yE,{open:i,onClose:()=>o(!1),placement:"left",closable:!1,width:200,bodyStyle:{padding:0},maskClosable:!0},M.createElement(jr,null,M.createElement(jr.Sider,{style:{height:"100vh",overflow:"hidden"}},M.createElement(I,{collapsed:!1}),L()))),M.createElement(nn,{style:rRt,size:"large",onClick:()=>o(!0),icon:M.createElement(PR,null)})),"renderDrawerSider");return M.createElement(Hc,{theme:{components:{Menu:{colorItemBg:"transparent",colorItemText:"#fff",colorItemTextSelected:"#fff",colorItemBgSelected:"transparent",colorItemTextHover:"#fff"}}}},rt(()=>w?$():M.createElement(jr.Sider,{collapsible:!0,collapsed:r,onCollapse:k=>a(k),collapsedWidth:80,breakpoint:"lg"},M.createElement(I,{collapsed:r}),L()),"renderContent")())},"Sider"),iRt=rt(()=>{let e=Wr(),{data:t}=fy({v3LegacyAuthProviderCompatible:!!(e!=null&&e.isLegacy)});return t&&(t.name||t.avatar)?M.createElement(jr.Header,{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"0px 24px",height:"64px"}},M.createElement(Un,{style:{marginLeft:"8px"}},(t==null?void 0:t.name)&&M.createElement(wr.Text,{style:{color:"white"},strong:!0},t.name),(t==null?void 0:t.avatar)&&M.createElement(PS,{src:t==null?void 0:t.avatar,alt:t==null?void 0:t.name}))):null},"Header");rt(({children:e,Header:t,Sider:n,Title:r,Footer:a,OffLayoutArea:i})=>{let o=Up.useBreakpoint(),l=n??aRt,s=t??iRt,u=typeof o.sm>"u"?!0:o.sm;return M.createElement(jr,{style:{minHeight:"100vh"}},M.createElement(l,{Title:r}),M.createElement(jr,null,M.createElement(s,null),M.createElement(jr.Content,null,M.createElement("div",{style:{minHeight:360,padding:u?24:12}},e),i&&M.createElement(i,null)),a&&M.createElement(a,null)))},"Layout");var oRt=rt(({collapsed:e})=>{let t=Gn(),n=Oi(),{Link:r}=Fr();return M.createElement(t==="legacy"?r:n,{to:"/"},e?M.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},M.createElement("img",{src:"https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine-mini.svg",alt:"Refine",style:{margin:"0 auto",padding:"12px 0",maxHeight:"65.5px"}})):M.createElement("img",{src:"https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg",alt:"Refine",style:{width:"200px",padding:"12px 24px"}}))},"Title"),lRt={borderTopLeftRadius:0,borderBottomLeftRadius:0,position:"fixed",top:64,zIndex:999},sRt=rt(({Title:e,render:t,meta:n})=>{let{token:r}=Na.useToken(),[a,i]=g.useState(!1),[o,l]=g.useState(!1),s=dk(),u=Gn(),c=Oi(),{warnWhen:d,setWarnWhen:f}=Pc(),{Link:p}=Fr(),h=u==="legacy"?p:c,m=kB(),v=on(),{menuItems:y,selectedKey:b,defaultOpenKeys:x}=jB({meta:n}),E=Up.useBreakpoint(),{hasDashboard:S}=Aa(),C=Wr(),{mutate:w}=A0({v3LegacyAuthProviderCompatible:!!(C!=null&&C.isLegacy)}),I=typeof E.lg>"u"?!1:!E.lg,T=e??m??fRt,A=rt((P,B)=>P.map(F=>{let{icon:D,label:j,route:z,key:V,name:G,children:W,parentName:Y,meta:J,options:Z}=F;if(W.length>0)return M.createElement(I0,{key:F.key,resource:G.toLowerCase(),action:"list",params:{resource:F}},M.createElement(eo.SubMenu,{key:F.key,icon:D??M.createElement(U0,null),title:j},A(W,B)));let K=V===B,ee=!(Ct(J==null?void 0:J.parent,Z==null?void 0:Z.parent,Y)!==void 0&&W.length===0);return M.createElement(I0,{key:F.key,resource:G.toLowerCase(),action:"list",params:{resource:F}},M.createElement(eo.Item,{key:F.key,icon:D??(ee&&M.createElement(U0,null))},M.createElement(h,{to:z??""},j),!a&&K&&M.createElement("div",{className:"ant-menu-tree-arrow"})))}),"renderTreeView"),O=rt(()=>{d?window.confirm(v("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."))&&(f(!1),w()):w()},"handleLogout"),R=s&&M.createElement(eo.Item,{key:"logout",onClick:()=>O(),icon:M.createElement(G9,null)},v("buttons.logout","Logout")),N=S?M.createElement(eo.Item,{key:"dashboard",icon:M.createElement(W9,null)},M.createElement(h,{to:"/"},v("dashboard.title","Dashboard")),!a&&b==="/"&&M.createElement("div",{className:"ant-menu-tree-arrow"})):null,_=A(y,b),L=rt(()=>t?t({dashboard:N,items:_,logout:R,collapsed:a}):M.createElement(M.Fragment,null,N,_,R),"renderSider"),$=rt(()=>M.createElement(M.Fragment,null,M.createElement(eo,{selectedKeys:b?[b]:[],defaultOpenKeys:x,mode:"inline",style:{marginTop:"8px",border:"none"},onClick:()=>{l(!1),E.lg||i(!0)}},L())),"renderMenu"),k=rt(()=>M.createElement(M.Fragment,null,M.createElement(yE,{open:o,onClose:()=>l(!1),placement:"left",closable:!1,width:200,bodyStyle:{padding:0},maskClosable:!0},M.createElement(jr,null,M.createElement(jr.Sider,{style:{height:"100vh",overflow:"hidden",backgroundColor:r.colorBgContainer,borderRight:`1px solid ${r.colorBgElevated}`}},M.createElement("div",{style:{width:"200px",padding:"0 16px",display:"flex",justifyContent:"flex-start",alignItems:"center",height:"64px",backgroundColor:r.colorBgElevated}},M.createElement(T,{collapsed:!1})),$()))),M.createElement(nn,{style:lRt,size:"large",onClick:()=>l(!0),icon:M.createElement(PR,null)})),"renderDrawerSider");return I?k():M.createElement(jr.Sider,{style:{backgroundColor:r.colorBgContainer,borderRight:`1px solid ${r.colorBgElevated}`},collapsible:!0,collapsed:a,onCollapse:P=>i(P),collapsedWidth:80,breakpoint:"lg",trigger:M.createElement(nn,{type:"text",style:{borderRadius:0,height:"100%",width:"100%",backgroundColor:r.colorBgElevated}},a?M.createElement(L1e,{style:{color:r.colorPrimary}}):M.createElement(k1e,{style:{color:r.colorPrimary}}))},M.createElement("div",{style:{width:a?"80px":"200px",padding:a?"0":"0 16px",display:"flex",justifyContent:a?"center":"flex-start",alignItems:"center",height:"64px",backgroundColor:r.colorBgElevated,fontSize:"14px"}},M.createElement(T,{collapsed:a})),$())},"ThemedSider"),uRt=rt(()=>{let{token:e}=Na.useToken(),t=Wr(),{data:n}=fy({v3LegacyAuthProviderCompatible:!!(t!=null&&t.isLegacy)});return n&&(n.name||n.avatar)?M.createElement(jr.Header,{style:{backgroundColor:e.colorBgElevated,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"0px 24px",height:"64px"}},M.createElement(Un,null,M.createElement(Un,{size:"middle"},(n==null?void 0:n.name)&&M.createElement(wr.Text,{strong:!0},n.name),(n==null?void 0:n.avatar)&&M.createElement(PS,{src:n==null?void 0:n.avatar,alt:n==null?void 0:n.name})))):null},"ThemedHeader");rt(({children:e,Header:t,Sider:n,Title:r,Footer:a,OffLayoutArea:i})=>{let o=Up.useBreakpoint(),l=n??sRt,s=t??uRt,u=typeof o.sm>"u"?!0:o.sm;return M.createElement(jr,{style:{minHeight:"100vh"}},M.createElement(l,{Title:r}),M.createElement(jr,null,M.createElement(s,null),M.createElement(jr.Content,null,M.createElement("div",{style:{minHeight:360,padding:u?24:12}},e),i&&M.createElement(i,null)),a&&M.createElement(a,null)))},"ThemedLayout");var cRt="Refine Project",dRt=M.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z",fill:"currentColor"}),M.createElement("path",{d:"M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z",fill:"currentColor"})),fRt=rt(({collapsed:e,icon:t=dRt,text:n=cRt,wrapperStyles:r})=>{let{token:a}=Na.useToken(),i=Gn(),o=Oi(),{Link:l}=Fr();return M.createElement(i==="legacy"?l:o,{to:"/",style:{display:"inline-block",textDecoration:"none"}},M.createElement(Un,{style:{display:"flex",alignItems:"center",fontSize:"inherit",...r}},M.createElement("div",{style:{height:"24px",width:"24px",color:a.colorPrimary}},t),!e&&M.createElement(wr.Title,{style:{fontSize:"inherit",marginBottom:0,fontWeight:700}},n)))},"ThemedTitle"),pRt={borderTopLeftRadius:0,borderBottomLeftRadius:0,position:"fixed",top:64,zIndex:999},hRt=rt(({Title:e,render:t,meta:n,fixed:r,activeItemDisabled:a=!1})=>{let{token:i}=Na.useToken(),{siderCollapsed:o,setSiderCollapsed:l,mobileSiderOpen:s,setMobileSiderOpen:u}=eRt(),c=dk(),d=Gn(),f=Oi(),{warnWhen:p,setWarnWhen:h}=Pc(),{Link:m}=Fr(),v=d==="legacy"?m:f,y=kB(),b=on(),{menuItems:x,selectedKey:E,defaultOpenKeys:S}=jB({meta:n}),C=Up.useBreakpoint(),{hasDashboard:w}=Aa(),I=Wr(),{mutate:T}=A0({v3LegacyAuthProviderCompatible:!!(I!=null&&I.isLegacy)}),A=typeof C.lg>"u"?!1:!C.lg,O=e??y??jy,R=rt((D,j)=>D.map(z=>{let{icon:V,label:G,route:W,key:Y,name:J,children:Z,parentName:K,meta:ee,options:ae}=z;if(Z.length>0)return M.createElement(I0,{key:z.key,resource:J.toLowerCase(),action:"list",params:{resource:z}},M.createElement(eo.SubMenu,{key:z.key,icon:V??M.createElement(U0,null),title:G},R(Z,j)));let te=Y===j,re=!(Ct(ee==null?void 0:ee.parent,ae==null?void 0:ae.parent,K)!==void 0&&Z.length===0),se=a&&te?{pointerEvents:"none"}:{};return M.createElement(I0,{key:z.key,resource:J.toLowerCase(),action:"list",params:{resource:z}},M.createElement(eo.Item,{key:z.key,icon:V??(re&&M.createElement(U0,null)),style:se},M.createElement(v,{to:W??"",style:se},G),!o&&te&&M.createElement("div",{className:"ant-menu-tree-arrow"})))}),"renderTreeView"),N=rt(()=>{p?window.confirm(b("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."))&&(h(!1),T()):T()},"handleLogout"),_=c&&M.createElement(eo.Item,{key:"logout",onClick:()=>N(),icon:M.createElement(G9,null)},b("buttons.logout","Logout")),L=w?M.createElement(eo.Item,{key:"dashboard",icon:M.createElement(W9,null)},M.createElement(v,{to:"/"},b("dashboard.title","Dashboard")),!o&&E==="/"&&M.createElement("div",{className:"ant-menu-tree-arrow"})):null,$=R(x,E),k=rt(()=>t?t({dashboard:L,items:$,logout:_,collapsed:o}):M.createElement(M.Fragment,null,L,$,_),"renderSider"),P=rt(()=>M.createElement(eo,{selectedKeys:E?[E]:[],defaultOpenKeys:S,mode:"inline",style:{paddingTop:"8px",border:"none",overflow:"auto",height:"calc(100% - 72px)"},onClick:()=>{u(!1)}},k()),"renderMenu"),B=rt(()=>M.createElement(M.Fragment,null,M.createElement(yE,{open:s,onClose:()=>u(!1),placement:"left",closable:!1,width:200,bodyStyle:{padding:0},maskClosable:!0},M.createElement(jr,null,M.createElement(jr.Sider,{style:{height:"100vh",backgroundColor:i.colorBgContainer,borderRight:`1px solid ${i.colorBgElevated}`}},M.createElement("div",{style:{width:"200px",padding:"0 16px",display:"flex",justifyContent:"flex-start",alignItems:"center",height:"64px",backgroundColor:i.colorBgElevated}},M.createElement(O,{collapsed:!1})),P()))),M.createElement(nn,{style:pRt,size:"large",onClick:()=>u(!0),icon:M.createElement(PR,null)})),"renderDrawerSider");if(A)return B();let F={backgroundColor:i.colorBgContainer,borderRight:`1px solid ${i.colorBgElevated}`};return r&&(F.position="fixed",F.top=0,F.height="100vh",F.zIndex=999),M.createElement(M.Fragment,null,r&&M.createElement("div",{style:{width:o?"80px":"200px",transition:"all 0.2s"}}),M.createElement(jr.Sider,{style:F,collapsible:!0,collapsed:o,onCollapse:(D,j)=>{j==="clickTrigger"&&l(D)},collapsedWidth:80,breakpoint:"lg",trigger:M.createElement(nn,{type:"text",style:{borderRadius:0,height:"100%",width:"100%",backgroundColor:i.colorBgElevated}},o?M.createElement(L1e,{style:{color:i.colorPrimary}}):M.createElement(k1e,{style:{color:i.colorPrimary}}))},M.createElement("div",{style:{width:o?"80px":"200px",padding:o?"0":"0 16px",display:"flex",justifyContent:o?"center":"flex-start",alignItems:"center",height:"64px",backgroundColor:i.colorBgElevated,fontSize:"14px"}},M.createElement(O,{collapsed:o})),P()))},"ThemedSiderV2"),gRt=rt(({isSticky:e,sticky:t})=>{let{token:n}=Na.useToken(),r=Wr(),{data:a}=fy({v3LegacyAuthProviderCompatible:!!(r!=null&&r.isLegacy)});if(!(a&&(a.name||a.avatar)))return null;let i={backgroundColor:n.colorBgElevated,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"0px 24px",height:"64px"};return Ct(t,e)&&(i.position="sticky",i.top=0,i.zIndex=1),M.createElement(jr.Header,{style:i},M.createElement(Un,null,M.createElement(Un,{size:"middle"},(a==null?void 0:a.name)&&M.createElement(wr.Text,{strong:!0},a.name),(a==null?void 0:a.avatar)&&M.createElement(PS,{src:a==null?void 0:a.avatar,alt:a==null?void 0:a.name}))))},"ThemedHeaderV2"),mRt=rt(({children:e,Header:t,Sider:n,Title:r,Footer:a,OffLayoutArea:i,initialSiderCollapsed:o})=>{let l=Up.useBreakpoint(),s=n??hRt,u=t??gRt,c=typeof l.sm>"u"?!0:l.sm,d=!!s({Title:r});return M.createElement(Jkt,{initialSiderCollapsed:o},M.createElement(jr,{style:{minHeight:"100vh"},hasSider:d},M.createElement(s,{Title:r}),M.createElement(jr,null,M.createElement(u,null),M.createElement(jr.Content,null,M.createElement("div",{style:{minHeight:360,padding:c?24:12}},e),i&&M.createElement(i,null)),a&&M.createElement(a,null))))},"ThemedLayoutV2"),vRt="Refine Project",yRt=M.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z",fill:"currentColor"}),M.createElement("path",{d:"M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z",fill:"currentColor"})),jy=rt(({collapsed:e,icon:t=yRt,text:n=vRt,wrapperStyles:r})=>{let{token:a}=Na.useToken(),i=Gn(),o=Oi(),{Link:l}=Fr();return M.createElement(i==="legacy"?l:o,{to:"/",style:{display:"inline-block",textDecoration:"none"}},M.createElement(Un,{style:{display:"flex",alignItems:"center",fontSize:"inherit",...r}},M.createElement("div",{style:{height:"24px",width:"24px",color:a.colorPrimary}},t),!e&&M.createElement(wr.Title,{style:{fontSize:"inherit",marginBottom:0,fontWeight:700}},n)))},"ThemedTitleV2"),xSe=rt(({resource:e,resourceNameOrRouteName:t,hideText:n=!1,accessControl:r,meta:a,children:i,onClick:o,...l})=>{let s=g.useContext(Bc),u=(r==null?void 0:r.enabled)??s.options.buttons.enableAccessControl,c=(r==null?void 0:r.hideIfUnauthorized)??s.options.buttons.hideIfUnauthorized,d=on(),f=Gn(),p=Oi(),{Link:h}=Fr(),m=f==="legacy"?h:p,{createUrl:v}=pa(),{resource:y}=xn(e??t),{data:b}=Hg({resource:y==null?void 0:y.name,action:"create",queryOptions:{enabled:u},params:{resource:y}}),x=rt(()=>b!=null&&b.can?"":b!=null&&b.reason?b.reason:d("buttons.notAccessTitle","You don't have permission to access"),"createButtonDisabledTitle"),E=y?v(y,a):"";return u&&c&&!(b!=null&&b.can)?null:M.createElement(m,{to:E,replace:!1,onClick:S=>{if((b==null?void 0:b.can)===!1){S.preventDefault();return}o&&(S.preventDefault(),o(S))}},M.createElement(nn,{icon:M.createElement(N1e,null),disabled:(b==null?void 0:b.can)===!1,title:x(),className:Uc.CreateButton,type:"primary",...l},!n&&(i??d("buttons.create","Create"))))},"CreateButton"),ESe=rt(({resource:e,resourceNameOrRouteName:t,recordItemId:n,hideText:r=!1,accessControl:a,meta:i,children:o,onClick:l,...s})=>{let u=g.useContext(Bc),c=(a==null?void 0:a.enabled)??u.options.buttons.enableAccessControl,d=(a==null?void 0:a.hideIfUnauthorized)??u.options.buttons.hideIfUnauthorized,f=on(),p=Gn(),h=Oi(),{Link:m}=Fr(),v=p==="legacy"?m:h,{editUrl:y}=pa(),{id:b,resource:x}=xn(e??t),{data:E}=Hg({resource:x==null?void 0:x.name,action:"edit",params:{id:n??b,resource:x},queryOptions:{enabled:c}}),S=rt(()=>E!=null&&E.can?"":E!=null&&E.reason?E.reason:f("buttons.notAccessTitle","You don't have permission to access"),"createButtonDisabledTitle"),C=x&&(n??b)?y(x,n??b,i):"";return c&&d&&!(E!=null&&E.can)?null:M.createElement(v,{to:C,replace:!1,onClick:w=>{if((E==null?void 0:E.can)===!1){w.preventDefault();return}l&&(w.preventDefault(),l(w))}},M.createElement(nn,{icon:M.createElement(nmt,null),disabled:(E==null?void 0:E.can)===!1,title:S(),className:Uc.EditButton,...s},!r&&(o??f("buttons.edit","Edit"))))},"EditButton"),r3=rt(({resource:e,resourceNameOrRouteName:t,recordItemId:n,onSuccess:r,mutationMode:a,children:i,successNotification:o,errorNotification:l,hideText:s=!1,accessControl:u,metaData:c,meta:d,dataProviderName:f,confirmTitle:p,confirmOkText:h,confirmCancelText:m,invalidates:v,...y})=>{let b=g.useContext(Bc),x=(u==null?void 0:u.enabled)??b.options.buttons.enableAccessControl,E=(u==null?void 0:u.hideIfUnauthorized)??b.options.buttons.hideIfUnauthorized,S=on(),{id:C,resource:w,identifier:I}=xn(e??t),{mutationMode:T}=Bg(),A=a??T,{mutate:O,isLoading:R,variables:N}=MB(),{data:_}=Hg({resource:w==null?void 0:w.name,action:"delete",params:{id:n??C,resource:w},queryOptions:{enabled:x}}),L=rt(()=>_!=null&&_.can?"":_!=null&&_.reason?_.reason:S("buttons.notAccessTitle","You don't have permission to access"),"disabledTitle"),{setWarnWhen:$}=Pc();return x&&E&&!(_!=null&&_.can)?null:M.createElement(Rst,{key:"delete",okText:h??S("buttons.delete","Delete"),cancelText:m??S("buttons.cancel","Cancel"),okType:"danger",title:p??S("buttons.confirm","Are you sure?"),okButtonProps:{disabled:R},onConfirm:()=>{(n??C)&&I&&($(!1),O({id:n??C??"",resource:I,mutationMode:A,successNotification:o,errorNotification:l,meta:Ct(d,c),metaData:Ct(d,c),dataProviderName:f,invalidates:v},{onSuccess:k=>{r&&r(k)}}))},disabled:typeof(y==null?void 0:y.disabled)<"u"?y.disabled:(_==null?void 0:_.can)===!1},M.createElement(nn,{danger:!0,loading:(n??C)===(N==null?void 0:N.id)&&R,icon:M.createElement(Jgt,null),title:L(),disabled:(_==null?void 0:_.can)===!1,className:Uc.DeleteButton,...y},!s&&(i??S("buttons.delete","Delete"))))},"DeleteButton"),SSe=rt(({resource:e,resourceNameOrRouteName:t,recordItemId:n,hideText:r=!1,dataProviderName:a,children:i,onClick:o,meta:l,metaData:s,...u})=>{let c=on(),d=$c(),f=js(),{resources:p,identifier:h,id:m}=xn(e??t),v=!!d.isFetching({queryKey:y8e(h,cr(h,a,p)).detail(n??m)}),y=rt(()=>{f({id:n??m,invalidates:["detail"],dataProviderName:a,resource:h})},"handleInvalidate");return M.createElement(nn,{onClick:b=>{o?o(b):y()},icon:M.createElement(Ymt,{spin:v}),className:Uc.RefreshButton,...u},!r&&(i??c("buttons.refresh","Refresh")))},"RefreshButton");rt(({resource:e,resourceNameOrRouteName:t,recordItemId:n,hideText:r=!1,accessControl:a,meta:i,children:o,onClick:l,...s})=>{let u=g.useContext(Bc),c=(a==null?void 0:a.enabled)??u.options.buttons.enableAccessControl,d=(a==null?void 0:a.hideIfUnauthorized)??u.options.buttons.hideIfUnauthorized,{showUrl:f}=pa(),p=Gn(),h=Oi(),{Link:m}=Fr(),v=p==="legacy"?m:h,y=on(),{id:b,resource:x}=xn(e??t),{data:E}=Hg({resource:x==null?void 0:x.name,action:"show",params:{id:n??b,resource:x},queryOptions:{enabled:c}}),S=rt(()=>E!=null&&E.can?"":E!=null&&E.reason?E.reason:y("buttons.notAccessTitle","You don't have permission to access"),"createButtonDisabledTitle"),C=x&&(n||b)?f(x,n??b,i):"";return c&&d&&!(E!=null&&E.can)?null:M.createElement(v,{to:C,replace:!1,onClick:w=>{if((E==null?void 0:E.can)===!1){w.preventDefault();return}l&&(w.preventDefault(),l(w))}},M.createElement(nn,{icon:M.createElement(cmt,null),disabled:(E==null?void 0:E.can)===!1,title:S(),className:Uc.ShowButton,...s},!r&&(o??y("buttons.show","Show"))))},"ShowButton");var CSe=rt(({resource:e,resourceNameOrRouteName:t,hideText:n=!1,accessControl:r,meta:a,children:i,onClick:o,...l})=>{var s;let u=g.useContext(Bc),c=(r==null?void 0:r.enabled)??u.options.buttons.enableAccessControl,d=(r==null?void 0:r.hideIfUnauthorized)??u.options.buttons.hideIfUnauthorized,{listUrl:f}=pa(),p=Gn(),h=Oi(),{Link:m}=Fr(),v=Fc(),y=p==="legacy"?m:h,b=on(),{resource:x,identifier:E}=xn(e??t),{data:S}=Hg({resource:x==null?void 0:x.name,action:"list",queryOptions:{enabled:c},params:{resource:x}}),C=rt(()=>S!=null&&S.can?"":S!=null&&S.reason?S.reason:b("buttons.notAccessTitle","You don't have permission to access"),"createButtonDisabledTitle"),w=x?f(x,a):"";return c&&d&&!(S!=null&&S.can)?null:M.createElement(y,{to:w,replace:!1,onClick:I=>{if((S==null?void 0:S.can)===!1){I.preventDefault();return}o&&(I.preventDefault(),o(I))}},M.createElement(nn,{icon:M.createElement(PR,null),disabled:(S==null?void 0:S.can)===!1,title:C(),className:Uc.ListButton,...l},!n&&(i??b(`${E??e??t}.titles.list`,v(((s=x==null?void 0:x.meta)==null?void 0:s.label)??(x==null?void 0:x.label)??E??Ct(e,t),"plural")))))},"ListButton");rt(({hideText:e=!1,children:t,...n})=>{let r=on();return M.createElement(nn,{type:"default",icon:M.createElement(umt,null),className:Uc.ExportButton,...n},!e&&(t??r("buttons.export","Export")))},"ExportButton");var jz=rt(({hideText:e=!1,children:t,...n})=>{let r=on();return M.createElement(nn,{type:"primary",icon:M.createElement(Qmt,null),className:Uc.SaveButton,...n},!e&&(t??r("buttons.save","Save")))},"SaveButton");rt(({resourceNameOrRouteName:e,resource:t,recordItemId:n,hideText:r=!1,accessControl:a,meta:i,children:o,onClick:l,...s})=>{let u=g.useContext(Bc),c=(a==null?void 0:a.enabled)??u.options.buttons.enableAccessControl,d=(a==null?void 0:a.hideIfUnauthorized)??u.options.buttons.hideIfUnauthorized,{cloneUrl:f}=pa(),p=Gn(),h=Oi(),{Link:m}=Fr(),v=p==="legacy"?m:h,y=on(),{id:b,resource:x}=xn(t??e),{data:E}=Hg({resource:x==null?void 0:x.name,action:"create",params:{id:n??b,resource:x},queryOptions:{enabled:c}}),S=rt(()=>E!=null&&E.can?"":E!=null&&E.reason?E.reason:y("buttons.notAccessTitle","You don't have permission to access"),"createButtonDisabledTitle"),C=x&&(n||b)?f(x,n??b,i):"";return c&&d&&!(E!=null&&E.can)?null:M.createElement(v,{to:C,replace:!1,onClick:w=>{if((E==null?void 0:E.can)===!1){w.preventDefault();return}l&&(w.preventDefault(),l(w))}},M.createElement(nn,{icon:M.createElement(N1e,null),disabled:(E==null?void 0:E.can)===!1,title:S(),className:Uc.CloneButton,...s},!r&&(o??y("buttons.clone","Clone"))))},"CloneButton");rt(({uploadProps:e,buttonProps:t,hideText:n=!1,children:r})=>{let a=on();return M.createElement(Ogt,{...e},M.createElement(nn,{icon:M.createElement(Cmt,null),className:Uc.ImportButton,...t},!n&&(r??a("buttons.import","Import"))))},"ImportButton");var bRt=rt(({canCreate:e,title:t,children:n,createButtonProps:r,resource:a,wrapperProps:i,contentProps:o,headerProps:l,breadcrumb:s,headerButtonProps:u,headerButtons:c})=>{var d,f;let p=on(),{options:{breadcrumb:h}={}}=Aa(),m=Gn(),v=Fc(),{resource:y,identifier:b}=xn(a),x=e??(((y==null?void 0:y.canCreate)??!!(y!=null&&y.create))||r),E=typeof s>"u"?h:s,S=x?{size:"middle",resource:m==="legacy"?y==null?void 0:y.route:b,...r}:void 0,C=x?M.createElement(xSe,{...S}):null;return M.createElement("div",{...i??{}},M.createElement(c3,{ghost:!1,title:t??p(`${b}.titles.list`,v(((d=y==null?void 0:y.meta)==null?void 0:d.label)??((f=y==null?void 0:y.options)==null?void 0:f.label)??(y==null?void 0:y.label)??b,"plural")),extra:c?M.createElement(Un,{wrap:!0,...u},typeof c=="function"?c({defaultButtons:C,createButtonProps:S}):c):C,breadcrumb:typeof E<"u"?M.createElement(M.Fragment,null,E)??void 0:M.createElement(u3,null),...l??{}},M.createElement("div",{...o??{}},n)))},"List");rt(({title:e,saveButtonProps:t,children:n,resource:r,isLoading:a=!1,breadcrumb:i,wrapperProps:o,headerProps:l,contentProps:s,headerButtonProps:u,headerButtons:c,footerButtonProps:d,footerButtons:f,goBack:p})=>{var h,m;let v=on(),{options:{breadcrumb:y}={}}=Aa(),b=Gn(),x=hk(),{goBack:E}=pa(),S=Fc(),{resource:C,action:w,identifier:I}=xn(r),T=typeof i>"u"?y:i,A={...a?{disabled:!0}:{},...t,htmlType:"submit"},O=M.createElement(M.Fragment,null,M.createElement(jz,{...A}));return M.createElement("div",{...o??{}},M.createElement(c3,{ghost:!1,backIcon:p,onBack:w!=="list"||typeof w<"u"?b==="legacy"?E:x:void 0,title:e??v(`${I}.titles.create`,`Create ${S(((h=C==null?void 0:C.meta)==null?void 0:h.label)??((m=C==null?void 0:C.options)==null?void 0:m.label)??(C==null?void 0:C.label)??I,"singular")}`),breadcrumb:typeof T<"u"?M.createElement(M.Fragment,null,T)??void 0:M.createElement(u3,null),extra:M.createElement(Un,{wrap:!0,...u??{}},c?typeof c=="function"?c({defaultButtons:null}):c:null),...l??{}},M.createElement(My,{spinning:a},M.createElement(fo,{bordered:!1,actions:[M.createElement(Un,{key:"action-buttons",style:{float:"right",marginRight:24},...d??{}},f?typeof f=="function"?f({defaultButtons:O,saveButtonProps:A}):f:O)],...s??{}},n))))},"Create");var xRt=rt(({title:e,saveButtonProps:t,mutationMode:n,recordItemId:r,children:a,deleteButtonProps:i,canDelete:o,resource:l,isLoading:s=!1,dataProviderName:u,breadcrumb:c,wrapperProps:d,headerProps:f,contentProps:p,headerButtonProps:h,headerButtons:m,footerButtonProps:v,footerButtons:y,goBack:b,autoSaveProps:x})=>{var E,S,C;let w=on(),{options:{breadcrumb:I}={}}=Aa(),{mutationMode:T}=Bg(),A=n??T,O=Gn(),R=hk(),N=Ii(),{goBack:_,list:L}=pa(),$=Fc(),{resource:k,action:P,id:B,identifier:F}=xn(l),D=Lpe({resource:k,action:"list"}),j=r??B,z=typeof c>"u"?I:c,V=(k==null?void 0:k.list)&&!r,G=o??((((E=k==null?void 0:k.meta)==null?void 0:E.canDelete)??(k==null?void 0:k.canDelete))||i),W=V?{...s?{disabled:!0}:{},resource:O==="legacy"?k==null?void 0:k.route:F}:void 0,Y={...s?{disabled:!0}:{},resource:O==="legacy"?k==null?void 0:k.route:F,recordItemId:j,dataProviderName:u},J=G?{...s?{disabled:!0}:{},resource:O==="legacy"?k==null?void 0:k.route:F,mutationMode:A,onSuccess:()=>{O==="legacy"?L((k==null?void 0:k.route)??(k==null?void 0:k.name)??""):N({to:D})},recordItemId:j,dataProviderName:u,...i}:void 0,Z={...s?{disabled:!0}:{},...t},K=M.createElement(M.Fragment,null,x&&M.createElement(_Rt,{...x}),V&&M.createElement(CSe,{...W}),M.createElement(SSe,{...Y})),ee=M.createElement(M.Fragment,null,G&&M.createElement(r3,{...J}),M.createElement(jz,{...Z}));return M.createElement("div",{...d??{}},M.createElement(c3,{ghost:!1,backIcon:b,onBack:P!=="list"&&typeof P<"u"?O==="legacy"?_:R:void 0,title:e??w(`${F}.titles.edit`,`Edit ${$(((S=k==null?void 0:k.meta)==null?void 0:S.label)??((C=k==null?void 0:k.options)==null?void 0:C.label)??(k==null?void 0:k.label)??F,"singular")}`),extra:M.createElement(Un,{wrap:!0,...h??{}},m?typeof m=="function"?m({defaultButtons:K,listButtonProps:W,refreshButtonProps:Y}):m:K),breadcrumb:typeof z<"u"?M.createElement(M.Fragment,null,z)??void 0:M.createElement(u3,null),...f??{}},M.createElement(My,{spinning:s},M.createElement(fo,{bordered:!1,actions:[M.createElement(Un,{key:"footer-buttons",wrap:!0,style:{float:"right",marginRight:24},...v??{}},y?typeof y=="function"?y({defaultButtons:ee,deleteButtonProps:J,saveButtonProps:Z}):y:ee)],...p??{}},a))))},"Edit");rt(({title:e,canEdit:t,canDelete:n,isLoading:r=!1,children:a,resource:i,recordItemId:o,dataProviderName:l,breadcrumb:s,contentProps:u,headerProps:c,wrapperProps:d,headerButtons:f,footerButtons:p,footerButtonProps:h,headerButtonProps:m,goBack:v})=>{var y,b,x;let E=on(),{options:{breadcrumb:S}={}}=Aa(),C=Gn(),w=hk(),I=Ii(),{goBack:T,list:A}=pa(),O=Fc(),{resource:R,action:N,id:_,identifier:L}=xn(i),$=Lpe({resource:R,action:"list"}),k=o??_,P=typeof s>"u"?S:s,B=(R==null?void 0:R.list)&&!o,F=n??((y=R==null?void 0:R.meta)==null?void 0:y.canDelete)??(R==null?void 0:R.canDelete),D=t??(R==null?void 0:R.canEdit)??!!(R!=null&&R.edit),j=B?{resource:C==="legacy"?R==null?void 0:R.route:L}:void 0,z=D?{...r?{disabled:!0}:{},type:"primary",resource:C==="legacy"?R==null?void 0:R.route:L,recordItemId:k}:void 0,V=F?{...r?{disabled:!0}:{},resource:C==="legacy"?R==null?void 0:R.route:L,recordItemId:k,onSuccess:()=>{C==="legacy"?A((R==null?void 0:R.route)??(R==null?void 0:R.name)??""):I({to:$})},dataProviderName:l}:void 0,G={...r?{disabled:!0}:{},resource:C==="legacy"?R==null?void 0:R.route:L,recordItemId:k,dataProviderName:l},W=M.createElement(M.Fragment,null,B&&M.createElement(CSe,{...j}),D&&M.createElement(ESe,{...z}),F&&M.createElement(r3,{...V}),M.createElement(SSe,{...G}));return M.createElement("div",{...d??{}},M.createElement(c3,{ghost:!1,backIcon:v,onBack:N!=="list"&&typeof N<"u"?C==="legacy"?T:w:void 0,title:e??E(`${L}.titles.show`,`Show ${O(((b=R==null?void 0:R.meta)==null?void 0:b.label)??((x=R==null?void 0:R.options)==null?void 0:x.label)??(R==null?void 0:R.label)??L,"singular")}`),extra:M.createElement(Un,{key:"extra-buttons",wrap:!0,...m??{}},f?typeof f=="function"?f({defaultButtons:W,deleteButtonProps:V,editButtonProps:z,listButtonProps:j,refreshButtonProps:G}):f:W),breadcrumb:typeof P<"u"?M.createElement(M.Fragment,null,P)??void 0:M.createElement(u3,null),...c??{}},M.createElement(My,{spinning:r},M.createElement(fo,{bordered:!1,actions:p?[M.createElement(Un,{key:"footer-buttons",wrap:!0,...h},typeof p=="function"?p({defaultButtons:null}):p)]:void 0,...u??{}},a))))},"Show");rt(({value:e,...t})=>M.createElement(wr.Text,{...t},e),"TextField");rt(({value:e,...t})=>M.createElement(YS,{...t},e==null?void 0:e.toString()),"TagField");rt(({value:e,...t})=>M.createElement(wr.Link,{href:`mailto:${e}`,...t},e),"EmailField");rt(({value:e,imageTitle:t,...n})=>M.createElement(mlt,{...n,src:e,title:t}),"ImageField");rt(({value:e,valueLabelTrue:t="true",valueLabelFalse:n="false",trueIcon:r=M.createElement(Ygt,null),falseIcon:a=M.createElement(Qgt,null),...i})=>M.createElement(Gs,{title:e?t:n,...i},e?M.createElement("span",null,r):M.createElement("span",null,a)),"BooleanField");rt(({value:e,locales:t,format:n="L",...r})=>{Ir.extend(hvt);let a=Ir.locale();return M.createElement(wr.Text,{...r},Ir(e).locale(t||a).format(n))},"DateField");rt(({title:e,src:t,...n})=>M.createElement(ERt,{value:t,title:e,...n},e??t),"FileField");var ERt=rt(({children:e,value:t,...n})=>M.createElement(wr.Link,{href:t,...n},e??t),"UrlField");function wSe(){return!!(typeof Intl=="object"&&Intl&&typeof Intl.NumberFormat=="function")}rt(wSe,"toLocaleStringSupportsOptions");rt(({value:e,locale:t,options:n,...r})=>{let a=Number(e);return M.createElement(wr.Text,{...r},wSe()?a.toLocaleString(t,n):a)},"NumberField");var SRt=rt(({value:e=""})=>M.createElement(OTt,{remarkPlugins:[XIt]},e),"MarkdownField"),JT=rt(e=>{let{setSelectedKeys:t,confirm:n,clearFilters:r,mapValue:a,selectedKeys:i,children:o}=e,[l,s]=g.useState(i),u=on(),c=rt(()=>{r&&(s([]),r())},"clearFilter"),d=rt(()=>{let m=f(l),v;typeof m=="number"?v=`${m}`:Ir.isDayjs(m)?v=[m.toISOString()]:v=m,t(v),n==null||n()},"onFilter"),f=rt(m=>a?a(m):m,"mappedValue"),p=rt(m=>{if(typeof m=="object"){if(Array.isArray(m)){let E=f(m);return s(E),t(E)}let y=!m||!m.target||Ir.isDayjs(m)?{target:{value:m}}:m,{target:b}=y,x=f(b.value);s(x);return}let v=f(m);s(v)},"onChange"),h=M.Children.map(o,m=>M.isValidElement(m)?M.cloneElement(m,{onChange:p,value:f(l)}):m);return M.createElement("div",{style:{padding:10,display:"flex",flexDirection:"column",alignItems:"flex-end"}},M.createElement("div",{style:{marginBottom:15}},h),M.createElement(Un,null,M.createElement(nn,{type:"primary",size:"small",onClick:()=>d()},M.createElement(hmt,null)," ",u("buttons.filter","Filter")),M.createElement(nn,{danger:!0,size:"small",onClick:()=>c()},u("buttons.clear","Clear"))))},"FilterDropdown");rt(()=>{let[e,t]=g.useState(),n=on(),{push:r}=pa(),a=Ii(),i=Gn(),{resource:o,action:l}=xn();return g.useEffect(()=>{o&&l&&t(n("pages.error.info",{action:l,resource:o==null?void 0:o.name},`You may have forgotten to add the "${l}" component to "${o==null?void 0:o.name}" resource.`))},[o,l]),M.createElement(Iut,{status:"404",title:"404",extra:M.createElement(Un,{direction:"vertical",size:"large"},M.createElement(Un,null,M.createElement(wr.Text,null,n("pages.error.404","Sorry, the page you visited does not exist.")),e&&M.createElement(Gs,{title:e},M.createElement(Amt,{}))),M.createElement(nn,{type:"primary",onClick:()=>{i==="legacy"?r("/"):a({to:"/"})}},n("pages.error.backHome","Back Home")))})},"ErrorComponent");var CRt={background:"radial-gradient(50% 50% at 50% 50%, #63386A 0%, #310438 100%)",backgroundSize:"cover"},wRt={maxWidth:"408px",margin:"auto"},TRt={textAlign:"center",color:"#626262",fontSize:"30px",letterSpacing:"-0.04em"},ARt={display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"28px"};rt(()=>{let[e]=en.useForm(),t=on(),n=Wr(),{mutate:r,isLoading:a}=vS({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),i=M.createElement(wr.Title,{level:3,style:TRt},t("pages.login.title","Sign in your account"));return M.createElement(jr,{style:CRt},M.createElement(Ns,{justify:"center",align:"middle",style:{height:"100vh"}},M.createElement(Ji,{xs:22},M.createElement("div",{style:wRt},M.createElement("div",{style:ARt},M.createElement("img",{src:"https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg",alt:"Refine Logo"})),M.createElement(fo,{title:i,headStyle:{borderBottom:0}},M.createElement(en,{layout:"vertical",form:e,onFinish:o=>{r(o)},requiredMark:!1,initialValues:{remember:!1}},M.createElement(en.Item,{name:"username",label:t("pages.login.username","Username"),rules:[{required:!0}]},M.createElement(Wa,{size:"large",placeholder:t("pages.login.username","Username")})),M.createElement(en.Item,{name:"password",label:t("pages.login.password","Password"),rules:[{required:!0}],style:{marginBottom:"12px"}},M.createElement(Wa,{type:"password",placeholder:"●●●●●●●●",size:"large"})),M.createElement("div",{style:{marginBottom:"12px"}},M.createElement(en.Item,{name:"remember",valuePropName:"checked",noStyle:!0},M.createElement(xg,{style:{fontSize:"12px"}},t("pages.login.remember","Remember me"))),M.createElement("a",{style:{float:"right",fontSize:"12px"},href:"#"},t("pages.login.forgotPassword","Forgot password?"))),M.createElement(nn,{type:"primary",size:"large",htmlType:"submit",loading:a,block:!0},t("pages.login.signin","Sign in"))),M.createElement("div",{style:{marginTop:8}},M.createElement(wr.Text,{style:{fontSize:12}},t("pages.login.noAccount","Don’t have an account?")," ",M.createElement("a",{href:"#",style:{fontWeight:"bold"}},t("pages.login.signup","Sign up")))))))))},"LoginPage");var Wm={root:{height:"100vh",backgroundImage:"url('https://refine.ams3.cdn.digitaloceanspaces.com/login-background/background.png')",backgroundSize:"cover",backgroundColor:"#331049"},title:{color:"white",fontWeight:800,fontSize:"64px",marginBottom:"8px"},p1:{color:"white",marginBottom:0,fontSize:"20px",fontWeight:"bold"},p2:{color:"white",fontSize:"20px"},code:{backgroundColor:"white",color:"#331049"}};rt(()=>g.createElement(Ns,{align:"middle",justify:"center",style:Wm.root},g.createElement(Ji,{style:{textAlign:"center"}},g.createElement("img",{style:{marginBottom:"48px"},src:"https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg",alt:"Refine Logo"}),g.createElement(wr.Title,{style:Wm.title},"Welcome on board"),g.createElement("p",{style:Wm.p1},"Your configuration is completed."),g.createElement("p",{style:Wm.p2},"Now you can get started by adding your resources to the"," ",g.createElement("code",{style:Wm.code},"resources")," property of"," ",g.createElement("code",{style:Wm.code},"")),g.createElement(Un,{size:"large",wrap:!0,style:{marginTop:"70px",justifyContent:"center"}},g.createElement("a",{href:"https://refine.dev",target:"_blank",rel:"noreferrer"},g.createElement(nn,{size:"large",icon:g.createElement(Wmt,null)},"Documentation")),g.createElement("a",{href:"https://refine.dev/examples",target:"_blank",rel:"noreferrer"},g.createElement(nn,{size:"large",icon:g.createElement(vmt,null)},"Examples")),g.createElement("a",{href:"https://discord.gg/refine",target:"_blank",rel:"noreferrer"},g.createElement(nn,{size:"large",icon:g.createElement(ovt,null)},"Community"))))),"ReadyPage");rt(()=>M.createElement(D5e,null),"WelcomePage");var a3={},i3={maxWidth:"400px",margin:"auto",padding:"32px",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.02), 0px 1px 6px -1px rgba(0, 0, 0, 0.02), 0px 1px 2px rgba(0, 0, 0, 0.03)"},o3={borderBottom:0,padding:0},l3={padding:0,marginTop:"32px"},s3={textAlign:"center",marginBottom:0,fontSize:"24px",lineHeight:"32px",fontWeight:700,overflowWrap:"break-word",hyphens:"manual",textOverflow:"unset",whiteSpace:"pre-wrap"},IRt=rt(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:a,wrapperProps:i,renderContent:o,formProps:l,title:s,hideForm:u})=>{let{token:c}=Na.useToken(),[d]=en.useForm(),f=on(),p=Gn(),h=Oi(),{Link:m}=Fr(),v=p==="legacy"?m:h,y=Wr(),{mutate:b,isLoading:x}=vS({v3LegacyAuthProviderCompatible:!!(y!=null&&y.isLegacy)}),E=s===!1?null:M.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"32px",fontSize:"20px"}},s??M.createElement(jy,{collapsed:!1})),S=M.createElement(wr.Title,{level:3,style:{color:c.colorPrimaryTextHover,...s3}},f("pages.login.title","Sign in to your account")),C=rt(()=>e&&e.length>0?M.createElement(M.Fragment,null,e.map(I=>M.createElement(nn,{key:I.name,type:"default",block:!0,icon:I.icon,style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",marginBottom:"8px"},onClick:()=>b({providerName:I.name})},I.label)),!u&&M.createElement(uye,null,M.createElement(wr.Text,{style:{color:c.colorTextLabel}},f("pages.login.divider","or")))):null,"renderProviders"),w=M.createElement(fo,{title:S,headStyle:o3,bodyStyle:l3,style:{...i3,backgroundColor:c.colorBgElevated},...a??{}},C(),!u&&M.createElement(en,{layout:"vertical",form:d,onFinish:I=>b(I),requiredMark:!1,initialValues:{remember:!1},...l},M.createElement(en.Item,{name:"email",label:f("pages.login.fields.email","Email"),rules:[{required:!0},{type:"email",message:f("pages.login.errors.validEmail","Invalid email address")}]},M.createElement(Wa,{size:"large",placeholder:f("pages.login.fields.email","Email")})),M.createElement(en.Item,{name:"password",label:f("pages.login.fields.password","Password"),rules:[{required:!0}]},M.createElement(Wa,{type:"password",autoComplete:"current-password",placeholder:"●●●●●●●●",size:"large"})),M.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"24px"}},r??M.createElement(en.Item,{name:"remember",valuePropName:"checked",noStyle:!0},M.createElement(xg,{style:{fontSize:"12px"}},f("pages.login.buttons.rememberMe","Remember me"))),n??M.createElement(v,{style:{color:c.colorPrimaryTextHover,fontSize:"12px",marginLeft:"auto"},to:"/forgot-password"},f("pages.login.buttons.forgotPassword","Forgot password?"))),!u&&M.createElement(en.Item,null,M.createElement(nn,{type:"primary",size:"large",htmlType:"submit",loading:x,block:!0},f("pages.login.signin","Sign in")))),t??M.createElement("div",{style:{marginTop:u?16:8}},M.createElement(wr.Text,{style:{fontSize:12}},f("pages.login.buttons.noAccount","Don’t have an account?")," ",M.createElement(v,{to:"/register",style:{fontWeight:"bold",color:c.colorPrimaryTextHover}},f("pages.login.signup","Sign up")))));return M.createElement(jr,{style:a3,...i??{}},M.createElement(Ns,{justify:"center",align:u?"top":"middle",style:{padding:"16px 0",minHeight:"100dvh",paddingTop:u?"15dvh":"16px"}},M.createElement(Ji,{xs:22},o?o(w,E):M.createElement(M.Fragment,null,E,w))))},"LoginPage"),ORt=rt(({providers:e,loginLink:t,wrapperProps:n,contentProps:r,renderContent:a,formProps:i,title:o,hideForm:l})=>{let{token:s}=Na.useToken(),[u]=en.useForm(),c=on(),d=Gn(),f=Oi(),{Link:p}=Fr(),h=d==="legacy"?p:f,m=Wr(),{mutate:v,isLoading:y}=_B({v3LegacyAuthProviderCompatible:!!(m!=null&&m.isLegacy)}),b=o===!1?null:M.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"32px",fontSize:"20px"}},o??M.createElement(jy,{collapsed:!1})),x=M.createElement(wr.Title,{level:3,style:{color:s.colorPrimaryTextHover,...s3}},c("pages.register.title","Sign up for your account")),E=rt(()=>e&&e.length>0?M.createElement(M.Fragment,null,e.map(C=>M.createElement(nn,{key:C.name,type:"default",block:!0,icon:C.icon,style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",marginBottom:"8px"},onClick:()=>v({providerName:C.name})},C.label)),!l&&M.createElement(uye,null,M.createElement(wr.Text,{style:{color:s.colorTextLabel}},c("pages.login.divider","or")))):null,"renderProviders"),S=M.createElement(fo,{title:x,headStyle:o3,bodyStyle:l3,style:{...i3,backgroundColor:s.colorBgElevated},...r??{}},E(),!l&&M.createElement(en,{layout:"vertical",form:u,onFinish:C=>v(C),requiredMark:!1,...i},M.createElement(en.Item,{name:"email",label:c("pages.register.email","Email"),rules:[{required:!0},{type:"email",message:c("pages.register.errors.validEmail","Invalid email address")}]},M.createElement(Wa,{size:"large",placeholder:c("pages.register.fields.email","Email")})),M.createElement(en.Item,{name:"password",label:c("pages.register.fields.password","Password"),rules:[{required:!0}]},M.createElement(Wa,{type:"password",placeholder:"●●●●●●●●",size:"large"})),M.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"24px"}},t??M.createElement(wr.Text,{style:{fontSize:12,marginLeft:"auto"}},c("pages.login.buttons.haveAccount","Have an account?")," ",M.createElement(h,{style:{fontWeight:"bold",color:s.colorPrimaryTextHover},to:"/login"},c("pages.login.signin","Sign in")))),M.createElement(en.Item,{style:{marginBottom:0}},M.createElement(nn,{type:"primary",size:"large",htmlType:"submit",loading:y,block:!0},c("pages.register.buttons.submit","Sign up")))),l&&t!==!1&&M.createElement("div",{style:{marginTop:l?16:8}},M.createElement(wr.Text,{style:{fontSize:12}},c("pages.login.buttons.haveAccount","Have an account?")," ",M.createElement(h,{style:{fontWeight:"bold",color:s.colorPrimaryTextHover},to:"/login"},c("pages.login.signin","Sign in")))));return M.createElement(jr,{style:a3,...n??{}},M.createElement(Ns,{justify:"center",align:l?"top":"middle",style:{padding:"16px 0",minHeight:"100dvh",paddingTop:l?"15dvh":"16px"}},M.createElement(Ji,{xs:22},a?a(S,b):M.createElement(M.Fragment,null,b,S))))},"RegisterPage"),kRt=rt(({loginLink:e,wrapperProps:t,contentProps:n,renderContent:r,formProps:a,title:i})=>{let{token:o}=Na.useToken(),[l]=en.useForm(),s=on(),u=Gn(),c=Oi(),{Link:d}=Fr(),f=u==="legacy"?d:c,{mutate:p,isLoading:h}=NB(),m=i===!1?null:M.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"32px",fontSize:"20px"}},i??M.createElement(jy,{collapsed:!1})),v=M.createElement(wr.Title,{level:3,style:{color:o.colorPrimaryTextHover,...s3}},s("pages.forgotPassword.title","Forgot your password?")),y=M.createElement(fo,{title:v,headStyle:o3,bodyStyle:l3,style:{...i3,backgroundColor:o.colorBgElevated},...n??{}},M.createElement(en,{layout:"vertical",form:l,onFinish:b=>p(b),requiredMark:!1,...a},M.createElement(en.Item,{name:"email",label:s("pages.forgotPassword.fields.email","Email"),rules:[{required:!0},{type:"email",message:s("pages.forgotPassword.errors.validEmail","Invalid email address")}]},M.createElement(Wa,{type:"email",size:"large",placeholder:s("pages.forgotPassword.fields.email","Email")})),M.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},e??M.createElement(wr.Text,{style:{fontSize:12,marginLeft:"auto"}},s("pages.register.buttons.haveAccount","Have an account? ")," ",M.createElement(f,{style:{fontWeight:"bold",color:o.colorPrimaryTextHover},to:"/login"},s("pages.login.signin","Sign in")))),M.createElement(en.Item,{style:{marginTop:"24px",marginBottom:0}},M.createElement(nn,{type:"primary",size:"large",htmlType:"submit",loading:h,block:!0},s("pages.forgotPassword.buttons.submit","Send reset instructions")))));return M.createElement(jr,{style:a3,...t??{}},M.createElement(Ns,{justify:"center",align:"middle",style:{padding:"16px 0",minHeight:"100dvh"}},M.createElement(Ji,{xs:22},r?r(y,m):M.createElement(M.Fragment,null,m,y))))},"ForgotPasswordPage"),RRt=rt(({wrapperProps:e,contentProps:t,renderContent:n,formProps:r,title:a})=>{let{token:i}=Na.useToken(),[o]=en.useForm(),l=on(),s=Wr(),{mutate:u,isLoading:c}=DB({v3LegacyAuthProviderCompatible:!!(s!=null&&s.isLegacy)}),d=a===!1?null:M.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"32px",fontSize:"20px"}},a??M.createElement(jy,{collapsed:!1})),f=M.createElement(wr.Title,{level:3,style:{color:i.colorPrimaryTextHover,...s3}},l("pages.updatePassword.title","Set New Password")),p=M.createElement(fo,{title:f,headStyle:o3,bodyStyle:l3,style:{...i3,backgroundColor:i.colorBgElevated},...t??{}},M.createElement(en,{layout:"vertical",form:o,onFinish:h=>u(h),requiredMark:!1,...r},M.createElement(en.Item,{name:"password",label:l("pages.updatePassword.fields.password","New Password"),rules:[{required:!0}],style:{marginBottom:"12px"}},M.createElement(Wa,{type:"password",placeholder:"●●●●●●●●",size:"large"})),M.createElement(en.Item,{name:"confirmPassword",label:l("pages.updatePassword.fields.confirmPassword","Confirm New Password"),hasFeedback:!0,dependencies:["password"],rules:[{required:!0},({getFieldValue:h})=>({validator(m,v){return!v||h("password")===v?Promise.resolve():Promise.reject(new Error(l("pages.updatePassword.errors.confirmPasswordNotMatch","Passwords do not match")))}})]},M.createElement(Wa,{type:"password",placeholder:"●●●●●●●●",size:"large"})),M.createElement(en.Item,{style:{marginBottom:0}},M.createElement(nn,{type:"primary",size:"large",htmlType:"submit",loading:c,block:!0},l("pages.updatePassword.buttons.submit","Update")))));return M.createElement(jr,{style:a3,...e??{}},M.createElement(Ns,{justify:"center",align:"middle",style:{padding:"16px 0",minHeight:"100dvh"}},M.createElement(Ji,{xs:22},n?n(p,d):M.createElement(M.Fragment,null,d,p))))},"UpdatePasswordPage"),Uz=rt(e=>{let{type:t}=e;return M.createElement(M.Fragment,null,rt(()=>{switch(t){case"register":return M.createElement(ORt,{...e});case"forgotPassword":return M.createElement(kRt,{...e});case"updatePassword":return M.createElement(RRt,{...e});default:return M.createElement(IRt,{...e})}},"renderView")())},"AuthPage"),u3=rt(({breadcrumbProps:e,showHome:t=!0,hideIcons:n=!1,meta:r})=>{let a=Gn(),{breadcrumbs:i}=y5e({meta:r}),o=Oi(),{Link:l}=Fr(),{hasDashboard:s}=Aa(),{resources:u}=xn(),c=mpe("/",u),d=a==="legacy"?l:o;if(i.length===1)return null;let f=i.map(({label:p,icon:h,href:m})=>({key:`breadcrumb-item-${p}`,title:M.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:4}},!n&&h,m?M.createElement(d,{to:m},p):M.createElement("span",null,p))}));return M.createElement(t0e,{items:rt(()=>{var p,h;return t&&(s||c.found)?[{key:"breadcrumb-item-home",title:M.createElement(d,{to:"/"},((h=(p=c==null?void 0:c.resource)==null?void 0:p.meta)==null?void 0:h.icon)??M.createElement(xmt,null))},...f]:f},"getBreadcrumbItems")(),...e})},"Breadcrumb"),c3=rt(({children:e,...t})=>{let n=typeof t.backIcon>"u"?M.createElement(nn,{type:"text",icon:M.createElement(Ugt,null)}):t.backIcon,r=typeof t.title=="string"?M.createElement(wr.Title,{className:ete.Title,level:4,style:{marginBottom:0}},t.title):t.title,a=typeof t.title=="string"?M.createElement(wr.Title,{className:ete.SubTitle,level:5,type:"secondary",style:{marginBottom:0}},t.subTitle):t.subTitle;return M.createElement(qkt,{...t,backIcon:n,title:r,subTitle:a,style:{padding:0,...t.style}},e)},"PageHeader"),_Rt=rt(({status:e,elements:{success:t=M.createElement(b2,{key:"autoSave.success",defaultMessage:"saved",icon:M.createElement(qgt,null)}),error:n=M.createElement(b2,{key:"autoSave.error",defaultMessage:"auto save failure",icon:M.createElement(omt,null)}),loading:r=M.createElement(b2,{key:"autoSave.loading",defaultMessage:"saving...",icon:M.createElement(avt,null)}),idle:a=M.createElement(b2,{key:"autoSave.idle",defaultMessage:"waiting for changes",icon:M.createElement(rmt,null)})}={}})=>M.createElement(Z5e,{status:e,elements:{success:t,error:n,loading:r,idle:a}}),"AutoSaveIndicator"),b2=rt(({key:e,defaultMessage:t,icon:n})=>{let r=on(),{token:a}=Na.useToken();return M.createElement(wr.Text,{style:{marginRight:5,color:a.colorTextTertiary,fontSize:".8rem"}},r(e,t),M.createElement("span",{style:{marginLeft:".2rem"}},n))},"Message");rt(e=>{let{fileList:t}=e;return[...t]},"getValueFromEvent");var Vz={exports:{}};const NRt=/[\p{Lu}]/u,DRt=/[\p{Ll}]/u,_ne=/^[\p{Lu}](?![\p{Lu}])/gu,TSe=/([\p{Alpha}\p{N}_]|$)/u,ASe=/[_.\- ]+/,MRt=new RegExp("^"+ASe.source),Nne=new RegExp(ASe.source+TSe.source,"gu"),Dne=new RegExp("\\d+"+TSe.source,"gu"),$Rt=(e,t,n)=>{let r=!1,a=!1,i=!1;for(let o=0;o(_ne.lastIndex=0,e.replace(_ne,n=>t(n))),PRt=(e,t)=>(Nne.lastIndex=0,Dne.lastIndex=0,e.replace(Nne,(n,r)=>t(r)).replace(Dne,n=>t(n))),ISe=(e,t)=>{if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(i=>i.trim()).filter(i=>i.length).join("-"):e=e.trim(),e.length===0)return"";const n=t.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(t.locale),r=t.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(t.locale);return e.length===1?t.pascalCase?r(e):n(e):(e!==n(e)&&(e=$Rt(e,n,r)),e=e.replace(MRt,""),t.preserveConsecutiveUppercase?e=LRt(e,n):e=n(e),t.pascalCase&&(e=r(e.charAt(0))+e.slice(1)),PRt(e,r))};Vz.exports=ISe;Vz.exports.default=ISe;var FRt=Vz.exports;const Er=Or(FRt);var bd={},Wz={},Gz={},Qg={};Object.defineProperty(Qg,"__esModule",{value:!0});var aF;(function(e){e.Mutation="mutation",e.Query="query",e.Subscription="subscription"})(aF||(aF={}));Qg.default=aF;var Zg={},d3={};Object.defineProperty(d3,"__esModule",{value:!0});d3.isNestedField=void 0;function BRt(e){return typeof e=="object"&&e.hasOwnProperty("operation")&&e.hasOwnProperty("variables")&&e.hasOwnProperty("fields")||typeof e=="object"&&e.hasOwnProperty("operation")&&e.hasOwnProperty("fragment")&&e.hasOwnProperty("fields")}d3.isNestedField=BRt;var Of=We&&We.__assign||function(){return Of=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?"{ "+n.queryFieldsMap(u)+" }":""),o0?"{ "+this.queryFieldsMap(t.fields)+" }":"")},e.queryVariablesMap=function(t,n){var r={},a=function(i){i&&Object.keys(i).map(function(o){r[o]=typeof i[o]=="object"?i[o].value:i[o]})};return a(t),n&&typeof n=="object"&&a(e.getNestedVariables(n)),r},e.getNestedVariables=function(t){var n={};function r(a){return a==null||a.forEach(function(i){if((0,Mne.isNestedField)(i))n=Of(Of(Of({},i.variables),n),i.fields&&r(i.fields));else if(typeof i=="object")for(var o=0,l=Object.entries(i);o0?"(".concat(Object.keys(t).reduce(function(n,r,a){return"".concat(n).concat(a!==0?", ":"","$").concat(r,": ").concat(ah.default.queryDataType(t[r]))},""),")"):""},e.prototype.operationWrapperTemplate=function(t,n,r){var a="".concat(t," ").concat(this.queryDataArgumentAndTypeMap(n),` { + `).concat(r,` + }`);return this.config.operationName&&(a=a.replace("mutation","mutation ".concat(this.config.operationName))),{query:a,variables:ah.default.queryVariablesMap(n,this.fields)}},e.prototype.operationTemplate=function(t){var n=typeof t=="string"?t:"".concat(t.alias,": ").concat(t.name);return"".concat(n," ").concat(ah.default.queryDataNameAndArgumentMap(this.variables)," ").concat(this.fields&&this.fields.length>0?`{ + `.concat(ah.default.queryFieldsMap(this.fields),` + }`):"")},e}();Yz.default=qRt;var Kz={},WI=We&&We.__assign||function(){return WI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?"(".concat(Object.keys(t).reduce(function(n,r,a){return"".concat(n).concat(a!==0?", ":"","$").concat(r,": ").concat(Gm.default.queryDataType(t[r]))},""),")"):""},e.prototype.operationWrapperTemplate=function(t){var n="".concat(YRt.default.Query," ").concat(this.queryDataArgumentAndTypeMap()," { ").concat(t," }");return n=n.replace("query","query".concat(this.config.operationName!==""?" "+this.config.operationName:"")),{query:n,variables:Gm.default.queryVariablesMap(this.variables,this.fields)}},e.prototype.operationTemplate=function(t){var n=typeof this.operation=="string"?this.operation:"".concat(this.operation.alias,": ").concat(this.operation.name);return"".concat(n," ").concat(t?Gm.default.queryDataNameAndArgumentMap(t):""," ").concat(this.fields&&this.fields.length>0?"{ "+Gm.default.queryFieldsMap(this.fields)+" }":"")},e}();Kz.default=KRt;var Xz={};Object.defineProperty(Xz,"__esModule",{value:!0});var Lne=Qg,E2=Zg,XRt=function(){function e(t){Array.isArray(t)?this.variables=E2.default.resolveVariables(t):(this.variables=t.variables,this.fields=t.fields,this.operation=t.operation)}return e.prototype.subscriptionBuilder=function(){return this.operationWrapperTemplate(Lne.default.Subscription,this.variables,this.operationTemplate(this.operation))},e.prototype.subscriptionsBuilder=function(t){var n=this,r=t.map(function(a){return n.operation=a.operation,n.variables=a.variables,n.fields=a.fields,n.operationTemplate(a.operation)});return this.operationWrapperTemplate(Lne.default.Subscription,E2.default.resolveVariables(t),r.join(` + `))},e.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(t,n,r){return"".concat(t).concat(r!==0?", ":"").concat(n,": $").concat(n)},""),")"):""},e.prototype.queryDataArgumentAndTypeMap=function(t){return Object.keys(t).length?"(".concat(Object.keys(t).reduce(function(n,r,a){return"".concat(n).concat(a!==0?", ":"","$").concat(r,": ").concat(E2.default.queryDataType(t[r]))},""),")"):""},e.prototype.operationWrapperTemplate=function(t,n,r){return{query:"".concat(t," ").concat(this.queryDataArgumentAndTypeMap(n),` { + `).concat(r,` +}`),variables:E2.default.queryVariablesMap(n)}},e.prototype.operationTemplate=function(t){var n=typeof this.operation=="string"?this.operation:"".concat(this.operation.alias,": ").concat(this.operation.name);return"".concat(n," ").concat(this.queryDataNameAndArgumentMap(),` { + `).concat(this.queryFieldsMap(this.fields),` + }`)},e.prototype.queryFieldsMap=function(t){var n=this;return t?t.map(function(r){return typeof r=="object"?"".concat(Object.keys(r)[0]," { ").concat(n.queryFieldsMap(Object.values(r)[0])," }"):"".concat(r)}).join(", "):""},e}();Xz.default=XRt;Object.defineProperty(bd,"__esModule",{value:!0});bd.adapters=av=bd.query=k1=bd.mutation=f3=bd.subscription=void 0;var QRt=Wz;bd.adapters=QRt.default;var Pne=Yz,Fne=Kz,Bne=Xz;function ZRt(e,t,n){var r;if(Array.isArray(e)){if(t){var a=new t(e,n);return a.queriesBuilder(e)}return r=new Fne.default(e,n),r.queriesBuilder(e)}if(t){var a=new t(e,n);return a.queryBuilder()}return r=new Fne.default(e,n),r.queryBuilder()}var av=bd.query=ZRt;function JRt(e,t,n){var r,a;return Array.isArray(e)?t?(r=new t(e,n),r.mutationsBuilder(e)):(a=new Pne.default(e,n),a.mutationsBuilder(e)):t?(r=new t(e,n),r.mutationBuilder()):(a=new Pne.default(e,n),a.mutationBuilder())}var k1=bd.mutation=JRt;function e3t(e,t){var n,r;return Array.isArray(e)?t?(n=new t(e),n.subscriptionsBuilder(e)):(r=new Bne.default(e),r.subscriptionsBuilder(e)):t?(n=new t(e),n.subscriptionBuilder()):(r=new Bne.default(e),r.subscriptionBuilder())}var f3=bd.subscription=e3t;function eA(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eA=function(n){return typeof n}:eA=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eA(e)}function t3t(e){return eA(e)=="object"&&e!==null}var OSe=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function iF(e,t){for(var n=/\r\n|[\n\r]/g,r=1,a=t+1,i;(i=n.exec(e.body))&&i.index120){for(var f=Math.floor(s/80),p=s%80,h=[],m=0;m"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function c3t(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function wE(e,t){return wE=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},wE(e,t)}function TE(e){return TE=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},TE(e)}var d3t=function(e){s3t(n,e);var t=u3t(n);function n(r,a,i,o,l,s,u){var c,d,f,p;o3t(this,n),p=t.call(this,r),p.name="GraphQLError",p.originalError=s??void 0,p.nodes=Une(Array.isArray(a)?a:a?[a]:void 0);for(var h=[],m=0,v=(y=p.nodes)!==null&&y!==void 0?y:[];m0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?(Object.defineProperty(R1(p),"stack",{value:s.stack,writable:!0,configurable:!0}),RSe(p)):(Error.captureStackTrace?Error.captureStackTrace(R1(p),n):Object.defineProperty(R1(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return l3t(n,[{key:"toString",value:function(){return f3t(this)}},{key:OSe,get:function(){return"Object"}}]),n}(oF(Error));function Une(e){return e===void 0||e.length===0?void 0:e}function f3t(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function aA(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?aA=function(n){return typeof n}:aA=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},aA(e)}var g3t=10,MSe=2;function $Se(e){return p3(e,[])}function p3(e,t){switch(aA(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":m3t(e,t);default:return String(e)}}function m3t(e,t){if(t.indexOf(e)!==-1)return"[Circular]";var n=[].concat(t,[e]),r=b3t(e);if(r!==void 0){var a=r.call(e);if(a!==e)return typeof a=="string"?a:p3(a,n)}else if(Array.isArray(e))return y3t(e,n);return v3t(e,n)}function v3t(e,t){var n=Object.keys(e);if(n.length===0)return"{}";if(t.length>MSe)return"["+x3t(e)+"]";var r=n.map(function(a){var i=p3(e[a],t);return a+": "+i});return"{ "+r.join(", ")+" }"}function y3t(e,t){if(e.length===0)return"[]";if(t.length>MSe)return"[Array]";for(var n=Math.min(g3t,e.length),r=e.length-n,a=[],i=0;i1&&a.push("... ".concat(r," more items")),"["+a.join(", ")+"]"}function b3t(e){var t=e[String(lF)];if(typeof t=="function")return t;if(typeof e.inspect=="function")return e.inspect}function x3t(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){var n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}function Z4(e,t){var n=!!e;if(!n)throw new Error(t)}const E3t=function(t,n){return t instanceof n};function Wne(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof t=="string"||Z4(0,"Body must be a string. Received: ".concat($Se(t),".")),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Z4(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Z4(0,"column in locationOffset is 1-indexed and must be positive.")}return S3t(e,[{key:OSe,get:function(){return"Source"}}]),e}();function C3t(e){return E3t(e,LSe)}var w3t=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function T3t(e){var t=e.split(/\r\n|[\n\r]/g),n=A3t(e);if(n!==0)for(var r=1;ra&&Gne(t[i-1]);)--i;return t.slice(a,i).join(` +`)}function Gne(e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.indexOf(` +`)===-1,a=e[0]===" "||e[0]===" ",i=e[e.length-1]==='"',o=e[e.length-1]==="\\",l=!r||i||o||n,s="";return l&&!(r&&a)&&(s+=` +`+t),s+=t?e.replace(/\n/g,` +`+t):e,l&&(s+=` +`),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var O3t=function(){function e(n){var r=new Ra(it.SOF,0,0,0,0,null);this.source=n,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var r=this.token=this.lookahead();return r},t.lookahead=function(){var r=this.token;if(r.kind!==it.EOF)do{var a;r=(a=r.next)!==null&&a!==void 0?a:r.next=R3t(this,r)}while(r.kind===it.COMMENT);return r},e}();function k3t(e){return e===it.BANG||e===it.DOLLAR||e===it.AMP||e===it.PAREN_L||e===it.PAREN_R||e===it.SPREAD||e===it.COLON||e===it.EQUALS||e===it.AT||e===it.BRACKET_L||e===it.BRACKET_R||e===it.BRACE_L||e===it.PIPE||e===it.BRACE_R}function Cg(e){return isNaN(e)?it.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function R3t(e,t){for(var n=e.source,r=n.body,a=r.length,i=t.end;i31||o===9));return new Ra(it.COMMENT,t,l,n,r,a,i.slice(t+1,l))}function D3t(e,t,n,r,a,i){var o=e.body,l=n,s=t,u=!1;if(l===45&&(l=o.charCodeAt(++s)),l===48){if(l=o.charCodeAt(++s),l>=48&&l<=57)throw Kl(e,s,"Invalid number, unexpected digit after 0: ".concat(Cg(l),"."))}else s=J4(e,s,l),l=o.charCodeAt(s);if(l===46&&(u=!0,l=o.charCodeAt(++s),s=J4(e,s,l),l=o.charCodeAt(s)),(l===69||l===101)&&(u=!0,l=o.charCodeAt(++s),(l===43||l===45)&&(l=o.charCodeAt(++s)),s=J4(e,s,l),l=o.charCodeAt(s)),l===46||F3t(l))throw Kl(e,s,"Invalid number, expected digit but got: ".concat(Cg(l),"."));return new Ra(u?it.FLOAT:it.INT,t,s,r,a,i,o.slice(t,s))}function J4(e,t,n){var r=e.body,a=t,i=n;if(i>=48&&i<=57){do i=r.charCodeAt(++a);while(i>=48&&i<=57);return a}throw Kl(e,a,"Invalid number, expected digit but got: ".concat(Cg(i),"."))}function M3t(e,t,n,r,a){for(var i=e.body,o=t+1,l=o,s=0,u="";o=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function P3t(e,t,n,r,a){for(var i=e.body,o=i.length,l=t+1,s=0;l!==o&&!isNaN(s=i.charCodeAt(l))&&(s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++l;return new Ra(it.NAME,t,l,n,r,a,i.slice(t,l))}function F3t(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function PSe(e,t){var n=new B3t(e,t);return n.parseDocument()}var B3t=function(){function e(n,r){var a=C3t(n)?n:new LSe(n);this._lexer=new O3t(a),this._options=r}var t=e.prototype;return t.parseName=function(){var r=this.expectToken(it.NAME);return{kind:En.NAME,value:r.value,loc:this.loc(r)}},t.parseDocument=function(){var r=this._lexer.token;return{kind:En.DOCUMENT,definitions:this.many(it.SOF,this.parseDefinition,it.EOF),loc:this.loc(r)}},t.parseDefinition=function(){if(this.peek(it.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(it.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var r=this._lexer.token;if(this.peek(it.BRACE_L))return{kind:En.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(r)};var a=this.parseOperationType(),i;return this.peek(it.NAME)&&(i=this.parseName()),{kind:En.OPERATION_DEFINITION,operation:a,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},t.parseOperationType=function(){var r=this.expectToken(it.NAME);switch(r.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(r)},t.parseVariableDefinitions=function(){return this.optionalMany(it.PAREN_L,this.parseVariableDefinition,it.PAREN_R)},t.parseVariableDefinition=function(){var r=this._lexer.token;return{kind:En.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(it.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(it.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(r)}},t.parseVariable=function(){var r=this._lexer.token;return this.expectToken(it.DOLLAR),{kind:En.VARIABLE,name:this.parseName(),loc:this.loc(r)}},t.parseSelectionSet=function(){var r=this._lexer.token;return{kind:En.SELECTION_SET,selections:this.many(it.BRACE_L,this.parseSelection,it.BRACE_R),loc:this.loc(r)}},t.parseSelection=function(){return this.peek(it.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var r=this._lexer.token,a=this.parseName(),i,o;return this.expectOptionalToken(it.COLON)?(i=a,o=this.parseName()):o=a,{kind:En.FIELD,alias:i,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(it.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(r){var a=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(it.PAREN_L,a,it.PAREN_R)},t.parseArgument=function(){var r=this._lexer.token,a=this.parseName();return this.expectToken(it.COLON),{kind:En.ARGUMENT,name:a,value:this.parseValueLiteral(!1),loc:this.loc(r)}},t.parseConstArgument=function(){var r=this._lexer.token;return{kind:En.ARGUMENT,name:this.parseName(),value:(this.expectToken(it.COLON),this.parseValueLiteral(!0)),loc:this.loc(r)}},t.parseFragment=function(){var r=this._lexer.token;this.expectToken(it.SPREAD);var a=this.expectOptionalKeyword("on");return!a&&this.peek(it.NAME)?{kind:En.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(r)}:{kind:En.INLINE_FRAGMENT,typeCondition:a?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},t.parseFragmentDefinition=function(){var r,a=this._lexer.token;return this.expectKeyword("fragment"),((r=this._options)===null||r===void 0?void 0:r.experimentalFragmentVariables)===!0?{kind:En.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}:{kind:En.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}},t.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(r){var a=this._lexer.token;switch(a.kind){case it.BRACKET_L:return this.parseList(r);case it.BRACE_L:return this.parseObject(r);case it.INT:return this._lexer.advance(),{kind:En.INT,value:a.value,loc:this.loc(a)};case it.FLOAT:return this._lexer.advance(),{kind:En.FLOAT,value:a.value,loc:this.loc(a)};case it.STRING:case it.BLOCK_STRING:return this.parseStringLiteral();case it.NAME:switch(this._lexer.advance(),a.value){case"true":return{kind:En.BOOLEAN,value:!0,loc:this.loc(a)};case"false":return{kind:En.BOOLEAN,value:!1,loc:this.loc(a)};case"null":return{kind:En.NULL,loc:this.loc(a)};default:return{kind:En.ENUM,value:a.value,loc:this.loc(a)}}case it.DOLLAR:if(!r)return this.parseVariable();break}throw this.unexpected()},t.parseStringLiteral=function(){var r=this._lexer.token;return this._lexer.advance(),{kind:En.STRING,value:r.value,block:r.kind===it.BLOCK_STRING,loc:this.loc(r)}},t.parseList=function(r){var a=this,i=this._lexer.token,o=function(){return a.parseValueLiteral(r)};return{kind:En.LIST,values:this.any(it.BRACKET_L,o,it.BRACKET_R),loc:this.loc(i)}},t.parseObject=function(r){var a=this,i=this._lexer.token,o=function(){return a.parseObjectField(r)};return{kind:En.OBJECT,fields:this.any(it.BRACE_L,o,it.BRACE_R),loc:this.loc(i)}},t.parseObjectField=function(r){var a=this._lexer.token,i=this.parseName();return this.expectToken(it.COLON),{kind:En.OBJECT_FIELD,name:i,value:this.parseValueLiteral(r),loc:this.loc(a)}},t.parseDirectives=function(r){for(var a=[];this.peek(it.AT);)a.push(this.parseDirective(r));return a},t.parseDirective=function(r){var a=this._lexer.token;return this.expectToken(it.AT),{kind:En.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r),loc:this.loc(a)}},t.parseTypeReference=function(){var r=this._lexer.token,a;return this.expectOptionalToken(it.BRACKET_L)?(a=this.parseTypeReference(),this.expectToken(it.BRACKET_R),a={kind:En.LIST_TYPE,type:a,loc:this.loc(r)}):a=this.parseNamedType(),this.expectOptionalToken(it.BANG)?{kind:En.NON_NULL_TYPE,type:a,loc:this.loc(r)}:a},t.parseNamedType=function(){var r=this._lexer.token;return{kind:En.NAMED_TYPE,name:this.parseName(),loc:this.loc(r)}},t.parseTypeSystemDefinition=function(){var r=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(r.kind===it.NAME)switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(r)},t.peekDescription=function(){return this.peek(it.STRING)||this.peek(it.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var r=this._lexer.token,a=this.parseDescription();this.expectKeyword("schema");var i=this.parseDirectives(!0),o=this.many(it.BRACE_L,this.parseOperationTypeDefinition,it.BRACE_R);return{kind:En.SCHEMA_DEFINITION,description:a,directives:i,operationTypes:o,loc:this.loc(r)}},t.parseOperationTypeDefinition=function(){var r=this._lexer.token,a=this.parseOperationType();this.expectToken(it.COLON);var i=this.parseNamedType();return{kind:En.OPERATION_TYPE_DEFINITION,operation:a,type:i,loc:this.loc(r)}},t.parseScalarTypeDefinition=function(){var r=this._lexer.token,a=this.parseDescription();this.expectKeyword("scalar");var i=this.parseName(),o=this.parseDirectives(!0);return{kind:En.SCALAR_TYPE_DEFINITION,description:a,name:i,directives:o,loc:this.loc(r)}},t.parseObjectTypeDefinition=function(){var r=this._lexer.token,a=this.parseDescription();this.expectKeyword("type");var i=this.parseName(),o=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:En.OBJECT_TYPE_DEFINITION,description:a,name:i,interfaces:o,directives:l,fields:s,loc:this.loc(r)}},t.parseImplementsInterfaces=function(){var r;if(!this.expectOptionalKeyword("implements"))return[];if(((r=this._options)===null||r===void 0?void 0:r.allowLegacySDLImplementsInterfaces)===!0){var a=[];this.expectOptionalToken(it.AMP);do a.push(this.parseNamedType());while(this.expectOptionalToken(it.AMP)||this.peek(it.NAME));return a}return this.delimitedMany(it.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var r;return((r=this._options)===null||r===void 0?void 0:r.allowLegacySDLEmptyFields)===!0&&this.peek(it.BRACE_L)&&this._lexer.lookahead().kind===it.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(it.BRACE_L,this.parseFieldDefinition,it.BRACE_R)},t.parseFieldDefinition=function(){var r=this._lexer.token,a=this.parseDescription(),i=this.parseName(),o=this.parseArgumentDefs();this.expectToken(it.COLON);var l=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:En.FIELD_DEFINITION,description:a,name:i,arguments:o,type:l,directives:s,loc:this.loc(r)}},t.parseArgumentDefs=function(){return this.optionalMany(it.PAREN_L,this.parseInputValueDef,it.PAREN_R)},t.parseInputValueDef=function(){var r=this._lexer.token,a=this.parseDescription(),i=this.parseName();this.expectToken(it.COLON);var o=this.parseTypeReference(),l;this.expectOptionalToken(it.EQUALS)&&(l=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:En.INPUT_VALUE_DEFINITION,description:a,name:i,type:o,defaultValue:l,directives:s,loc:this.loc(r)}},t.parseInterfaceTypeDefinition=function(){var r=this._lexer.token,a=this.parseDescription();this.expectKeyword("interface");var i=this.parseName(),o=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),s=this.parseFieldsDefinition();return{kind:En.INTERFACE_TYPE_DEFINITION,description:a,name:i,interfaces:o,directives:l,fields:s,loc:this.loc(r)}},t.parseUnionTypeDefinition=function(){var r=this._lexer.token,a=this.parseDescription();this.expectKeyword("union");var i=this.parseName(),o=this.parseDirectives(!0),l=this.parseUnionMemberTypes();return{kind:En.UNION_TYPE_DEFINITION,description:a,name:i,directives:o,types:l,loc:this.loc(r)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(it.EQUALS)?this.delimitedMany(it.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var r=this._lexer.token,a=this.parseDescription();this.expectKeyword("enum");var i=this.parseName(),o=this.parseDirectives(!0),l=this.parseEnumValuesDefinition();return{kind:En.ENUM_TYPE_DEFINITION,description:a,name:i,directives:o,values:l,loc:this.loc(r)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(it.BRACE_L,this.parseEnumValueDefinition,it.BRACE_R)},t.parseEnumValueDefinition=function(){var r=this._lexer.token,a=this.parseDescription(),i=this.parseName(),o=this.parseDirectives(!0);return{kind:En.ENUM_VALUE_DEFINITION,description:a,name:i,directives:o,loc:this.loc(r)}},t.parseInputObjectTypeDefinition=function(){var r=this._lexer.token,a=this.parseDescription();this.expectKeyword("input");var i=this.parseName(),o=this.parseDirectives(!0),l=this.parseInputFieldsDefinition();return{kind:En.INPUT_OBJECT_TYPE_DEFINITION,description:a,name:i,directives:o,fields:l,loc:this.loc(r)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(it.BRACE_L,this.parseInputValueDef,it.BRACE_R)},t.parseTypeSystemExtension=function(){var r=this._lexer.lookahead();if(r.kind===it.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)},t.parseSchemaExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var a=this.parseDirectives(!0),i=this.optionalMany(it.BRACE_L,this.parseOperationTypeDefinition,it.BRACE_R);if(a.length===0&&i.length===0)throw this.unexpected();return{kind:En.SCHEMA_EXTENSION,directives:a,operationTypes:i,loc:this.loc(r)}},t.parseScalarTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var a=this.parseName(),i=this.parseDirectives(!0);if(i.length===0)throw this.unexpected();return{kind:En.SCALAR_TYPE_EXTENSION,name:a,directives:i,loc:this.loc(r)}},t.parseObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var a=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(i.length===0&&o.length===0&&l.length===0)throw this.unexpected();return{kind:En.OBJECT_TYPE_EXTENSION,name:a,interfaces:i,directives:o,fields:l,loc:this.loc(r)}},t.parseInterfaceTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var a=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(i.length===0&&o.length===0&&l.length===0)throw this.unexpected();return{kind:En.INTERFACE_TYPE_EXTENSION,name:a,interfaces:i,directives:o,fields:l,loc:this.loc(r)}},t.parseUnionTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var a=this.parseName(),i=this.parseDirectives(!0),o=this.parseUnionMemberTypes();if(i.length===0&&o.length===0)throw this.unexpected();return{kind:En.UNION_TYPE_EXTENSION,name:a,directives:i,types:o,loc:this.loc(r)}},t.parseEnumTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var a=this.parseName(),i=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();if(i.length===0&&o.length===0)throw this.unexpected();return{kind:En.ENUM_TYPE_EXTENSION,name:a,directives:i,values:o,loc:this.loc(r)}},t.parseInputObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var a=this.parseName(),i=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();if(i.length===0&&o.length===0)throw this.unexpected();return{kind:En.INPUT_OBJECT_TYPE_EXTENSION,name:a,directives:i,fields:o,loc:this.loc(r)}},t.parseDirectiveDefinition=function(){var r=this._lexer.token,a=this.parseDescription();this.expectKeyword("directive"),this.expectToken(it.AT);var i=this.parseName(),o=this.parseArgumentDefs(),l=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:En.DIRECTIVE_DEFINITION,description:a,name:i,arguments:o,repeatable:l,locations:s,loc:this.loc(r)}},t.parseDirectiveLocations=function(){return this.delimitedMany(it.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var r=this._lexer.token,a=this.parseName();if(w3t[a.value]!==void 0)return a;throw this.unexpected(r)},t.loc=function(r){var a;if(((a=this._options)===null||a===void 0?void 0:a.noLocation)!==!0)return new DSe(r,this._lexer.lastToken,this._lexer.source)},t.peek=function(r){return this._lexer.token.kind===r},t.expectToken=function(r){var a=this._lexer.token;if(a.kind===r)return this._lexer.advance(),a;throw Kl(this._lexer.source,a.start,"Expected ".concat(FSe(r),", found ").concat(eM(a),"."))},t.expectOptionalToken=function(r){var a=this._lexer.token;if(a.kind===r)return this._lexer.advance(),a},t.expectKeyword=function(r){var a=this._lexer.token;if(a.kind===it.NAME&&a.value===r)this._lexer.advance();else throw Kl(this._lexer.source,a.start,'Expected "'.concat(r,'", found ').concat(eM(a),"."))},t.expectOptionalKeyword=function(r){var a=this._lexer.token;return a.kind===it.NAME&&a.value===r?(this._lexer.advance(),!0):!1},t.unexpected=function(r){var a=r??this._lexer.token;return Kl(this._lexer.source,a.start,"Unexpected ".concat(eM(a),"."))},t.any=function(r,a,i){this.expectToken(r);for(var o=[];!this.expectOptionalToken(i);)o.push(a.call(this));return o},t.optionalMany=function(r,a,i){if(this.expectOptionalToken(r)){var o=[];do o.push(a.call(this));while(!this.expectOptionalToken(i));return o}return[]},t.many=function(r,a,i){this.expectToken(r);var o=[];do o.push(a.call(this));while(!this.expectOptionalToken(i));return o},t.delimitedMany=function(r,a){this.expectOptionalToken(r);var i=[];do i.push(a.call(this));while(this.expectOptionalToken(r));return i},e}();function eM(e){var t=e.value;return FSe(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function FSe(e){return k3t(e)?'"'.concat(e,'"'):e}var z3t={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},H3t=Object.freeze({});function Qz(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:z3t,r=void 0,a=Array.isArray(e),i=[e],o=-1,l=[],s=void 0,u=void 0,c=void 0,d=[],f=[],p=e;do{o++;var h=o===i.length,m=h&&l.length!==0;if(h){if(u=f.length===0?void 0:d[d.length-1],s=c,c=f.pop(),m){if(a)s=s.slice();else{for(var v={},y=0,b=Object.keys(s);yV3t&&(s=l+xa(`( +`,iA(Xt(a,` +`)),` +)`)),Xt([s,Xt(i," "),o]," ")},Argument:function(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function(t){var n=t.name,r=t.directives;return"..."+n+xa(" ",Xt(r," "))},InlineFragment:function(t){var n=t.typeCondition,r=t.directives,a=t.selectionSet;return Xt(["...",xa("on ",n),Xt(r," "),a]," ")},FragmentDefinition:function(t){var n=t.name,r=t.typeCondition,a=t.variableDefinitions,i=t.directives,o=t.selectionSet;return"fragment ".concat(n).concat(xa("(",Xt(a,", "),")")," ")+"on ".concat(r," ").concat(xa("",Xt(i," ")," "))+o},IntValue:function(t){var n=t.value;return n},FloatValue:function(t){var n=t.value;return n},StringValue:function(t,n){var r=t.value,a=t.block;return a?I3t(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function(t){var n=t.value;return n?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var n=t.value;return n},ListValue:function(t){var n=t.values;return"["+Xt(n,", ")+"]"},ObjectValue:function(t){var n=t.fields;return"{"+Xt(n,", ")+"}"},ObjectField:function(t){var n=t.name,r=t.value;return n+": "+r},Directive:function(t){var n=t.name,r=t.arguments;return"@"+n+xa("(",Xt(r,", "),")")},NamedType:function(t){var n=t.name;return n},ListType:function(t){var n=t.type;return"["+n+"]"},NonNullType:function(t){var n=t.type;return n+"!"},SchemaDefinition:uu(function(e){var t=e.directives,n=e.operationTypes;return Xt(["schema",Xt(t," "),cu(n)]," ")}),OperationTypeDefinition:function(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:uu(function(e){var t=e.name,n=e.directives;return Xt(["scalar",t,Xt(n," ")]," ")}),ObjectTypeDefinition:uu(function(e){var t=e.name,n=e.interfaces,r=e.directives,a=e.fields;return Xt(["type",t,xa("implements ",Xt(n," & ")),Xt(r," "),cu(a)]," ")}),FieldDefinition:uu(function(e){var t=e.name,n=e.arguments,r=e.type,a=e.directives;return t+(qne(n)?xa(`( +`,iA(Xt(n,` +`)),` +)`):xa("(",Xt(n,", "),")"))+": "+r+xa(" ",Xt(a," "))}),InputValueDefinition:uu(function(e){var t=e.name,n=e.type,r=e.defaultValue,a=e.directives;return Xt([t+": "+n,xa("= ",r),Xt(a," ")]," ")}),InterfaceTypeDefinition:uu(function(e){var t=e.name,n=e.interfaces,r=e.directives,a=e.fields;return Xt(["interface",t,xa("implements ",Xt(n," & ")),Xt(r," "),cu(a)]," ")}),UnionTypeDefinition:uu(function(e){var t=e.name,n=e.directives,r=e.types;return Xt(["union",t,Xt(n," "),r&&r.length!==0?"= "+Xt(r," | "):""]," ")}),EnumTypeDefinition:uu(function(e){var t=e.name,n=e.directives,r=e.values;return Xt(["enum",t,Xt(n," "),cu(r)]," ")}),EnumValueDefinition:uu(function(e){var t=e.name,n=e.directives;return Xt([t,Xt(n," ")]," ")}),InputObjectTypeDefinition:uu(function(e){var t=e.name,n=e.directives,r=e.fields;return Xt(["input",t,Xt(n," "),cu(r)]," ")}),DirectiveDefinition:uu(function(e){var t=e.name,n=e.arguments,r=e.repeatable,a=e.locations;return"directive @"+t+(qne(n)?xa(`( +`,iA(Xt(n,` +`)),` +)`):xa("(",Xt(n,", "),")"))+(r?" repeatable":"")+" on "+Xt(a," | ")}),SchemaExtension:function(t){var n=t.directives,r=t.operationTypes;return Xt(["extend schema",Xt(n," "),cu(r)]," ")},ScalarTypeExtension:function(t){var n=t.name,r=t.directives;return Xt(["extend scalar",n,Xt(r," ")]," ")},ObjectTypeExtension:function(t){var n=t.name,r=t.interfaces,a=t.directives,i=t.fields;return Xt(["extend type",n,xa("implements ",Xt(r," & ")),Xt(a," "),cu(i)]," ")},InterfaceTypeExtension:function(t){var n=t.name,r=t.interfaces,a=t.directives,i=t.fields;return Xt(["extend interface",n,xa("implements ",Xt(r," & ")),Xt(a," "),cu(i)]," ")},UnionTypeExtension:function(t){var n=t.name,r=t.directives,a=t.types;return Xt(["extend union",n,Xt(r," "),a&&a.length!==0?"= "+Xt(a," | "):""]," ")},EnumTypeExtension:function(t){var n=t.name,r=t.directives,a=t.values;return Xt(["extend enum",n,Xt(r," "),cu(a)]," ")},InputObjectTypeExtension:function(t){var n=t.name,r=t.directives,a=t.fields;return Xt(["extend input",n,Xt(r," "),cu(a)]," ")}};function uu(e){return function(t){return Xt([t.description,e(t)],` +`)}}function Xt(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e==null?void 0:e.filter(function(r){return r}).join(n))!==null&&t!==void 0?t:""}function cu(e){return xa(`{ +`,iA(Xt(e,` +`)),` +}`)}function xa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function iA(e){return xa(" ",e.replace(/\n/g,` + `))}function G3t(e){return e.indexOf(` +`)!==-1}function qne(e){return e!=null&&e.some(G3t)}var oA=new Map,sF=new Map,BSe=!0,GI=!1;function zSe(e){return e.replace(/[\s,]+/g," ").trim()}function q3t(e){return zSe(e.source.body.substring(e.start,e.end))}function Y3t(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var a=r.name.value,i=q3t(r.loc),o=sF.get(a);o&&!o.has(i)?BSe&&console.warn("Warning: fragment with name "+a+` already exists. +graphql-tag enforces all fragment names across your application to be unique; read more about +this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):o||sF.set(a,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(r))}else n.push(r)}),U(U({},e),{definitions:n})}function K3t(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(a){var i=r[a];i&&typeof i=="object"&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function X3t(e){var t=zSe(e);if(!oA.has(t)){var n=PSe(e,{experimentalFragmentVariables:GI,allowLegacyFragmentVariables:GI});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");oA.set(t,K3t(Y3t(n)))}return oA.get(t)}function W0(e){for(var t=[],n=1;n-1}var gDt=hDt,mDt=g3;function vDt(e,t){var n=this.__data__,r=mDt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var yDt=vDt,bDt=nDt,xDt=uDt,EDt=fDt,SDt=gDt,CDt=yDt;function Vy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&eq4t(e)||e!==null&&typeof e=="object"&&typeof e.pipe=="function",eMt=(e,t,n,r=iH)=>{const{clone:a,files:i}=X4t({query:e,variables:t,operationName:n},"",J4t);if(i.size===0){if(!Array.isArray(e))return r.stringify(a);if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const c=e.reduce((d,f,p)=>(d.push({query:f,variables:t?t[p]:void 0}),d),[]);return r.stringify(c)}const o=typeof FormData>"u"?Z4t:FormData,l=new o;l.append("operations",r.stringify(a));const s={};let u=0;return i.forEach(c=>{s[++u]=c}),l.append("map",r.stringify(s)),u=0,i.forEach((c,d)=>{l.append(`${++u}`,d)}),l},tMt=e=>e.toUpperCase(),nMt=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},rMt=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0},aMt=(e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0},iMt=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},ore=e=>{var r,a;let t;const n=e.definitions.filter(i=>i.kind==="OperationDefinition");return n.length===1&&(t=(a=(r=n[0])==null?void 0:r.name)==null?void 0:a.value),t},nM=e=>{if(typeof e=="string"){let n;try{const r=PSe(e);n=ore(r)}catch{}return{query:e,operationName:n}}const t=ore(e);return{query:U3t(e),operationName:t}};class px extends Error{constructor(t,n){const r=`${px.extractMessage(t)}: ${JSON.stringify({response:t,request:n})}`;super(r),Object.setPrototypeOf(this,px.prototype),this.response=t,this.request=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,px)}static extractMessage(t){var n,r;return((r=(n=t.errors)==null?void 0:n[0])==null?void 0:r.message)??`GraphQL Error (Code: ${t.status})`}}var uF={exports:{}};(function(e,t){var n=typeof self<"u"?self:We,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var l={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function s(_){return _&&DataView.prototype.isPrototypeOf(_)}if(l.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(_){return _&&u.indexOf(Object.prototype.toString.call(_))>-1};function d(_){if(typeof _!="string"&&(_=String(_)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(_))throw new TypeError("Invalid character in header field name");return _.toLowerCase()}function f(_){return typeof _!="string"&&(_=String(_)),_}function p(_){var L={next:function(){var $=_.shift();return{done:$===void 0,value:$}}};return l.iterable&&(L[Symbol.iterator]=function(){return L}),L}function h(_){this.map={},_ instanceof h?_.forEach(function(L,$){this.append($,L)},this):Array.isArray(_)?_.forEach(function(L){this.append(L[0],L[1])},this):_&&Object.getOwnPropertyNames(_).forEach(function(L){this.append(L,_[L])},this)}h.prototype.append=function(_,L){_=d(_),L=f(L);var $=this.map[_];this.map[_]=$?$+", "+L:L},h.prototype.delete=function(_){delete this.map[d(_)]},h.prototype.get=function(_){return _=d(_),this.has(_)?this.map[_]:null},h.prototype.has=function(_){return this.map.hasOwnProperty(d(_))},h.prototype.set=function(_,L){this.map[d(_)]=f(L)},h.prototype.forEach=function(_,L){for(var $ in this.map)this.map.hasOwnProperty($)&&_.call(L,this.map[$],$,this)},h.prototype.keys=function(){var _=[];return this.forEach(function(L,$){_.push($)}),p(_)},h.prototype.values=function(){var _=[];return this.forEach(function(L){_.push(L)}),p(_)},h.prototype.entries=function(){var _=[];return this.forEach(function(L,$){_.push([$,L])}),p(_)},l.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function m(_){if(_.bodyUsed)return Promise.reject(new TypeError("Already read"));_.bodyUsed=!0}function v(_){return new Promise(function(L,$){_.onload=function(){L(_.result)},_.onerror=function(){$(_.error)}})}function y(_){var L=new FileReader,$=v(L);return L.readAsArrayBuffer(_),$}function b(_){var L=new FileReader,$=v(L);return L.readAsText(_),$}function x(_){for(var L=new Uint8Array(_),$=new Array(L.length),k=0;k-1?L:_}function I(_,L){L=L||{};var $=L.body;if(_ instanceof I){if(_.bodyUsed)throw new TypeError("Already read");this.url=_.url,this.credentials=_.credentials,L.headers||(this.headers=new h(_.headers)),this.method=_.method,this.mode=_.mode,this.signal=_.signal,!$&&_._bodyInit!=null&&($=_._bodyInit,_.bodyUsed=!0)}else this.url=String(_);if(this.credentials=L.credentials||this.credentials||"same-origin",(L.headers||!this.headers)&&(this.headers=new h(L.headers)),this.method=w(L.method||this.method||"GET"),this.mode=L.mode||this.mode||null,this.signal=L.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&$)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody($)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})};function T(_){var L=new FormData;return _.trim().split("&").forEach(function($){if($){var k=$.split("="),P=k.shift().replace(/\+/g," "),B=k.join("=").replace(/\+/g," ");L.append(decodeURIComponent(P),decodeURIComponent(B))}}),L}function A(_){var L=new h,$=_.replace(/\r?\n[\t ]+/g," ");return $.split(/\r?\n/).forEach(function(k){var P=k.split(":"),B=P.shift().trim();if(B){var F=P.join(":").trim();L.append(B,F)}}),L}S.call(I.prototype);function O(_,L){L||(L={}),this.type="default",this.status=L.status===void 0?200:L.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in L?L.statusText:"OK",this.headers=new h(L.headers),this.url=L.url||"",this._initBody(_)}S.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},O.error=function(){var _=new O(null,{status:0,statusText:""});return _.type="error",_};var R=[301,302,303,307,308];O.redirect=function(_,L){if(R.indexOf(L)===-1)throw new RangeError("Invalid status code");return new O(null,{status:L,headers:{location:_}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(L,$){this.message=L,this.name=$;var k=Error(L);this.stack=k.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function N(_,L){return new Promise(function($,k){var P=new I(_,L);if(P.signal&&P.signal.aborted)return k(new o.DOMException("Aborted","AbortError"));var B=new XMLHttpRequest;function F(){B.abort()}B.onload=function(){var D={status:B.status,statusText:B.statusText,headers:A(B.getAllResponseHeaders()||"")};D.url="responseURL"in B?B.responseURL:D.headers.get("X-Request-URL");var j="response"in B?B.response:B.responseText;$(new O(j,D))},B.onerror=function(){k(new TypeError("Network request failed"))},B.ontimeout=function(){k(new TypeError("Network request failed"))},B.onabort=function(){k(new o.DOMException("Aborted","AbortError"))},B.open(P.method,P.url,!0),P.credentials==="include"?B.withCredentials=!0:P.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&l.blob&&(B.responseType="blob"),P.headers.forEach(function(D,j){B.setRequestHeader(j,D)}),P.signal&&(P.signal.addEventListener("abort",F),B.onreadystatechange=function(){B.readyState===4&&P.signal.removeEventListener("abort",F)}),B.send(typeof P._bodyInit>"u"?null:P._bodyInit)})}return N.polyfill=!0,i.fetch||(i.fetch=N,i.Headers=h,i.Request=I,i.Response=O),o.Headers=h,o.Request=I,o.Response=O,o.fetch=N,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=r;t=a.fetch,t.default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t})(uF,uF.exports);var qI=uF.exports;const lA=Or(qI),oMt=c5({__proto__:null,default:lA},[qI]),qm=e=>{let t={};return e&&(typeof Headers<"u"&&e instanceof Headers||oMt&&qI.Headers&&e instanceof qI.Headers?t=nMt(e):Array.isArray(e)?e.forEach(([n,r])=>{n&&r!==void 0&&(t[n]=r)}):t=e),t},lre=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),lMt=e=>{if(!Array.isArray(e.query)){const r=e,a=[`query=${encodeURIComponent(lre(r.query))}`];return e.variables&&a.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`),r.operationName&&a.push(`operationName=${encodeURIComponent(r.operationName)}`),a.join("&")}if(typeof e.variables<"u"&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,n=e.query.reduce((r,a,i)=>(r.push({query:lre(a),variables:t.variables?t.jsonSerializer.stringify(t.variables[i]):void 0}),r),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`},sMt=e=>async t=>{const{url:n,query:r,variables:a,operationName:i,fetch:o,fetchOptions:l,middleware:s}=t,u={...t.headers};let c="",d;e==="POST"?(d=eMt(r,a,i,l.jsonSerializer),typeof d=="string"&&(u["Content-Type"]="application/json")):c=lMt({query:r,variables:a,operationName:i,jsonSerializer:l.jsonSerializer??iH});const f={method:e,headers:u,body:d,...l};let p=n,h=f;if(s){const m=await Promise.resolve(s({...f,url:n,operationName:i,variables:a})),{url:v,...y}=m;p=v,h=y}return c&&(p=`${p}?${c}`),await o(p,h)};class uMt{constructor(t,n={}){this.url=t,this.requestConfig=n,this.rawRequest=async(...r)=>{const[a,i,o]=r,l=aMt(a,i,o),{headers:s,fetch:u=lA,method:c="POST",requestMiddleware:d,responseMiddleware:f,...p}=this.requestConfig,{url:h}=this;l.signal!==void 0&&(p.signal=l.signal);const{operationName:m}=nM(l.query);return rM({url:h,query:l.query,variables:l.variables,headers:{...qm(aM(s)),...qm(l.requestHeaders)},operationName:m,fetch:u,method:c,fetchOptions:p,middleware:d}).then(v=>(f&&f(v),v)).catch(v=>{throw f&&f(v),v})}}async request(t,...n){const[r,a]=n,i=rMt(t,r,a),{headers:o,fetch:l=lA,method:s="POST",requestMiddleware:u,responseMiddleware:c,...d}=this.requestConfig,{url:f}=this;i.signal!==void 0&&(d.signal=i.signal);const{query:p,operationName:h}=nM(i.document);return rM({url:f,query:p,variables:i.variables,headers:{...qm(aM(o)),...qm(i.requestHeaders)},operationName:h,fetch:l,method:s,fetchOptions:d,middleware:u}).then(m=>(c&&c(m),m.data)).catch(m=>{throw c&&c(m),m})}batchRequests(t,n){const r=iMt(t,n),{headers:a,...i}=this.requestConfig;r.signal!==void 0&&(i.signal=r.signal);const o=r.documents.map(({document:s})=>nM(s).query),l=r.documents.map(({variables:s})=>s);return rM({url:this.url,query:o,variables:l,headers:{...qm(aM(a)),...qm(r.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??lA,method:this.requestConfig.method||"POST",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then(s=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(s),s.data)).catch(s=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(s),s})}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,n){const{headers:r}=this.requestConfig;return r?r[t]=n:this.requestConfig.headers={[t]:n},this}setEndpoint(t){return this.url=t,this}}const rM=async e=>{const{query:t,variables:n,fetchOptions:r}=e,a=sMt(tMt(e.method??"post")),i=Array.isArray(e.query),o=await a(e),l=await cMt(o,r.jsonSerializer??iH),s=Array.isArray(l)?!l.some(({data:c})=>!c):!!l.data,u=Array.isArray(l)||!l.errors||Array.isArray(l.errors)&&!l.errors.length||r.errorPolicy==="all"||r.errorPolicy==="ignore";if(o.ok&&u&&s){const{errors:c,...d}=(Array.isArray(l),l),f=r.errorPolicy==="ignore"?d:l;return{...i?{data:f}:f,headers:o.headers,status:o.status}}else{const c=typeof l=="string"?{error:l}:l;throw new px({...c,status:o.status,headers:o.headers},{query:t,variables:n})}},cMt=async(e,t)=>{let n;return e.headers.forEach((r,a)=>{a.toLowerCase()==="content-type"&&(n=r)}),n&&(n.toLowerCase().startsWith("application/json")||n.toLowerCase().startsWith("application/graphql+json")||n.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},aM=e=>typeof e=="function"?e():e;function el(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function hh(e){return el(e)==="object"}function dMt(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function sre(e,t){return e.length<124?e:t}const fMt="graphql-transport-ws";var Bl;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(Bl||(Bl={}));var Ha;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(Ha||(Ha={}));function qSe(e){if(!hh(e))throw new Error(`Message is expected to be an object, but got ${el(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${el(e.type)}`);switch(e.type){case Ha.ConnectionInit:case Ha.ConnectionAck:case Ha.Ping:case Ha.Pong:{if(e.payload!=null&&!hh(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case Ha.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${el(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!hh(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${el(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${el(e.payload.query)}`);if(e.payload.variables!=null&&!hh(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${el(e.payload.variables)}`);if(e.payload.operationName!=null&&el(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${el(e.payload.operationName)}`);if(e.payload.extensions!=null&&!hh(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${el(e.payload.extensions)}`);break}case Ha.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${el(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!hh(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${el(e.payload)}`);break}case Ha.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${el(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!dMt(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case Ha.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${el(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function pMt(e,t){return qSe(typeof e=="string"?JSON.parse(e,t):e)}function t1(e,t){return qSe(e),JSON.stringify(e,t)}var Kv=globalThis&&globalThis.__await||function(e){return this instanceof Kv?(this.v=e,this):new Kv(e)},hMt=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(f){r[f]&&(a[f]=function(p){return new Promise(function(h,m){i.push([f,p,h,m])>1||l(f,p)})})}function l(f,p){try{s(r[f](p))}catch(h){d(i[0][3],h)}}function s(f){f.value instanceof Kv?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}function u(f){l("next",f)}function c(f){l("throw",f)}function d(f,p){f(p),i.shift(),i.length&&l(i[0][0],i[0][1])}};function gMt(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:a=console.error,lazyCloseTimeout:i=0,keepAlive:o=0,disablePong:l,connectionAckWaitTimeout:s=0,retryAttempts:u=5,retryWait:c=async function($){let k=1e3;for(let P=0;P<$;P++)k*=2;await new Promise(P=>setTimeout(P,k+Math.floor(Math.random()*(3e3-300)+300)))},shouldRetry:d=iM,isFatalConnectionProblem:f,on:p,webSocketImpl:h,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,$=>{const k=Math.random()*16|0;return($=="x"?k:k&3|8).toString(16)})},jsonMessageReplacer:v,jsonMessageReviver:y}=e;let b;if(h){if(!vMt(h))throw new Error("Invalid WebSocket implementation provided");b=h}else typeof WebSocket<"u"?b=WebSocket:typeof global<"u"?b=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const x=b,E=(()=>{const L=(()=>{const k={};return{on(P,B){return k[P]=B,()=>{delete k[P]}},emit(P){var B;"id"in P&&((B=k[P.id])===null||B===void 0||B.call(k,P))}}})(),$={connecting:p!=null&&p.connecting?[p.connecting]:[],opened:p!=null&&p.opened?[p.opened]:[],connected:p!=null&&p.connected?[p.connected]:[],ping:p!=null&&p.ping?[p.ping]:[],pong:p!=null&&p.pong?[p.pong]:[],message:p!=null&&p.message?[L.emit,p.message]:[L.emit],closed:p!=null&&p.closed?[p.closed]:[],error:p!=null&&p.error?[p.error]:[]};return{onMessage:L.on,on(k,P){const B=$[k];return B.push(P),()=>{B.splice(B.indexOf(P),1)}},emit(k,...P){for(const B of[...$[k]])B(...P)}}})();function S(L){const $=[E.on("error",k=>{$.forEach(P=>P()),L(k)}),E.on("closed",k=>{$.forEach(P=>P()),L(k)})]}let C,w=0,I,T=!1,A=0,O=!1;async function R(){clearTimeout(I);const[L,$]=await(C??(C=new Promise((B,F)=>(async()=>{if(T){if(await c(A),!w)return C=void 0,F({code:1e3,reason:"All Subscriptions Gone"});A++}E.emit("connecting",T);const D=new x(typeof t=="function"?await t():t,fMt);let j,z;function V(){isFinite(o)&&o>0&&(clearTimeout(z),z=setTimeout(()=>{D.readyState===x.OPEN&&(D.send(t1({type:Ha.Ping})),E.emit("ping",!1,void 0))},o))}S(W=>{C=void 0,clearTimeout(j),clearTimeout(z),F(W),W instanceof ure&&(D.close(4499,"Terminated"),D.onerror=null,D.onclose=null)}),D.onerror=W=>E.emit("error",W),D.onclose=W=>E.emit("closed",W),D.onopen=async()=>{try{E.emit("opened",D);const W=typeof n=="function"?await n():n;if(D.readyState!==x.OPEN)return;D.send(t1(W?{type:Ha.ConnectionInit,payload:W}:{type:Ha.ConnectionInit},v)),isFinite(s)&&s>0&&(j=setTimeout(()=>{D.close(Bl.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},s)),V()}catch(W){E.emit("error",W),D.close(Bl.InternalClientError,sre(W instanceof Error?W.message:new Error(W).message,"Internal client error"))}};let G=!1;D.onmessage=({data:W})=>{try{const Y=pMt(W,y);if(E.emit("message",Y),Y.type==="ping"||Y.type==="pong"){E.emit(Y.type,!0,Y.payload),Y.type==="pong"?V():l||(D.send(t1(Y.payload?{type:Ha.Pong,payload:Y.payload}:{type:Ha.Pong})),E.emit("pong",!1,Y.payload));return}if(G)return;if(Y.type!==Ha.ConnectionAck)throw new Error(`First message cannot be of type ${Y.type}`);clearTimeout(j),G=!0,E.emit("connected",D,Y.payload,T),T=!1,A=0,B([D,new Promise((J,Z)=>S(Z))])}catch(Y){D.onmessage=null,E.emit("error",Y),D.close(Bl.BadResponse,sre(Y instanceof Error?Y.message:new Error(Y).message,"Bad response"))}}})())));L.readyState===x.CLOSING&&await $;let k=()=>{};const P=new Promise(B=>k=B);return[L,k,Promise.race([P.then(()=>{if(!w){const B=()=>L.close(1e3,"Normal Closure");isFinite(i)&&i>0?I=setTimeout(()=>{L.readyState===x.OPEN&&B()},i):B()}}),$])]}function N(L){if(iM(L)&&(mMt(L.code)||[Bl.InternalServerError,Bl.InternalClientError,Bl.BadRequest,Bl.BadResponse,Bl.Unauthorized,Bl.SubprotocolNotAcceptable,Bl.SubscriberAlreadyExists,Bl.TooManyInitialisationRequests].includes(L.code)))throw L;if(O)return!1;if(iM(L)&&L.code===1e3)return w>0;if(!u||A>=u||!d(L)||f!=null&&f(L))throw L;return T=!0}r||(async()=>{for(w++;;)try{const[,,L]=await R();await L}catch(L){try{if(!N(L))return}catch($){return a==null?void 0:a($)}}})();function _(L,$){const k=m(L);let P=!1,B=!1,F=()=>{w--,P=!0};return(async()=>{for(w++;;)try{const[D,j,z]=await R();if(P)return j();const V=E.onMessage(k,G=>{switch(G.type){case Ha.Next:{$.next(G.payload);return}case Ha.Error:{B=!0,P=!0,$.error(G.payload),F();return}case Ha.Complete:{P=!0,F();return}}});D.send(t1({id:k,type:Ha.Subscribe,payload:L},v)),F=()=>{!P&&D.readyState===x.OPEN&&D.send(t1({id:k,type:Ha.Complete},v)),w--,P=!0,j()},await z.finally(V);return}catch(D){if(!N(D))return}})().then(()=>{B||$.complete()}).catch(D=>{$.error(D)}),()=>{P||F()}}return{on:E.on,subscribe:_,iterate(L){const $=[],k={done:!1,error:null,resolve:()=>{}},P=_(L,{next(F){$.push(F),k.resolve()},error(F){k.done=!0,k.error=F,k.resolve()},complete(){k.done=!0,k.resolve()}}),B=function(){return hMt(this,arguments,function*(){for(;;){for($.length||(yield Kv(new Promise(j=>k.resolve=j)));$.length;)yield yield Kv($.shift());if(k.error)throw k.error;if(k.done)return yield Kv(void 0)}})}();return B.throw=async F=>(k.done||(k.done=!0,k.error=F,k.resolve()),{done:!0,value:void 0}),B.return=async()=>(P(),{done:!0,value:void 0}),B},async dispose(){if(O=!0,C){const[L]=await C;L.close(1e3,"Normal Closure")}},terminate(){C&&E.emit("closed",new ure)}}}class ure extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function iM(e){return hh(e)&&"code"in e&&"reason"in e}function mMt(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function vMt(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}var yMt=e=>{var t,n;return(n=(t=e==null?void 0:e.selectionSet)==null?void 0:t.selections)==null?void 0:n.find(r=>r.kind==="Field"&&r.name.value==="nodes")},oH=e=>{let t=[],n=!0,r=0,a=!1;return Qz(e,{Field:{enter(i){if(n){n=!1;let o=yMt(i)??i;if(typeof o.selectionSet>"u")throw new Error("Operation must have a selection set");return o.selectionSet}t.push(`${r>0?" ".repeat(a?r:r-1):""}${i.name.value}${i.selectionSet?" {":""}`),i.selectionSet&&(r++,a=!0)},leave(i){i.selectionSet&&(r--,t.push(`${" ".repeat(r)}}`),a=!1)}}}),t.join(` +`).trim()},bMt=e=>{let t=!1;return Qz(e,{OperationDefinition:{enter(n){n.operation==="mutation"&&(t=!0)}}}),t},xMt=(e,{callback:t,params:n,meta:r},a)=>{let i={created:wMt,updated:TMt,deleted:AMt},{resource:o,filters:l,subscriptionType:s,id:u,ids:c}=n??{},d=i[a],{operation:f,query:p,variables:h,operationName:m}=d({ids:c,id:u,resource:o,filters:l,meta:r,subscriptionType:s}),v=y=>{t(y.data[f])};return e.subscribe({query:p,variables:h,operationName:m},{next:v,error:console.error,complete:()=>null})},EMt={eq:"eq",ne:"neq",lt:"lt",gt:"gt",lte:"lte",gte:"gte",in:"in",nin:"notIn"},SMt=(e,t)=>{if(e==="contains")return{iLike:`%${t}%`};if(e==="ncontains")return{notILike:`%${t}%`};if(e==="startswith")return{iLike:`${t}%`};if(e==="nstartswith")return{notILike:`${t}%`};if(e==="endswith")return{iLike:`%${t}`};if(e==="nendswith")return{notILike:`%${t}`};if(e==="null")return{is:null};if(e==="nnull")return{isNot:null};if(e==="between"){if(!Array.isArray(t))throw new Error("Between operator requires an array");return t.length!==2?{}:{between:{lower:t[0],upper:t[1]}}}return{[EMt[e]]:t}},Hd=e=>{let t={};return e.filter(n=>Array.isArray(n.value)&&n.value.length===0?!1:!!n.value).map(n=>n.operator==="and"||n.operator==="or"?ire(t,n.operator,[Hd(n.value)]):"field"in n?ire(t,n.field,SMt(n.operator,n.value)):{}),t},cre=e=>e.map(t=>({field:t.field,direction:t.order.toUpperCase()})),CMt=e=>{if(e.mode==="off")return{limit:2147483647};if(e.mode==="server"&&!(!e.current||!e.pageSize))return{limit:e.pageSize,offset:(e.current-1)*e.pageSize}},wMt=({resource:e,filters:t,meta:n})=>{let r=(n==null?void 0:n.gqlQuery)??(n==null?void 0:n.gqlMutation);if(r){let s=Er(ca.singular(e),{pascalCase:!0}),u=`Created${s}`,c=`created${s}`,d=` + subscription ${u}($input: Create${s}SubscriptionFilterInput) { + ${c}(input: $input) { + ${oH(r)} + } + } + `,f={};return t&&(f.input={filter:Hd(t.filter(p=>!p.field.includes(".")))}),{query:d,variables:f,operation:c,operationName:u}}let a=`created${Er(ca.singular(e),{pascalCase:!0})}`,i={};t&&(i.input={type:Er(`create_${ca.singular(e)}_subscription_filter_input`,{pascalCase:!0}),required:!0,value:{filter:Hd(t.filter(s=>!s.field.includes(".")))}});let{query:o,variables:l}=f3({operation:a,fields:n.fields,variables:i});return{query:o,variables:l,operation:a}},TMt=({id:e,resource:t,filters:n,meta:r})=>{let a=(r==null?void 0:r.gqlQuery)??(r==null?void 0:r.gqlMutation);if(a){let u=Er(ca.singular(t),{pascalCase:!0}),c=`Updated${u}`,d=`updatedOne${u}`,f=` + subscription ${c}($input: UpdateOne${u}SubscriptionFilterInput) { + ${d}(input: $input) { + ${oH(a)} + } + } + `,p={};return n&&(p.input={filter:Hd(n.filter(h=>!h.field.includes(".")))}),e&&(p.input={filter:{id:{eq:e}}}),{query:f,variables:p,operation:d,operationName:c}}let i=`updatedOne${Er(ca.singular(t),{pascalCase:!0})}`,o={};n&&(o.input={type:Er(`update_one_${ca.singular(t)}_subscription_filter_input`,{pascalCase:!0}),required:!0,value:{filter:Hd(n.filter(u=>!u.field.includes(".")))}}),e&&(o.input={type:Er(`update_one_${ca.singular(t)}_subscription_filter_input`,{pascalCase:!0}),required:!0,value:{filter:{id:{eq:e}}}});let{query:l,variables:s}=f3({operation:i,fields:r.fields,variables:o});return{query:l,variables:s,operation:i}},AMt=({resource:e,filters:t,meta:n})=>{if(n!=null&&n.gqlQuery){let l=Er(ca.singular(e),{pascalCase:!0}),s=`Deleted${l}`,u=`deletedOne${l}`,c=` + subscription ${s}($input: DeleteOne${l}SubscriptionFilterInput) { + ${u}(input: $input) { + id + } + } + `,d={};return t&&(d.input={filter:Hd(t.filter(f=>!f.field.includes(".")))}),{query:c,variables:d,operation:u,operationName:s}}let r=`deletedOne${Er(ca.singular(e),{pascalCase:!0})}`,a={};t&&(a.input={type:Er(`delete_one_${ca.singular(e)}_subscription_filter_input`,{pascalCase:!0}),required:!0,value:{filter:Hd(t.filter(l=>!l.field.includes(".")))}});let{query:i,variables:o}=f3({operation:r,fields:n.fields.filter(l=>typeof l!="object"),variables:a});return{query:i,variables:o,operation:r}},IMt=e=>({getList:async({resource:t,pagination:n,sorters:r,filters:a,meta:i})=>{let o=Er(t),l=CMt(n||{}),s={},u,c;if(i!=null&&i.gqlQuery)u=i==null?void 0:i.gqlQuery,c={filter:a?Hd(a):{},sorting:r?cre(r):[],paging:l};else{a&&(s.filter={type:Er(`${ca.singular(t)}Filter`,{pascalCase:!0}),required:!0,value:Hd(a)}),r&&(s.sorting={type:Er(`${ca.singular(t)}Sort`,{pascalCase:!0}),required:!0,list:[!0],value:cre(r)}),l&&(s.paging={type:"OffsetPaging",required:!0,value:l});let f=av({operation:o,fields:[{nodes:i==null?void 0:i.fields},"totalCount"],variables:s});u=f.query,c=f.variables}let d=await e.request(u,c);return{data:d[o].nodes,total:d[o].totalCount}},getMany:async({resource:t,ids:n,meta:r})=>{let a=Er(t);if(r!=null&&r.gqlQuery)return{data:(await e.request(r.gqlQuery,{filter:{id:{in:n}}}))[a].nodes};let{query:i,variables:o}=av({operation:a,fields:[{nodes:(r==null?void 0:r.fields)||["id"]}],variables:{filter:{type:Er(`${ca.singular(t)}Filter`,{pascalCase:!0}),required:!0,value:{id:{in:n}}}}});return{data:(await e.request(i,o))[a].nodes}},create:async({resource:t,variables:n,meta:r})=>{let a=`createOne${Er(ca.singular(t),{pascalCase:!0})}`,i=(r==null?void 0:r.gqlMutation)??(r==null?void 0:r.gqlQuery);if(i)return{data:(await e.request(i,{input:{[Er(ca.singular(t))]:n}}))[a]};let{query:o,variables:l}=k1({operation:a,fields:(r==null?void 0:r.fields)||["id"],variables:{input:{type:`CreateOne${Er(ca.singular(t),{pascalCase:!0})}Input`,required:!0,value:{[Er(ca.singular(t))]:n}}}});return{data:(await e.request(o,l))[a]}},createMany:async({resource:t,variables:n,meta:r})=>{let a=`createMany${Er(t,{pascalCase:!0})}`,i=(r==null?void 0:r.gqlMutation)??(r==null?void 0:r.gqlQuery);if(i)return{data:(await e.request(i,{input:{[Er(t)]:n}}))[a]};let{query:o,variables:l}=k1({operation:a,fields:(r==null?void 0:r.fields)||["id"],variables:{input:{type:`CreateMany${Er(t,{pascalCase:!0})}Input`,required:!0,value:{[Er(t)]:n}}}});return{data:(await e.request(o,l))[a]}},update:async({resource:t,id:n,variables:r,meta:a})=>{let i=`updateOne${Er(ca.singular(t),{pascalCase:!0})}`,o=(a==null?void 0:a.gqlMutation)??(a==null?void 0:a.gqlQuery);if(o)return{data:(await e.request(o,{input:{id:n,update:r}}))[i]};let{query:l,variables:s}=k1({operation:i,fields:(a==null?void 0:a.fields)||["id"],variables:{input:{type:`UpdateOne${Er(ca.singular(t),{pascalCase:!0})}Input`,required:!0,value:{id:n,update:r}}}});return{data:(await e.request(l,s))[i]}},updateMany:async({resource:t,ids:n,variables:r,meta:a})=>{let i=Er(t,{pascalCase:!0}),o=`updateMany${i}`,l=$a` + mutation UpdateMany${i}($input: UpdateMany${i}Input!) { + ${o}(input: $input) { + updatedCount + } + } + `;await e.request(l,{input:{filter:{id:{in:n}},update:r}});let s=Er(t),u,c;if(a!=null&&a.fields){let d=av({operation:s,fields:[{nodes:(a==null?void 0:a.fields)||["id"]}],variables:{filter:{type:Er(`${ca.singular(t)}Filter`,{pascalCase:!0}),required:!0,value:{id:{in:n}}}}});u=d.query,c=d.variables}else u=$a` + query GetMany${i}($filter: ${ca.singular(i)}Filter!) { + ${s}(filter: $filter) { + nodes { + id + } + } + } + `,c={filter:{id:{in:n}}};return{data:(await e.request(u,c))[s].nodes}},getOne:async({resource:t,id:n,meta:r})=>{let a=Er(ca.singular(t)),i=(r==null?void 0:r.gqlQuery)??(r==null?void 0:r.gqlMutation);if(i){let s=i,u={id:n};if(bMt(i)){let c=oH(i);s=$a` + query Get${Er(ca.singular(t),{pascalCase:!0})}($id: ID!) { + ${a}(id: $id) { + ${c} + } + } + `}return{data:(await e.request(s,u))[a]}}let{query:o,variables:l}=av({operation:a,fields:(r==null?void 0:r.fields)||["id"],variables:{id:{type:"ID",required:!0,value:n}}});return{data:(await e.request(o,l))[a]}},deleteOne:async({resource:t,id:n,meta:r})=>{let a=Er(ca.singular(t),{pascalCase:!0}),i=`deleteOne${a}`;if(r!=null&&r.gqlMutation)return{data:(await e.request(r.gqlMutation,{input:{id:n}}))[i]};let o=$a` + mutation DeleteOne${a}($input: DeleteOne${a}Input!) { + ${i}(input: $input) { + id + } + } + `;return{data:(await e.request(o,{input:{id:n}}))[i]}},deleteMany:async({resource:t,ids:n})=>{let r=Er(t,{pascalCase:!0}),a=`deleteMany${r}`,i=$a` + mutation DeleteMany${r}($input: DeleteMany${r}Input!) { + ${a}(input: $input) { + deletedCount + } + } + `,o={input:{filter:{id:{in:n}}}};return await e.request(i,o),{data:[]}},getApiUrl:()=>{throw Error("Not implemented on refine-nestjs-query data provider.")},custom:async({url:t,method:n,headers:r,meta:a})=>{t&&e.setEndpoint(t),r&&e.setHeaders(r);let i=(a==null?void 0:a.gqlMutation)??(a==null?void 0:a.gqlQuery);if(i)return{data:await e.request(i,(a==null?void 0:a.variables)??{})};if(a!=null&&a.rawQuery)return{data:await e.request(a.rawQuery,a.variables)};if(a)if(a.operation){let o,l;if(n==="get"){let s=av({operation:a.operation,fields:a.fields,variables:a.variables});o=s.query,l=s.variables}else{let s=k1({operation:a.operation,fields:a.fields,variables:a.variables});o=s.query,l=s.variables}return{data:(await e.request(o,l))[a.operation]}}else throw Error("GraphQL operation name required.");else throw Error("GraphQL needs operation, fields and variables values in meta object.")}}),OMt=IMt,kMt=e=>{let t=(n,r,a,i,o,l,s)=>{let u=xMt(n,{callback:r,params:a,meta:i},o);s.push(u)};return{subscribe({callback:n,params:r,meta:a}){let{resource:i,subscriptionType:o}=r??{};if(!a||!o||!i)throw new Error("[useSubscription]: `meta`, `subscriptionType` and `resource` are required in `params` for graphql subscriptions");let l=[];return(r==null?void 0:r.subscriptionType)==="useList"&&["created","updated","deleted"].forEach(s=>t(e,n,r,a,s,i,l)),(r==null?void 0:r.subscriptionType)==="useOne"&&t(e,n,r,a,"updated",i,l),()=>{l.forEach(s=>s())}},unsubscribe(n){n()}}},RMt=OMt;const _Mt=async(e,t)=>{const n=localStorage.getItem("access_token"),r=t.headers;return await fetch(e,{...t,headers:{...r,Authorization:(r==null?void 0:r.Authorization)||`Bearer ${n}`,"Content-Type":"application/json","Apollo-Require-Preflight":"true"}})},NMt=e=>{var t,n,r;if(!e)return{message:"Unknown error",statusCode:"INTERNAL_SERVER_ERROR"};if("errors"in e){const a=e==null?void 0:e.errors,i=(t=a==null?void 0:a.map(l=>l==null?void 0:l.message))==null?void 0:t.join(""),o=(r=(n=a==null?void 0:a[0])==null?void 0:n.extensions)==null?void 0:r.code;return{message:i||JSON.stringify(a),statusCode:o||500}}return null},DMt=async(e,t)=>{const n=await _Mt(e,t),a=await n.clone().json(),i=NMt(a);if(i)throw i;return n},MMt="https://api.crm.refine.dev",sA=`${MMt}/graphql`,$Mt="wss://api.crm.refine.dev/graphql",LMt=new uMt(sA,{fetch:(e,t)=>{try{return DMt(e,t)}catch(n){return Promise.reject(n)}}}),dre=typeof window<"u"?gMt({url:$Mt,connectionParams:()=>({headers:{Authorization:`Bearer ${localStorage.getItem("access_token")}`}})}):void 0,uA=RMt(LMt),PMt=dre?kMt(dre):void 0,FMt={email:"michael.scott@dundermifflin.com",password:"demodemo"},BMt={login:async({email:e})=>{try{const{data:t}=await uA.custom({url:sA,method:"post",headers:{},meta:{variables:{email:e},rawQuery:` + mutation Login($email: String!) { + login(loginInput: { email: $email }) { + accessToken + } + } + `}});return localStorage.setItem("access_token",t.login.accessToken),{success:!0,redirectTo:"/"}}catch(t){const n=t;return{success:!1,error:{message:"message"in n?n.message:"Login failed",name:"name"in n?n.name:"Invalid email or password"}}}},logout:async()=>(localStorage.removeItem("access_token"),{success:!0,redirectTo:"/login"}),onError:async e=>e.statusCode==="UNAUTHENTICATED"?{logout:!0,...e}:{error:e},check:async()=>{try{return await uA.custom({url:sA,method:"post",headers:{},meta:{rawQuery:` + query Me { + me { + name + } + } + `}}),{authenticated:!0,redirectTo:"/"}}catch{return{authenticated:!1,redirectTo:"/login"}}},getIdentity:async()=>{const e=localStorage.getItem("access_token");try{const{data:t}=await uA.custom({url:sA,method:"post",headers:e?{Authorization:`Bearer ${e}`}:{},meta:{rawQuery:` + query Me { + me { + id + name + email + phone + jobTitle + timezone + avatarUrl + } + } + `}});return t.me}catch{return}}};/** + * @remix-run/router v1.15.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function AE(){return AE=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function YSe(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HMt(){return Math.random().toString(36).substr(2,8)}function pre(e,t){return{usr:e.state,key:e.key,idx:t}}function cF(e,t,n,r){return n===void 0&&(n=null),AE({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gy(t):t,{state:n,key:t&&t.key||r||HMt()})}function YI(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Gy(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function jMt(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Wf.Pop,s=null,u=c();u==null&&(u=0,o.replaceState(AE({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){l=Wf.Pop;let v=c(),y=v==null?null:v-u;u=v,s&&s({action:l,location:m.location,delta:y})}function f(v,y){l=Wf.Push;let b=cF(m.location,v,y);n&&n(b,v),u=c()+1;let x=pre(b,u),E=m.createHref(b);try{o.pushState(x,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(E)}i&&s&&s({action:l,location:m.location,delta:1})}function p(v,y){l=Wf.Replace;let b=cF(m.location,v,y);n&&n(b,v),u=c();let x=pre(b,u),E=m.createHref(b);o.replaceState(x,"",E),i&&s&&s({action:l,location:m.location,delta:0})}function h(v){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof v=="string"?v:YI(v);return b=b.replace(/ $/,"%20"),Ga(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let m={get action(){return l},get location(){return e(a,o)},listen(v){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(fre,d),s=v,()=>{a.removeEventListener(fre,d),s=null}},createHref(v){return t(a,v)},createURL:h,encodeLocation(v){let y=h(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(v){return o.go(v)}};return m}var hre;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hre||(hre={}));function UMt(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Gy(t):t,a=lH(r.pathname||"/",n);if(a==null)return null;let i=KSe(e);VMt(i);let o=null;for(let l=0;o==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(Ga(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=lp([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(Ga(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),KSe(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:QMt(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let s of XSe(i.path))a(i,o,s)}),t}function XSe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=XSe(r.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),a&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function VMt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZMt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const WMt=/^:[\w-]+$/,GMt=3,qMt=2,YMt=1,KMt=10,XMt=-2,gre=e=>e==="*";function QMt(e,t){let n=e.split("/"),r=n.length;return n.some(gre)&&(r+=XMt),t&&(r+=qMt),n.filter(a=>!gre(a)).reduce((a,i)=>a+(WMt.test(i)?GMt:i===""?YMt:KMt),r)}function ZMt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function JMt(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:p}=c;if(f==="*"){let m=l[d]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const h=l[d];return p&&!h?u[f]=void 0:u[f]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function e$t(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),YSe(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function t$t(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return YSe(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lH(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function n$t(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Gy(e):e;return{pathname:n?n.startsWith("/")?n:r$t(n,t):t,search:o$t(r),hash:l$t(a)}}function r$t(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function oM(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function a$t(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sH(e,t){let n=a$t(e);return t?n.map((r,a)=>a===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function uH(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=Gy(e):(a=AE({},e),Ga(!a.pathname||!a.pathname.includes("?"),oM("?","pathname","search",a)),Ga(!a.pathname||!a.pathname.includes("#"),oM("#","pathname","hash",a)),Ga(!a.search||!a.search.includes("#"),oM("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=n$t(a,l),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const lp=e=>e.join("/").replace(/\/\/+/g,"/"),i$t=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o$t=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,l$t=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function s$t(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ZSe=["post","put","patch","delete"];new Set(ZSe);const u$t=["get",...ZSe];new Set(u$t);/** + * React Router v6.22.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function IE(){return IE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),g.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=uH(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:lp([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,i,e])}const p$t=g.createContext(null);function h$t(e){let t=g.useContext(Gc).outlet;return t&&g.createElement(p$t.Provider,{value:e},t)}function tCe(){let{matches:e}=g.useContext(Gc),t=e[e.length-1];return t?t.params:{}}function nCe(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=g.useContext(af),{matches:a}=g.useContext(Gc),{pathname:i}=Fu(),o=JSON.stringify(sH(a,r.v7_relativeSplatPath));return g.useMemo(()=>uH(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function g$t(e,t){return m$t(e,t)}function m$t(e,t,n,r){qy()||Ga(!1);let{navigator:a}=g.useContext(af),{matches:i}=g.useContext(Gc),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Fu(),c;if(t){var d;let v=typeof t=="string"?Gy(t):t;s==="/"||(d=v.pathname)!=null&&d.startsWith(s)||Ga(!1),c=v}else c=u;let f=c.pathname||"/",p=f;if(s!=="/"){let v=s.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let h=UMt(e,{pathname:p}),m=E$t(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:lp([s,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:lp([s,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return t&&m?g.createElement(v3.Provider,{value:{location:IE({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wf.Pop}},m):m}function v$t(){let e=T$t(),t=s$t(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:a},n):null,i)}const y$t=g.createElement(v$t,null);class b$t extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?g.createElement(Gc.Provider,{value:this.props.routeContext},g.createElement(JSe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function x$t(e){let{routeContext:t,match:n,children:r}=e,a=g.useContext(cH);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(Gc.Provider,{value:t},r)}function E$t(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let c=o.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id]));c>=0||Ga(!1),o=o.slice(0,Math.min(o.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,f)=>{let p,h=!1,m=null,v=null;n&&(p=l&&d.route.id?l[d.route.id]:void 0,m=d.route.errorElement||y$t,s&&(u<0&&f===0?(I$t("route-fallback",!1),h=!0,v=null):u===f&&(h=!0,v=d.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,f+1)),b=()=>{let x;return p?x=m:h?x=v:d.route.Component?x=g.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,g.createElement(x$t,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?g.createElement(b$t,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var rCe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rCe||{}),KI=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(KI||{});function S$t(e){let t=g.useContext(cH);return t||Ga(!1),t}function C$t(e){let t=g.useContext(c$t);return t||Ga(!1),t}function w$t(e){let t=g.useContext(Gc);return t||Ga(!1),t}function aCe(e){let t=w$t(),n=t.matches[t.matches.length-1];return n.route.id||Ga(!1),n.route.id}function T$t(){var e;let t=g.useContext(JSe),n=C$t(KI.UseRouteError),r=aCe(KI.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function A$t(){let{router:e}=S$t(rCe.UseNavigateStable),t=aCe(KI.UseNavigateStable),n=g.useRef(!1);return eCe(()=>{n.current=!0}),g.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,IE({fromRouteId:t},i)))},[e,t])}const mre={};function I$t(e,t,n){!t&&!mre[e]&&(mre[e]=!0)}function O$t(e){let{to:t,replace:n,state:r,relative:a}=e;qy()||Ga(!1);let{future:i,static:o}=g.useContext(af),{matches:l}=g.useContext(Gc),{pathname:s}=Fu(),u=OE(),c=uH(t,sH(l,i.v7_relativeSplatPath),s,a==="path"),d=JSON.stringify(c);return g.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:a}),[u,d,a,n,r]),null}function vre(e){return h$t(e.context)}function _l(e){Ga(!1)}function k$t(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Wf.Pop,navigator:i,static:o=!1,future:l}=e;qy()&&Ga(!1);let s=t.replace(/^\/*/,"/"),u=g.useMemo(()=>({basename:s,navigator:i,static:o,future:IE({v7_relativeSplatPath:!1},l)}),[s,l,i,o]);typeof r=="string"&&(r=Gy(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=g.useMemo(()=>{let v=lH(c,s);return v==null?null:{location:{pathname:v,search:d,hash:f,state:p,key:h},navigationType:a}},[s,c,d,f,p,h,a]);return m==null?null:g.createElement(af.Provider,{value:u},g.createElement(v3.Provider,{children:n,value:m}))}function R$t(e){let{children:t,location:n}=e;return g$t(dF(t),n)}new Promise(()=>{});function dF(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,a)=>{if(!g.isValidElement(r))return;let i=[...t,a];if(r.type===g.Fragment){n.push.apply(n,dF(r.props.children,i));return}r.type!==_l&&Ga(!1),!r.props.index||!r.props.children||Ga(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=dF(r.props.children,i)),n.push(o)}),n}/** + * React Router DOM v6.22.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fF(){return fF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function N$t(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function D$t(e,t){return e.button===0&&(!t||t==="_self")&&!N$t(e)}function pF(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function M$t(e,t){let n=pF(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}const $$t=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],L$t="6";try{window.__reactRouterVersion=L$t}catch{}const P$t="startTransition",yre=uS[P$t];function F$t(e){let{basename:t,children:n,future:r,window:a}=e,i=g.useRef();i.current==null&&(i.current=zMt({window:a,v5Compat:!0}));let o=i.current,[l,s]=g.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=g.useCallback(d=>{u&&yre?yre(()=>s(d)):s(d)},[s,u]);return g.useLayoutEffect(()=>o.listen(c),[o,c]),g.createElement(k$t,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const B$t=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",z$t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H$t=g.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=_$t(t,$$t),{basename:p}=g.useContext(af),h,m=!1;if(typeof u=="string"&&z$t.test(u)&&(h=u,B$t))try{let x=new URL(window.location.href),E=u.startsWith("//")?new URL(x.protocol+u):new URL(u),S=lH(E.pathname,p);E.origin===x.origin&&S!=null?u=S+E.search+E.hash:m=!0}catch{}let v=d$t(u,{relative:a}),y=j$t(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(x){r&&r(x),x.defaultPrevented||y(x)}return g.createElement("a",fF({},f,{href:h||v,onClick:m||i?r:b,ref:n,target:s}))});var bre;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bre||(bre={}));var xre;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xre||(xre={}));function j$t(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l}=t===void 0?{}:t,s=OE(),u=Fu(),c=nCe(e,{relative:o});return g.useCallback(d=>{if(D$t(d,n)){d.preventDefault();let f=r!==void 0?r:YI(u)===YI(c);s(e,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l})}},[u,s,c,r,a,n,e,i,o,l])}function U$t(e){let t=g.useRef(pF(e)),n=g.useRef(!1),r=Fu(),a=g.useMemo(()=>M$t(r.search,n.current?null:t.current),[r.search]),i=OE(),o=g.useCallback((l,s)=>{const u=pF(typeof l=="function"?l(a):l);n.current=!0,i("?"+u,s)},[i,a]);return[a,o]}var Ere=e=>{if(typeof e>"u")return e;let t=Number(e);return`${t}`===e?t:e},V$t={addQueryPrefix:!0,skipNulls:!0,arrayFormat:"indices",encode:!1,encodeValuesOnly:!0},W$t={go:()=>{let{search:e,hash:t}=Fu(),n=OE();return g.useCallback(({to:r,type:a,query:i,hash:o,options:{keepQuery:l,keepHash:s}={}})=>{let u={...l&&e&&MT.parse(e,{ignoreQueryPrefix:!0}),...i};u.to&&(u.to=encodeURIComponent(`${u.to}`));let c=Object.keys(u).length>0,d=`#${(o||s&&t||"").replace(/^#/,"")}`,f=d.length>1,p=`${r||""}${c?MT.stringify(u,V$t):""}${f?d:""}`;return a==="path"?p:n(p,{replace:a==="replace"})},[t,e,n])},back:()=>{let e=OE();return g.useCallback(()=>{e(-1)},[e])},parse:()=>{var e;let t=tCe(),{pathname:n,search:r}=Fu(),{resources:a}=g.useContext(bS),{resource:i,action:o,matchedRoute:l}=M.useMemo(()=>mpe(n,a),[a,n]);return Object.entries(t).length===0&&l&&(t=((e=QSe(l,n))==null?void 0:e.params)||{}),g.useCallback(()=>{let s=MT.parse(r,{ignoreQueryPrefix:!0}),u={...t,...s};return{...i&&{resource:i},...o&&{action:o},...(t==null?void 0:t.id)&&{id:decodeURIComponent(t.id)},pathname:n,params:{...u,current:Ere(u.current),pageSize:Ere(u.pageSize),to:u.to?decodeURIComponent(u.to):void 0}}},[n,r,t,i,o])},Link:M.forwardRef(function(e,t){return M.createElement(H$t,{...e,ref:t})})};function G$t(e,t=!0){let{navigator:n}=M.useContext(af);M.useEffect(()=>{if(!t)return;let r=n.go,a=n.push;return n.push=(...i)=>{e()!==!1&&a(...i)},n.go=(...i)=>{e()!==!1&&r(...i)},()=>{n.push=a,n.go=r}},[n,e,t])}function q$t(e,t=!0,n,r=!1){let a=M.useCallback(o=>(o.preventDefault(),o.returnValue=e,o.returnValue),[e]);M.useEffect(()=>(t&&!r&&window.addEventListener("beforeunload",a),()=>{window.removeEventListener("beforeunload",a)}),[a,t,r]);let i=M.useCallback(()=>{let o=window.confirm(e);return o&&n&&n(),o},[e]);G$t(i,t)}var Y$t=({translationKey:e="warnWhenUnsavedChanges",message:t="Are you sure you want to leave? You have unsaved changes."})=>{let n=on(),{pathname:r}=Fu(),{warnWhen:a,setWarnWhen:i}=Pc();M.useEffect(()=>()=>i==null?void 0:i(!1),[r]);let o=M.useMemo(()=>n(e,t),[e,t,n]);return q$t(o,a,()=>{i==null||i(!1)}),null},K$t=({to:e})=>{let{pathname:t,search:n}=Fu(),r=`${t}${n}`,a=r.length>1?`?to=${encodeURIComponent(r)}`:"";return M.createElement(O$t,{to:`${e}${a}`})};function X$t({handler:e}){var t;let n=Fu(),{action:r,id:a,params:i,pathname:o,resource:l}=ss(),s=on(),u=Fc(),c=(l==null?void 0:l.identifier)??(l==null?void 0:l.name),d=(l==null?void 0:l.label)??((t=l==null?void 0:l.meta)==null?void 0:t.label)??u(c,r==="list"?"plural":"singular");return g.useLayoutEffect(()=>{let f=Spe(s,l,r,a+"",d);e?document.title=e({action:r,resource:l,params:i,pathname:o,autoGeneratedTitle:f}):document.title=f},[n]),M.createElement(M.Fragment,null)}const Q$t={xs:{fontSize:12,lineHeight:20/12},sm:{fontSize:14,lineHeight:22/14},md:{fontSize:16,lineHeight:24/16},lg:{fontSize:20,lineHeight:28/20},xl:{fontSize:24,lineHeight:32/24},xxl:{fontSize:30,lineHeight:38/30},xxxl:{fontSize:38,lineHeight:46/38},huge:{fontSize:46,lineHeight:54/46},xhuge:{fontSize:56,lineHeight:64/56},xxhuge:{fontSize:68,lineHeight:76/68}},Pr=({size:e="sm",children:t,...n})=>q.jsx(Hc,{theme:{token:{...Q$t[e]}},children:q.jsx(wr.Text,{...n,children:t})}),Z$t=()=>q.jsx(Yl.Item,{children:q.jsx(Yl.Item.Meta,{avatar:q.jsx(z7,{color:"transparent"}),title:q.jsx(gl.Button,{active:!0,style:{height:"14px"}}),description:q.jsx(gl.Button,{active:!0,style:{width:"300px",marginTop:"8px",height:"16px"}})})}),J$t=(e,t)=>{const n=Ir(e).format("MMM DD, YYYY - HH:mm"),r=Ir(t).format("MMM DD, YYYY - HH:mm");return`${n} - ${r}`},eLt=e=>{var t,n;return(e==null?void 0:e.groupBy)&&((t=e.groupBy)==null?void 0:t.closeDateMonth)&&((n=e.groupBy)==null?void 0:n.closeDateYear)},Sre=(e=[],t)=>e.filter(eLt).map(n=>{var o;const{closeDateMonth:r,closeDateYear:a}=n.groupBy,i=Ir(`${a}-${r}-01`);return{timeUnix:i.unix(),timeText:i.format("MMM YYYY"),value:((o=n.sum)==null?void 0:o.value)??0,state:t}}),tLt=(e=[])=>{const t=e.find(i=>i.title==="WON"),n=Sre(t==null?void 0:t.dealsAggregate,"Won"),r=e.find(i=>i.title==="LOST"),a=Sre(r==null?void 0:r.dealsAggregate,"Lost");return[...n,...a].sort((i,o)=>i.timeUnix-o.timeUnix)},nLt=$a` + query DashboardTotalCounts { + companies { + totalCount + } + contacts { + totalCount + } + deals { + totalCount + } + } +`,rLt=$a` + query DashboardCalendarUpcomingEvents( + $filter: EventFilter! + $sorting: [EventSort!] + $paging: OffsetPaging! + ) { + events(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount + nodes { + id + title + color + startDate + endDate + } + } + } +`,aLt=$a` + query DashboardDealsChart( + $filter: DealStageFilter! + $sorting: [DealStageSort!] + $paging: OffsetPaging + ) { + dealStages(filter: $filter, sorting: $sorting, paging: $paging) { + # Get all deal stages + nodes { + id + title + # Get the sum of all deals in this stage and group by closeDateMonth and closeDateYear + dealsAggregate { + groupBy { + closeDateMonth + closeDateYear + } + sum { + value + } + } + } + # Get the total count of all deals in this stage + totalCount + } + } +`,iLt=$a` + query DashboardLatestActivitiesDeals( + $filter: DealFilter! + $sorting: [DealSort!] + $paging: OffsetPaging + ) { + deals(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount + nodes { + id + title + stage { + id + title + } + company { + id + name + avatarUrl + } + createdAt + } + } + } +`,oLt=$a` + query DashboardLatestActivitiesAudits( + $filter: AuditFilter! + $sorting: [AuditSort!] + $paging: OffsetPaging + ) { + audits(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount + nodes { + id + action + targetEntity + targetId + changes { + field + from + to + } + createdAt + user { + id + name + avatarUrl + } + } + } + } +`,lLt=$a` + query CompaniesList( + $filter: CompanyFilter! + $sorting: [CompanySort!] + $paging: OffsetPaging! + ) { + companies(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount + nodes { + id + name + avatarUrl + # Get the sum of all deals in this company + dealsAggregate { + sum { + value + } + } + } + } + } +`,y3=$a` + query UsersSelect( + $filter: UserFilter! + $sorting: [UserSort!] + $paging: OffsetPaging! + ) { + # Get all users + users(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount # Get the total count of users + # Get specific fields for each user + nodes { + id + name + avatarUrl + } + } + } +`,sLt=$a` + query CompanyContactsTable( + $filter: ContactFilter! + $sorting: [ContactSort!] + $paging: OffsetPaging! + ) { + contacts(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount + nodes { + id + name + avatarUrl + jobTitle + email + phone + status + } + } + } +`,uLt=$a` + query TaskStages( + $filter: TaskStageFilter! + $sorting: [TaskStageSort!] + $paging: OffsetPaging! + ) { + taskStages(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount # Get the total count of task stages + nodes { + id + title + } + } + } +`,cLt=$a` + query Tasks( + $filter: TaskFilter! + $sorting: [TaskSort!] + $paging: OffsetPaging! + ) { + tasks(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount # Get the total count of tasks + nodes { + id + title + description + dueDate + completed + stageId + # Get user details associated with this task + users { + id + name + avatarUrl + } + createdAt + updatedAt + } + } + } +`,iCe=$a` + query TaskStagesSelect( + $filter: TaskStageFilter! + $sorting: [TaskStageSort!] + $paging: OffsetPaging! + ) { + taskStages(filter: $filter, sorting: $sorting, paging: $paging) { + totalCount + nodes { + id + title + } + } + } +`,dLt=()=>{const{data:e,isLoading:t}=yp({resource:"events",pagination:{pageSize:5},sorters:[{field:"startDate",order:"asc"}],filters:[{field:"startDate",operator:"gte",value:Ir().format("YYYY-MM-DD")}],meta:{gqlQuery:rLt}});return q.jsxs(fo,{style:{height:"100%"},headStyle:{padding:"8px 16px"},bodyStyle:{padding:"0 1rem"},title:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[q.jsx(b9,{}),q.jsx(Pr,{size:"sm",style:{marginLeft:"0.7rem"},children:"Upcoming Events"})]}),children:[t?q.jsx(Yl,{itemLayout:"horizontal",dataSource:Array.from({length:5}).map((n,r)=>({id:r})),renderItem:()=>q.jsx(Z$t,{})}):q.jsx(Yl,{itemLayout:"horizontal",dataSource:(e==null?void 0:e.data)||[],renderItem:n=>{const r=J$t(n.startDate,n.endDate);return q.jsx(Yl.Item,{children:q.jsx(Yl.Item.Meta,{avatar:q.jsx(z7,{color:n.color}),title:q.jsx(Pr,{size:"xs",children:r}),description:q.jsx(Pr,{ellipsis:{tooltip:!0},strong:!0,children:n.title})})})}}),!t&&(e==null?void 0:e.data.length)===0&&q.jsx("span",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"220px"},children:"No upcoming events"})]})};var rs=function(e){return e!==null&&typeof e!="function"&&isFinite(e.length)},wh=function(e,t){return rs(e)?e.indexOf(t)>-1:!1},Gi=function(e,t){if(!rs(e))return e;for(var n=[],r=0;ri[l])return 1;if(a[l]n?n:e},lM=function(e,t){var n=t.toString(),r=n.indexOf(".");if(r===-1)return Math.round(e);var a=n.substr(r+1).length;return a>20&&(a=20),parseFloat(e.toFixed(a))},un=function(e){return Gp(e,"Number")},ELt=1e-5;function Bi(e,t,n){return n===void 0&&(n=ELt),Math.abs(e-t)r&&(n=i,r=o)}return n}},SLt=function(e,t){if(Qe(e)){for(var n,r=1/0,a=0;at?(r&&(clearTimeout(r),r=null),l=c,o=e.apply(a,i),r||(a=i=null)):!r&&n.trailing!==!1&&(r=setTimeout(s,d)),o};return u.cancel=function(){clearTimeout(r),l=0,r=a=i=null},u},LLt=function(e){return rs(e)?Array.prototype.slice.call(e):[]};var C2={};const qp=function(e){return e=e||"g",C2[e]?C2[e]+=1:C2[e]=1,e+C2[e]},Gf=function(){};function Ei(e){return Ge(e)?0:rs(e)?e.length:Object.keys(e).length}var w2;const T2=Xy(function(e,t){t===void 0&&(t={});var n=t.fontSize,r=t.fontFamily,a=t.fontWeight,i=t.fontStyle,o=t.fontVariant;return w2||(w2=document.createElement("canvas").getContext("2d")),w2.font=[i,o,a,n+"px",r].join(" "),w2.measureText(Jt(e)?e:"").width},function(e,t){return t===void 0&&(t={}),SE([e],S3(t)).join("")}),PLt=function(e,t,n,r){r===void 0&&(r="...");var a=16,i=T2(r,n),o=Jt(e)?e:fC(e),l=t,s=[],u,c;if(T2(e,n)<=t)return e;for(;u=o.substr(0,a),c=T2(u,n),!(c+i>l&&c>l);)if(s.push(u),l-=c,o=o.substr(a),!o)return s.join("");for(;u=o.substr(0,1),c=T2(u,n),!(c+i>l);)if(s.push(u),l-=c,o=o.substr(1),!o)return s.join("");return""+s.join("")+r};var FLt=function(){function e(){this.map={}}return e.prototype.has=function(t){return this.map[t]!==void 0},e.prototype.get=function(t,n){var r=this.map[t];return r===void 0?n:r},e.prototype.set=function(t,n){this.map[t]=n},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(t){delete this.map[t]},e.prototype.size=function(){return Object.keys(this.map).length},e}(),Sa;(function(e){e.FORE="fore",e.MID="mid",e.BG="bg"})(Sa||(Sa={}));var ct;(function(e){e.TOP="top",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right",e.RIGHT="right",e.RIGHT_TOP="right-top",e.RIGHT_BOTTOM="right-bottom",e.LEFT="left",e.LEFT_TOP="left-top",e.LEFT_BOTTOM="left-bottom",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.RADIUS="radius",e.CIRCLE="circle",e.NONE="none"})(ct||(ct={}));var yi;(function(e){e.AXIS="axis",e.GRID="grid",e.LEGEND="legend",e.TOOLTIP="tooltip",e.ANNOTATION="annotation",e.SLIDER="slider",e.SCROLLBAR="scrollbar",e.OTHER="other"})(yi||(yi={}));var Xv={FORE:3,MID:2,BG:1},yn;(function(e){e.BEFORE_RENDER="beforerender",e.AFTER_RENDER="afterrender",e.BEFORE_PAINT="beforepaint",e.AFTER_PAINT="afterpaint",e.BEFORE_CHANGE_DATA="beforechangedata",e.AFTER_CHANGE_DATA="afterchangedata",e.BEFORE_CLEAR="beforeclear",e.AFTER_CLEAR="afterclear",e.BEFORE_DESTROY="beforedestroy",e.BEFORE_CHANGE_SIZE="beforechangesize",e.AFTER_CHANGE_SIZE="afterchangesize"})(yn||(yn={}));var sp;(function(e){e.BEFORE_DRAW_ANIMATE="beforeanimate",e.AFTER_DRAW_ANIMATE="afteranimate",e.BEFORE_RENDER_LABEL="beforerenderlabel",e.AFTER_RENDER_LABEL="afterrenderlabel"})(sp||(sp={}));var nl;(function(e){e.MOUSE_ENTER="plot:mouseenter",e.MOUSE_DOWN="plot:mousedown",e.MOUSE_MOVE="plot:mousemove",e.MOUSE_UP="plot:mouseup",e.MOUSE_LEAVE="plot:mouseleave",e.TOUCH_START="plot:touchstart",e.TOUCH_MOVE="plot:touchmove",e.TOUCH_END="plot:touchend",e.TOUCH_CANCEL="plot:touchcancel",e.CLICK="plot:click",e.DBLCLICK="plot:dblclick",e.CONTEXTMENU="plot:contextmenu",e.LEAVE="plot:leave",e.ENTER="plot:enter"})(nl||(nl={}));var XI;(function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.SELECTED="selected",e.DEFAULT="default"})(XI||(XI={}));var Ov=["color","shape","size"],Cr="_origin",Cre=1,wre=1,Tre=.25,vCe={};function BLt(e){var t=vCe[e];if(!t)throw new Error("G engine '".concat(e,"' is not exist, please register it at first."));return t}function yCe(e,t){vCe[e]=t}function Ym(e,t,n){if(e){if(typeof e.addEventListener=="function")return e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}};if(typeof e.attachEvent=="function")return e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}}}var _1,uM,bCe,gF;function zLt(){_1=document.createElement("table"),uM=document.createElement("tr"),bCe=/^\s*<(\w+|!)[^>]*>/,gF={tr:document.createElement("tbody"),tbody:_1,thead:_1,tfoot:_1,td:uM,th:uM,"*":document.createElement("div")}}function up(e){_1||zLt();var t=bCe.test(e)&&RegExp.$1;(!t||!(t in gF))&&(t="*");var n=gF[t];e=typeof e=="string"?e.replace(/(^\s*)|(\s*$)/g,""):e,n.innerHTML=""+e;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function ll(e,t,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch{}finally{r=r===void 0?n:r}return r}function HLt(e,t){var n=ll(e,"height",t);return n==="auto"&&(n=e.offsetHeight),parseFloat(n)}function jLt(e,t){var n=HLt(e,t),r=parseFloat(ll(e,"borderTopWidth"))||0,a=parseFloat(ll(e,"paddingTop"))||0,i=parseFloat(ll(e,"paddingBottom"))||0,o=parseFloat(ll(e,"borderBottomWidth"))||0,l=parseFloat(ll(e,"marginTop"))||0,s=parseFloat(ll(e,"marginBottom"))||0;return n+r+o+a+i+l+s}function ULt(e,t){var n=ll(e,"width",t);return n==="auto"&&(n=e.offsetWidth),parseFloat(n)}function VLt(e,t){var n=ULt(e,t),r=parseFloat(ll(e,"borderLeftWidth"))||0,a=parseFloat(ll(e,"paddingLeft"))||0,i=parseFloat(ll(e,"paddingRight"))||0,o=parseFloat(ll(e,"borderRightWidth"))||0,l=parseFloat(ll(e,"marginRight"))||0,s=parseFloat(ll(e,"marginLeft"))||0;return n+r+o+a+i+s+l}function wo(e,t){if(e)for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);return e}function WLt(e){var t=getComputedStyle(e);return{width:(e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10),height:(e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)}}function Are(e){return typeof e=="number"&&!isNaN(e)}function Ire(e,t,n,r){var a=n,i=r;if(t){var o=WLt(e);a=o.width?o.width:a,i=o.height?o.height:i}return{width:Math.max(Are(a)?a:Cre,Cre),height:Math.max(Are(i)?i:wre,wre)}}function GLt(e){var t=e.parentNode;t&&t.removeChild(e)}var qLt="*",hH=function(){function e(){this._events={}}return e.prototype.on=function(t,n,r){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:n,once:!!r}),this},e.prototype.once=function(t,n){return this.on(t,n,!0)},e.prototype.emit=function(t){for(var n=this,r=[],a=1;a2&&(n.push([a].concat(o.splice(0,2))),l="l",a=a==="m"?"l":"L"),l==="o"&&o.length===1&&n.push([a,o[0]]),l==="r")n.push([a].concat(o));else for(;o.length>=t[l]&&(n.push([a].concat(o.splice(0,t[l]))),!!t[l]););return e}),n},mF=function(e,t){for(var n=[],r=0,a=e.length;a-2*!t>r;r+=2){var i=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?a-4===r?i[3]={x:+e[0],y:+e[1]}:a-2===r&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[a-2],y:+e[a-1]}:a-4===r?i[3]=i[2]:r||(i[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n},A2=function(e,t,n,r,a){var i=[];if(a===null&&r===null&&(r=n),e=+e,t=+t,n=+n,r=+r,a!==null){var o=Math.PI/180,l=e+n*Math.cos(-r*o),s=e+n*Math.cos(-a*o),u=t+n*Math.sin(-r*o),c=t+n*Math.sin(-a*o);i=[["M",l,u],["A",n,n,0,+(a-r>180),0,s,c]]}else i=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return i},vF=function(e){if(e=kv(e),!e||!e.length)return[["M",0,0]];var t=[],n=0,r=0,a=0,i=0,o=0,l,s;e[0][0]==="M"&&(n=+e[0][1],r=+e[0][2],a=n,i=r,o++,t[0]=["M",n,r]);for(var u=e.length===3&&e[0][0]==="M"&&e[1][0].toUpperCase()==="R"&&e[2][0].toUpperCase()==="Z",c=void 0,d=void 0,f=o,p=e.length;f1&&(S=Math.sqrt(S),n=S*n,r=S*r);var C=n*n,w=r*r,I=(i===o?-1:1)*Math.sqrt(Math.abs((C*w-C*E*E-w*x*x)/(C*E*E+w*x*x)));v=I*n*E/r+(e+l)/2,y=I*-r*x/n+(t+s)/2,h=Math.asin(((t-y)/r).toFixed(9)),m=Math.asin(((s-y)/r).toFixed(9)),h=em&&(h=h-Math.PI*2),!o&&m>h&&(m=m-Math.PI*2)}var T=m-h;if(Math.abs(T)>c){var A=m,O=l,R=s;m=h+c*(o&&m>h?1:-1),l=v+n*Math.cos(m),s=y+r*Math.sin(m),f=xCe(l,s,n,r,a,0,o,O,R,[m,A,v,y])}T=m-h;var N=Math.cos(h),_=Math.sin(h),L=Math.cos(m),$=Math.sin(m),k=Math.tan(T/4),P=4/3*n*k,B=4/3*r*k,F=[e,t],D=[e+P*_,t-B*N],j=[l+P*$,s-B*L],z=[l,s];if(D[0]=2*F[0]-D[0],D[1]=2*F[1]-D[1],u)return[D,j,z].concat(f);f=[D,j,z].concat(f).join().split(",");for(var V=[],G=0,W=f.length;G7){x[E].shift();for(var S=x[E];S.length;)o[E]="A",r&&(l[E]="A"),x.splice(E++,0,["C"].concat(S.splice(0,6)));x.splice(E,1),c=Math.max(n.length,r&&r.length||0)}},p=function(x,E,S,C,w){x&&E&&x[w][0]==="M"&&E[w][0]!=="M"&&(E.splice(w,0,["M",C.x,C.y]),S.bx=0,S.by=0,S.x=x[w][1],S.y=x[w][2],c=Math.max(n.length,r&&r.length||0))};c=Math.max(n.length,r&&r.length||0);for(var h=0;h1?1:s<0?0:s;for(var u=s/2,c=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,h=0;h0&&p<1&&s.push(p);continue}var m=d*d-4*f*c,v=Math.sqrt(m);if(!(m<0)){var y=(-d+v)/(2*c);y>0&&y<1&&s.push(y);var b=(-d-v)/(2*c);b>0&&b<1&&s.push(b)}}for(var x=s.length,E=x,S;x--;)p=s[x],S=1-p,u[0][x]=S*S*S*e+3*S*S*p*n+3*S*p*p*a+p*p*p*o,u[1][x]=S*S*S*t+3*S*S*p*r+3*S*p*p*i+p*p*p*l;return u[0][E]=e,u[1][E]=t,u[0][E+1]=o,u[1][E+1]=l,u[0].length=u[1].length=E+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},ZLt=function(e,t,n,r,a,i,o,l){if(!(Math.max(e,n)Math.max(a,o)||Math.max(t,r)Math.max(i,l))){var s=(e*r-t*n)*(a-o)-(e-n)*(a*l-i*o),u=(e*r-t*n)*(i-l)-(t-r)*(a*l-i*o),c=(e-n)*(i-l)-(t-r)*(a-o);if(c){var d=s/c,f=u/c,p=+d.toFixed(2),h=+f.toFixed(2);if(!(p<+Math.min(e,n).toFixed(2)||p>+Math.max(e,n).toFixed(2)||p<+Math.min(a,o).toFixed(2)||p>+Math.max(a,o).toFixed(2)||h<+Math.min(t,r).toFixed(2)||h>+Math.max(t,r).toFixed(2)||h<+Math.min(i,l).toFixed(2)||h>+Math.max(i,l).toFixed(2)))return{x:d,y:f}}}},ff=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},SCe=function(e,t,n,r,a){if(a)return[["M",+e+ +a,t],["l",n-a*2,0],["a",a,a,0,0,1,a,a],["l",0,r-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-n,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-r],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]];return i.parsePathArray=ECe,i},bF=function(e,t,n,r){return e===null&&(e=t=n=r=0),t===null&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:SCe(e,t,n,r),vb:[e,t,n,r].join(" ")}},JLt=function(e,t){return e=bF(e),t=bF(t),ff(t,e.x,e.y)||ff(t,e.x2,e.y)||ff(t,e.x,e.y2)||ff(t,e.x2,e.y2)||ff(e,t.x,t.y)||ff(e,t.x2,t.y)||ff(e,t.x,t.y2)||ff(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)},_re=function(e,t,n,r,a,i,o,l){Qe(e)||(e=[e,t,n,r,a,i,o,l]);var s=QLt.apply(null,e);return bF(s.min.x,s.min.y,s.max.x-s.min.x,s.max.y-s.min.y)},Nre=function(e,t,n,r,a,i,o,l,s){var u=1-s,c=Math.pow(u,3),d=Math.pow(u,2),f=s*s,p=f*s,h=c*e+d*3*s*n+u*3*s*s*a+p*o,m=c*t+d*3*s*r+u*3*s*s*i+p*l,v=e+2*s*(n-e)+f*(a-2*n+e),y=t+2*s*(r-t)+f*(i-2*r+t),b=n+2*s*(a-n)+f*(o-2*a+n),x=r+2*s*(i-r)+f*(l-2*i+r),E=u*e+s*n,S=u*t+s*r,C=u*a+s*o,w=u*i+s*l,I=90-Math.atan2(v-b,y-x)*180/Math.PI;return{x:h,y:m,m:{x:v,y},n:{x:b,y:x},start:{x:E,y:S},end:{x:C,y:w},alpha:I}},ePt=function(e,t,n){var r=_re(e),a=_re(t);if(!JLt(r,a))return n?0:[];for(var i=Rre.apply(0,e),o=Rre.apply(0,t),l=~~(i/8),s=~~(o/8),u=[],c=[],d={},f=n?0:[],p=0;p=0&&w<=1&&I>=0&&I<=1&&(n?f+=1:f.push({x:C.x,y:C.y,t1:w,t2:I}))}}return f},tPt=function(e,t,n){e=yF(e),t=yF(t);for(var r,a,i,o,l,s,u,c,d,f,p=n?0:[],h=0,m=e.length;h=3&&(d.length===3&&f.push("Q"),f=f.concat(d[1])),d.length===2&&f.push("L"),f=f.concat(d[d.length-1]),f});return c}var iPt=function(e,t,n){if(n===1)return[[].concat(e)];var r=[];if(t[0]==="L"||t[0]==="C"||t[0]==="Q")r=r.concat(aPt(e,t,n));else{var a=[].concat(e);a[0]==="M"&&(a[0]="L");for(var i=0;i<=n-1;i++)r.push(a)}return r},oPt=function(e,t){if(e.length===1)return e;var n=e.length-1,r=t.length-1,a=n/r,i=[];if(e.length===1&&e[0][0]==="M"){for(var o=0;o=0;s--)o=i[s].index,i[s].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}r=e.length;var d=a-r;if(r0)n=cM(n,e[r-1],1);else{e[r]=t[r];break}e[r]=["Q"].concat(n.reduce(function(a,i){return a.concat(i)},[]));break;case"T":e[r]=["T"].concat(n[0]);break;case"C":if(n.length<3)if(r>0)n=cM(n,e[r-1],2);else{e[r]=t[r];break}e[r]=["C"].concat(n.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(n.length<2)if(r>0)n=cM(n,e[r-1],1);else{e[r]=t[r];break}e[r]=["S"].concat(n.reduce(function(a,i){return a.concat(i)},[]));break;default:e[r]=t[r]}return e};const mH=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:mF,fillPath:oPt,fillPathByDiff:CCe,formatPath:xF,intersection:nPt,parsePathArray:ECe,parsePathString:kv,pathToAbsolute:vF,pathToCurve:yF,rectPath:SCe},Symbol.toStringTag,{value:"Module"}));var pC=function(){function e(t,n){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=n,this.timeStamp=n.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},e.prototype.save=function(){},e.prototype.restore=function(){},e}();function TCe(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var Dre=typeof window<"u"&&typeof window.document<"u";function ACe(e,t){if(e.isCanvas())return!0;for(var n=t.getParent(),r=!1;n;){if(n===e){r=!0;break}n=n.getParent()}return r}function kE(e){return e.cfg.visible&&e.cfg.capture}var w3=function(e){De(t,e);function t(n){var r=e.call(this)||this;r.destroyed=!1;var a=r.getDefaultCfg();return r.cfg=vr(a,n),r}return t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(n){return this.cfg[n]},t.prototype.set=function(n,r){this.cfg[n]=r},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t}(hH),Mre=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new hPt:typeof navigator<"u"?Pre(navigator.userAgent):xPt()}function yPt(e){return e!==""&&vPt.reduce(function(t,n){var r=n[0],a=n[1];if(t)return t;var i=a.exec(e);return!!i&&[r,i]},!1)}function Pre(e){var t=yPt(e);if(!t)return null;var n=t[0],r=t[1];if(n==="searchbot")return new pPt;var a=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);a?a.length<$re&&(a=Mre(Mre([],a,!0),EPt($re-a.length),!0)):a=[];var i=a.join("."),o=bPt(e),l=mPt.exec(e);return l&&l[1]?new fPt(n,i,o,l[1]):new cPt(n,i,o)}function bPt(e){for(var t=0,n=Lre.length;t0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e}function OPt(e,t){return e[0]*t[0]+e[1]*t[1]}function kPt(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[3]*a+n[6],e[1]=n[1]*r+n[4]*a+n[7],e}function EF(e,t){var n=e[0],r=e[1],a=t[0],i=t[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(a*a+i*i),l=o&&(n*a+r*i)/o;return Math.acos(Math.min(Math.max(l,-1),1))}function RPt(e,t){return e[0]===t[0]&&e[1]===t[1]}var Jh=OCe;(function(){var e=IPt();return function(t,n,r,a,i,o){var l,s;for(n||(n=2),r||(r=0),a?s=Math.min(a*n+r,t.length):s=t.length,l=r;l=0;return n?a?Math.PI*2-r:r:a?r:Math.PI*2-r}function Fre(e,t){var n=[],r=e[0],a=e[1],i=e[2],o=e[3],l=e[4],s=e[5],u=e[6],c=e[7],d=e[8],f=t[0],p=t[1],h=t[2],m=t[3],v=t[4],y=t[5],b=t[6],x=t[7],E=t[8];return n[0]=f*r+p*o+h*u,n[1]=f*a+p*l+h*c,n[2]=f*i+p*s+h*d,n[3]=m*r+v*o+y*u,n[4]=m*a+v*l+y*c,n[5]=m*i+v*s+y*d,n[6]=b*r+x*o+E*u,n[7]=b*a+x*l+E*c,n[8]=b*i+x*s+E*d,n}function xd(e,t){var n=[],r=t[0],a=t[1];return n[0]=e[0]*r+e[3]*a+e[6],n[1]=e[1]*r+e[4]*a+e[7],n}function A3(e){var t=[],n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],l=e[5],s=e[6],u=e[7],c=e[8],d=c*o-l*u,f=-c*i+l*s,p=u*i-o*s,h=n*d+r*f+a*p;return h?(h=1/h,t[0]=d*h,t[1]=(-c*r+a*u)*h,t[2]=(l*r-a*o)*h,t[3]=f*h,t[4]=(c*n-a*s)*h,t[5]=(-l*n+a*i)*h,t[6]=p*h,t[7]=(-u*n+r*s)*h,t[8]=(o*n-r*i)*h,t):null}var n1=Ua,dM="matrix",DPt=["zIndex","capture","visible","type"],MPt=["repeat"],$Pt=":",LPt="*";function PPt(e){for(var t=[],n=0;no.delay&&oe(t.toAttrs,function(l,s){i.call(o.toAttrs,s)&&(delete o.toAttrs[s],delete o.fromAttrs[s])})}),e}var _Ce=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;r.attrs={};var a=r.getDefaultAttrs();return vr(a,n.attrs),r.attrs=a,r.initAttrs(a),r.initAnimate(),r}return t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(n){},t.prototype.initAttrs=function(n){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var n,r=[],a=0;a0?i=zPt(i,E):a.addAnimator(this),i.push(E),this.set("animations",i),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(n){var r=this;n===void 0&&(n=!0);var a=this.get("animations");oe(a,function(i){n&&(i.onFrame?r.attr(i.onFrame(1)):r.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var n=this.get("timeline"),r=this.get("animations"),a=n.getTime();return oe(r,function(i){i._paused=!0,i._pauseTime=a,i.pauseCallback&&i.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:a}),this},t.prototype.resumeAnimate=function(){var n=this.get("timeline"),r=n.getTime(),a=this.get("animations"),i=this.get("_pause").pauseTime;return oe(a,function(o){o.startTime=o.startTime+(r-i),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",a),this},t.prototype.emitDelegation=function(n,r){var a=this,i=r.propagationPath;this.getEvents();var o;n==="mouseenter"?o=r.fromShape:n==="mouseleave"&&(o=r.toShape);for(var l=function(d){var f=i[d],p=f.get("name");if(p){if((f.isGroup()||f.isCanvas&&f.isCanvas())&&o&&ACe(f,o))return"break";Qe(p)?oe(p,function(h){a.emitDelegateEvent(f,h,r)}):s.emitDelegateEvent(f,p,r)}},s=this,u=0;u0)});o.length>0?oe(o,function(s){var u=s.getBBox(),c=u.minX,d=u.maxX,f=u.minY,p=u.maxY;cr&&(r=d),fi&&(i=p)}):(n=0,r=0,a=0,i=0);var l={x:n,y:a,minX:n,minY:a,maxX:r,maxY:i,width:r-n,height:i-a};return l},t.prototype.getCanvasBBox=function(){var n=1/0,r=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(s){return s.get("visible")&&(!s.isGroup()||s.isGroup()&&s.getChildren().length>0)});o.length>0?oe(o,function(s){var u=s.getCanvasBBox(),c=u.minX,d=u.maxX,f=u.minY,p=u.maxY;cr&&(r=d),fi&&(i=p)}):(n=0,r=0,a=0,i=0);var l={x:n,y:a,minX:n,minY:a,maxX:r,maxY:i,width:r-n,height:i-a};return l},t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return n.children=[],n},t.prototype.onAttrChange=function(n,r,a){if(e.prototype.onAttrChange.call(this,n,r,a),n==="matrix"){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},t.prototype.applyMatrix=function(n){var r=this.getTotalMatrix();e.prototype.applyMatrix.call(this,n);var a=this.getTotalMatrix();a!==r&&this._applyChildrenMarix(a)},t.prototype._applyChildrenMarix=function(n){var r=this.getChildren();oe(r,function(a){a.applyMatrix(n)})},t.prototype.addShape=function(){for(var n=[],r=0;r=0;l--){var s=n[l];if(kE(s)&&(s.isGroup()?o=s.getShape(r,a,i):s.isHit(r,a)&&(o=s)),o)break}return o},t.prototype.add=function(n){var r=this.getCanvas(),a=this.getChildren(),i=this.get("timeline"),o=n.getParent();o&&HPt(o,n,!1),n.set("parent",this),r&&NCe(n,r),i&&DCe(n,i),a.push(n),n.onCanvasChange("add"),this._applyElementMatrix(n)},t.prototype._applyElementMatrix=function(n){var r=this.getTotalMatrix();r&&n.applyMatrix(r)},t.prototype.getChildren=function(){return this.get("children")||[]},t.prototype.sort=function(){var n=this.getChildren();oe(n,function(r,a){return r[SF]=a,r}),n.sort(jPt(function(r,a){return r.get("zIndex")-a.get("zIndex")})),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var n=this.getChildren(),r=n.length-1;r>=0;r--)n[r].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var n=this.getChildren();return this.getChildByIndex(n.length-1)},t.prototype.getChildByIndex=function(n){var r=this.getChildren();return r[n]},t.prototype.getCount=function(){var n=this.getChildren();return n.length},t.prototype.contain=function(n){var r=this.getChildren();return r.indexOf(n)>-1},t.prototype.removeChild=function(n,r){r===void 0&&(r=!0),this.contain(n)&&n.remove(r)},t.prototype.findAll=function(n){var r=[],a=this.getChildren();return oe(a,function(i){n(i)&&r.push(i),i.isGroup()&&(r=r.concat(i.findAll(n)))}),r},t.prototype.find=function(n){var r=null,a=this.getChildren();return oe(a,function(i){if(n(i)?r=i:i.isGroup()&&(r=i.find(n)),r)return!1}),r},t.prototype.findById=function(n){return this.find(function(r){return r.get("id")===n})},t.prototype.findByClassName=function(n){return this.find(function(r){return r.get("className")===n})},t.prototype.findAllByName=function(n){return this.findAll(function(r){return r.get("name")===n})},t}(_Ce),Y0=0,N1=0,r1=0,$Ce=1e3,ZI,D1,JI=0,Tg=0,I3=0,_E=typeof performance=="object"&&performance.now?performance:Date,LCe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function PCe(){return Tg||(LCe(UPt),Tg=_E.now()+I3)}function UPt(){Tg=0}function CF(){this._call=this._time=this._next=null}CF.prototype=FCe.prototype={constructor:CF,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?PCe():+n)+(t==null?0:+t),!this._next&&D1!==this&&(D1?D1._next=this:ZI=this,D1=this),this._call=e,this._time=n,wF()},stop:function(){this._call&&(this._call=null,this._time=1/0,wF())}};function FCe(e,t,n){var r=new CF;return r.restart(e,t,n),r}function VPt(){PCe(),++Y0;for(var e=ZI,t;e;)(t=Tg-e._time)>=0&&e._call.call(null,t),e=e._next;--Y0}function zre(){Tg=(JI=_E.now())+I3,Y0=N1=0;try{VPt()}finally{Y0=0,GPt(),Tg=0}}function WPt(){var e=_E.now(),t=e-JI;t>$Ce&&(I3-=t,JI=e)}function GPt(){for(var e,t=ZI,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ZI=n);D1=e,wF(r)}function wF(e){if(!Y0){N1&&(N1=clearTimeout(N1));var t=e-Tg;t>24?(e<1/0&&(N1=setTimeout(zre,e-_E.now()-I3)),r1&&(r1=clearInterval(r1))):(r1||(JI=_E.now(),r1=setInterval(WPt,$Ce)),Y0=1,LCe(zre))}}function bH(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function BCe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function hC(){}var NE=.7,eO=1/NE,Qv="\\s*([+-]?\\d+)\\s*",DE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qPt=/^#([0-9a-f]{3,8})$/,YPt=new RegExp(`^rgb\\(${Qv},${Qv},${Qv}\\)$`),KPt=new RegExp(`^rgb\\(${wc},${wc},${wc}\\)$`),XPt=new RegExp(`^rgba\\(${Qv},${Qv},${Qv},${DE}\\)$`),QPt=new RegExp(`^rgba\\(${wc},${wc},${wc},${DE}\\)$`),ZPt=new RegExp(`^hsl\\(${DE},${wc},${wc}\\)$`),JPt=new RegExp(`^hsla\\(${DE},${wc},${wc},${DE}\\)$`),Hre={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};bH(hC,ME,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jre,formatHex:jre,formatHex8:e6t,formatHsl:t6t,formatRgb:Ure,toString:Ure});function jre(){return this.rgb().formatHex()}function e6t(){return this.rgb().formatHex8()}function t6t(){return zCe(this).formatHsl()}function Ure(){return this.rgb().formatRgb()}function ME(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qPt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Vre(t):n===3?new dl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?O2(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?O2(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=YPt.exec(e))?new dl(t[1],t[2],t[3],1):(t=KPt.exec(e))?new dl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=XPt.exec(e))?O2(t[1],t[2],t[3],t[4]):(t=QPt.exec(e))?O2(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ZPt.exec(e))?qre(t[1],t[2]/100,t[3]/100,1):(t=JPt.exec(e))?qre(t[1],t[2]/100,t[3]/100,t[4]):Hre.hasOwnProperty(e)?Vre(Hre[e]):e==="transparent"?new dl(NaN,NaN,NaN,0):null}function Vre(e){return new dl(e>>16&255,e>>8&255,e&255,1)}function O2(e,t,n,r){return r<=0&&(e=t=n=NaN),new dl(e,t,n,r)}function n6t(e){return e instanceof hC||(e=ME(e)),e?(e=e.rgb(),new dl(e.r,e.g,e.b,e.opacity)):new dl}function TF(e,t,n,r){return arguments.length===1?n6t(e):new dl(e,t,n,r??1)}function dl(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bH(dl,TF,BCe(hC,{brighter(e){return e=e==null?eO:Math.pow(eO,e),new dl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?NE:Math.pow(NE,e),new dl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dl(eg(this.r),eg(this.g),eg(this.b),tO(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wre,formatHex:Wre,formatHex8:r6t,formatRgb:Gre,toString:Gre}));function Wre(){return`#${Fh(this.r)}${Fh(this.g)}${Fh(this.b)}`}function r6t(){return`#${Fh(this.r)}${Fh(this.g)}${Fh(this.b)}${Fh((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gre(){const e=tO(this.opacity);return`${e===1?"rgb(":"rgba("}${eg(this.r)}, ${eg(this.g)}, ${eg(this.b)}${e===1?")":`, ${e})`}`}function tO(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fh(e){return e=eg(e),(e<16?"0":"")+e.toString(16)}function qre(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Su(e,t,n,r)}function zCe(e){if(e instanceof Su)return new Su(e.h,e.s,e.l,e.opacity);if(e instanceof hC||(e=ME(e)),!e)return new Su;if(e instanceof Su)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(t===i?o=(n-r)/l+(n0&&s<1?0:o,new Su(o,l,s,e.opacity)}function a6t(e,t,n,r){return arguments.length===1?zCe(e):new Su(e,t,n,r??1)}function Su(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bH(Su,a6t,BCe(hC,{brighter(e){return e=e==null?eO:Math.pow(eO,e),new Su(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?NE:Math.pow(NE,e),new Su(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new dl(fM(e>=240?e-240:e+120,a,r),fM(e,a,r),fM(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Su(Yre(this.h),k2(this.s),k2(this.l),tO(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tO(this.opacity);return`${e===1?"hsl(":"hsla("}${Yre(this.h)}, ${k2(this.s)*100}%, ${k2(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yre(e){return e=(e||0)%360,e<0?e+360:e}function k2(e){return Math.max(0,Math.min(1,e||0))}function fM(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const xH=e=>()=>e;function i6t(e,t){return function(n){return e+n*t}}function o6t(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function l6t(e){return(e=+e)==1?HCe:function(t,n){return n-t?o6t(t,n,e):xH(isNaN(t)?n:t)}}function HCe(e,t){var n=t-e;return n?i6t(e,n):xH(isNaN(e)?t:e)}const Kre=function e(t){var n=l6t(t);function r(a,i){var o=n((a=TF(a)).r,(i=TF(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=HCe(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=l(c),a.b=s(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function jCe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,s.push({i:o,x:AF(r,a)})),n=pM.lastIndex;return nu.length?(s=kv(i[l]),u=kv(a[l]),u=CCe(u,s),u=xF(u,s),t.fromAttrs.path=u,t.toAttrs.path=s):t.pathFormatted||(s=kv(i[l]),u=kv(a[l]),u=xF(u,s),t.fromAttrs.path=u,t.toAttrs.path=s,t.pathFormatted=!0),r[l]=[];for(var c=0;c0){for(var l=t.animators.length-1;l>=0;l--){if(r=t.animators[l],r.destroyed){t.removeAnimator(l);continue}if(!r.isAnimatePaused()){a=r.get("animations");for(var s=a.length-1;s>=0;s--)i=a[s],n=G6t(r,i,o),n&&(a.splice(s,1),n=!1,i.callback&&i.callback())}a.length===0&&t.removeAnimator(l)}var u=t.canvas.get("autoDraw");u||t.canvas.draw()}})},e.prototype.addAnimator=function(t){this.animators.push(t)},e.prototype.removeAnimator=function(t){this.animators.splice(t,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(t){t===void 0&&(t=!0),this.animators.forEach(function(n){n.stopAnimate(t)}),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e}(),Y6t=40,iae=0,oae=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function lae(e,t,n){n.name=t,n.target=e,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}function K6t(e,t,n){if(n.bubbles){var r=void 0,a=!1;if(t==="mouseenter"?(r=n.fromShape,a=!0):t==="mouseleave"&&(a=!0,r=n.toShape),e.isCanvas()&&a)return;if(r&&ACe(e,r)){n.bubbles=!1;return}n.name=t,n.currentTarget=e,n.delegateTarget=e,e.emit(t,n)}}var X6t=function(){function e(t){var n=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(r){var a=r.type;n._triggerEvent(a,r)},this._onDocumentMove=function(r){var a=n.canvas,i=a.get("el");if(i!==r.target&&(n.dragging||n.currentShape)){var o=n._getPointInfo(r);n.dragging&&n._emitEvent("drag",r,o,n.draggingShape)}},this._onDocumentMouseUp=function(r){var a=n.canvas,i=a.get("el");if(i!==r.target&&n.dragging){var o=n._getPointInfo(r);n.draggingShape&&n._emitEvent("drop",r,o,null),n._emitEvent("dragend",r,o,n.draggingShape),n._afterDrag(n.draggingShape,o,r)}},this.canvas=t.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var t=this,n=this.canvas.get("el");oe(oae,function(r){n.addEventListener(r,t._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var t=this,n=this.canvas.get("el");oe(oae,function(r){n.removeEventListener(r,t._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._getEventObj=function(t,n,r,a,i,o){var l=new pC(t,n);return l.fromShape=i,l.toShape=o,l.x=r.x,l.y=r.y,l.clientX=r.clientX,l.clientY=r.clientY,l.propagationPath.push(a),l},e.prototype._getShape=function(t,n){return this.canvas.getShape(t.x,t.y,n)},e.prototype._getPointInfo=function(t){var n=this.canvas,r=n.getClientByEvent(t),a=n.getPointByEvent(t);return{x:a.x,y:a.y,clientX:r.x,clientY:r.y}},e.prototype._triggerEvent=function(t,n){var r=this._getPointInfo(n),a=this._getShape(r,n),i=this["_on"+t],o=!1;if(i)i.call(this,r,a,n);else{var l=this.currentShape;t==="mouseenter"||t==="dragenter"||t==="mouseover"?(this._emitEvent(t,n,r,null,null,a),a&&this._emitEvent(t,n,r,a,null,a),t==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",n,r,null)):t==="mouseleave"||t==="dragleave"||t==="mouseout"?(o=!0,l&&this._emitEvent(t,n,r,l,l,null),this._emitEvent(t,n,r,null,l,null),t==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",n,r,null)):this._emitEvent(t,n,r,a,null,null)}if(o||(this.currentShape=a),a&&!a.get("destroyed")){var s=this.canvas,u=s.get("el");u.style.cursor=a.attr("cursor")||s.get("cursor")}},e.prototype._onmousedown=function(t,n,r){r.button===iae&&(this.mousedownShape=n,this.mousedownPoint=t,this.mousedownTimeStamp=r.timeStamp),this._emitEvent("mousedown",r,t,n,null,null)},e.prototype._emitMouseoverEvents=function(t,n,r,a){var i=this.canvas.get("el");r!==a&&(r&&(this._emitEvent("mouseout",t,n,r,r,a),this._emitEvent("mouseleave",t,n,r,r,a),(!a||a.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),a&&(this._emitEvent("mouseover",t,n,a,r,a),this._emitEvent("mouseenter",t,n,a,r,a)))},e.prototype._emitDragoverEvents=function(t,n,r,a,i){a?(a!==r&&(r&&this._emitEvent("dragleave",t,n,r,r,a),this._emitEvent("dragenter",t,n,a,r,a)),i||this._emitEvent("dragover",t,n,a)):r&&this._emitEvent("dragleave",t,n,r,r,a),i&&this._emitEvent("dragover",t,n,a)},e.prototype._afterDrag=function(t,n,r){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var a=this._getShape(n,r);a!==t&&this._emitMouseoverEvents(r,n,t,a),this.currentShape=a},e.prototype._onmouseup=function(t,n,r){if(r.button===iae){var a=this.draggingShape;this.dragging?(a&&this._emitEvent("drop",r,t,n),this._emitEvent("dragend",r,t,a),this._afterDrag(a,t,r)):(this._emitEvent("mouseup",r,t,n),n===this.mousedownShape&&this._emitEvent("click",r,t,n),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(t,n,r){r.preventDefault();var a=this.currentShape;this._emitDragoverEvents(r,t,a,n,!0)},e.prototype._onmousemove=function(t,n,r){var a=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(r,t,i,n,!1),this._emitEvent("drag",r,t,o);else{var l=this.mousedownPoint;if(l){var s=this.mousedownShape,u=r.timeStamp,c=u-this.mousedownTimeStamp,d=l.clientX-t.clientX,f=l.clientY-t.clientY,p=d*d+f*f;c>120||p>Y6t?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",r,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&a.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",r,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(r,t,i,n),this._emitEvent("mousemove",r,t,n)):(this._emitMouseoverEvents(r,t,i,n),this._emitEvent("mousemove",r,t,n))}else this._emitMouseoverEvents(r,t,i,n),this._emitEvent("mousemove",r,t,n)}},e.prototype._emitEvent=function(t,n,r,a,i,o){var l=this._getEventObj(t,n,r,a,i,o);if(a){l.shape=a,lae(a,t,l);for(var s=a.getParent();s;)s.emitDelegation(t,l),l.propagationStopped||K6t(s,t,l),l.propagationPath.push(s),s=s.getParent()}else{var u=this.canvas;lae(u,t,l)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}(),sae="px",uae=ICe(),Q6t=uae&&uae.name==="firefox",O3=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.initContainer(),r.initDom(),r.initEvents(),r.initTimeline(),r}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return n.cursor="default",n.supportCSSTransform=!1,n},t.prototype.initContainer=function(){var n=this.get("container");Jt(n)&&(n=document.getElementById(n),this.set("container",n))},t.prototype.initDom=function(){var n=this.createDom();this.set("el",n);var r=this.get("container");r.appendChild(n),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var n=new X6t({canvas:this});n.init(),this.set("eventController",n)},t.prototype.initTimeline=function(){var n=new q6t(this);this.set("timeline",n)},t.prototype.setDOMSize=function(n,r){var a=this.get("el");Dre&&(a.style.width=n+sae,a.style.height=r+sae)},t.prototype.changeSize=function(n,r){this.setDOMSize(n,r),this.set("width",n),this.set("height",r),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(n){this.set("cursor",n);var r=this.get("el");Dre&&r&&(r.style.cursor=n)},t.prototype.getPointByEvent=function(n){var r=this.get("supportCSSTransform");if(r){if(Q6t&&!Ge(n.layerX)&&n.layerX!==n.offsetX)return{x:n.layerX,y:n.layerY};if(!Ge(n.offsetX))return{x:n.offsetX,y:n.offsetY}}var a=this.getClientByEvent(n),i=a.x,o=a.y;return this.getPointByClient(i,o)},t.prototype.getClientByEvent=function(n){var r=n;return n.touches&&(n.type==="touchend"?r=n.changedTouches[0]:r=n.touches[0]),{x:r.clientX,y:r.clientY}},t.prototype.getPointByClient=function(n,r){var a=this.get("el"),i=a.getBoundingClientRect();return{x:n-i.left,y:r-i.top}},t.prototype.getClientByPoint=function(n,r){var a=this.get("el"),i=a.getBoundingClientRect();return{x:n+i.left,y:r+i.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var n=this.get("el");n.parentNode.removeChild(n)},t.prototype.clearEvents=function(){var n=this.get("eventController");n.destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var n=this.get("timeline");this.get("destroyed")||(this.clear(),n&&n.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(MCe),k3=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var n=e.prototype.clone.call(this),r=this.getChildren(),a=0;a=n&&a.minY<=r&&a.maxY>=r},t.prototype.afterAttrsChange=function(n){e.prototype.afterAttrsChange.call(this,n),this.clearCacheBBox()},t.prototype.getBBox=function(){var n=this.cfg.bbox;return n||(n=this.calculateBBox(),this.set("bbox",n)),n},t.prototype.getCanvasBBox=function(){var n=this.cfg.canvasBBox;return n||(n=this.calculateCanvasBBox(),this.set("canvasBBox",n)),n},t.prototype.applyMatrix=function(n){e.prototype.applyMatrix.call(this,n),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var n=this.getBBox(),r=this.getTotalMatrix(),a=n.minX,i=n.minY,o=n.maxX,l=n.maxY;if(r){var s=xd(r,[n.minX,n.minY]),u=xd(r,[n.maxX,n.minY]),c=xd(r,[n.minX,n.maxY]),d=xd(r,[n.maxX,n.maxY]);a=Math.min(s[0],u[0],c[0],d[0]),o=Math.max(s[0],u[0],c[0],d[0]),i=Math.min(s[1],u[1],c[1],d[1]),l=Math.max(s[1],u[1],c[1],d[1])}var f=this.attrs;if(f.shadowColor){var p=f.shadowBlur,h=p===void 0?0:p,m=f.shadowOffsetX,v=m===void 0?0:m,y=f.shadowOffsetY,b=y===void 0?0:y,x=a-h+v,E=o+h+v,S=i-h+b,C=l+h+b;a=Math.min(a,x),o=Math.max(o,E),i=Math.min(i,S),l=Math.max(l,C)}return{x:a,y:i,minX:a,minY:i,maxX:o,maxY:l,width:o-a,height:l-i}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(n,r){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(n,r){var a=this.get("startArrowShape"),i=this.get("endArrowShape"),o=[n,r,1];o=this.invertFromMatrix(o);var l=o[0],s=o[1],u=this._isInBBox(l,s);return this.isOnlyHitBox()?u:!!(u&&!this.isClipped(l,s)&&(this.isInShape(l,s)||a&&a.isHit(l,s)||i&&i.isHit(l,s)))},t}(_Ce),KCe=new Map;function Xs(e,t){KCe.set(e,t)}function _3(e){return KCe.get(e)}function XCe(e){var t=e.attr(),n=t.x,r=t.y,a=t.width,i=t.height;return{x:n,y:r,width:a,height:i}}function QCe(e){var t=e.attr(),n=t.x,r=t.y,a=t.r;return{x:n-a,y:r-a,width:a*2,height:a*2}}function ko(e,t,n,r){var a=e-n,i=t-r;return Math.sqrt(a*a+i*i)}function cA(e,t){return Math.abs(e-t)<.001}function Qy(e,t){var n=Fs(e),r=Fs(t),a=is(e),i=is(t);return{x:n,y:r,width:a-n,height:i-r}}function N3(e){return(e+Math.PI*2)%(Math.PI*2)}const zi={box:function(e,t,n,r){return Qy([e,n],[t,r])},length:function(e,t,n,r){return ko(e,t,n,r)},pointAt:function(e,t,n,r,a){return{x:(1-a)*e+a*n,y:(1-a)*t+a*r}},pointDistance:function(e,t,n,r,a,i){var o=(n-e)*(a-e)+(r-t)*(i-t);if(o<0)return ko(e,t,a,i);var l=(n-e)*(n-e)+(r-t)*(r-t);return o>l?ko(n,r,a,i):this.pointToLine(e,t,n,r,a,i)},pointToLine:function(e,t,n,r,a,i){var o=[n-e,r-t];if(RPt(o,[0,0]))return Math.sqrt((a-e)*(a-e)+(i-t)*(i-t));var l=[-o[1],o[0]];kCe(l,l);var s=[a-e,i-t];return Math.abs(OPt(s,l))},tangentAngle:function(e,t,n,r){return Math.atan2(r-t,n-e)}};var Z6t=1e-4;function ZCe(e,t,n,r,a,i){var o,l=1/0,s=[n,r],u=20;i&&i>200&&(u=i/10);for(var c=1/u,d=c/10,f=0;f<=u;f++){var p=f*c,h=[a.apply(null,e.concat([p])),a.apply(null,t.concat([p]))],m=ko(s[0],s[1],h[0],h[1]);m=0&&m=0?[a]:[]}function dae(e,t,n,r){return 2*(1-r)*(t-e)+2*r*(n-t)}function JCe(e,t,n,r,a,i,o){var l=kf(e,n,a,o),s=kf(t,r,i,o),u=zi.pointAt(e,t,n,r,o),c=zi.pointAt(n,r,a,i,o);return[[e,t,u.x,u.y,l,s],[l,s,c.x,c.y,a,i]]}function kF(e,t,n,r,a,i,o){if(o===0)return(ko(e,t,n,r)+ko(n,r,a,i)+ko(e,t,a,i))/2;var l=JCe(e,t,n,r,a,i,.5),s=l[0],u=l[1];return s.push(o-1),u.push(o-1),kF.apply(null,s)+kF.apply(null,u)}const ewe={box:function(e,t,n,r,a,i){var o=cae(e,n,a)[0],l=cae(t,r,i)[0],s=[e,a],u=[t,i];return o!==void 0&&s.push(kf(e,n,a,o)),l!==void 0&&u.push(kf(t,r,i,l)),Qy(s,u)},length:function(e,t,n,r,a,i){return kF(e,t,n,r,a,i,3)},nearestPoint:function(e,t,n,r,a,i,o,l){return ZCe([e,n,a],[t,r,i],o,l,kf)},pointDistance:function(e,t,n,r,a,i,o,l){var s=this.nearestPoint(e,t,n,r,a,i,o,l);return ko(s.x,s.y,o,l)},interpolationAt:kf,pointAt:function(e,t,n,r,a,i,o){return{x:kf(e,n,a,o),y:kf(t,r,i,o)}},divide:function(e,t,n,r,a,i,o){return JCe(e,t,n,r,a,i,o)},tangentAngle:function(e,t,n,r,a,i,o){var l=dae(e,n,a,o),s=dae(t,r,i,o),u=Math.atan2(s,l);return N3(u)}};function Rf(e,t,n,r,a){var i=1-a;return i*i*i*e+3*t*a*i*i+3*n*a*a*i+r*a*a*a}function fae(e,t,n,r,a){var i=1-a;return 3*(i*i*(t-e)+2*i*a*(n-t)+a*a*(r-n))}function hM(e,t,n,r){var a=-3*e+9*t-9*n+3*r,i=6*e-12*t+6*n,o=3*t-3*e,l=[],s,u,c;if(cA(a,0))cA(i,0)||(s=-o/i,s>=0&&s<=1&&l.push(s));else{var d=i*i-4*a*o;cA(d,0)?l.push(-i/(2*a)):d>0&&(c=Math.sqrt(d),s=(-i+c)/(2*a),u=(-i-c)/(2*a),s>=0&&s<=1&&l.push(s),u>=0&&u<=1&&l.push(u))}return l}function twe(e,t,n,r,a,i,o,l,s){var u=Rf(e,n,a,o,s),c=Rf(t,r,i,l,s),d=zi.pointAt(e,t,n,r,s),f=zi.pointAt(n,r,a,i,s),p=zi.pointAt(a,i,o,l,s),h=zi.pointAt(d.x,d.y,f.x,f.y,s),m=zi.pointAt(f.x,f.y,p.x,p.y,s);return[[e,t,d.x,d.y,h.x,h.y,u,c],[u,c,m.x,m.y,p.x,p.y,o,l]]}function RF(e,t,n,r,a,i,o,l,s){if(s===0)return J6t([e,n,a,o],[t,r,i,l]);var u=twe(e,t,n,r,a,i,o,l,.5),c=u[0],d=u[1];return c.push(s-1),d.push(s-1),RF.apply(null,c)+RF.apply(null,d)}const gx={extrema:hM,box:function(e,t,n,r,a,i,o,l){for(var s=[e,o],u=[t,l],c=hM(e,n,a,o),d=hM(t,r,i,l),f=0;f0?n:n*-1}const eFt={box:function(e,t,n,r){return{x:e-n,y:t-r,width:n*2,height:r*2}},length:function(e,t,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(e,t,n,r,a,i){var o=n,l=r;if(o===0||l===0)return{x:e,y:t};for(var s=a-e,u=i-t,c=Math.abs(s),d=Math.abs(u),f=o*o,p=l*l,h=Math.PI/4,m,v,y=0;y<4;y++){m=o*Math.cos(h),v=l*Math.sin(h);var b=(f-p)*Math.pow(Math.cos(h),3)/o,x=(p-f)*Math.pow(Math.sin(h),3)/l,E=m-b,S=v-x,C=c-b,w=d-x,I=Math.hypot(S,E),T=Math.hypot(w,C),A=I*Math.asin((E*w-S*C)/(I*T)),O=A/Math.sqrt(f+p-m*m-v*v);h+=O,h=Math.min(Math.PI/2,Math.max(0,h))}return{x:e+pae(m,s),y:t+pae(v,u)}},pointDistance:function(e,t,n,r,a,i){var o=this.nearestPoint(e,t,n,r,a,i);return ko(o.x,o.y,a,i)},pointAt:function(e,t,n,r,a){var i=2*Math.PI*a;return{x:e+n*Math.cos(i),y:t+r*Math.sin(i)}},tangentAngle:function(e,t,n,r,a){var i=2*Math.PI*a,o=Math.atan2(r*Math.cos(i),-n*Math.sin(i));return N3(o)}};function tFt(e,t,n,r,a,i,o,l){return-1*n*Math.cos(a)*Math.sin(l)-r*Math.sin(a)*Math.cos(l)}function nFt(e,t,n,r,a,i,o,l){return-1*n*Math.sin(a)*Math.sin(l)+r*Math.cos(a)*Math.cos(l)}function rFt(e,t,n){return Math.atan(-t/e*Math.tan(n))}function aFt(e,t,n){return Math.atan(t/(e*Math.tan(n)))}function hae(e,t,n,r,a,i){return n*Math.cos(a)*Math.cos(i)-r*Math.sin(a)*Math.sin(i)+e}function gae(e,t,n,r,a,i){return n*Math.sin(a)*Math.cos(i)+r*Math.cos(a)*Math.sin(i)+t}function iFt(e,t,n,r){var a=Math.atan2(r*e,n*t);return(a+Math.PI*2)%(Math.PI*2)}function mae(e,t,n){return{x:e*Math.cos(n),y:t*Math.sin(n)}}function vae(e,t,n){var r=Math.cos(n),a=Math.sin(n);return[e*r-t*a,e*a+t*r]}const oFt={box:function(e,t,n,r,a,i,o){for(var l=rFt(n,r,a),s=1/0,u=-1/0,c=[i,o],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var f=l+d;iu&&(u=p)}for(var h=aFt(n,r,a),m=1/0,v=-1/0,y=[i,o],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var b=h+d;iv&&(v=x)}return{x:s,y:m,width:u-s,height:v-m}},length:function(e,t,n,r,a,i,o){},nearestPoint:function(e,t,n,r,a,i,o,l,s){var u=vae(l-e,s-t,-a),c=u[0],d=u[1],f=eFt.nearestPoint(0,0,n,r,c,d),p=iFt(n,r,f.x,f.y);po&&(f=mae(n,r,o));var h=vae(f.x,f.y,a);return{x:h[0]+e,y:h[1]+t}},pointDistance:function(e,t,n,r,a,i,o,l,s){var u=this.nearestPoint(e,t,n,r,l,s);return ko(u.x,u.y,l,s)},pointAt:function(e,t,n,r,a,i,o,l){var s=(o-i)*l+i;return{x:hae(e,t,n,r,a,s),y:gae(e,t,n,r,a,s)}},tangentAngle:function(e,t,n,r,a,i,o,l){var s=(o-i)*l+i,u=tFt(e,t,n,r,a,i,o,s),c=nFt(e,t,n,r,a,i,o,s);return N3(Math.atan2(c,u))}};function nwe(e){for(var t=0,n=[],r=0;r1||t<0||e.length<2)return null;var n=nwe(e),r=n.segments,a=n.totalLength;if(a===0)return{x:e[0][0],y:e[0][1]};for(var i=0,o=null,l=0;l=i&&t<=i+d){var f=(t-i)/d;o=zi.pointAt(u[0],u[1],c[0],c[1],f);break}i+=d}return o}function uFt(e,t){if(t>1||t<0||e.length<2)return 0;for(var n=nwe(e),r=n.segments,a=n.totalLength,i=0,o=0,l=0;l=i&&t<=i+d){o=Math.atan2(c[1]-u[1],c[0]-u[0]);break}i+=d}return o}function cFt(e,t,n){for(var r=1/0,a=0;a1){var a=pFt(t,n);return t*r+a*(r-1)}return t}function pFt(e,t){return t?t-e:e*.14}function hFt(e,t){var n=D3(),r=0;if(Ge(e)||e==="")return r;if(n.save(),n.font=t,Jt(e)&&e.includes(` +`)){var a=e.split(` +`);oe(a,function(i){var o=n.measureText(i).width;r1){var a=n[0].charAt(0);n.splice(1,0,n[0].substr(1)),n[0]=a}oe(n,function(i,o){isNaN(i)||(n[o]=+i)}),t[r]=n}),t}function _2(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function _F(e,t){return _2(e)*_2(t)?(e[0]*t[0]+e[1]*t[1])/(_2(e)*_2(t)):1}function bae(e,t){return(e[0]*t[1]1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var h=n*n*(f*f)+r*r*(d*d),m=h?Math.sqrt((n*n*(r*r)-h)/h):1;i===o&&(m*=-1),isNaN(m)&&(m=0);var v=r?m*n*f/r:0,y=n?m*-r*d/n:0,b=(l+u)/2+Math.cos(a)*v-Math.sin(a)*y,x=(s+c)/2+Math.sin(a)*v+Math.cos(a)*y,E=[(d-v)/n,(f-y)/r],S=[(-1*d-v)/n,(-1*f-y)/r],C=bae([1,0],E),w=bae(E,S);return _F(E,S)<=-1&&(w=Math.PI),_F(E,S)>=1&&(w=0),o===0&&w>0&&(w=w-2*Math.PI),o===1&&w<0&&(w=w+2*Math.PI),{cx:b,cy:x,rx:NF(e,[u,c])?0:n,ry:NF(e,[u,c])?0:r,startAngle:C,endAngle:C+w,xRotation:a,arcFlag:i,sweepFlag:o}}function xae(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function xFt(e){e=yFt(e);for(var t=[],n=null,r=null,a=null,i=0,o=e.length,l=0;lMath.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c;var d={xExtra:Math.cos(s/2-u)*(t/2*(1/Math.sin(s/2)))-t/2||0,yExtra:Math.cos(c-s/2)*(t/2*(1/Math.sin(s/2)))-t/2||0};return d}function SFt(e){var t=e.attr(),n=t.path,r=t.stroke,a=r?t.lineWidth:0,i=e.get("segments")||xFt(n),o=EFt(i,a),l=o.x,s=o.y,u=o.width,c=o.height,d={minX:l,minY:s,maxX:l+u,maxY:s+c};return d=TH(e,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}function CFt(e){var t=e.attr(),n=t.x1,r=t.y1,a=t.x2,i=t.y2,o=Math.min(n,a),l=Math.max(n,a),s=Math.min(r,i),u=Math.max(r,i),c={minX:o,maxX:l,minY:s,maxY:u};return c=TH(e,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function wFt(e){var t=e.attr(),n=t.x,r=t.y,a=t.rx,i=t.ry;return{x:n-a,y:r-i,width:a*2,height:i*2}}Xs("rect",XCe);Xs("image",XCe);Xs("circle",QCe);Xs("marker",QCe);Xs("polyline",dFt);Xs("polygon",fFt);Xs("text",gFt);Xs("path",SFt);Xs("line",CFt);Xs("ellipse",wFt);var Eae=0,TFt=1/2,AFt=1/2,IFt=.05,L3=function(){function e(t){var n=t.xField,r=t.yField,a=t.adjustNames,i=a===void 0?["x","y"]:a,o=t.dimValuesMap;this.adjustNames=i,this.xField=n,this.yField=r,this.dimValuesMap=o}return e.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},e.prototype.getAdjustRange=function(t,n,r){var a=this.yField,i=r.indexOf(n),o=r.length,l,s;return!a&&this.isAdjust("y")?(l=0,s=1):o>1?(l=r[i===0?0:i-1],s=r[i===o-1?o-1:i+1],i!==0?l+=(n-l)/2:l-=(s-n)/2,i!==o-1?s-=(s-n)/2:s+=(n-r[o-2])/2):(l=n===0?0:n-.5,s=n===0?1:n+.5),{pre:l,next:s}},e.prototype.adjustData=function(t,n){var r=this,a=this.getDimValues(n);oe(t,function(i,o){oe(a,function(l,s){r.adjustDim(s,l,i,o)})})},e.prototype.groupData=function(t,n){return oe(t,function(r){r[n]===void 0&&(r[n]=Eae)}),Zl(t,n)},e.prototype.adjustDim=function(t,n,r,a){},e.prototype.getDimValues=function(t){var n=this,r=n.xField,a=n.yField,i=vr({},this.dimValuesMap),o=[];if(r&&this.isAdjust("x")&&o.push(r),a&&this.isAdjust("y")&&o.push(a),o.forEach(function(s){i&&i[s]||(i[s]=Bu(t,s).sort(function(u,c){return u-c}))}),!a&&this.isAdjust("y")){var l="y";i[l]=[Eae,1]}return i},e}(),awe={},iwe=function(e){return awe[e.toLowerCase()]},P3=function(e,t){if(iwe(e))throw new Error("Adjust type '"+e+"' existed.");awe[e.toLowerCase()]=t};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var DF=function(e,t){return DF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},DF(e,t)};function F3(e,t){DF(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var bc=function(){return bc=Object.assign||function(t){for(var n,r=1,a=arguments.length;r=0){var h=this.getIntervalOnlyOffset(a,r);p=c+h}else if(!Ge(u)&&Ge(s)&&u>=0){var h=this.getDodgeOnlyOffset(a,r);p=c+h}else if(!Ge(s)&&!Ge(u)&&s>=0&&u>=0){var h=this.getIntervalAndDodgeOffset(a,r);p=c+h}else{var m=f*o/a,v=l*m,h=1/2*(f-a*m-(a-1)*v)+((r+1)*m+r*v)-1/2*m-1/2*f;p=(c+d)/2+h}return p},t.prototype.getIntervalOnlyOffset=function(n,r){var a=this,i=a.defaultSize,o=a.intervalPadding,l=a.xDimensionLegenth,s=a.groupNum,u=a.dodgeRatio,c=a.maxColumnWidth,d=a.minColumnWidth,f=a.columnWidthRatio,p=o/l,h=(1-(s-1)*p)/s*u/(n-1),m=((1-p*(s-1))/s-h*(n-1))/n;if(m=Ge(f)?m:1/s/n*f,!Ge(c)){var v=c/l;m=Math.min(m,v)}if(!Ge(d)){var y=d/l;m=Math.max(m,y)}m=i?i/l:m,h=((1-(s-1)*p)/s-n*m)/(n-1);var b=((1/2+r)*m+r*h+1/2*p)*s-p/2;return b},t.prototype.getDodgeOnlyOffset=function(n,r){var a=this,i=a.defaultSize,o=a.dodgePadding,l=a.xDimensionLegenth,s=a.groupNum,u=a.marginRatio,c=a.maxColumnWidth,d=a.minColumnWidth,f=a.columnWidthRatio,p=o/l,h=1*u/(s-1),m=((1-h*(s-1))/s-p*(n-1))/n;if(m=f?1/s/n*f:m,!Ge(c)){var v=c/l;m=Math.min(m,v)}if(!Ge(d)){var y=d/l;m=Math.max(m,y)}m=i?i/l:m,h=(1-(m*n+p*(n-1))*s)/(s-1);var b=((1/2+r)*m+r*p+1/2*h)*s-h/2;return b},t.prototype.getIntervalAndDodgeOffset=function(n,r){var a=this,i=a.intervalPadding,o=a.dodgePadding,l=a.xDimensionLegenth,s=a.groupNum,u=i/l,c=o/l,d=((1-u*(s-1))/s-c*(n-1))/n,f=((1/2+r)*d+r*c+1/2*u)*s-u/2;return f},t.prototype.getDistribution=function(n){var r=this.adjustDataArray,a=this.cacheMap,i=a[n];return i||(i={},oe(r,function(o,l){var s=Bu(o,n);s.length||s.push(0),oe(s,function(u){i[u]||(i[u]=[]),i[u].push(l)})}),a[n]=i),i},t}(L3);function kFt(e,t){return(t-e)*Math.random()+e}var RFt=function(e){F3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(n){var r=Bo(n),a=as(r);return this.adjustData(r,a),r},t.prototype.adjustDim=function(n,r,a){var i=this,o=this.groupData(a,n);return oe(o,function(l,s){return i.adjustGroup(l,n,parseFloat(s),r)})},t.prototype.getAdjustOffset=function(n){var r=n.pre,a=n.next,i=(a-r)*IFt;return kFt(r+i,a-i)},t.prototype.adjustGroup=function(n,r,a,i){var o=this,l=this.getAdjustRange(r,a,i);return oe(n,function(s){s[r]=o.getAdjustOffset(l)}),n},t}(L3),mM=FLt,_Ft=function(e){F3(t,e);function t(n){var r=e.call(this,n)||this,a=n.adjustNames,i=a===void 0?["y"]:a,o=n.height,l=o===void 0?NaN:o,s=n.size,u=s===void 0?10:s,c=n.reverseOrder,d=c===void 0?!1:c;return r.adjustNames=i,r.height=l,r.size=u,r.reverseOrder=d,r}return t.prototype.process=function(n){var r=this,a=r.yField,i=r.reverseOrder,o=a?this.processStack(n):this.processOneDimStack(n);return i?this.reverse(o):o},t.prototype.reverse=function(n){return n.slice(0).reverse()},t.prototype.processStack=function(n){var r=this,a=r.xField,i=r.yField,o=r.reverseOrder,l=o?this.reverse(n):n,s=new mM,u=new mM;return l.map(function(c){return c.map(function(d){var f,p=ce(d,a,0),h=ce(d,[i]),m=p.toString();if(h=Qe(h)?h[1]:h,!Ge(h)){var v=h>=0?s:u;v.has(m)||v.set(m,0);var y=v.get(m),b=h+y;return v.set(m,b),bc(bc({},d),(f={},f[i]=[y,b],f))}return d})})},t.prototype.processOneDimStack=function(n){var r=this,a=this,i=a.xField,o=a.height,l=a.reverseOrder,s="y",u=l?this.reverse(n):n,c=new mM;return u.map(function(d){return d.map(function(f){var p,h=r.size,m=f[i],v=h*2/o;c.has(m)||c.set(m,v/2);var y=c.get(m);return c.set(m,y+v),bc(bc({},f),(p={},p[s]=y,p))})})},t}(L3),NFt=function(e){F3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(n){var r=as(n),a=this,i=a.xField,o=a.yField,l=this.getXValuesMaxMap(r),s=Math.max.apply(Math,Object.keys(l).map(function(u){return l[u]}));return Hr(n,function(u){return Hr(u,function(c){var d,f,p=c[o],h=c[i];if(Qe(p)){var m=(s-l[h])/2;return bc(bc({},c),(d={},d[o]=Hr(p,function(y){return m+y}),d))}var v=(s-p)/2;return bc(bc({},c),(f={},f[o]=[v,p+v],f))})})},t.prototype.getXValuesMaxMap=function(n){var r=this,a=this,i=a.xField,o=a.yField,l=Zl(n,function(s){return s[i]});return MLt(l,function(s){return r.getDimMaxValue(s,o)})},t.prototype.getDimMaxValue=function(n,r){var a=Hr(n,function(o){return ce(o,r,[])}),i=as(a);return Math.max.apply(Math,i)},t}(L3);P3("Dodge",OFt);P3("Jitter",RFt);P3("Stack",_Ft);P3("Symmetric",NFt);var Sae=function(e,t){return Jt(t)?t:e.invert(e.scale(t))},gC=function(){function e(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return e.prototype.mapping=function(){for(var t=this,n=[],r=0;r1?1:Number(t),r=e.length-1,a=Math.floor(r*n),i=r*n-a,o=e[a],l=a===r?o:e[a+1];return owe([vM(o,l,i,0),vM(o,l,i,1),vM(o,l,i,2)])},D2,swe=function(e){if(e[0]==="#"&&e.length===7)return e;D2||(D2=FFt()),D2.style.color=e;var t=document.defaultView.getComputedStyle(D2,"").getPropertyValue("color"),n=DFt.exec(t),r=n[1].split(/\s*,\s*/).map(function(a){return Number(a)});return t=owe(r),t},zFt=function(e){var t=Jt(e)?e.split("-"):e,n=Hr(t,function(r){return lwe(r.indexOf("#")===-1?swe(r):r)});return function(r){return BFt(n,r)}},HFt=function(e){if(PFt(e)){var t,n=void 0;if(e[0]==="l"){var r=MFt.exec(e),a=+r[1]+90;n=r[2],t="linear-gradient("+a+"deg, "}else if(e[0]==="r"){t="radial-gradient(";var r=$Ft.exec(e);n=r[4]}var i=n.match(LFt);return oe(i,function(o,l){var s=o.split(":");t+=s[1]+" "+s[0]*100+"%",l!==i.length-1&&(t+=", ")}),t+=")",t}return e};const cp={rgb2arr:lwe,gradient:zFt,toRGB:Xy(swe),toCSSGradient:HFt};var jFt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="color",r.names=["color"],Jt(r.values)&&(r.linear=!0),r.gradient=cp.gradient(r.values),r}return t.prototype.getLinearValue=function(n){return this.gradient(n)},t}(gC),UFt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="opacity",r.names=["opacity"],r}return t}(gC),VFt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.names=["x","y"],r.type="position",r}return t.prototype.mapping=function(n,r){var a=this.scales,i=a[0],o=a[1];return Ge(n)||Ge(r)?[]:[Qe(n)?n.map(function(l){return i.scale(l)}):i.scale(n),Qe(r)?r.map(function(l){return o.scale(l)}):o.scale(r)]},t}(gC),WFt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="shape",r.names=["shape"],r}return t.prototype.getLinearValue=function(n){var r=Math.round((this.values.length-1)*n);return this.values[r]},t}(gC),GFt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="size",r.names=["size"],r}return t}(gC),uwe={};function qFt(e){return uwe[e]}function qc(e,t){uwe[e]=t}var AH=function(){function e(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return e.prototype.translate=function(t){return t},e.prototype.change=function(t){vr(this.__cfg__,t),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var t=this;return Hr(this.ticks,function(n,r){return pr(n)?n:{text:t.getText(n,r),tickValue:n,value:t.scale(n)}})},e.prototype.getText=function(t,n){var r=this.formatter,a=r?r(t,n):t;return Ge(a)||!kt(a.toString)?"":a.toString()},e.prototype.getConfig=function(t){return this.__cfg__[t]},e.prototype.init=function(){vr(this,this.__cfg__),this.setDomain(),vl(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var t=this.tickMethod,n=[];if(Jt(t)){var r=qFt(t);if(!r)throw new Error("There is no method to to calculate ticks!");n=r(this)}else kt(t)&&(n=t(this));return n},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(t,n,r){return un(t)?(t-n)/(r-n):NaN},e.prototype.calcValue=function(t,n,r){return n+t*(r-n)},e}(),B3=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cat",n.isCategory=!0,n}return t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var n=0;nthis.max?NaN:this.values[i]},t.prototype.getText=function(n){for(var r=[],a=1;a1?n-1:n}this.translateIndexMap&&(this.translateIndexMap=void 0)},t}(AH),cwe=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,bf="\\d\\d?",pf="\\d\\d",YFt="\\d{3}",KFt="\\d{4}",mx="[^\\s]+",dwe=/\[([^]*?)\]/gm;function fwe(e,t){for(var n=[],r=0,a=e.length;r-1?a:null}};function Tp(e){for(var t=[],n=1;n3?0:(e-e%10!==10?1:0)*e%10]}},rO=Tp({},IH),gwe=function(e){return rO=Tp(rO,e)},wae=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Qo=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length0?"-":"+")+Qo(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Qo(Math.floor(Math.abs(t)/60),2)+":"+Qo(Math.abs(t)%60,2)}},Tae=function(e){return+e-1},Aae=[null,bf],Iae=[null,mx],Oae=["isPm",mx,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],kae=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=+t[1]*60+parseInt(t[2],10);return t[0]==="+"?n:-n}return 0}],JFt={D:["day",bf],DD:["day",pf],Do:["day",bf+mx,function(e){return parseInt(e,10)}],M:["month",bf,Tae],MM:["month",pf,Tae],YY:["year",pf,function(e){var t=new Date,n=+(""+t.getFullYear()).substr(0,2);return+(""+(+e>68?n-1:n)+e)}],h:["hour",bf,void 0,"isPm"],hh:["hour",pf,void 0,"isPm"],H:["hour",bf],HH:["hour",pf],m:["minute",bf],mm:["minute",pf],s:["second",bf],ss:["second",pf],YYYY:["year",KFt],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",pf,function(e){return+e*10}],SSS:["millisecond",YFt],d:Aae,dd:Aae,ddd:Iae,dddd:Iae,MMM:["month",mx,Cae("monthNamesShort")],MMMM:["month",mx,Cae("monthNames")],a:Oae,A:Oae,ZZ:kae,Z:kae},aO={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},mwe=function(e){return Tp(aO,e)},vwe=function(e,t,n){if(t===void 0&&(t=aO.default),n===void 0&&(n={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=aO[t]||t;var r=[];t=t.replace(dwe,function(i,o){return r.push(o),"@@@"});var a=Tp(Tp({},rO),n);return t=t.replace(cwe,function(i){return ZFt[i](e,a)}),t.replace(/@@@/g,function(){return r.shift()})};function ywe(e,t,n){if(n===void 0&&(n={}),typeof t!="string")throw new Error("Invalid format in fecha parse");if(t=aO[t]||t,e.length>1e3)return null;var r=new Date,a={year:r.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],l=t.replace(dwe,function(E,S){return o.push(wae(S)),"@@@"}),s={},u={};l=wae(l).replace(cwe,function(E){var S=JFt[E],C=S[0],w=S[1],I=S[3];if(s[C])throw new Error("Invalid format. "+C+" specified twice in format");return s[C]=!0,I&&(u[I]=!0),i.push(S),"("+w+")"}),Object.keys(u).forEach(function(E){if(!s[E])throw new Error("Invalid format. "+E+" is required in specified format")}),l=l.replace(/@@@/g,function(){return o.shift()});var c=e.match(new RegExp(l,"i"));if(!c)return null;for(var d=Tp(Tp({},rO),n),f=1;f11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return y}var bwe={format:vwe,parse:ywe,defaultI18n:IH,setGlobalDateI18n:gwe,setGlobalDateMasks:mwe};const e8t=Object.freeze(Object.defineProperty({__proto__:null,assign:Tp,default:bwe,defaultI18n:IH,format:vwe,parse:ywe,setGlobalDateI18n:gwe,setGlobalDateMasks:mwe},Symbol.toStringTag,{value:"Module"}));function t8t(e){return function(t,n,r,a){for(var i=Ge(r)?0:r,o=Ge(a)?t.length:a;i>>1;e(t[l])>n?o=l:i=l+1}return i}}var Rae="format";function xwe(e,t){var n=e8t[Rae]||bwe[Rae];return n(e,t)}function iO(e){return Jt(e)&&(e.indexOf("T")>0?e=new Date(e).getTime():e=new Date(e.replace(/-/gi,"/")).getTime()),fCe(e)&&(e=e.getTime()),e}var bu=1e3,tg=60*bu,ng=60*tg,Ed=24*ng,vx=Ed*31,_ae=Ed*365,a1=[["HH:mm:ss",bu],["HH:mm:ss",bu*10],["HH:mm:ss",bu*30],["HH:mm",tg],["HH:mm",tg*10],["HH:mm",tg*30],["HH",ng],["HH",ng*6],["HH",ng*12],["YYYY-MM-DD",Ed],["YYYY-MM-DD",Ed*4],["YYYY-WW",Ed*7],["YYYY-MM",vx],["YYYY-MM",vx*4],["YYYY-MM",vx*6],["YYYY",Ed*380]];function n8t(e,t,n){var r=(t-e)/n,a=t8t(function(o){return o[1]})(a1,r)-1,i=a1[a];return a<0?i=a1[0]:a>=a1.length&&(i=qa(a1)),i}var r8t=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="timeCat",n}return t.prototype.translate=function(n){n=iO(n);var r=this.values.indexOf(n);return r===-1&&(un(n)&&n-1){var i=this.values[a],o=this.formatter;return i=o?o(i,r):xwe(i,this.mask),i}return n},t.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},t.prototype.setDomain=function(){var n=this.values;oe(n,function(r,a){n[a]=iO(r)}),n.sort(function(r,a){return r-a}),e.prototype.setDomain.call(this)},t}(B3),z3=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isContinuous=!0,n}return t.prototype.scale=function(n){if(Ge(n))return NaN;var r=this.rangeMin(),a=this.rangeMax(),i=this.max,o=this.min;if(i===o)return r;var l=this.getScalePercent(n);return r+l*(a-r)},t.prototype.init=function(){e.prototype.init.call(this);var n=this.ticks,r=Ql(n),a=qa(n);rthis.max&&(this.max=a),Ge(this.minLimit)||(this.min=r),Ge(this.maxLimit)||(this.max=a)},t.prototype.setDomain=function(){var n=sCe(this.values),r=n.min,a=n.max;Ge(this.min)&&(this.min=r),Ge(this.max)&&(this.max=a),this.min>this.max&&(this.min=r,this.max=a)},t.prototype.calculateTicks=function(){var n=this,r=e.prototype.calculateTicks.call(this);return this.nice||(r=Gi(r,function(a){return a>=n.min&&a<=n.max})),r},t.prototype.getScalePercent=function(n){var r=this.max,a=this.min;return(n-a)/(r-a)},t.prototype.getInvertPercent=function(n){return(n-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(AH),H3=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="linear",n.isLinear=!0,n}return t.prototype.invert=function(n){var r=this.getInvertPercent(n);return this.min+r*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},t}(z3);function _f(e,t){var n=Math.E,r;return t>=0?r=Math.pow(n,Math.log(t)/e):r=Math.pow(n,Math.log(-t)/e)*-1,r}function Es(e,t){return e===1?1:Math.log(t)/Math.log(e)}function Ewe(e,t,n){Ge(n)&&(n=Math.max.apply(null,e));var r=n;return oe(e,function(a){a>0&&a1&&(r=1),r}var a8t=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n}return t.prototype.invert=function(n){var r=this.base,a=Es(r,this.max),i=this.rangeMin(),o=this.rangeMax()-i,l,s=this.positiveMin;if(s){if(n===0)return 0;l=Es(r,s/r);var u=1/(a-l)*o;if(n=0?1:-1;return Math.pow(l,a)*s},t.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(n){var r=this.max,a=this.min;if(r===a)return 0;var i=this.exponent,o=(_f(i,n)-_f(i,a))/(_f(i,r)-_f(i,a));return o},t}(z3),o8t=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="time",n}return t.prototype.getText=function(n,r){var a=this.translate(n),i=this.formatter;return i?i(a,r):xwe(a,this.mask)},t.prototype.scale=function(n){var r=n;return(Jt(r)||fCe(r))&&(r=this.translate(r)),e.prototype.scale.call(this,r)},t.prototype.translate=function(n){return iO(n)},t.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var n=this.values,r=this.getConfig("min"),a=this.getConfig("max");if((!Ge(r)||!un(r))&&(this.min=this.translate(this.min)),(!Ge(a)||!un(a))&&(this.max=this.translate(this.max)),n&&n.length){var i=[],o=1/0,l=o,s=0;oe(n,function(u){var c=iO(u);if(isNaN(c))throw new TypeError("Invalid Time: "+u+" in time scale!");o>c?(l=o,o=c):l>c&&(l=c),s1&&(this.minTickInterval=l-o),Ge(r)&&(this.min=o),Ge(a)&&(this.max=s)}},t}(H3),Swe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="quantize",n}return t.prototype.invert=function(n){var r=this.ticks,a=r.length,i=this.getInvertPercent(n),o=Math.floor(i*(a-1));if(o>=a-1)return qa(r);if(o<0)return Ql(r);var l=r[o],s=r[o+1],u=o/(a-1),c=(o+1)/(a-1);return l+(i-u)/(c-u)*(s-l)},t.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var n=e.prototype.calculateTicks.call(this);return this.nice||(qa(n)!==this.max&&n.push(this.max),Ql(n)!==this.min&&n.unshift(this.min)),n},t.prototype.getScalePercent=function(n){var r=this.ticks;if(nqa(r))return 1;var a=0;return oe(r,function(i,o){if(n>=i)a=o;else return!1}),a/(r.length-1)},t}(z3),l8t=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="quantile",n}return t.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},t}(Swe),Cwe={};function MF(e){return Cwe[e]}function Yc(e,t){if(MF(e))throw new Error("type '"+e+"' existed.");Cwe[e]=t}var s8t=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="identity",n.isIdentity=!0,n}return t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(n){return this.values[0]!==n&&un(n)?n:this.range[0]},t.prototype.invert=function(n){var r=this.range;return nr[1]?NaN:this.values[0]},t}(AH);function wwe(e){var t=e.values,n=e.tickInterval,r=e.tickCount,a=e.showLast;if(un(n)){var i=Gi(t,function(h,m){return m%n===0}),o=qa(t);return a&&qa(i)!==o&&i.push(o),i}var l=t.length,s=e.min,u=e.max;if(Ge(s)&&(s=0),Ge(u)&&(u=t.length-1),!un(r)||r>=l)return t.slice(s,u+1);if(r<=0||u<=0)return[];for(var c=r===1?l:Math.floor(l/(r-1)),d=[],f=s,p=0;p=u);p++)f=Math.min(s+p*c,u),p===r-1&&a?d.push(t[u]):d.push(t[f]);return d}function u8t(e){var t=e.min,n=e.max,r=e.nice,a=e.tickCount,i=new c8t;return i.domain([t,n]),r&&i.nice(a),i.ticks(a)}var bM=5,Nae=Math.sqrt(50),Dae=Math.sqrt(10),Mae=Math.sqrt(2),c8t=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},e.prototype.nice=function(t){var n,r;t===void 0&&(t=bM);var a=this._domain.slice(),i=0,o=this._domain.length-1,l=this._domain[i],s=this._domain[o],u;return s0?(l=Math.floor(l/u)*u,s=Math.ceil(s/u)*u,u=dA(l,s,t)):u<0&&(l=Math.ceil(l*u)/u,s=Math.floor(s*u)/u,u=dA(l,s,t)),u>0?(a[i]=Math.floor(l/u)*u,a[o]=Math.ceil(s/u)*u,this.domain(a)):u<0&&(a[i]=Math.ceil(l*u)/u,a[o]=Math.floor(s*u)/u,this.domain(a)),this},e.prototype.ticks=function(t){return t===void 0&&(t=bM),d8t(this._domain[0],this._domain[this._domain.length-1],t||bM)},e}();function d8t(e,t,n){var r,a=-1,i,o,l;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0)for(e=Math.ceil(e/l),t=Math.floor(t/l),o=new Array(i=Math.ceil(t-e+1));++a=0?(i>=Nae?10:i>=Dae?5:i>=Mae?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=Nae?10:i>=Dae?5:i>=Mae?2:1)}function $ae(e,t,n){var r;return n==="ceil"?r=Math.ceil(e/t):n==="floor"?r=Math.floor(e/t):r=Math.round(e/t),r*t}function OH(e,t,n){var r=$ae(e,n,"floor"),a=$ae(t,n,"ceil");r=lM(r,n),a=lM(a,n);for(var i=[],o=Math.max((a-r)/(Math.pow(2,12)-1),n),l=r;l<=a;l=l+o){var s=lM(l,o);i.push(s)}return{min:r,max:a,ticks:i}}function kH(e,t,n){var r,a=e.minLimit,i=e.maxLimit,o=e.min,l=e.max,s=e.tickCount,u=s===void 0?5:s,c=Ge(a)?Ge(t)?o:t:a,d=Ge(i)?Ge(n)?l:n:i;if(c>d&&(r=[c,d],d=r[0],c=r[1]),u<=2)return[c,d];for(var f=(d-c)/(u-1),p=[],h=0;h=0&&(s=1),1-l/(o-1)-n+s}function v8t(e,t,n){var r=Ei(t),a=mCe(t,e),i=1;return 1-a/(r-1)-n+i}function y8t(e,t,n,r,a,i){var o=(e-1)/(i-a),l=(t-1)/(Math.max(i,r)-Math.min(n,a));return 2-Math.max(o/l,l/o)}function b8t(e,t){return e>=t?2-(e-1)/(t-1):1}function x8t(e,t,n,r){var a=t-e;return 1-.5*(Math.pow(t-r,2)+Math.pow(e-n,2))/Math.pow(.1*a,2)}function E8t(e,t,n){var r=t-e;if(n>r){var a=(n-r)/2;return 1-Math.pow(a,2)/Math.pow(.1*r,2)}return 1}function S8t(){return 1}function C8t(e,t,n,r,a,i){n===void 0&&(n=5),r===void 0&&(r=!0),a===void 0&&(a=p8t),i===void 0&&(i=[.25,.2,.5,.05]);var o=n<0?0:Math.round(n);if(Number.isNaN(e)||Number.isNaN(t)||typeof e!="number"||typeof t!="number"||!o)return{min:0,max:0,ticks:[]};if(t-e<1e-15||o===1)return{min:e,max:t,ticks:[e]};if(t-e>1e148){var l=n||5,s=(t-e)/l;return{min:e,max:t,ticks:Array(l).fill(null).map(function(D,j){return gh(e+s*j)})}}for(var u={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<1/0;){for(var d=0;du.score&&(!r||I<=e&&T>=t)&&(u.lmin=I,u.lmax=T,u.lstep=A,u.score=L)}y+=1}h+=1}}c+=1}var $=gh(u.lmax),k=gh(u.lmin),P=gh(u.lstep),B=Math.floor(g8t(($-k)/P))+1,F=new Array(B);F[0]=gh(k);for(var d=1;d0)o=Math.floor(Es(t,r));else{var s=Ewe(i,t,a);o=Math.floor(Es(t,s))}for(var u=l-o,c=Math.ceil(u/n),d=[],f=o;f=0?1:-1;return Math.pow(o,t)*l})}function I8t(e,t){var n=e.length*t;return t===1?e[e.length-1]:t===0?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}function O8t(e){var t=e.tickCount,n=e.values;if(!n||!n.length)return[];for(var r=n.slice().sort(function(l,s){return l-s}),a=[],i=0;i1&&(a=a*Math.ceil(l)),r&&a_ae)for(var s=oO(n),u=Math.ceil(i/_ae),c=l;c<=s+u;c=c+u)o.push(N8t(c));else if(i>vx)for(var d=Math.ceil(i/vx),f=$F(t),p=D8t(t,n),c=0;c<=p+d;c=c+d)o.push(M8t(l,c+f));else if(i>Ed)for(var h=new Date(t),m=h.getFullYear(),v=h.getMonth(),y=h.getDate(),b=Math.ceil(i/Ed),x=$8t(t,n),c=0;cng)for(var h=new Date(t),m=h.getFullYear(),v=h.getMonth(),b=h.getDate(),E=h.getHours(),S=Math.ceil(i/ng),C=L8t(t,n),c=0;c<=C+S;c=c+S)o.push(new Date(m,v,b,E+c).getTime());else if(i>tg)for(var w=P8t(t,n),I=Math.ceil(i/tg),c=0;c<=w+I;c=c+I)o.push(t+c*tg);else{var T=i;T=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+i+") is too small, increase the value to solve the problem!"),o}qc("cat",wwe);qc("time-cat",_8t);qc("wilkinson-extended",w8t);qc("r-pretty",k8t);qc("time",R8t);qc("time-pretty",F8t);qc("log",T8t);qc("pow",A8t);qc("quantile",O8t);qc("d3-linear",f8t);Yc("cat",B3);Yc("category",B3);Yc("identity",s8t);Yc("linear",H3);Yc("log",a8t);Yc("pow",i8t);Yc("time",o8t);Yc("timeCat",r8t);Yc("quantize",Swe);Yc("quantile",l8t);var Awe={},Iwe=function(e){return Awe[e.toLowerCase()]},mC=function(e,t){if(Iwe(e))throw new Error("Attribute type '".concat(e,"' existed."));Awe[e.toLowerCase()]=t};mC("Color",jFt);mC("Opacity",UFt);mC("Position",VFt);mC("Shape",WFt);mC("Size",GFt);var RH=function(){function e(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var n=t.start,r=t.end,a=t.matrix,i=a===void 0?[1,0,0,0,1,0,0,0,1]:a,o=t.isTransposed,l=o===void 0?!1:o;this.start=n,this.end=r,this.matrix=i,this.originalMatrix=Wt([],i),this.isTransposed=l}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(t){vr(this,t),this.initial()},e.prototype.convertDim=function(t,n){var r,a=this[n],i=a.start,o=a.end;return this.isReflect(n)&&(r=[o,i],i=r[0],o=r[1]),i+t*(o-i)},e.prototype.invertDim=function(t,n){var r,a=this[n],i=a.start,o=a.end;return this.isReflect(n)&&(r=[o,i],i=r[0],o=r[1]),(t-i)/(o-i)},e.prototype.applyMatrix=function(t,n,r){r===void 0&&(r=0);var a=this.matrix,i=[t,n,r];return RE(i,i,a),i},e.prototype.invertMatrix=function(t,n,r){r===void 0&&(r=0);var a=this.matrix,i=SPt([0,0,0,0,0,0,0,0,0],a),o=[t,n,r];return i&&RE(o,o,i),o},e.prototype.convert=function(t){var n=this.convertPoint(t),r=n.x,a=n.y,i=this.applyMatrix(r,a,1);return{x:i[0],y:i[1]}},e.prototype.invert=function(t){var n=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:n[0],y:n[1]})},e.prototype.rotate=function(t){var n=this.matrix,r=this.center;return iv(n,n,[-r.x,-r.y]),vH(n,n,t),iv(n,n,[r.x,r.y]),this},e.prototype.reflect=function(t){return t==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(t,n){var r=this.matrix,a=this.center;return iv(r,r,[-a.x,-a.y]),RCe(r,r,[t,n]),iv(r,r,[a.x,a.y]),this},e.prototype.translate=function(t,n){var r=this.matrix;return iv(r,r,[t,n]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(t){return t==="x"?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(t){this.matrix=t||Wt([],this.originalMatrix)},e}(),Owe=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.isRect=!0,r.type="cartesian",r.initial(),r}return t.prototype.initial=function(){e.prototype.initial.call(this);var n=this.start,r=this.end;this.x={start:n.x,end:r.x},this.y={start:n.y,end:r.y}},t.prototype.convertPoint=function(n){var r,a=n.x,i=n.y;return this.isTransposed&&(r=[i,a],a=r[0],i=r[1]),{x:this.convertDim(a,"x"),y:this.convertDim(i,"y")}},t.prototype.invertPoint=function(n){var r,a=this.invertDim(n.x,"x"),i=this.invertDim(n.y,"y");return this.isTransposed&&(r=[i,a],a=r[0],i=r[1]),{x:a,y:i}},t}(RH),B8t=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;r.isHelix=!0,r.type="helix";var a=n.startAngle,i=a===void 0?1.25*Math.PI:a,o=n.endAngle,l=o===void 0?7.25*Math.PI:o,s=n.innerRadius,u=s===void 0?0:s,c=n.radius;return r.startAngle=i,r.endAngle=l,r.innerRadius=u,r.radius=c,r.initial(),r}return t.prototype.initial=function(){e.prototype.initial.call(this);var n=(this.endAngle-this.startAngle)/(2*Math.PI)+1,r=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(r=r*this.radius),this.d=Math.floor(r*(1-this.innerRadius)/n),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*r,end:this.innerRadius*r+this.d*.99}},t.prototype.convertPoint=function(n){var r,a=n.x,i=n.y;this.isTransposed&&(r=[i,a],a=r[0],i=r[1]);var o=this.convertDim(a,"x"),l=this.a*o,s=this.convertDim(i,"y");return{x:this.center.x+Math.cos(o)*(l+s),y:this.center.y+Math.sin(o)*(l+s)}},t.prototype.invertPoint=function(n){var r,a=this.d+this.y.start,i=OCe([0,0],[n.x,n.y],[this.center.x,this.center.y]),o=yH(i,[1,0],!0),l=o*this.a;Rv(i)this.width/r?(l=this.width/r,this.circleCenter={x:this.center.x-(.5-i)*this.width,y:this.center.y-(.5-o)*l*a}):(l=this.height/a,this.circleCenter={x:this.center.x-(.5-i)*l*r,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=l*this.radius:(this.radius<=0||this.radius>l)&&(this.polarRadius=l):this.polarRadius=l,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(n){var r,a=this.getCenter(),i=n.x,o=n.y;return this.isTransposed&&(r=[o,i],i=r[0],o=r[1]),i=this.convertDim(i,"x"),o=this.convertDim(o,"y"),{x:a.x+Math.cos(i)*o,y:a.y+Math.sin(i)*o}},t.prototype.invertPoint=function(n){var r,a=this.getCenter(),i=[n.x-a.x,n.y-a.y],o=this,l=o.startAngle,s=o.endAngle;this.isReflect("x")&&(r=[s,l],l=r[0],s=r[1]);var u=[1,0,0,0,1,0,0,0,1];vH(u,u,l);var c=[1,0,0];RE(c,c,u);var d=[c[0],c[1]],f=yH(d,i,s0?h:-h;var m=this.invertDim(p,"y"),v={x:0,y:0};return v.x=this.isTransposed?m:h,v.y=this.isTransposed?h:m,v},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var n=this.startAngle,r=this.endAngle;if(Math.abs(r-n)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var a=[0,Math.cos(n),Math.cos(r)],i=[0,Math.sin(n),Math.sin(r)],o=Math.min(n,r);o=0;r--)e.removeChild(t[r])}function V8t(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function LE(e){var t=e.start,n=e.end,r=Math.min(t.x,n.x),a=Math.min(t.y,n.y),i=Math.max(t.x,n.x),o=Math.max(t.y,n.y);return{x:r,y:a,minX:r,minY:a,maxX:i,maxY:o,width:i-r,height:o-a}}function W8t(e){var t=e.map(function(l){return l.x}),n=e.map(function(l){return l.y}),r=Math.min.apply(Math,t),a=Math.min.apply(Math,n),i=Math.max.apply(Math,t),o=Math.max.apply(Math,n);return{x:r,y:a,minX:r,minY:a,maxX:i,maxY:o,width:i-r,height:o-a}}function U3(e,t,n,r){var a=e+n,i=t+r;return{x:e,y:t,width:n,height:r,minX:e,minY:t,maxX:isNaN(a)?0:a,maxY:isNaN(i)?0:i}}function rg(e,t,n){return(1-n)*e+t*n}function Zv(e,t,n){return{x:e.x+Math.cos(n)*t,y:e.y+Math.sin(n)*t}}function G8t(e,t){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}var sO=function(e,t,n){return n===void 0&&(n=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)0?oe(s,function(u){if(u.get("visible")){if(u.isGroup()&&u.get("children").length===0)return!0;var c=Dwe(u),d=u.applyToMatrix([c.minX,c.minY,1]),f=u.applyToMatrix([c.minX,c.maxY,1]),p=u.applyToMatrix([c.maxX,c.minY,1]),h=u.applyToMatrix([c.maxX,c.maxY,1]),m=Math.min(d[0],f[0],p[0],h[0]),v=Math.max(d[0],f[0],p[0],h[0]),y=Math.min(d[1],f[1],p[1],h[1]),b=Math.max(d[1],f[1],p[1],h[1]);mi&&(i=v),yl&&(l=b)}}):(a=0,i=0,o=0,l=0),r=U3(a,o,i-a,l-o)}return n?q8t(r,n):r}function Y8t(e,t){if(!(!e.getClip()&&!t.getClip())){var n=t.getClip();if(!n){e.setClip(null);return}var r={type:n.get("type"),attrs:n.attr()};e.setClip(r)}}function al(e){return e+"px"}function Mwe(e,t,n,r){var a=G8t(e,t),i=r/a,o=0;return n==="start"?o=0-i:n==="end"&&(o=1+i),{x:rg(e.x,t.x,o),y:rg(e.y,t.y,o)}}var K8t={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},$we=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.initCfg(),r}return t.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},t.prototype.clear=function(){},t.prototype.update=function(n){var r=this,a=this.get("defaultCfg")||{};oe(n,function(i,o){var l=r.get(o),s=i;l!==i&&(pr(i)&&a[o]&&(s=At({},a[o],i)),r.set(o,s))}),this.updateInner(n),this.afterUpdate(n)},t.prototype.updateInner=function(n){},t.prototype.afterUpdate=function(n){Cp(n,"visible")&&(n.visible?this.show():this.hide()),Cp(n,"capture")&&this.setCapture(n.capture)},t.prototype.getLayoutBBox=function(){return this.getBBox()},t.prototype.getLocationType=function(){return this.get("locationType")},t.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},t.prototype.setOffset=function(n,r){this.update({offsetX:n,offsetY:r})},t.prototype.setLocation=function(n){var r=U({},n);this.update(r)},t.prototype.getLocation=function(){var n=this,r={},a=this.get("locationType"),i=K8t[a];return oe(i,function(o){r[o]=n.get(o)}),r},t.prototype.isList=function(){return!1},t.prototype.isSlider=function(){return!1},t.prototype.init=function(){},t.prototype.initCfg=function(){var n=this,r=this.get("defaultCfg");oe(r,function(a,i){var o=n.get(i);if(pr(o)){var l=At({},a,o);n.set(i,l)}})},t}(w3),ih="update_status",X8t=["visible","tip","delegateObject"],Q8t=["container","group","shapesMap","isRegister","isUpdating","destroyed"],po=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},t.prototype.remove=function(){this.clear();var n=this.get("group");n.remove()},t.prototype.clear=function(){var n=this.get("group");n.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},t.prototype.getChildComponentById=function(n){var r=this.getElementById(n),a=r&&r.get("component");return a},t.prototype.getElementById=function(n){return this.get("shapesMap")[n]},t.prototype.getElementByLocalId=function(n){var r=this.getElementId(n);return this.getElementById(r)},t.prototype.getElementsByName=function(n){var r=[];return oe(this.get("shapesMap"),function(a){a.get("name")===n&&r.push(a)}),r},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateInner=function(n){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},t.prototype.render=function(){var n=this.get("offScreenGroup");n||(n=this.offScreenRender());var r=this.get("group");this.updateElements(n,r),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},t.prototype.show=function(){var n=this.get("group");n.show(),this.set("visible",!0)},t.prototype.hide=function(){var n=this.get("group");n.hide(),this.set("visible",!1)},t.prototype.setCapture=function(n){var r=this.get("group");r.set("capture",n),this.set("capture",n)},t.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},t.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},t.prototype.getLayoutBBox=function(){var n=this.get("group"),r=this.getInnerLayoutBBox(),a=n.getTotalMatrix();return a&&(r=U8t(a,r)),r},t.prototype.on=function(n,r,a){var i=this.get("group");return i.on(n,r,a),this},t.prototype.off=function(n,r){var a=this.get("group");return a&&a.off(n,r),this},t.prototype.emit=function(n,r){var a=this.get("group");a.emit(n,r)},t.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},t.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},t.prototype.delegateEmit=function(n,r){var a=this.get("group");r.target=a,a.emit(n,r),Rwe(a,n,r)},t.prototype.createOffScreenGroup=function(){var n=this.get("group"),r=n.getGroupBase(),a=new r({delegateObject:this.getDelegateObject()});return a},t.prototype.applyOffset=function(){var n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:n,y:r})},t.prototype.initGroup=function(){var n=this.get("container");this.set("group",n.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},t.prototype.offScreenRender=function(){this.clearOffScreenCache();var n=this.createOffScreenGroup();return this.renderInner(n),this.set("offScreenGroup",n),this.set("offScreenBBox",Dwe(n)),n},t.prototype.addGroup=function(n,r){this.appendDelegateObject(n,r);var a=n.addGroup(r);return this.get("isRegister")&&this.registerElement(a),a},t.prototype.addShape=function(n,r){this.appendDelegateObject(n,r);var a=n.addShape(r);return this.get("isRegister")&&this.registerElement(a),a},t.prototype.addComponent=function(n,r){var a=r.id,i=r.component,o=mr(r,["id","component"]),l=new i(U(U({},o),{id:a,container:n,updateAutoRender:this.get("updateAutoRender")}));return l.init(),l.render(),this.get("isRegister")&&this.registerElement(l.get("group")),l},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){var n=this.get("group");n.off()},t.prototype.getElementId=function(n){var r=this.get("id"),a=this.get("name");return r+"-"+a+"-"+n},t.prototype.registerElement=function(n){var r=n.get("id");this.get("shapesMap")[r]=n},t.prototype.unregisterElement=function(n){var r=n.get("id");delete this.get("shapesMap")[r]},t.prototype.moveElementTo=function(n,r){var a=_H(r);n.attr("matrix",a)},t.prototype.addAnimation=function(n,r,a){var i=r.attr("opacity");Ge(i)&&(i=1),r.attr("opacity",0),r.animate({opacity:i},a)},t.prototype.removeAnimation=function(n,r,a){r.animate({opacity:0},a)},t.prototype.updateAnimation=function(n,r,a,i){r.animate(a,i)},t.prototype.updateElements=function(n,r){var a=this,i=this.get("animate"),o=this.get("animateOption"),l=n.getChildren().slice(0),s;oe(l,function(u){var c=u.get("id"),d=a.getElementById(c),f=u.get("name");if(d)if(u.get("isComponent")){var p=u.get("component"),h=d.get("component"),m=fH(p.cfg,fLt(Yy(p.cfg),Q8t));h.update(m),d.set(ih,"update")}else{var v=a.getReplaceAttrs(d,u);i&&o.update?a.updateAnimation(f,d,v,o.update):d.attr(v),u.isGroup()&&a.updateElements(u,d),oe(X8t,function(E){d.set(E,u.get(E))}),Y8t(d,u),s=d,d.set(ih,"update")}else{r.add(u);var y=r.getChildren();if(y.splice(y.length-1,1),s){var b=y.indexOf(s);y.splice(b+1,0,u)}else y.unshift(u);if(a.registerElement(u),u.set(ih,"add"),u.get("isComponent")){var p=u.get("component");p.set("container",r)}else u.isGroup()&&a.registerNewGroup(u);if(s=u,i){var x=a.get("isInit")?o.appear:o.enter;x&&a.addAnimation(f,u,x)}}})},t.prototype.clearUpdateStatus=function(n){var r=n.getChildren();oe(r,function(a){a.set(ih,null)})},t.prototype.clearOffScreenCache=function(){var n=this.get("offScreenGroup");n&&n.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},t.prototype.getDelegateObject=function(){var n,r=this.get("name"),a=(n={},n[r]=this,n.component=this,n);return a},t.prototype.appendDelegateObject=function(n,r){var a=n.get("delegateObject");r.delegateObject||(r.delegateObject={}),vr(r.delegateObject,a)},t.prototype.getReplaceAttrs=function(n,r){var a=n.attr(),i=r.attr();return oe(a,function(o,l){i[l]===void 0&&(i[l]=void 0)}),i},t.prototype.registerNewGroup=function(n){var r=this,a=n.getChildren();oe(a,function(i){r.registerElement(i),i.set(ih,"add"),i.isGroup()&&r.registerNewGroup(i)})},t.prototype.deleteElements=function(){var n=this,r=this.get("shapesMap"),a=[];oe(r,function(l,s){!l.get(ih)||l.destroyed?a.push([s,l]):l.set(ih,null)});var i=this.get("animate"),o=this.get("animateOption");oe(a,function(l){var s=l[0],u=l[1];if(!u.destroyed){var c=u.get("name");if(i&&o.leave){var d=vr({callback:function(){n.removeElement(u)}},o.leave);n.removeAnimation(c,u,d)}else n.removeElement(u)}delete r[s]})},t.prototype.removeElement=function(n){if(n.get("isGroup")){var r=n.get("component");r&&r.destroy()}n.remove()},t}($we),xM="…";function Z8t(e){for(var t=0,n=0;n0&&e.charCodeAt(t)<128?1:2}function J8t(e,t,n){n===void 0&&(n="tail");var r=e.length,a="";if(n==="tail"){for(var i=0,o=0;i=19968&&l<=40869?i+=2:i+=1}i>n&&(n=i,r=a)}return e[r].getBBox().width}function LF(e){if(e.length>n5t)return r5t(e);var t=0;return oe(e,function(n){var r=n.getBBox(),a=r.width;t=0?f=J8t(i,d,r):f=e5t,f&&(t.attr("text",f),c=!0)}return c?t.set("tip",i):t.set("tip",null),c}function V3(e,t){var n=t.x,r=t.y,a=t.content,i=t.style,o=t.id,l=t.name,s=t.rotate,u=t.maxLength,c=t.autoEllipsis,d=t.isVertical,f=t.ellipsisPosition,p=t.background,h=e.addGroup({id:o+"-group",name:l+"-group",attrs:{x:n,y:r}}),m=h.addShape({type:"text",id:o,name:l,attrs:U({x:0,y:0,text:a},i)}),v=lO(ce(p,"padding",0));if(u&&c){var y=u-(v[1]+v[3]);yx(!d,m,y,f)}if(p){var b=ce(p,"style",{}),x=m.getCanvasBBox(),E=x.minX,S=x.minY,C=x.width,w=x.height,I=h.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:U({x:E-v[3],y:S-v[0],width:C+v[1]+v[3],height:w+v[0]+v[2]},b)});I.toBack()}NH(h,n,r),Nwe(h,s,n,r)}const wn={fontFamily:` + BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", + Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", + SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"};var i5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:wn.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:wn.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:wn.lineColor,lineWidth:1}}}})},t.prototype.renderInner=function(n){this.renderLine(n),this.get("text")&&this.renderLabel(n)},t.prototype.renderLine=function(n){var r=this.get("start"),a=this.get("end"),i=this.get("style");this.addShape(n,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:U({x1:r.x,y1:r.y,x2:a.x,y2:a.y},i)})},t.prototype.getLabelPoint=function(n,r,a){var i;return a==="start"?i=0:a==="center"?i=.5:Jt(a)&&a.indexOf("%")!==-1?i=parseInt(a,10)/100:un(a)?i=a:i=1,(i>1||i<0)&&(i=1),{x:rg(n.x,r.x,i),y:rg(n.y,r.y,i)}},t.prototype.renderLabel=function(n){var r=this.get("text"),a=this.get("start"),i=this.get("end"),o=r.position,l=r.content,s=r.style,u=r.offsetX,c=r.offsetY,d=r.autoRotate,f=r.maxLength,p=r.autoEllipsis,h=r.ellipsisPosition,m=r.background,v=r.isVertical,y=v===void 0?!1:v,b=this.getLabelPoint(a,i,o),x=b.x+u,E=b.y+c,S={id:this.getElementId("line-text"),name:"annotation-line-text",x,y:E,content:l,style:s,maxLength:f,autoEllipsis:p,ellipsisPosition:h,background:m,isVertical:y};if(d){var C=[i.x-a.x,i.y-a.y];S.rotate=Math.atan2(C[1],C[0])}V3(n,S)},t}(po),o5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:wn.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:wn.fontFamily}}})},t.prototype.setLocation=function(n){this.set("x",n.x),this.set("y",n.y),this.resetLocation()},t.prototype.renderInner=function(n){var r=this.getLocation(),a=r.x,i=r.y,o=this.get("content"),l=this.get("style"),s=this.getElementId("text"),u=this.get("name")+"-text",c=this.get("maxLength"),d=this.get("autoEllipsis"),f=this.get("isVertical"),p=this.get("ellipsisPosition"),h=this.get("background"),m=this.get("rotate"),v={id:s,name:u,x:a,y:i,content:o,style:l,maxLength:c,autoEllipsis:d,isVertical:f,ellipsisPosition:p,background:h,rotate:m};V3(n,v)},t.prototype.resetLocation=function(){var n=this.getElementByLocalId("text-group");if(n){var r=this.getLocation(),a=r.x,i=r.y,o=this.get("rotate");NH(n,a,i),Nwe(n,o,a,i)}},t}(po),l5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},t.prototype.renderInner=function(n){this.renderArc(n)},t.prototype.getArcPath=function(){var n=this.getLocation(),r=n.center,a=n.radius,i=n.startAngle,o=n.endAngle,l=Zv(r,a,i),s=Zv(r,a,o),u=o-i>Math.PI?1:0,c=[["M",l.x,l.y]];if(o-i===Math.PI*2){var d=Zv(r,a,i+Math.PI);c.push(["A",a,a,0,u,1,d.x,d.y]),c.push(["A",a,a,0,u,1,s.x,s.y])}else c.push(["A",a,a,0,u,1,s.x,s.y]);return c},t.prototype.renderArc=function(n){var r=this.getArcPath(),a=this.get("style");this.addShape(n,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:U({path:r},a)})},t}(po),s5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:wn.regionColor,opacity:.4}}})},t.prototype.renderInner=function(n){this.renderRegion(n)},t.prototype.renderRegion=function(n){var r=this.get("start"),a=this.get("end"),i=this.get("style"),o=LE({start:r,end:a});this.addShape(n,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:U({x:o.x,y:o.y,width:o.width,height:o.height},i)})},t}(po),u5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(n){this.renderImage(n)},t.prototype.getImageAttrs=function(){var n=this.get("start"),r=this.get("end"),a=this.get("style"),i=LE({start:n,end:r}),o=this.get("src");return U({x:i.x,y:i.y,img:o,width:i.width,height:i.height},a)},t.prototype.renderImage=function(n){this.addShape(n,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},t}(po),c5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:wn.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:wn.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:wn.fontFamily}}}})},t.prototype.renderInner=function(n){ce(this.get("line"),"display")&&this.renderLine(n),ce(this.get("text"),"display")&&this.renderText(n),ce(this.get("point"),"display")&&this.renderPoint(n),this.get("autoAdjust")&&this.autoAdjust(n)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},t.prototype.renderPoint=function(n){var r=this.getShapeAttrs().point;this.addShape(n,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:r})},t.prototype.renderLine=function(n){var r=this.getShapeAttrs().line;this.addShape(n,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:r})},t.prototype.renderText=function(n){var r=this.getShapeAttrs().text,a=r.x,i=r.y,o=r.text,l=mr(r,["x","y","text"]),s=this.get("text"),u=s.background,c=s.maxLength,d=s.autoEllipsis,f=s.isVertival,p=s.ellipsisPosition,h={x:a,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:l,background:u,maxLength:c,autoEllipsis:d,isVertival:f,ellipsisPosition:p};V3(n,h)},t.prototype.autoAdjust=function(n){var r=this.get("direction"),a=this.get("x"),i=this.get("y"),o=ce(this.get("line"),"length",0),l=this.get("coordinateBBox"),s=n.getBBox(),u=s.minX,c=s.maxX,d=s.minY,f=s.maxY,p=n.findById(this.getElementId("text-group")),h=n.findById(this.getElementId("text")),m=n.findById(this.getElementId("line"));if(l&&p){var v=p.attr("x"),y=p.attr("y"),b=h.getCanvasBBox(),x=b.width,E=b.height,S=0,C=0;if(a+u<=l.minX)if(r==="leftward")S=1;else{var w=l.minX-(a+u);v=p.attr("x")+w}else if(a+c>=l.maxX)if(r==="rightward")S=-1;else{var w=a+c-l.maxX;v=p.attr("x")-w}if(S&&(m&&m.attr("path",[["M",0,0],["L",o*S,0]]),v=(o+2+x)*S),i+d<=l.minY)if(r==="upward")C=1;else{var w=l.minY-(i+d);y=p.attr("y")+w}else if(i+f>=l.maxY)if(r==="downward")C=-1;else{var w=i+f-l.maxY;y=p.attr("y")-w}C&&(m&&m.attr("path",[["M",0,0],["L",0,o*C]]),y=(o+2+E)*C),(v!==p.attr("x")||y!==p.attr("y"))&&NH(p,v,y)}},t.prototype.getShapeAttrs=function(){var n=ce(this.get("line"),"display"),r=ce(this.get("point"),"style",{}),a=ce(this.get("line"),"style",{}),i=ce(this.get("text"),"style",{}),o=this.get("direction"),l=n?ce(this.get("line"),"length",0):0,s=0,u=0,c="top",d="start";switch(o){case"upward":u=-1,c="bottom";break;case"downward":u=1,c="top";break;case"leftward":s=-1,d="end";break;case"rightward":s=1,d="start";break}return{point:U({x:0,y:0},r),line:U({path:[["M",0,0],["L",l*s,l*u]]},a),text:U({x:(l+2)*s,y:(l+2)*u,text:ce(this.get("text"),"content",""),textBaseline:c,textAlign:d},i)}},t}(po),d5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:wn.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:wn.textColor,fontFamily:wn.fontFamily}}}})},t.prototype.renderInner=function(n){var r=ce(this.get("region"),"style",{});ce(this.get("text"),"style",{});var a=this.get("lineLength")||0,i=this.get("points");if(i.length){var o=W8t(i),l=[];l.push(["M",i[0].x,o.minY-a]),i.forEach(function(u){l.push(["L",u.x,u.y])}),l.push(["L",i[i.length-1].x,i[i.length-1].y-a]),this.addShape(n,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:U({path:l},r)});var s=U({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-a},this.get("text"));V3(n,s)}},t}(po),f5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(n){var r=this,a=this.get("start"),i=this.get("end"),o=this.addGroup(n,{id:this.getElementId("region-filter"),capture:!1});oe(this.get("shapes"),function(s,u){var c=s.get("type"),d=Bo(s.attr());r.adjustShapeAttrs(d),r.addShape(o,{id:r.getElementId("shape-"+c+"-"+u),capture:!1,type:c,attrs:d})});var l=LE({start:a,end:i});o.setClip({type:"rect",attrs:{x:l.minX,y:l.minY,width:l.width,height:l.height}})},t.prototype.adjustShapeAttrs=function(n){var r=this.get("color");n.fill&&(n.fill=n.fillStyle=r),n.stroke=n.strokeStyle=r},t}(po),p5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"shape",draw:Gf})},t.prototype.renderInner=function(n){var r=this.get("render");kt(r)&&r(n)},t}(po),MH=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){var n=this.get("container");n.style.display="",this.set("visible",!0)},t.prototype.hide=function(){var n=this.get("container");n.style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(n){var r=this.getContainer(),a=n?"auto":"none";r.style.pointerEvents=a,this.set("capture",n)},t.prototype.getBBox=function(){var n=this.getContainer(),r=parseFloat(n.style.left)||0,a=parseFloat(n.style.top)||0;return U3(r,a,n.clientWidth,n.clientHeight)},t.prototype.clear=function(){var n=this.get("container");DH(n)},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var n=this.get("container");if(Ge(n)){n=this.createDom();var r=this.get("parent");Jt(r)&&(r=document.getElementById(r),this.set("parent",r)),r.appendChild(n),this.get("containerId")&&n.setAttribute("id",this.get("containerId")),this.set("container",n)}else Jt(n)&&(n=document.getElementById(n),this.set("container",n));this.get("parent")||this.set("parent",n.parentNode)},t.prototype.resetStyles=function(){var n=this.get("domStyles"),r=this.get("defaultStyles");n?n=At({},r,n):n=r,this.set("domStyles",n)},t.prototype.applyStyles=function(){var n=this.get("domStyles");if(n){var r=this.getContainer();this.applyChildrenStyles(r,n);var a=this.get("containerClassName");if(a&&V8t(r,a)){var i=n[a];wo(r,i)}}},t.prototype.applyChildrenStyles=function(n,r){oe(r,function(a,i){var o=n.getElementsByClassName(i);oe(o,function(l){wo(l,a)})})},t.prototype.applyStyle=function(n,r){var a=this.get("domStyles");wo(r,a[n])},t.prototype.createDom=function(){var n=this.get("containerTpl");return up(n)},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var n=this.get("container");n&&n.parentNode&&n.parentNode.removeChild(n)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(n){Cp(n,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}($we),h5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var n=this.getContainer(),r=this.get("html");DH(n);var a=kt(r)?r(n):r;if(pCe(a))n.appendChild(a);else if(Jt(a)||un(a)){var i=up(""+a);i&&n.appendChild(i)}this.resetPosition()},t.prototype.resetPosition=function(){var n=this.getContainer(),r=this.getLocation(),a=r.x,i=r.y,o=this.get("alignX"),l=this.get("alignY"),s=this.get("offsetX"),u=this.get("offsetY"),c=VLt(n),d=jLt(n),f={x:a,y:i};o==="middle"?f.x-=Math.round(c/2):o==="right"&&(f.x-=Math.round(c)),l==="middle"?f.y-=Math.round(d/2):l==="bottom"&&(f.y-=Math.round(d)),s&&(f.x+=s),u&&(f.y+=u),wo(n,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},t}(MH);const g5t=Object.freeze(Object.defineProperty({__proto__:null,Arc:l5t,DataMarker:c5t,DataRegion:d5t,Html:h5t,Image:u5t,Line:i5t,Region:s5t,RegionFilter:f5t,Shape:p5t,Text:o5t},Symbol.toStringTag,{value:"Module"}));function M1(e,t,n){var r=t+"Style",a=null;return oe(n,function(i,o){e[o]&&i[r]&&(a||(a={}),vr(a,i[r]))}),a}var Lwe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:wn.lineColor}},tickLine:{style:{lineWidth:1,stroke:wn.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:wn.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:wn.textColor,fontFamily:wn.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:wn.textColor,textBaseline:"middle",fontFamily:wn.fontFamily,textAlign:"center"},iconStyle:{fill:wn.descriptionIconFill,stroke:wn.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:wn.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(n){this.get("line")&&this.drawLine(n),this.drawTicks(n),this.get("title")&&this.drawTitle(n)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("ticks")},t.prototype.setItems=function(n){this.update({ticks:n})},t.prototype.updateItem=function(n,r){vr(n,r),this.clear(),this.render()},t.prototype.clearItems=function(){var n=this.getElementByLocalId("label-group");n&&n.clear()},t.prototype.setItemState=function(n,r,a){n[r]=a,this.updateTickStates(n)},t.prototype.hasState=function(n,r){return!!n[r]},t.prototype.getItemStates=function(n){var r=this.get("tickStates"),a=[];return oe(r,function(i,o){n[o]&&a.push(o)}),a},t.prototype.clearItemsState=function(n){var r=this,a=this.getItemsByState(n);oe(a,function(i){r.setItemState(i,n,!1)})},t.prototype.getItemsByState=function(n){var r=this,a=this.getItems();return Gi(a,function(i){return r.hasState(i,n)})},t.prototype.getSidePoint=function(n,r){var a=this,i=a.getSideVector(r,n);return{x:n.x+i[0],y:n.y+i[1]}},t.prototype.getTextAnchor=function(n){var r;return Bi(n[0],0)?r="center":n[0]>0?r="start":n[0]<0&&(r="end"),r},t.prototype.getTextBaseline=function(n){var r;return Bi(n[1],0)?r="middle":n[1]>0?r="top":n[1]<0&&(r="bottom"),r},t.prototype.processOverlap=function(n){},t.prototype.drawLine=function(n){var r=this.getLinePath(),a=this.get("line");this.addShape(n,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:vr({path:r},a.style)})},t.prototype.getTickLineItems=function(n){var r=this,a=[],i=this.get("tickLine"),o=i.alignTick,l=i.length,s=1,u=n.length;return u>=2&&(s=n[1].value-n[0].value),oe(n,function(c){var d=c.point;o||(d=r.getTickPoint(c.value-s/2));var f=r.getSidePoint(d,l);a.push({startPoint:d,tickValue:c.value,endPoint:f,tickId:c.id,id:"tickline-"+c.id})}),a},t.prototype.getSubTickLineItems=function(n){var r=[],a=this.get("subTickLine"),i=a.count,o=n.length;if(o>=2)for(var l=0;l0){var a=Ei(r);if(a>n.threshold){var i=Math.ceil(a/n.threshold),o=r.filter(function(l,s){return s%i===0});this.set("ticks",o),this.set("originalTicks",r)}}},t.prototype.getLabelAttrs=function(n,r,a){var i=this.get("label"),o=i.offset,l=i.offsetX,s=i.offsetY,u=i.rotate,c=i.formatter,d=this.getSidePoint(n.point,o),f=this.getSideVector(o,d),p=c?c(n.name,n,r):n.name,h=i.style;h=kt(h)?ce(this.get("theme"),["label","style"],{}):h;var m=vr({x:d.x+l,y:d.y+s,text:p,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},h);return u&&(m.matrix=Ag(d,u)),m},t.prototype.drawLabels=function(n){var r=this,a=this.get("ticks"),i=this.addGroup(n,{name:"axis-label-group",id:this.getElementId("label-group")});oe(a,function(f,p){r.addShape(i,{type:"text",name:"axis-label",id:r.getElementId("label-"+f.id),attrs:r.getLabelAttrs(f,p,a),delegateObject:{tick:f,item:f,index:p}})}),this.processOverlap(i);var o=i.getChildren(),l=ce(this.get("theme"),["label","style"],{}),s=this.get("label"),u=s.style,c=s.formatter;if(kt(u)){var d=o.map(function(f){return ce(f.get("delegateObject"),"tick")});oe(o,function(f,p){var h=f.get("delegateObject").tick,m=c?c(h.name,h,p):h.name,v=vr({},l,u(m,p,d));f.attr(v)})}},t.prototype.getTitleAttrs=function(){var n=this.get("title"),r=n.style,a=n.position,i=n.offset,o=n.spacing,l=o===void 0?0:o,s=n.autoRotate,u=r.fontSize,c=.5;a==="start"?c=0:a==="end"&&(c=1);var d=this.getTickPoint(c),f=this.getSidePoint(d,i||l+u/2),p=vr({x:f.x,y:f.y,text:n.text},r),h=n.rotate,m=h;if(Ge(h)&&s){var v=this.getAxisVector(d),y=[1,0];m=yH(v,y,!0)}if(m){var b=Ag(f,m);p.matrix=b}return p},t.prototype.drawTitle=function(n){var r,a=this.getTitleAttrs(),i=this.addShape(n,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:a});!((r=this.get("title"))===null||r===void 0)&&r.description&&this.drawDescriptionIcon(n,i,a.matrix)},t.prototype.drawDescriptionIcon=function(n,r,a){var i=this.addGroup(n,{name:"axis-description",id:this.getElementById("description")}),o=r.getBBox(),l=o.maxX,s=o.maxY,u=o.height,c=this.get("title").iconStyle,d=4,f=u/2,p=f/6,h=l+d,m=s-u/2,v=[h+f,m-f],y=v[0],b=v[1],x=[y+f,b+f],E=x[0],S=x[1],C=[y,S+f],w=C[0],I=C[1],T=[h,b+f],A=T[0],O=T[1],R=[h+f,m-u/4],N=R[0],_=R[1],L=[N,_+p],$=L[0],k=L[1],P=[$,k+p],B=P[0],F=P[1],D=[B,F+f*3/4],j=D[0],z=D[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:U({path:[["M",y,b],["A",f,f,0,0,1,E,S],["A",f,f,0,0,1,w,I],["A",f,f,0,0,1,A,O],["A",f,f,0,0,1,y,b],["M",N,_],["L",$,k],["M",B,F],["L",j,z]],lineWidth:p,matrix:a},c)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:m-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:a,cursor:"pointer"}})},t.prototype.applyTickStates=function(n,r){var a=this.getItemStates(n);if(a.length){var i=this.get("tickStates"),o=this.getElementId("label-"+n.id),l=r.findById(o);if(l){var s=M1(n,"label",i);s&&l.attr(s)}var u=this.getElementId("tickline-"+n.id),c=r.findById(u);if(c){var d=M1(n,"tickLine",i);d&&c.attr(d)}}},t.prototype.updateTickStates=function(n){var r=this.getItemStates(n),a=this.get("tickStates"),i=this.get("label"),o=this.getElementByLocalId("label-"+n.id),l=this.get("tickLine"),s=this.getElementByLocalId("tickline-"+n.id);if(r.length){if(o){var u=M1(n,"label",a);u&&o.attr(u)}if(s){var c=M1(n,"tickLine",a);c&&s.attr(c)}}else o&&o.attr(i.style),s&&s.attr(l.style)},t}(po);function $H(e,t,n,r){var a=t.getChildren(),i=!1;return oe(a,function(o){var l=yx(e,o,n,r);i=i||l}),i}function m5t(){return Pwe}function v5t(e,t,n){return $H(e,t,n,"head")}function Pwe(e,t,n){return $H(e,t,n,"tail")}function y5t(e,t,n){return $H(e,t,n,"middle")}const b5t=Object.freeze(Object.defineProperty({__proto__:null,ellipsisHead:v5t,ellipsisMiddle:y5t,ellipsisTail:Pwe,getDefault:m5t},Symbol.toStringTag,{value:"Module"}));function x5t(e){var t=e.attr("matrix");return t&&t[0]!==1}function Fwe(e){var t=x5t(e)?j8t(e.attr("matrix")):0;return t%360}function PF(e,t,n,r){var a=!1,i=Fwe(t),o=Math.abs(e?n.attr("y")-t.attr("y"):n.attr("x")-t.attr("x")),l=(e?n.attr("y")>t.attr("y"):n.attr("x")>t.attr("x"))?t.getBBox():n.getBBox();if(e){var s=Math.abs(Math.cos(i));sO(s,0,Math.PI/180)?a=l.width+r>o:a=l.height/s+r>o}else{var s=Math.abs(Math.sin(i));sO(s,0,Math.PI/180)?a=l.width+r>o:a=l.height/s+r>o}return a}function PE(e,t,n,r){var a=(r==null?void 0:r.minGap)||0,i=t.getChildren().slice().filter(function(p){return p.get("visible")});if(!i.length)return!1;var o=!1;n&&i.reverse();for(var l=i.length,s=i[0],u=s,c=1;c1){f=Math.ceil(f);for(var m=0;m2){var o=a[0],l=a[a.length-1];o.get("visible")||(o.show(),PE(e,t,!1,r)&&(i=!0)),l.get("visible")||(l.show(),PE(e,t,!0,r)&&(i=!0))}return i}const A5t=Object.freeze(Object.defineProperty({__proto__:null,equidistance:zwe,equidistanceWithReverseBoth:T5t,getDefault:E5t,reserveBoth:w5t,reserveFirst:S5t,reserveLast:C5t},Symbol.toStringTag,{value:"Module"}));function I5t(e,t){oe(e,function(n){var r=n.attr("x"),a=n.attr("y"),i=Ag({x:r,y:a},t);n.attr("matrix",i)})}function Hwe(e,t,n,r){var a=t.getChildren();if(!a.length||!e&&a.length<2)return!1;var i=LF(a),o=!1;if(e)o=!!n&&i>n;else{var l=Math.abs(a[1].attr("x")-a[0].attr("x"));o=i>l}if(o){var s=r(n,i);I5t(a,s)}return o}function O5t(){return jwe}function jwe(e,t,n,r){return Hwe(e,t,n,function(){return un(r)?r:e?wn.verticalAxisRotate:wn.horizontalAxisRotate})}function k5t(e,t,n){return Hwe(e,t,n,function(r,a){if(!r)return e?wn.verticalAxisRotate:wn.horizontalAxisRotate;if(e)return-Math.acos(r/a);var i=0;return r>a?i=Math.PI/4:(i=Math.asin(r/a),i>Math.PI/4&&(i=Math.PI/4)),i})}const R5t=Object.freeze(Object.defineProperty({__proto__:null,fixedAngle:jwe,getDefault:O5t,unfixedAngle:k5t},Symbol.toStringTag,{value:"Module"})),Uwe=Object.freeze(Object.defineProperty({__proto__:null,autoEllipsis:b5t,autoHide:A5t,autoRotate:R5t},Symbol.toStringTag,{value:"Module"}));var _5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getLinePath=function(){var n=this.get("start"),r=this.get("end"),a=[];return a.push(["M",n.x,n.y]),a.push(["L",r.x,r.y]),a},t.prototype.getInnerLayoutBBox=function(){var n=this.get("start"),r=this.get("end"),a=e.prototype.getInnerLayoutBBox.call(this),i=Math.min(n.x,r.x,a.x),o=Math.min(n.y,r.y,a.y),l=Math.max(n.x,r.x,a.maxX),s=Math.max(n.y,r.y,a.maxY);return{x:i,y:o,minX:i,minY:o,maxX:l,maxY:s,width:l-i,height:s-o}},t.prototype.isVertical=function(){var n=this.get("start"),r=this.get("end");return Bi(n.x,r.x)},t.prototype.isHorizontal=function(){var n=this.get("start"),r=this.get("end");return Bi(n.y,r.y)},t.prototype.getTickPoint=function(n){var r=this,a=r.get("start"),i=r.get("end"),o=i.x-a.x,l=i.y-a.y;return{x:a.x+o*n,y:a.y+l*n}},t.prototype.getSideVector=function(n){var r=this.getAxisVector(),a=kCe([0,0],r),i=this.get("verticalFactor"),o=[a[1],a[0]*-1];return zo([0,0],o,n*i)},t.prototype.getAxisVector=function(){var n=this.get("start"),r=this.get("end");return[r.x-n.x,r.y-n.y]},t.prototype.processOverlap=function(n){var r=this,a=this.isVertical(),i=this.isHorizontal();if(!(!a&&!i)){var o=this.get("label"),l=this.get("title"),s=this.get("verticalLimitLength"),u=o.offset,c=s,d=0,f=0;l&&(d=l.style.fontSize,f=l.spacing),c&&(c=c-u-f-d);var p=this.get("overlapOrder");if(oe(p,function(v){o[v]&&r.canProcessOverlap(v)&&r.autoProcessOverlap(v,o[v],n,c)}),l&&Ge(l.offset)){var h=n.getCanvasBBox(),m=a?h.width:h.height;l.offset=u+m+f+d/2}}},t.prototype.canProcessOverlap=function(n){var r=this.get("label");return n==="autoRotate"?Ge(r.rotate):!0},t.prototype.autoProcessOverlap=function(n,r,a,i){var o=this,l=this.isVertical(),s=!1,u=Uwe[n];if(r===!0)this.get("label"),s=u.getDefault()(l,a,i);else if(kt(r))s=r(l,a,i);else if(pr(r)){var c=r;u[c.type]&&(s=u[c.type](l,a,i,c.cfg))}else u[r]&&(s=u[r](l,a,i));if(n==="autoRotate"){if(s){var d=a.getChildren(),f=this.get("verticalFactor");oe(d,function(h){var m=h.attr("textAlign");if(m==="center"){var v=f>0?"end":"start";h.attr("textAlign",v)}})}}else if(n==="autoHide"){var p=a.getChildren().slice(0);oe(p,function(h){h.get("visible")||(o.get("isRegister")&&o.unregisterElement(h),h.remove())})}},t}(Lwe),N5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getLinePath=function(){var n=this.get("center"),r=n.x,a=n.y,i=this.get("radius"),o=i,l=this.get("startAngle"),s=this.get("endAngle"),u=[];if(Math.abs(s-l)===Math.PI*2)u=[["M",r,a-o],["A",i,o,0,1,1,r,a+o],["A",i,o,0,1,1,r,a-o],["Z"]];else{var c=this.getCirclePoint(l),d=this.getCirclePoint(s),f=Math.abs(s-l)>Math.PI?1:0,p=l>s?0:1;u=[["M",r,a],["L",c.x,c.y],["A",i,o,0,f,p,d.x,d.y],["L",r,a]]}return u},t.prototype.getTickPoint=function(n){var r=this.get("startAngle"),a=this.get("endAngle"),i=r+(a-r)*n;return this.getCirclePoint(i)},t.prototype.getSideVector=function(n,r){var a=this.get("center"),i=[r.x-a.x,r.y-a.y],o=this.get("verticalFactor"),l=Rv(i);return zo(i,i,o*n/l),i},t.prototype.getAxisVector=function(n){var r=this.get("center"),a=[n.x-r.x,n.y-r.y];return[a[1],-1*a[0]]},t.prototype.getCirclePoint=function(n,r){var a=this.get("center");return r=r||this.get("radius"),{x:a.x+Math.cos(n)*r,y:a.y+Math.sin(n)*r}},t.prototype.canProcessOverlap=function(n){var r=this.get("label");return n==="autoRotate"?Ge(r.rotate):!0},t.prototype.processOverlap=function(n){var r=this,a=this.get("label"),i=this.get("title"),o=this.get("verticalLimitLength"),l=a.offset,s=o,u=0,c=0;i&&(u=i.style.fontSize,c=i.spacing),s&&(s=s-l-c-u);var d=this.get("overlapOrder");if(oe(d,function(p){a[p]&&r.canProcessOverlap(p)&&r.autoProcessOverlap(p,a[p],n,s)}),i&&Ge(i.offset)){var f=n.getCanvasBBox().height;i.offset=l+f+c+u/2}},t.prototype.autoProcessOverlap=function(n,r,a,i){var o=this,l=!1,s=Uwe[n];if(i>0)if(r===!0)l=s.getDefault()(!1,a,i);else if(kt(r))l=r(!1,a,i);else if(pr(r)){var u=r;s[u.type]&&(l=s[u.type](!1,a,i,u.cfg))}else s[r]&&(l=s[r](!1,a,i));if(n==="autoRotate"){if(l){var c=a.getChildren(),d=this.get("verticalFactor");oe(c,function(p){var h=p.attr("textAlign");if(h==="center"){var m=d>0?"end":"start";p.attr("textAlign",m)}})}}else if(n==="autoHide"){var f=a.getChildren().slice(0);oe(f,function(p){p.get("visible")||(o.get("isRegister")&&o.unregisterElement(p),p.remove())})}},t}(Lwe),LH=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:wn.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:wn.textColor,textAlign:"center",textBaseline:"middle",fontFamily:wn.fontFamily}},textBackground:{padding:5,style:{stroke:wn.lineColor}}}})},t.prototype.renderInner=function(n){this.get("line")&&this.renderLine(n),this.get("text")&&(this.renderText(n),this.renderBackground(n))},t.prototype.renderText=function(n){var r=this.get("text"),a=r.style,i=r.autoRotate,o=r.content;if(!Ge(o)){var l=this.getTextPoint(),s=null;if(i){var u=this.getRotateAngle();s=Ag(l,u)}this.addShape(n,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:U(U(U({},l),{text:o,matrix:s}),a)})}},t.prototype.renderLine=function(n){var r=this.getLinePath(),a=this.get("line"),i=a.style;this.addShape(n,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:U({path:r},i)})},t.prototype.renderBackground=function(n){var r=this.getElementId("text"),a=n.findById(r),i=this.get("textBackground");if(i&&a){var o=a.getBBox(),l=lO(i.padding),s=i.style,u=this.addShape(n,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:U({x:o.x-l[3],y:o.y-l[0],width:o.width+l[1]+l[3],height:o.height+l[0]+l[2],matrix:a.attr("matrix")},s)});u.toBack()}},t}(po),Vwe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getRotateAngle=function(){var n=this.getLocation(),r=n.start,a=n.end,i=this.get("text").position,o=Math.atan2(a.y-r.y,a.x-r.x),l=i==="start"?o-Math.PI/2:o+Math.PI/2;return l},t.prototype.getTextPoint=function(){var n=this.getLocation(),r=n.start,a=n.end,i=this.get("text"),o=i.position,l=i.offset;return Mwe(r,a,o,l)},t.prototype.getLinePath=function(){var n=this.getLocation(),r=n.start,a=n.end;return[["M",r.x,r.y],["L",a.x,a.y]]},t}(LH),D5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getRotateAngle=function(){var n=this.getLocation(),r=n.startAngle,a=n.endAngle,i=this.get("text").position,o=i==="start"?r+Math.PI/2:a-Math.PI/2;return o},t.prototype.getTextPoint=function(){var n=this.get("text"),r=n.position,a=n.offset,i=this.getLocation(),o=i.center,l=i.radius,s=i.startAngle,u=i.endAngle,c=r==="start"?s:u,d=this.getRotateAngle()-Math.PI,f=Zv(o,l,c),p=Math.cos(d)*a,h=Math.sin(d)*a;return{x:f.x+p,y:f.y+h}},t.prototype.getLinePath=function(){var n=this.getLocation(),r=n.center,a=n.radius,i=n.startAngle,o=n.endAngle,l=null;if(o-i===Math.PI*2){var s=r.x,u=r.y;l=[["M",s,u-a],["A",a,a,0,1,1,s,u+a],["A",a,a,0,1,1,s,u-a],["Z"]]}else{var c=Zv(r,a,i),d=Zv(r,a,o),f=Math.abs(o-i)>Math.PI?1:0,p=i>o?0:1;l=[["M",c.x,c.y],["A",a,a,0,f,p,d.x,d.y]]}return l},t}(LH),FE="g2-crosshair",FF=FE+"-line",BF=FE+"-text",i1;const M5t=(i1={},i1[""+FE]={position:"relative"},i1[""+FF]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},i1[""+BF]={position:"absolute",color:wn.textColor,fontFamily:wn.fontFamily},i1);var $5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:FE,defaultStyles:M5t,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var n=this.getContainer(),r=this.get("crosshairTpl"),a=up(r);n.appendChild(a),this.applyStyle(FF,a),this.set("crosshairEl",a)},t.prototype.getTextPoint=function(){var n=this.getLocation(),r=n.start,a=n.end,i=this.get("text"),o=i.position,l=i.offset;return Mwe(r,a,o,l)},t.prototype.resetText=function(){var n=this.get("text"),r=this.get("textEl");if(n){var a=n.content;if(!r){var i=this.getContainer(),o=dCe(this.get("textTpl"),n);r=up(o),i.appendChild(r),this.applyStyle(BF,r),this.set("textEl",r)}r.innerHTML=a}else r&&r.remove()},t.prototype.isVertical=function(n,r){return n.x===r.x},t.prototype.resetPosition=function(){var n=this.get("crosshairEl");n||(this.initCrossHair(),n=this.get("crosshairEl"));var r=this.get("start"),a=this.get("end"),i=Math.min(r.x,a.x),o=Math.min(r.y,a.y);this.isVertical(r,a)?wo(n,{width:"1px",height:al(Math.abs(a.y-r.y))}):wo(n,{height:"1px",width:al(Math.abs(a.x-r.x))}),wo(n,{top:al(o),left:al(i)}),this.alignText()},t.prototype.alignText=function(){var n=this.get("textEl");if(n){var r=this.get("text").align,a=n.clientWidth,i=this.getTextPoint();switch(r){case"center":i.x=i.x-a/2;break;case"right":i.x=i.x-a}wo(n,{top:al(i.y),left:al(i.x)})}},t.prototype.updateInner=function(n){Cp(n,"text")&&this.resetText(),e.prototype.updateInner.call(this,n)},t}(MH);const Pae=Object.freeze(Object.defineProperty({__proto__:null,Base:LH,Circle:D5t,Html:$5t,Line:Vwe},Symbol.toStringTag,{value:"Module"}));var Wwe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:wn.lineColor}}}})},t.prototype.getLineType=function(){var n=this.get("line")||this.get("defaultCfg").line;return n.type},t.prototype.renderInner=function(n){this.drawGrid(n)},t.prototype.getAlternatePath=function(n,r){var a=this.getGridPath(n),i=r.slice(0).reverse(),o=this.getGridPath(i,!0),l=this.get("closed");return l?a=a.concat(o):(o[0][0]="L",a=a.concat(o),a.push(["Z"])),a},t.prototype.getPathStyle=function(){return this.get("line").style},t.prototype.drawGrid=function(n){var r=this,a=this.get("line"),i=this.get("items"),o=this.get("alternateColor"),l=null;oe(i,function(s,u){var c=s.id||u;if(a){var d=r.getPathStyle();d=kt(d)?d(s,u,i):d;var f=r.getElementId("line-"+c),p=r.getGridPath(s.points);r.addShape(n,{type:"path",name:"grid-line",id:f,attrs:vr({path:p},d)})}if(o&&u>0){var h=r.getElementId("region-"+c),m=u%2===0;if(Jt(o))m&&r.drawAlternateRegion(h,n,l.points,s.points,o);else{var v=m?o[1]:o[0];r.drawAlternateRegion(h,n,l.points,s.points,v)}}l=s})},t.prototype.drawAlternateRegion=function(n,r,a,i,o){var l=this.getAlternatePath(a,i);this.addShape(r,{type:"path",id:n,name:"grid-region",attrs:{path:l,fill:o}})},t}(po);function L5t(e,t,n,r){var a=n-e,i=r-t;return Math.sqrt(a*a+i*i)}var P5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{type:"circle",center:null,closed:!0})},t.prototype.getGridPath=function(n,r){var a=this.getLineType(),i=this.get("closed"),o=[];if(n.length)if(a==="circle"){var l=this.get("center"),s=n[0],u=L5t(l.x,l.y,s.x,s.y),c=r?0:1;i?(o.push(["M",l.x,l.y-u]),o.push(["A",u,u,0,0,c,l.x,l.y+u]),o.push(["A",u,u,0,0,c,l.x,l.y-u]),o.push(["Z"])):oe(n,function(d,f){f===0?o.push(["M",d.x,d.y]):o.push(["A",u,u,0,0,c,d.x,d.y])})}else oe(n,function(d,f){f===0?o.push(["M",d.x,d.y]):o.push(["L",d.x,d.y])}),i&&o.push(["Z"]);return o},t}(Wwe),F5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{type:"line"})},t.prototype.getGridPath=function(n){var r=[];return oe(n,function(a,i){i===0?r.push(["M",a.x,a.y]):r.push(["L",a.x,a.y])}),r},t}(Wwe),Gwe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var n=e.prototype.getLayoutBBox.call(this),r=this.get("maxWidth"),a=this.get("maxHeight"),i=n.width,o=n.height;return r&&(i=Math.min(i,r)),a&&(o=Math.min(o,a)),U3(n.minX,n.minY,i,o)},t.prototype.setLocation=function(n){this.set("x",n.x),this.set("y",n.y),this.resetLocation()},t.prototype.resetLocation=function(){var n=this.get("x"),r=this.get("y"),a=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:n+a,y:r+i})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get("currentPoint")},t.prototype.setDrawPoint=function(n){return this.set("currentPoint",n)},t.prototype.renderInner=function(n){this.resetDraw(),this.get("title")&&this.drawTitle(n),this.drawLegendContent(n),this.get("background")&&this.drawBackground(n)},t.prototype.drawBackground=function(n){var r=this.get("background"),a=n.getBBox(),i=lO(r.padding),o=U({x:0,y:0,width:a.width+i[1]+i[3],height:a.height+i[0]+i[2]},r.style),l=this.addShape(n,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});l.toBack()},t.prototype.drawTitle=function(n){var r=this.get("currentPoint"),a=this.get("title"),i=a.spacing,o=a.style,l=a.text,s=this.addShape(n,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:U({text:l,x:r.x,y:r.y},o)}),u=s.getBBox();this.set("currentPoint",{x:r.x,y:u.maxY+i})},t.prototype.resetDraw=function(){var n=this.get("background"),r={x:0,y:0};if(n){var a=lO(n.padding);r.x=a[3],r.y=a[0]}this.set("currentPoint",r)},t}(po),EM={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},$2={fill:wn.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:wn.fontFamily,fontWeight:"normal",lineHeight:12},SM="navigation-arrow-right",CM="navigation-arrow-left",Fae={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},B5t=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.currentPageIndex=1,n.totalPagesCnt=1,n.pageWidth=0,n.pageHeight=0,n.startX=0,n.startY=0,n.onNavigationBack=function(){var r=n.getElementByLocalId("item-group");if(n.currentPageIndex>1){n.currentPageIndex-=1,n.updateNavigation();var a=n.getCurrentNavigationMatrix();n.get("animate")?r.animate({matrix:a},100):r.attr({matrix:a})}},n.onNavigationAfter=function(){var r=n.getElementByLocalId("item-group");if(n.currentPageIndexv&&(v=w),p==="horizontal"?(y&&yu}if(l==="horizontal"){var I=this.get("maxRow")||1,T=p+(I===1?0:C),A=u-f-v.width-v.minX;this.pageHeight=T*I,this.pageWidth=A,oe(s,function(R){var N=R.getBBox(),_=d||N.width;(x&&xE&&(E=N.width)}),S=E,E+=f,u&&(E=Math.min(u,E),S=Math.min(u,S)),this.pageWidth=E,this.pageHeight=c-Math.max(v.height,p+C);var O=Math.floor(this.pageHeight/(p+C));oe(s,function(R,N){N!==0&&N%O===0&&(b+=1,y.x+=E,y.y=o),a.moveElementTo(R,y),R.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:E,height:p}}),y.y+=p+C}),this.totalPagesCnt=b,this.moveElementTo(m,{x:i+S/2-v.width/2-v.minX,y:c-v.height-v.minY})}this.pageHeight&&this.pageWidth&&r.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),l==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(b/this.get("maxRow")):this.totalPagesCnt=b,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(m),r.attr("matrix",this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(n,r,a,i){var o={x:0,y:0},l=this.addGroup(n,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),s=ce(i.marker,"style",{}),u=s.size,c=u===void 0?12:u,d=mr(s,["size"]),f=this.drawArrow(l,o,CM,r==="horizontal"?"up":"left",c,d);f.on("click",this.onNavigationBack);var p=f.getBBox();o.x+=p.width+2;var h=this.addShape(l,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:U({x:o.x,y:o.y+c/2,text:a,textBaseline:"middle"},ce(i.text,"style"))}),m=h.getBBox();o.x+=m.width+2;var v=this.drawArrow(l,o,SM,r==="horizontal"?"down":"right",c,d);return v.on("click",this.onNavigationAfter),l},t.prototype.updateNavigation=function(n){var r=At({},EM,this.get("pageNavigator")),a=r.marker.style,i=a.fill,o=a.opacity,l=a.inactiveFill,s=a.inactiveOpacity,u=this.currentPageIndex+"/"+this.totalPagesCnt,c=n?n.getChildren()[1]:this.getElementByLocalId("navigation-text"),d=n?n.findById(this.getElementId(CM)):this.getElementByLocalId(CM),f=n?n.findById(this.getElementId(SM)):this.getElementByLocalId(SM);c.attr("text",u),d.attr("opacity",this.currentPageIndex===1?s:o),d.attr("fill",this.currentPageIndex===1?l:i),d.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),f.attr("opacity",this.currentPageIndex===this.totalPagesCnt?s:o),f.attr("fill",this.currentPageIndex===this.totalPagesCnt?l:i),f.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var p=d.getBBox().maxX+2;c.attr("x",p),p+=c.getBBox().width+2,this.updateArrowPath(f,{x:p,y:0})},t.prototype.drawArrow=function(n,r,a,i,o,l){var s=r.x,u=r.y,c=this.addShape(n,{type:"path",id:this.getElementId(a),name:a,attrs:U({size:o,direction:i,path:[["M",s+o/2,u],["L",s,u+o],["L",s+o,u+o],["Z"]],cursor:"pointer"},l)});return c.attr("matrix",Ag({x:s+o/2,y:u+o/2},Fae[i])),c},t.prototype.updateArrowPath=function(n,r){var a=r.x,i=r.y,o=n.attr(),l=o.size,s=o.direction,u=Ag({x:a+l/2,y:i+l/2},Fae[s]);n.attr("path",[["M",a+l/2,i],["L",a,i+l],["L",a+l,i+l],["Z"]]),n.attr("matrix",u)},t.prototype.getCurrentNavigationMatrix=function(){var n=this,r=n.currentPageIndex,a=n.pageWidth,i=n.pageHeight,o=this.get("layout"),l=o==="horizontal"?{x:0,y:i*(1-r)}:{x:a*(1-r),y:0};return _H(l)},t.prototype.applyItemStates=function(n,r){var a=this.getItemStates(n),i=a.length>0;if(i){var o=r.getChildren(),l=this.get("itemStates");oe(o,function(s){var u=s.get("name"),c=u.split("-")[2],d=M1(n,c,l);d&&(s.attr(d),c==="marker"&&!(s.get("isStroke")&&s.get("isFill"))&&(s.get("isStroke")&&s.attr("fill",null),s.get("isFill")&&s.attr("stroke",null)))})}},t.prototype.getLimitItemWidth=function(){var n=this.get("itemWidth"),r=this.get("maxItemWidth");return r?n&&(r=n<=r?n:r):n&&(r=n),r},t}(Gwe),z5t=1.4,Bae=.4,H5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:wn.textColor,textBaseline:"middle",fontFamily:wn.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:wn.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},t.prototype.setRange=function(n,r){this.update({min:n,max:r})},t.prototype.setValue=function(n){var r=this.getValue();this.set("value",n);var a=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(a),this.delegateEmit("valuechanged",{originValue:r,value:n})},t.prototype.initEvent=function(){var n=this.get("group");this.bindSliderEvent(n),this.bindRailEvent(n),this.bindTrackEvent(n)},t.prototype.drawLegendContent=function(n){this.drawRail(n),this.drawLabels(n),this.fixedElements(n),this.resetTrack(n),this.resetTrackClip(n),this.get("slidable")&&this.resetHandlers(n)},t.prototype.bindSliderEvent=function(n){this.bindHandlersEvent(n)},t.prototype.bindHandlersEvent=function(n){var r=this;n.on("legend-handler-min:drag",function(a){var i=r.getValueByCanvasPoint(a.x,a.y),o=r.getCurrentValue(),l=o[1];li&&(l=i),r.setValue([l,i])})},t.prototype.bindRailEvent=function(n){},t.prototype.bindTrackEvent=function(n){var r=this,a=null;n.on("legend-track:dragstart",function(i){a={x:i.x,y:i.y}}),n.on("legend-track:drag",function(i){if(a){var o=r.getValueByCanvasPoint(a.x,a.y),l=r.getValueByCanvasPoint(i.x,i.y),s=r.getCurrentValue(),u=s[1]-s[0],c=r.getRange(),d=l-o;d<0?s[0]+d>c.min?r.setValue([s[0]+d,s[1]+d]):r.setValue([c.min,c.min+u]):d>0&&(d>0&&s[1]+do&&(d=o),d0&&this.changeRailLength(i,l,a[l]-p)}},t.prototype.changeRailLength=function(n,r,a){var i=n.getBBox(),o;r==="height"?o=this.getRailPath(i.x,i.y,i.width,a):o=this.getRailPath(i.x,i.y,a,i.height),n.attr("path",o)},t.prototype.changeRailPosition=function(n,r,a){var i=n.getBBox(),o=this.getRailPath(r,a,i.width,i.height);n.attr("path",o)},t.prototype.fixedHorizontal=function(n,r,a,i){var o=this.get("label"),l=o.align,s=o.spacing,u=a.getBBox(),c=n.getBBox(),d=r.getBBox(),f=u.height;this.fitRailLength(c,d,u,a),u=a.getBBox(),l==="rail"?(n.attr({x:i.x,y:i.y+f/2}),this.changeRailPosition(a,i.x+c.width+s,i.y),r.attr({x:i.x+c.width+u.width+s*2,y:i.y+f/2})):l==="top"?(n.attr({x:i.x,y:i.y}),r.attr({x:i.x+u.width,y:i.y}),this.changeRailPosition(a,i.x,i.y+c.height+s)):(this.changeRailPosition(a,i.x,i.y),n.attr({x:i.x,y:i.y+u.height+s}),r.attr({x:i.x+u.width,y:i.y+u.height+s}))},t.prototype.fixedVertail=function(n,r,a,i){var o=this.get("label"),l=o.align,s=o.spacing,u=a.getBBox(),c=n.getBBox(),d=r.getBBox();if(this.fitRailLength(c,d,u,a),u=a.getBBox(),l==="rail")n.attr({x:i.x,y:i.y}),this.changeRailPosition(a,i.x,i.y+c.height+s),r.attr({x:i.x,y:i.y+c.height+u.height+s*2});else if(l==="right")n.attr({x:i.x+u.width+s,y:i.y}),this.changeRailPosition(a,i.x,i.y),r.attr({x:i.x+u.width+s,y:i.y+u.height});else{var f=Math.max(c.width,d.width);n.attr({x:i.x,y:i.y}),this.changeRailPosition(a,i.x+f+s,i.y),r.attr({x:i.x,y:i.y+u.height})}},t}(Gwe),jd="g2-tooltip",Ud="g2-tooltip-title",BE="g2-tooltip-list",W3="g2-tooltip-list-item",G3="g2-tooltip-marker",q3="g2-tooltip-value",qwe="g2-tooltip-name",PH="g2-tooltip-crosshair-x",FH="g2-tooltip-crosshair-y";const j5t=Object.freeze(Object.defineProperty({__proto__:null,CONTAINER_CLASS:jd,CROSSHAIR_X:PH,CROSSHAIR_Y:FH,LIST_CLASS:BE,LIST_ITEM_CLASS:W3,MARKER_CLASS:G3,NAME_CLASS:qwe,TITLE_CLASS:Ud,VALUE_CLASS:q3},Symbol.toStringTag,{value:"Module"}));var ic;const U5t=(ic={},ic[""+jd]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:wn.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},ic[""+Ud]={marginBottom:"4px"},ic[""+BE]={margin:"0px",listStyleType:"none",padding:"0px"},ic[""+W3]={listStyleType:"none",marginBottom:"4px"},ic[""+G3]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},ic[""+q3]={display:"inline-block",float:"right",marginLeft:"30px"},ic[""+PH]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},ic[""+FH]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},ic);function V5t(e,t,n,r,a){var i={left:ea.x+a.width,top:ta.y+a.height};return i}function W5t(e,t,n,r,a,i){var o=e,l=t;switch(i){case"left":o=e-r-n,l=t-a/2;break;case"right":o=e+n,l=t-a/2;break;case"top":o=e-r/2,l=t-a-n;break;case"bottom":o=e-r/2,l=t+n;break;default:o=e+n,l=t-a-n;break}return{x:o,y:l}}function G5t(e,t,n,r,a,i,o){var l=W5t(e,t,n,r,a,i);if(o){var s=V5t(l.x,l.y,r,a,o);i==="auto"?(s.right&&(l.x=Math.max(0,e-r-n)),s.top&&(l.y=Math.max(0,t-a-n))):i==="top"||i==="bottom"?(s.left&&(l.x=o.x),s.right&&(l.x=o.x+o.width-r),i==="top"&&s.top&&(l.y=t+n),i==="bottom"&&s.bottom&&(l.y=t-a-n)):(s.top&&(l.y=o.y),s.bottom&&(l.y=o.y+o.height-a),i==="left"&&s.left&&(l.x=e+n),i==="right"&&s.right&&(l.x=e-r-n))}return l}function q5t(e,t){var n=!1;return oe(t,function(r){if(Cp(e,r))return n=!0,!1}),n}var Y5t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • + + {name}: + {value} +
  • `,xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:jd,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:U5t})},t.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},t.prototype.show=function(){var n=this.getContainer();!n||this.destroyed||(this.set("visible",!0),wo(n,{visibility:"visible"}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var n=this.getContainer();!n||this.destroyed||(this.set("visible",!1),wo(n,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},t.prototype.setLocation=function(n){this.set("x",n.x),this.set("y",n.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(n){var r=n?"":"none",a=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");a&&wo(a,{display:r}),i&&wo(i,{display:r})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var n=this.getHtmlContentNode();this.get("parent").appendChild(n),this.set("container",n),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(n){this.get("customContent")?this.renderCustomContent():(q5t(n,["title","showTitle"])&&this.resetTitle(),Cp(n,"items")&&this.renderItems()),e.prototype.updateInner.call(this,n)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var n=this.get("x"),r=this.get("y"),a=this.get("offset"),i=this.getOffset(),o=i.offsetX,l=i.offsetY,s=this.get("position"),u=this.get("region"),c=this.getContainer(),d=this.getBBox(),f=d.width,p=d.height,h;u&&(h=LE(u));var m=G5t(n,r,a,f,p,s,h);wo(c,{left:al(m.x+o),top:al(m.y+l)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var n=this.getHtmlContentNode(),r=this.get("parent"),a=this.get("container");a&&a.parentNode===r?r.replaceChild(n,a):r.appendChild(n),this.set("container",n),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var n,r=this.get("customContent");if(r){var a=r(this.get("title"),this.get("items"));pCe(a)?n=a:n=up(a)}return n},t.prototype.cacheDoms=function(){var n=this.getContainer(),r=n.getElementsByClassName(Ud)[0],a=n.getElementsByClassName(BE)[0];this.set("titleDom",r),this.set("listDom",a)},t.prototype.resetTitle=function(){var n=this.get("title"),r=this.get("showTitle");r&&n?this.setTitle(n):this.setTitle("")},t.prototype.setTitle=function(n){var r=this.get("titleDom");r&&(r.innerText=n)},t.prototype.resetCrosshairs=function(){var n=this.get("crosshairsRegion"),r=this.get("crosshairs");if(!n||!r)this.clearCrosshairs();else{var a=LE(n),i=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");r==="x"?(this.resetCrosshair("x",a),o&&(o.remove(),this.set("yCrosshairDom",null))):r==="y"?(this.resetCrosshair("y",a),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",a),this.resetCrosshair("y",a)),this.setCrossHairsVisible(this.get("visible"))}},t.prototype.resetCrosshair=function(n,r){var a=this.checkCrosshair(n),i=this.get(n);n==="x"?wo(a,{left:al(i),top:al(r.y),height:al(r.height)}):wo(a,{top:al(i),left:al(r.x),width:al(r.width)})},t.prototype.checkCrosshair=function(n){var r=n+"CrosshairDom",a=n+"CrosshairTpl",i="CROSSHAIR_"+n.toUpperCase(),o=j5t[i],l=this.get(r),s=this.get("parent");return l||(l=up(this.get(a)),this.applyStyle(o,l),s.appendChild(l),this.set(r,l)),l},t.prototype.renderItems=function(){this.clearItemDoms();var n=this.get("items"),r=this.get("itemTpl"),a=this.get("listDom");a&&(oe(n,function(i){var o=cp.toCSSGradient(i.color),l=U(U({},i),{color:o}),s=dCe(r,l),u=up(s);a.appendChild(u)}),this.applyChildrenStyles(a,this.get("domStyles")))},t.prototype.clearItemDoms=function(){this.get("listDom")&&DH(this.get("listDom"))},t.prototype.clearCrosshairs=function(){var n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&n.remove(),r&&r.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},t}(MH),K5t={opacity:0},X5t={stroke:"#C5C5C5",strokeOpacity:.85},Q5t={fill:"#CACED4",opacity:.85};function Z5t(e,t,n,r){var a=[],i=!!r,o,l,s,u,c,d,f;if(i){s=r[0],u=r[1];for(var p=0,h=e.length;pp&&(i=[p,f],f=i[0],p=i[1],o=[a,r],r=o[0],a=o[1],h=!0);var m=r.getBBox(),v=a.getBBox(),y=m.width>f-c?{x:f+d/2+c,textAlign:"left"}:{x:f-d/2-c,textAlign:"right"},b=v.width>u-p-c?{x:p-d/2-c,textAlign:"right"}:{x:p+d/2+c,textAlign:"left"};return h?[b,y]:[y,b]},t.prototype.draw=function(){var n=this.get("container"),r=n&&n.get("canvas");r&&r.draw()},t.prototype.getContainerDOM=function(){var n=this.get("container"),r=n&&n.get("canvas");return r&&r.get("container")},t}(po),fBt={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},wM={default:fBt,hover:{thumbColor:"rgba(0,0,0,0.2)"}},pBt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.clearEvents=Gf,n.onStartEvent=function(r){return function(a){n.isMobile=r,a.originalEvent.preventDefault();var i=r?ce(a.originalEvent,"touches.0.clientX"):a.clientX,o=r?ce(a.originalEvent,"touches.0.clientY"):a.clientY;n.startPos=n.cfg.isHorizontal?i:o,n.bindLaterEvent()}},n.bindLaterEvent=function(){var r=n.getContainerDOM(),a=[];n.isMobile?a=[Ym(r,"touchmove",n.onMouseMove),Ym(r,"touchend",n.onMouseUp),Ym(r,"touchcancel",n.onMouseUp)]:a=[Ym(r,"mousemove",n.onMouseMove),Ym(r,"mouseup",n.onMouseUp),Ym(r,"mouseleave",n.onMouseUp)],n.clearEvents=function(){a.forEach(function(i){i.remove()})}},n.onMouseMove=function(r){var a=n.cfg,i=a.isHorizontal,o=a.thumbOffset;r.preventDefault();var l=n.isMobile?ce(r,"touches.0.clientX"):r.clientX,s=n.isMobile?ce(r,"touches.0.clientY"):r.clientY,u=i?l:s,c=u-n.startPos;n.startPos=u,n.updateThumbOffset(o+c)},n.onMouseUp=function(r){r.preventDefault(),n.clearEvents()},n.onTrackClick=function(r){var a=n.cfg,i=a.isHorizontal,o=a.x,l=a.y,s=a.thumbLen,u=n.getContainerDOM(),c=u.getBoundingClientRect(),d=r.clientX,f=r.clientY,p=i?d-c.left-o-s/2:f-c.top-l-s/2,h=n.validateRange(p);n.updateThumbOffset(h)},n.onThumbMouseOver=function(){var r=n.cfg.theme.hover.thumbColor;n.getElementByLocalId("thumb").attr("stroke",r),n.draw()},n.onThumbMouseOut=function(){var r=n.cfg.theme.default.thumbColor;n.getElementByLocalId("thumb").attr("stroke",r),n.draw()},n}return t.prototype.setRange=function(n,r){this.set("minLimit",n),this.set("maxLimit",r);var a=this.getValue(),i=Lr(a,n,r);a!==i&&!this.get("isInit")&&this.setValue(i)},t.prototype.getRange=function(){var n=this.get("minLimit")||0,r=this.get("maxLimit")||1;return{min:n,max:r}},t.prototype.setValue=function(n){var r=this.getRange(),a=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Lr(n,r.min,r.max)}),this.delegateEmit("valuechange",{originalValue:a,value:this.getValue()})},t.prototype.getValue=function(){return Lr(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return U(U({},n),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:wM})},t.prototype.renderInner=function(n){this.renderTrackShape(n),this.renderThumbShape(n)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(n){var r=this.cfg,a=r.trackLen,i=r.theme,o=i===void 0?{default:{}}:i,l=At({},wM,o).default,s=l.lineCap,u=l.trackColor,c=l.size,d=ce(this.cfg,"size",c),f=this.get("isHorizontal")?{x1:0+d/2,y1:d/2,x2:a-d/2,y2:d/2,lineWidth:d,stroke:u,lineCap:s}:{x1:d/2,y1:0+d/2,x2:d/2,y2:a-d/2,lineWidth:d,stroke:u,lineCap:s};return this.addShape(n,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},t.prototype.renderThumbShape=function(n){var r=this.cfg,a=r.thumbOffset,i=r.thumbLen,o=r.theme,l=At({},wM,o).default,s=l.size,u=l.lineCap,c=l.thumbColor,d=ce(this.cfg,"size",s),f=this.get("isHorizontal")?{x1:a+d/2,y1:d/2,x2:a+i-d/2,y2:d/2,lineWidth:d,stroke:c,lineCap:u,cursor:"default"}:{x1:d/2,y1:a+d/2,x2:d/2,y2:a+i-d/2,lineWidth:d,stroke:c,lineCap:u,cursor:"default"};return this.addShape(n,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:f})},t.prototype.bindEvents=function(){var n=this.get("group");n.on("mousedown",this.onStartEvent(!1)),n.on("mouseup",this.onMouseUp),n.on("touchstart",this.onStartEvent(!0)),n.on("touchend",this.onMouseUp);var r=n.findById(this.getElementId("track"));r.on("click",this.onTrackClick);var a=n.findById(this.getElementId("thumb"));a.on("mouseover",this.onThumbMouseOver),a.on("mouseout",this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var n=this.get("container"),r=n&&n.get("canvas");return r&&r.get("container")},t.prototype.validateRange=function(n){var r=this.cfg,a=r.thumbLen,i=r.trackLen,o=n;return n+a>i?o=i-a:n+ai.x?i.x:t,n=ni.y?i.y:r,a=a=r&&e<=a}function EBt(e,t,n){if(Jt(e))return e.padEnd(t,n);if(Qe(e)){var r=e.length;if(r=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var t=[],n=0;nt.minX&&this.minYt.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},e}();function SBt(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}function vC(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var t=e.convert({x:0,y:0}),n=e.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function CBt(e){if(e.isPolar){var t=e.startAngle,n=e.endAngle;return n-t===Math.PI*2}return!1}function K3(e,t){var n=e.getCenter();return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function wBt(e,t){var n=!1;if(e)if(e.type==="theta"){var r=e.start,a=e.end;n=_v(t.x,r.x,a.x)&&_v(t.y,r.y,a.y)}else{var i=e.invert(t);n=_v(i.x,0,1)&&_v(i.y,0,1)}return n}function X0(e,t){var n=e.getCenter();return Math.atan2(t.y-n.y,t.x-n.x)}function BH(e,t){t===void 0&&(t=0);var n=e.start,r=e.end,a=e.getWidth(),i=e.getHeight();if(e.isPolar){var o=e.startAngle,l=e.endAngle,s=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:dp(s.x,s.y,u+t,o,o)},endState:function(d){var f=(l-o)*d+o,p=dp(s.x,s.y,u+t,o,f);return{path:p}},attrs:{path:dp(s.x,s.y,u+t,o,l)}}}var c;return e.isTransposed?c={height:i+t*2}:c={width:a+t*2},{type:"rect",startState:{x:n.x-t,y:r.y-t,width:e.isTransposed?a+t*2:0,height:e.isTransposed?0:i+t*2},endState:c,attrs:{x:n.x-t,y:r.y-t,width:a+t*2,height:i+t*2}}}function TBt(e,t){t===void 0&&(t=0);var n=e.start,r=e.end,a=e.getWidth(),i=e.getHeight(),o=Math.min(n.x,r.x),l=Math.min(n.y,r.y);return Uo.fromRange(o-t,l-t,o+a+t,l+i+t)}var ABt=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function IBt(e){var t="linear";return ABt.test(e)?t="timeCat":Jt(e)&&(t="cat"),t}function Zwe(e,t,n,r){return t===void 0&&(t={}),t.type?t.type:e.type!=="identity"&&Ov.includes(n)&&["interval"].includes(r)||e.isCategory?"cat":e.type}function OBt(e,t,n){var r=t||[];if(un(e)||Ge(hLt(r,e))&&vl(n)){var a=MF("identity");return new a({field:e.toString(),values:[e]})}var i=Bu(r,e),o=ce(n,"type",IBt(i[0])),l=MF(o);return new l(U({field:e,values:i},n))}function kBt(e,t){if(e.type!=="identity"&&t.type!=="identity"){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);e.change(n)}}function HE(e){return e.alias||e.field}function Jwe(e,t,n){var r=e.values,a=r.length,i;if(a===1)i=[.5,1];else{var o=1,l=0;CBt(t)?t.isTransposed?(o=ce(n,"widthRatio.multiplePie",1/1.3),l=1/a*o,i=[l/2,1-l/2]):i=[0,1-1/a]:(l=1/a/2,i=[l,1-l])}return i}function RBt(e){var t=e.values.filter(function(n){return!Ge(n)&&!isNaN(n)});return Math.max.apply(Math,Wt(Wt([],$t(t),!1),[Ge(e.max)?-1/0:e.max],!1))}function _Bt(e){var t,n;switch(e){case ct.TOP:t={x:0,y:1},n={x:1,y:1};break;case ct.RIGHT:t={x:1,y:0},n={x:1,y:1};break;case ct.BOTTOM:t={x:0,y:0},n={x:1,y:0};break;case ct.LEFT:t={x:0,y:0},n={x:0,y:1};break;default:t=n={x:0,y:0}}return{start:t,end:n}}function NBt(e){var t,n;return e.isTransposed?(t={x:0,y:0},n={x:1,y:0}):(t={x:0,y:0},n={x:0,y:1}),{start:t,end:n}}function L2(e,t){var n={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?n=_Bt(t):e.isPolar&&(n=NBt(e));var r=n.start,a=n.end;return{start:e.convert(r),end:e.convert(a)}}function e2e(e){var t=e.start,n=e.end;return t.x===n.x}function Vae(e,t){var n=e.start,r=e.end,a=e2e(e);return a?(n.y-r.y)*(t.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-t.y)>0?-1:1}function P2(e,t){var n=ce(e,["components","axis"],{});return At({},ce(n,["common"],{}),At({},ce(n,[t],{})))}function Wae(e,t,n){var r=ce(e,["components","axis"],{});return At({},ce(r,["common","title"],{}),At({},ce(r,[t,"title"],{})),n)}function TM(e){var t=e.x,n=e.y,r=e.circleCenter,a=n.start>n.end,i=e.isTransposed?e.convert({x:a?0:1,y:0}):e.convert({x:0,y:a?0:1}),o=[i.x-r.x,i.y-r.y],l=[1,0],s=i.y>r.y?EF(o,l):EF(o,l)*-1,u=s+(t.end-t.start),c=Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2));return{center:r,radius:c,startAngle:s,endAngle:u}}function uO(e,t){return G0(e)?e===!1?!1:{}:ce(e,[t])}function Gae(e,t){return ce(e,"position",t)}function qae(e,t){return ce(t,["title","text"],HE(e))}var Zy=function(){function e(t,n){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=At({},this.getDefaultCfg(),n)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(t){var n=t.region,r=t.data,a=t.padding,i=a===void 0?this.cfg.padding:a,o=this.view.createView({region:n,padding:i});o.data(r||[]),t.view=o,this.beforeEachView(o,t);var l=this.cfg.eachView;return l&&l(o,t),this.afterEachView(o,t),o},e.prototype.createContainer=function(){var t=this.view.getLayer(Sa.FORE);return t.addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var t=this;return this.facets.map(function(n){return t.facetToView(n)})},e.prototype.clearFacetViews=function(){var t=this;oe(this.facets,function(n){n.view&&(t.view.removeView(n.view),n.view=void 0)})},e.prototype.parseSpacing=function(){var t=this.view.viewBBox,n=t.width,r=t.height,a=this.cfg.spacing;return a.map(function(i,o){return un(i)?i/(o===0?n:r):parseFloat(i)/100})},e.prototype.getFieldValues=function(t,n){var r=[],a={};return oe(t,function(i){var o=i[n];!Ge(o)&&!a[o]&&(r.push(o),a[o]=!0)}),r},e.prototype.getRegion=function(t,n,r,a){var i=$t(this.parseSpacing(),2),o=i[0],l=i[1],s=(1+o)/(n===0?1:n)-o,u=(1+l)/(t===0?1:t)-l,c={x:(s+o)*r,y:(u+l)*a},d={x:c.x+s,y:c.y+u};return{start:c,end:d}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){var t=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:t}}},e.prototype.processAxis=function(t,n){var r=t.getOptions(),a=r.coordinate,i=t.geometries,o=ce(a,"type","rect");if(o==="rect"&&i.length){Ge(r.axes)&&(r.axes={});var l=r.axes,s=$t(i[0].getXYFields(),2),u=s[0],c=s[1],d=uO(l,u),f=uO(l,c);d!==!1&&(r.axes[u]=this.getXAxisOption(u,l,d,n)),f!==!1&&(r.axes[c]=this.getYAxisOption(c,l,f,n))}},e.prototype.getFacetDataFilter=function(t){return function(n){return dH(t,function(r){var a=r.field,i=r.value;return!Ge(i)&&a?n[a]===i:!0})}},e}(),t2e={},DBt=function(e){return t2e[Ky(e)]},Jy=function(e,t){t2e[Ky(e)]=t},Mr=function(){function e(t,n){this.context=t,this.cfg=n,t.addAction(this)}return e.prototype.applyCfg=function(t){vr(this,t)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),MBt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.execute=function(){this.callback&&this.callback(this.context)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},t}(Mr),zH={};function $Bt(e,t){var n=zH[e],r=null;if(n){var a=n.ActionClass,i=n.cfg;r=new a(t,i),r.name=e,r.init()}return r}function X3(e){var t=zH[e];return ce(t,"ActionClass")}function Vt(e,t,n){zH[e]={ActionClass:t,cfg:n}}function LBt(e,t){var n=new MBt(t);return n.callback=e,n.name="callback",n}function PBt(e,t){var n=[];if(e.length){n.push(["M",e[0].x,e[0].y]);for(var r=1,a=e.length;r=o[u]?1:0,f=c>Math.PI?1:0,p=n.convert(l),h=K3(n,p);if(h>=.5)if(c===Math.PI*2){var m={x:(l.x+o.x)/2,y:(l.y+o.y)/2},v=n.convert(m);s.push(["A",h,h,0,f,d,v.x,v.y]),s.push(["A",h,h,0,f,d,p.x,p.y])}else s.push(["A",h,h,0,f,d,p.x,p.y]);return s}function BBt(e){oe(e,function(t,n){var r=t;if(r[0].toLowerCase()==="a"){var a=e[n-1],i=e[n+1];i&&i[0].toLowerCase()==="a"?a&&a[0].toLowerCase()==="l"&&(a[0]="M"):a&&a[0].toLowerCase()==="a"&&i&&i[0].toLowerCase()==="l"&&(i[0]="M")}})}var zBt=function(e,t,n,r){var a,i=[],o=!!r,l,s,u,c,d,f,p;if(o){a=$t(r,2),u=a[0],c=a[1];for(var h=0,m=e.length;h2&&(n.push([a].concat(o.splice(0,2))),l="l",a=a==="m"?"l":"L"),l==="o"&&o.length===1&&n.push([a,o[0]]),l==="r")n.push([a].concat(o));else for(;o.length>=t[l]&&(n.push([a].concat(o.splice(0,t[l]))),!!t[l]););return""}),n}var Yae=function(e,t,n){return e>=t&&e<=n};function GBt(e,t,n,r){var a=.001,i={x:n.x-e.x,y:n.y-e.y},o={x:t.x-e.x,y:t.y-e.y},l={x:r.x-n.x,y:r.y-n.y},s=o.x*l.y-o.y*l.x,u=s*s,c=o.x*o.x+o.y*o.y,d=l.x*l.x+l.y*l.y,f=null;if(u>a*c*d){var p=(i.x*l.y-i.y*l.x)/s,h=(i.x*o.y-i.y*o.x)/s;Yae(p,0,1)&&Yae(h,0,1)&&(f={x:e.x+p*o.x,y:e.y+p*o.y})}return f}var qBt=1e-6;function AM(e){return Math.abs(e)0!=AM(l[1]-n)>0&&AM(t-(n-o[1])*(o[0]-l[0])/(o[1]-l[1])-o[0])<0&&(r=!r)}return r}function Xae(e){for(var t=[],n=e.length,r=0;r1){var o=e[0],l=e[n-1];t.push({from:{x:l[0],y:l[1]},to:{x:o[0],y:o[1]}})}return t}function KBt(e,t){var n=!1;return oe(e,function(r){if(GBt(r.from,r.to,t.from,t.to))return n=!0,!1}),n}function Qae(e){var t=e.map(function(r){return r[0]}),n=e.map(function(r){return r[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function XBt(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY0&&a>0&&(r>=t||a>=t)}function o2e(e,t){var n=e.getCanvasBBox();return i2e(e,t)?n:null}function l2e(e,t){var n=e.event.maskShapes;return n.map(function(r){return o2e(r,t)}).filter(function(r){return!!r})}function ZBt(e,t){var n=e.event,r=n.target;return s2e(r,t)}function s2e(e,t){return i2e(e,t)?e.attr("path"):null}function JBt(e,t){var n=e.event.maskShapes;return n.map(function(r){return s2e(r,t)})}function Ap(e){var t=e.event,n,r=t.target;return r&&(n=r.get("element")),n}function Ig(e){var t=e.event,n=t.target,r;return n&&(r=n.get("delegateObject")),r}function u2e(e){var t=e.event.gEvent;return!(t&&t.fromShape&&t.toShape&&t.fromShape.get("element")===t.toShape.get("element"))}function jE(e){return e&&e.component&&e.component.isList()}function c2e(e){return e&&e.component&&e.component.isSlider()}function UE(e){var t=e.event,n=t.target;return n&&(n==null?void 0:n.get("name"))==="mask"||Q3(e)}function Q3(e){var t;return((t=e.event.target)===null||t===void 0?void 0:t.get("name"))==="multi-mask"}function HH(e,t){var n=e.event.target;if(Q3(e))return e7t(e,t);if(n.get("type")==="path"){var r=ZBt(e,t);return r?h2e(e.view,r):void 0}var a=a2e(e,t);return a?Z3(e.view,a):null}function e7t(e,t){var n=e.event.target;if(n.get("type")==="path"){var r=JBt(e,t);return r.length>0?r.flatMap(function(i){return h2e(e.view,i)}):null}var a=l2e(e,t);return a.length>0?a.flatMap(function(i){return Z3(e.view,i)}):null}function d2e(e,t,n){if(Q3(e))return t7t(e,t,n);var r=a2e(e,n);return r?f2e(r,e,t):null}function f2e(e,t,n){var r=t.view,a=HF(r,n,{x:e.x,y:e.y}),i=HF(r,n,{x:e.maxX,y:e.maxY}),o={minX:a.x,minY:a.y,maxX:i.x,maxY:i.y};return Z3(n,o)}function t7t(e,t,n){var r=l2e(e,n);return r.length>0?r.flatMap(function(a){return f2e(a,e,t)}):null}function Vi(e){var t=e.geometries,n=[];return oe(t,function(r){var a=r.elements;n=n.concat(a)}),e.views&&e.views.length&&oe(e.views,function(r){n=n.concat(Vi(r))}),n}function n7t(e,t,n){var r=Vi(e);return r.filter(function(a){return zu(a,t)===n})}function p2e(e,t){var n=e.geometries,r=[];return oe(n,function(a){var i=a.getElementsBy(function(o){return o.hasState(t)});r=r.concat(i)}),r}function zu(e,t){var n=e.getModel(),r=n.data,a;return Qe(r)?a=r[0][t]:a=r[t],a}function r7t(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY=t.x&&e.y<=t.y&&e.maxY>t.y}function Tc(e){var t=e.parent,n=null;return t&&(n=t.views.filter(function(r){return r!==e})),n}function i7t(e,t){var n=e.getCoordinate();return n.invert(t)}function HF(e,t,n){var r=i7t(e,n);return t.getCoordinate().convert(r)}function m2e(e,t,n,r){var a=!1;return oe(e,function(i){if(i[n]===t[n]&&i[r]===t[r])return a=!0,!1}),a}function Q0(e,t){var n=e.getScaleByField(t);return!n&&e.views&&oe(e.views,function(r){if(n=Q0(r,t),n)return!1}),n}var o7t=function(){function e(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return e.prototype.cache=function(){for(var t=[],n=0;n=0&&n.splice(r,1)},e.prototype.getCurrentPoint=function(){var t=this.event;if(t)if(t.target instanceof HTMLElement){var n=this.view.getCanvas(),r=n.getPointByClient(t.clientX,t.clientY);return r}else return{x:t.x,y:t.y};return null},e.prototype.getCurrentShape=function(){return ce(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var t=this.getCurrentPoint();return t?this.view.isPointInPlot(t):!1},e.prototype.isInShape=function(t){var n=this.getCurrentShape();return n?n.get("name")===t:!1},e.prototype.isInComponent=function(t){var n=g2e(this.view),r=this.getCurrentPoint();return r?!!n.find(function(a){var i=a.getBBox();return t?a.get("name")===t&&Jae(i,r):Jae(i,r)}):!1},e.prototype.destroy=function(){oe(this.actions.slice(),function(t){t.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),l7t=function(){function e(t,n){this.view=t,this.cfg=n}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}();function eie(e,t,n){var r=e.split(":"),a=r[0],i=t.getAction(a)||$Bt(a,t);if(!i)throw new Error("There is no action named ".concat(a));var o=r[1];return{action:i,methodName:o,arg:n}}function tie(e){var t=e.action,n=e.methodName,r=e.arg;if(t[n])t[n](r);else throw new Error("Action(".concat(t.name,") doesn't have a method called ").concat(n))}var kl={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},s7t=function(e){De(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.callbackCaches={},a.emitCaches={},a.steps=r,a}return t.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},t.prototype.initEvents=function(){var n=this;oe(this.steps,function(r,a){oe(r,function(i){var o=n.getActionCallback(a,i);o&&n.bindEvent(i.trigger,o)})})},t.prototype.clearEvents=function(){var n=this;oe(this.steps,function(r,a){oe(r,function(i){var o=n.getActionCallback(a,i);o&&n.offEvent(i.trigger,o)})})},t.prototype.initContext=function(){var n=this.view,r=new o7t(n);this.context=r;var a=this.steps;oe(a,function(i){oe(i,function(o){if(kt(o.action))o.actionObject={action:LBt(o.action,r),methodName:"execute"};else if(Jt(o.action))o.actionObject=eie(o.action,r,o.arg);else if(Qe(o.action)){var l=o.action,s=Qe(o.arg)?o.arg:[o.arg];o.actionObject=[],oe(l,function(u,c){o.actionObject.push(eie(u,r,s[c]))})}})})},t.prototype.isAllowStep=function(n){var r=this.currentStepName,a=this.steps;if(r===n||n===kl.SHOW_ENABLE)return!0;if(n===kl.PROCESSING)return r===kl.START;if(n===kl.START)return r!==kl.PROCESSING;if(n===kl.END)return r===kl.PROCESSING||r===kl.START;if(n===kl.ROLLBACK){if(a[kl.END])return r===kl.END;if(r===kl.START)return!0}return!1},t.prototype.isAllowExecute=function(n,r){if(this.isAllowStep(n)){var a=this.getKey(n,r);return r.once&&this.emitCaches[a]?!1:r.isEnable?r.isEnable(this.context):!0}return!1},t.prototype.enterStep=function(n){this.currentStepName=n,this.emitCaches={}},t.prototype.afterExecute=function(n,r){n!==kl.SHOW_ENABLE&&this.currentStepName!==n&&this.enterStep(n);var a=this.getKey(n,r);this.emitCaches[a]=!0},t.prototype.getKey=function(n,r){return n+r.trigger+r.action},t.prototype.getActionCallback=function(n,r){var a=this,i=this.context,o=this.callbackCaches,l=r.actionObject;if(r.action&&l){var s=this.getKey(n,r);if(!o[s]){var u=function(c){i.event=c,a.isAllowExecute(n,r)?(Qe(l)?oe(l,function(d){i.event=c,tie(d)}):(i.event=c,tie(l)),a.afterExecute(n,r),r.callback&&(i.event=c,r.callback(i))):i.event=null};r.debounce?o[s]=hCe(u,r.debounce.wait,r.debounce.immediate):r.throttle?o[s]=pH(u,r.throttle.wait,{leading:r.throttle.leading,trailing:r.throttle.trailing}):o[s]=u}return o[s]}return null},t.prototype.bindEvent=function(n,r){var a=n.split(":");a[0]==="window"?window.addEventListener(a[1],r):a[0]==="document"?document.addEventListener(a[1],r):this.view.on(n,r)},t.prototype.offEvent=function(n,r){var a=n.split(":");a[0]==="window"?window.removeEventListener(a[1],r):a[0]==="document"?document.removeEventListener(a[1],r):this.view.off(n,r)},t}(l7t),v2e={};function u7t(e){return v2e[Ky(e)]}function cn(e,t){v2e[Ky(e)]=t}function c7t(e,t,n){var r=u7t(e);if(!r)return null;if(Cc(r)){var a=vr(Bo(r),n);return new s7t(t,a)}else{var i=r;return new i(t,n)}}function d7t(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}function f7t(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}function y2e(e){var t,n={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},r=d7t(e),a=f7t(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(i){var o=i.geometry.coordinate;if(o.isPolar&&o.isTransposed){var l=zE(i.getModel(),o),s=l.startAngle,u=l.endAngle,c=(s+u)/2,d=7.5,f=d*Math.cos(c),p=d*Math.sin(c);return{matrix:Ua(null,[["t",f,p]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:U(U({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:U(U({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:U(U({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:U(U({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:U(U({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:U(U({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:U(U({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:U(U({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:At({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:At({},r.grid,{line:{type:"circle"}})}},legend:{common:a,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:a.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(t={},t["".concat(jd)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},t["".concat(Ud)]={marginBottom:"12px",marginTop:"12px"},t["".concat(BE)]={margin:0,listStyleType:"none",padding:0},t["".concat(W3)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},t["".concat(G3)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},t["".concat(q3)]={display:"inline-block",float:"right",marginLeft:"30px"},t)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var ur={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Km={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},p7t=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],h7t=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],g7t=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],b2e=function(e){e===void 0&&(e={});var t=e.paletteQualitative10,n=t===void 0?p7t:t,r=e.paletteQualitative20,a=r===void 0?h7t:r,i=e.brandColor,o=i===void 0?n[0]:i,l={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:a,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:g7t,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial, + "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", + "Noto Color Emoji"`,axisLineBorderColor:ur[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:ur[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Km[85],axisTickLineBorderColor:ur[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:ur[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:ur[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:ur[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:ur[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:ur[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ur[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ur[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:ur[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:ur[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:ur[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:ur[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:ur[25],annotationArcBorderColor:ur[15],annotationArcBorder:1,annotationLineBorderColor:ur[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:ur[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ur[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:ur[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:ur[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:ur[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Km[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:ur[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Km[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:ur[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Km[100],pointBorderOpacity:1,pointActiveBorderColor:ur[100],pointSelectedBorder:2,pointSelectedBorderColor:ur[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:Km[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:ur[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ur[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ur[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ur[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ur[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ur[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Km[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ur[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ur[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return U(U({},l),e)};b2e();function dO(e){var t=e.styleSheet,n=t===void 0?{}:t,r=mr(e,["styleSheet"]),a=b2e(n);return At({},y2e(a),r)}var m7t=dO({}),jF={default:m7t};function xx(e){return ce(jF,Ky(e),jF.default)}function v7t(e,t){jF[Ky(e)]=dO(t)}function nie(e,t,n){var r=n.translate(e),a=n.translate(t);return Bi(r,a)}function y7t(e,t){var n=t.coordinate,r=t.getXScale(),a=r.range,i=a[a.length-1],o=a[0],l=n.invert(e),s=l.x;return n.isPolar&&s>(1+i)/2&&(s=o),r.translate(r.invert(s))}function rie(e,t,n){var r=n.coordinate,a=n.getYScale(),i=a.field,o=r.invert(t),l=a.invert(o.y),s=ku(e,function(u){var c=u[Cr];return c[i][0]<=l&&c[i][1]>=l});return s||e[e.length-1]}var b7t=Xy(function(e){if(e.isCategory)return 1;for(var t=e.values,n=t.length,r=e.translate(t[0]),a=r,i=0;ia&&(a=l)}return(a-r)/(n-1)});function x7t(e,t,n){var r=t.getAttribute("position"),a=r.getFields(),i=t.scales,o=kt(n)||!n?a[0]:n,l=i[o],s=l?l.getText(e[o]):e[o]||o;return kt(n)?n(s,e):s}function E7t(e){var t=S3(e.attributes);return Gi(t,function(n){return wh(Ov,n.type)})}function x2e(e){var t,n,r=E7t(e),a;try{for(var i=tr(r),o=i.next();!o.done;o=i.next()){var l=o.value,s=l.getScale(l.type);if(s&&s.isLinear){var u=ce(e.scaleDefs,s.field),c=Zwe(s,u,l.type,e.type);if(c!=="cat"){a=s;break}}}}catch(p){t={error:p}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}var d=e.getXScale(),f=e.getYScale();return a||f||d}function S7t(e,t){var n=t.field,r=e[n];if(Qe(r)){var a=r.map(function(i){return t.getText(i)});return a.join("-")}return t.getText(r)}function C7t(e,t){var n,r=t.getGroupScales();if(r.length&&(n=r[0]),n){var a=n.field;return n.getText(e[a])}var i=x2e(t);return HE(i)}function E2e(e,t,n){if(t.length===0)return null;var r=n.type,a=n.getXScale(),i=n.getYScale(),o=a.field,l=i.field,s=null;if(r==="heatmap"||r==="point"){for(var u=n.coordinate,c=u.invert(e),d=a.invert(c.x),f=i.invert(c.y),p=1/0,h=0;h=E)if(I)Qe(s)||(s=[]),s.push(T);else{s=T;break}}Qe(s)&&(s=rie(s,e,n))}else{var A=void 0;if(!a.isLinear&&a.type!=="timeCat"){for(var h=0;ha.translate(w)||Ea.max||EMath.abs(a.translate(A[Cr][o])-E)&&(x=A)}var L=b7t(n.getXScale());return!s&&Math.abs(a.translate(x[Cr][o])-E)<=L/2&&(s=x),s}function UH(e,t,n,r){var a,i;n===void 0&&(n=""),r===void 0&&(r=!1);var o=e[Cr],l=x7t(o,t,n),s=t.tooltipOption,u=t.theme.defaultColor,c=[],d,f;function p(T,A){if(r||!Ge(A)&&A!==""){var O={title:l,data:o,mappingData:e,name:T,value:A,color:e.color||u,marker:!0};c.push(O)}}if(pr(s)){var h=s.fields,m=s.callback;if(m){var v=h.map(function(T){return e[Cr][T]}),y=m.apply(void 0,Wt([],$t(v),!1)),b=U({data:e[Cr],mappingData:e,title:l,color:e.color||u,marker:!0},y);c.push(b)}else{var x=t.scales;try{for(var E=tr(h),S=E.next();!S.done;S=E.next()){var C=S.value;if(!Ge(o[C])){var w=x[C];d=HE(w),f=w.getText(o[C]),p(d,f)}}}catch(T){a={error:T}}finally{try{S&&!S.done&&(i=E.return)&&i.call(E)}finally{if(a)throw a.error}}}}else{var I=x2e(t);f=S7t(o,I),d=C7t(o,t),p(d,f)}return c}function aie(e,t,n,r){var a,i,o=r.showNil,l=[],s=e.dataArray;if(!vl(s)){e.sort(s);try{for(var u=tr(s),c=u.next();!c.done;c=u.next()){var d=c.value,f=E2e(t,d,e);if(f){var p=e.getElementId(f),h=e.elementsMap[p];if(e.type==="heatmap"||h.visible){var m=UH(f,e,n,o);m.length&&l.push(m)}}}}catch(v){a={error:v}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}}return l}function iie(e,t,n,r){var a=r.showNil,i=[],o=e.container,l=o.getShape(t.x,t.y);if(l&&l.get("visible")&&l.get("origin")){var s=l.get("origin").mappingData,u=UH(s,e,n,a);u.length&&i.push(u)}return i}function UF(e,t,n){var r,a,i=[],o=e.geometries,l=n.shared,s=n.title,u=n.reversed;try{for(var c=tr(o),d=c.next();!d.done;d=c.next()){var f=d.value;if(f.visible&&f.tooltipOption!==!1){var p=f.type,h=void 0;["point","edge","polygon"].includes(p)?h=iie(f,t,s,n):["area","line","path","heatmap"].includes(p)||l!==!1?h=aie(f,t,s,n):h=iie(f,t,s,n),h.length&&(u&&h.reverse(),i.push(h))}}}catch(m){r={error:m}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}return i}function w7t(e,t,n){var r,a,i=UF(e,t,n);try{for(var o=tr(e.views),l=o.next();!l.done;l=o.next()){var s=l.value;i=i.concat(UF(s,t,n))}}catch(u){r={error:u}}finally{try{l&&!l.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return i}function T7t(e){return!un(e)&&!Qe(e)}function VH(e){e===void 0&&(e=0);var t=Qe(e)?e:[e];switch(t.length){case 0:t=[0,0,0,0];break;case 1:t=new Array(4).fill(t[0]);break;case 2:t=Wt(Wt([],$t(t),!1),$t(t),!1);break;case 3:t=Wt(Wt([],$t(t),!1),[t[1]],!1);break;default:t=t.slice(0,4);break}return t}var WH={};function em(e,t){WH[e]=t}function A7t(){return Object.keys(WH)}function I7t(e){return WH[e]}var O7t=function(){function e(t){this.option=this.wrapperOption(t)}return e.prototype.update=function(t){return this.option=this.wrapperOption(t),this},e.prototype.hasAction=function(t){var n=this.option.actions;return b3(n,function(r){return r[0]===t})},e.prototype.create=function(t,n){var r=this.option,a=r.type,i=r.cfg,o=a==="theta",l=U({start:t,end:n},i),s=H8t(o?"polar":a);return this.coordinate=new s(l),this.coordinate.type=a,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(t,n){return this.coordinate.update({start:t,end:n}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},e.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},e.prototype.scale=function(t,n){return this.option.actions.push(["scale",t,n]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(t){return U({type:"rect",actions:[],cfg:{}},t)},e.prototype.execActions=function(t){var n=this,r=this.option.actions;oe(r,function(a){var i,o=$t(a),l=o[0],s=o.slice(1),u=Ge(t)?!0:t.includes(l);u&&(i=n.coordinate)[l].apply(i,Wt([],$t(s),!1))})},e}(),ra=function(){function e(t,n,r){this.view=t,this.gEvent=n,this.data=r,this.type=n.type}return e.fromData=function(t,n,r){return new e(t,new pC(n,{}),r)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}();function k7t(e){var t=e.getController("axis"),n=e.getController("legend"),r=e.getController("annotation"),a=e.getController("slider"),i=e.getController("scrollbar");[t,a,i,n,r].forEach(function(o){o&&o.layout()})}var R7t=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(t,n,r,a){var i=r,o=this.getScaleMeta(a);if(n.length===0&&o){var l=o.scale,s={type:l.type};l.isCategory&&(s.values=l.values),i=At(s,o.scaleDef,r)}var u=OBt(t,n,i);return this.cacheScale(u,r,a),u},e.prototype.sync=function(t,n){var r=this;this.syncScales.forEach(function(a,i){var o=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER,s=[];oe(a,function(u){var c=r.getScale(u);l=un(c.max)?Math.max(l,c.max):l,o=un(c.min)?Math.min(o,c.min):o,oe(c.values,function(d){s.includes(d)||s.push(d)})}),oe(a,function(u){var c=r.getScale(u);if(c.isContinuous)c.change({min:o,max:l,values:s});else if(c.isCategory){var d=c.range,f=r.getScaleMeta(u);s&&!ce(f,["scaleDef","range"])&&(d=Jwe(At({},c,{values:s}),t,n)),c.change({values:s,range:d})}})})},e.prototype.cacheScale=function(t,n,r){var a=this.getScaleMeta(r);a&&a.scale.type===t.type?(kBt(a.scale,t),a.scaleDef=n):(a={key:r,scale:t,scaleDef:n},this.scales.set(r,a));var i=this.getSyncKey(a);if(a.syncKey=i,this.removeFromSyncScales(r),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(r)}},e.prototype.getScale=function(t){var n=this.getScaleMeta(t);if(!n){var r=qa(t.split("-")),a=this.syncScales.get(r);a&&a.length&&(n=this.getScaleMeta(a[0]))}return n&&n.scale},e.prototype.deleteScale=function(t){var n=this.getScaleMeta(t);if(n){var r=n.syncKey,a=this.syncScales.get(r);if(a&&a.length){var i=a.indexOf(t);i!==-1&&a.splice(i,1)}}this.scales.delete(t)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(t){var n=this;this.syncScales.forEach(function(r,a){var i=r.indexOf(t);if(i!==-1)return r.splice(i,1),r.length===0&&n.syncScales.delete(a),!1})},e.prototype.getSyncKey=function(t){var n=t.scale,r=t.scaleDef,a=n.field,i=ce(r,["sync"]);return i===!0?a:i===!1?void 0:i},e.prototype.getScaleMeta=function(t){return this.scales.get(t)},e}(),pA=function(){function e(t,n,r,a){t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),a===void 0&&(a=0),this.top=t,this.right=n,this.bottom=r,this.left=a}return e.instance=function(t,n,r,a){return t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),a===void 0&&(a=0),new e(t,n,r,a)},e.prototype.max=function(t){var n=$t(t,4),r=n[0],a=n[1],i=n[2],o=n[3];return this.top=Math.max(this.top,r),this.right=Math.max(this.right,a),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(t){var n=$t(t,4),r=n[0],a=n[1],i=n[2],o=n[3];return this.top+=r,this.right+=a,this.bottom+=i,this.left+=o,this},e.prototype.inc=function(t,n){var r=t.width,a=t.height;switch(n){case ct.TOP:case ct.TOP_LEFT:case ct.TOP_RIGHT:this.top+=a;break;case ct.RIGHT:case ct.RIGHT_TOP:case ct.RIGHT_BOTTOM:this.right+=r;break;case ct.BOTTOM:case ct.BOTTOM_LEFT:case ct.BOTTOM_RIGHT:this.bottom+=a;break;case ct.LEFT:case ct.LEFT_TOP:case ct.LEFT_BOTTOM:this.left+=r;break}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,Wt([void 0],$t(this.getPadding()),!1)))},e}();function _7t(e){var t=e.padding;if(!T7t(t))return new(pA.bind.apply(pA,Wt([void 0],$t(VH(t)),!1)));var n=e.viewBBox,r=new pA,a=[],i=[],o=[];return oe(e.getComponents(),function(l){var s=l.type;s===yi.AXIS?a.push(l):[yi.LEGEND,yi.SLIDER,yi.SCROLLBAR].includes(s)?i.push(l):s!==yi.GRID&&s!==yi.TOOLTIP&&o.push(l)}),oe(a,function(l){var s=l.component,u=s.getLayoutBBox(),c=new Uo(u.x,u.y,u.width,u.height),d=c.exceed(n);r.max(d)}),oe(i,function(l){var s=l.component,u=l.direction,c=s.getLayoutBBox(),d=s.get("padding"),f=new Uo(c.x,c.y,c.width,c.height).expand(d);r.inc(f,u)}),oe(o,function(l){var s=l.component,u=l.direction,c=s.getLayoutBBox(),d=new Uo(c.x,c.y,c.width,c.height);r.inc(d,u)}),r}function N7t(e,t,n){var r=n.instance();t.forEach(function(a){a.autoPadding=r.max(a.autoPadding.getPadding())})}var S2e=function(e){De(t,e);function t(n){var r=e.call(this,{visible:n.visible})||this;r.views=[],r.geometries=[],r.controllers=[],r.interactions={},r.limitInPlot=!1,r.options={data:[],animate:!0},r.usedControllers=A7t(),r.scalePool=new R7t,r.layoutFunc=k7t,r.isPreMouseInPlot=!1,r.isDataChanged=!1,r.isCoordinateChanged=!1,r.createdScaleKeys=new Map,r.onCanvasEvent=function(x){var E=x.name;if(!E.includes(":")){var S=r.createViewEvent(x);r.doPlotEvent(S),r.emit(E,S)}},r.onDelegateEvents=function(x){var E=x.name;if(E.includes(":")){var S=r.createViewEvent(x);r.emit(E,S)}};var a=n.id,i=a===void 0?qp("view"):a,o=n.parent,l=n.canvas,s=n.backgroundGroup,u=n.middleGroup,c=n.foregroundGroup,d=n.region,f=d===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:d,p=n.padding,h=n.appendPadding,m=n.theme,v=n.options,y=n.limitInPlot,b=n.syncViewPadding;return r.parent=o,r.canvas=l,r.backgroundGroup=s,r.middleGroup=u,r.foregroundGroup=c,r.region=f,r.padding=p,r.appendPadding=h,r.options=U(U({},r.options),v),r.limitInPlot=y,r.id=i,r.syncViewPadding=b,r.themeObject=pr(m)?At({},xx("default"),dO(m)):xx(m),r.init(),r}return t.prototype.setLayout=function(n){this.layoutFunc=n},t.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},t.prototype.render=function(n,r){n===void 0&&(n=!1),this.emit(yn.BEFORE_RENDER,ra.fromData(this,yn.BEFORE_RENDER,r)),this.paint(n),this.emit(yn.AFTER_RENDER,ra.fromData(this,yn.AFTER_RENDER,r)),this.visible===!1&&this.changeVisible(!1)},t.prototype.clear=function(){var n=this;this.emit(yn.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var r=this.geometries,a=0;a');A.appendChild(O);var R=Ire(A,s,i,o),N=BLt(f),_=new N.Canvas(U({container:O,pixelRatio:p,localRefresh:m,supportCSSTransform:x},R));return r=e.call(this,{parent:null,canvas:_,backgroundGroup:_.addGroup({zIndex:Xv.BG}),middleGroup:_.addGroup({zIndex:Xv.MID}),foregroundGroup:_.addGroup({zIndex:Xv.FORE}),padding:u,appendPadding:c,visible:y,options:C,limitInPlot:w,theme:I,syncViewPadding:T})||this,r.onResize=hCe(function(){r.forceFit()},300),r.ele=A,r.canvas=_,r.width=R.width,r.height=R.height,r.autoFit=s,r.localRefresh=m,r.renderer=f,r.wrapperElement=O,r.updateCanvasStyle(),r.bindAutoFit(),r.initDefaultInteractions(S),r}return t.prototype.initDefaultInteractions=function(n){var r=this;oe(n,function(a){r.interaction(a)})},t.prototype.aria=function(n){var r="aria-label";n===!1?this.ele.removeAttribute(r):this.ele.setAttribute(r,n.label)},t.prototype.changeSize=function(n,r){return this.width===n&&this.height===r?this:(this.emit(yn.BEFORE_CHANGE_SIZE),this.width=n,this.height=r,this.canvas.changeSize(n,r),this.render(!0),this.emit(yn.AFTER_CHANGE_SIZE),this)},t.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),GLt(this.wrapperElement),this.wrapperElement=null},t.prototype.changeVisible=function(n){return e.prototype.changeVisible.call(this,n),this.wrapperElement.style.display=n?"":"none",this},t.prototype.forceFit=function(){if(!this.destroyed){var n=Ire(this.ele,!0,this.width,this.height),r=n.width,a=n.height;this.changeSize(r,a)}},t.prototype.updateCanvasStyle=function(){wo(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},t.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},t.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},t}(S2e),eb=function(){function e(t){this.visible=!0,this.components=[],this.view=t}return e.prototype.clear=function(t){oe(this.components,function(n){n.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach(function(n){t?n.component.show():n.component.hide()}),this.visible=t)},e}();function M7t(e){for(var t=[],n=function(a){var i=e[a],o=ku(t,function(l){return l.color===i.color&&l.name===i.name&&l.value===i.value&&l.title===i.title});o||t.push(i)},r=0;r1){var E=u[0],S=Math.abs(n.y-E[0].y);try{for(var C=tr(u),w=C.next();!w.done;w=C.next()){var I=w.value,T=Math.abs(n.y-I[0].y);T<=S&&(E=I,S=T)}}catch(A){l={error:A}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(l)throw l.error}}u=[E]}return M7t(as(u))}return[]},t.prototype.layout=function(){},t.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var n=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}})}},t.prototype.isCursorEntered=function(n){if(this.tooltip){var r=this.tooltip.getContainer(),a=this.tooltip.get("capture");if(r&&a){var i=r.getBoundingClientRect(),o=i.x,l=i.y,s=i.width,u=i.height;return new Uo(o,l,s,u).isPointIn(n)}}return!1},t.prototype.getTooltipCfg=function(){var n=this.view,r=n.getOptions().tooltip,a=this.processCustomContent(r),i=n.getTheme(),o=ce(i,["components","tooltip"],{}),l=ce(a,"enterable",o.enterable);return At({},o,a,{capture:!!(l||this.isLocked)})},t.prototype.processCustomContent=function(n){if(G0(n)||!ce(n,"customContent"))return n;var r=n.customContent,a=function(i,o){var l=r(i,o)||"";return Jt(l)?'
    '+l+"
    ":l};return U(U({},n),{customContent:a})},t.prototype.getTitle=function(n){var r=n[0].title||n[0].name;return this.title=r,r},t.prototype.renderTooltip=function(){var n=this.view.getCanvas(),r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},a=this.getTooltipCfg(),i=new Y3(U(U({parent:n.get("el").parentNode,region:r},a),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},t.prototype.renderTooltipMarkers=function(n,r){var a,i,o=this.getTooltipMarkersGroup(),l=this.view.getRootView(),s=l.limitInPlot;try{for(var u=tr(n),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.x,p=d.y;if(s||o!=null&&o.getClip()){var h=BH(l.getCoordinate()),m=h.type,v=h.attrs;o==null||o.setClip({type:m,attrs:v})}else o==null||o.setClip(void 0);var y=this.view.getTheme(),b=ce(y,["components","tooltip","marker"],{}),x=U(U({fill:d.color,symbol:"circle",shadowColor:d.color},kt(r)?U(U({},b),r(d)):r),{x:f,y:p});o.addShape("marker",{attrs:x})}}catch(E){a={error:E}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}},t.prototype.renderCrosshairs=function(n,r){var a=ce(r,["crosshairs","type"],"x");a==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(n,r)):a==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(n,r)):a==="xy"&&(this.renderXCrosshairs(n,r),this.renderYCrosshairs(n,r))},t.prototype.renderXCrosshairs=function(n,r){var a=this.getViewWithGeometry(this.view).getCoordinate(),i,o;if(a.isRect)a.isTransposed?(i={x:a.start.x,y:n.y},o={x:a.end.x,y:n.y}):(i={x:n.x,y:a.end.y},o={x:n.x,y:a.start.y});else{var l=X0(a,n),s=a.getCenter(),u=a.getRadius();o=Ma(s.x,s.y,u,l),i=s}var c=At({start:i,end:o,container:this.getTooltipCrosshairsGroup()},ce(r,"crosshairs",{}),this.getCrosshairsText("x",n,r));delete c.type;var d=this.xCrosshair;d?d.update(c):(d=new Vwe(c),d.init()),d.render(),d.show(),this.xCrosshair=d},t.prototype.renderYCrosshairs=function(n,r){var a=this.getViewWithGeometry(this.view).getCoordinate(),i,o;if(a.isRect){var l=void 0,s=void 0;a.isTransposed?(l={x:n.x,y:a.end.y},s={x:n.x,y:a.start.y}):(l={x:a.start.x,y:n.y},s={x:a.end.x,y:n.y}),i={start:l,end:s},o="Line"}else i={center:a.getCenter(),radius:K3(a,n),startAngle:a.startAngle,endAngle:a.endAngle},o="Circle";i=At({container:this.getTooltipCrosshairsGroup()},i,ce(r,"crosshairs",{}),this.getCrosshairsText("y",n,r)),delete i.type;var u=this.yCrosshair;u?a.isRect&&u.get("type")==="circle"||!a.isRect&&u.get("type")==="line"?(u=new Pae[o](i),u.init()):u.update(i):(u=new Pae[o](i),u.init()),u.render(),u.show(),this.yCrosshair=u},t.prototype.getCrosshairsText=function(n,r,a){var i=ce(a,["crosshairs","text"]),o=ce(a,["crosshairs","follow"]),l=this.items;if(i){var s=this.getViewWithGeometry(this.view),u=l[0],c=s.getXScale(),d=s.getYScales()[0],f=void 0,p=void 0;if(o){var h=this.view.getCoordinate().invert(r);f=c.invert(h.x),p=d.invert(h.y)}else f=u.data[c.field],p=u.data[d.field];var m=n==="x"?f:p;return kt(i)?i=i(n,m,l,r):i.content=m,{text:i}}},t.prototype.getGuideGroup=function(){if(!this.guideGroup){var n=this.view.foregroundGroup;this.guideGroup=n.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},t.prototype.getTooltipMarkersGroup=function(){var n=this.tooltipMarkersGroup;return n&&!n.destroyed?(n.clear(),n.show()):(n=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),n.toFront(),this.tooltipMarkersGroup=n),n},t.prototype.getTooltipCrosshairsGroup=function(){var n=this.tooltipCrosshairsGroup;return n||(n=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),n.toBack(),this.tooltipCrosshairsGroup=n),n},t.prototype.findItemsFromView=function(n,r){var a,i;if(n.getOptions().tooltip===!1)return[];var o=this.getTooltipCfg(),l=UF(n,r,o);try{for(var s=tr(n.views),u=s.next();!u.done;u=s.next()){var c=u.value;l=l.concat(this.findItemsFromView(c,r))}}catch(d){a={error:d}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}return l},t.prototype.getViewWithGeometry=function(n){var r=this;return n.geometries.length?n:ku(n.views,function(a){return r.getViewWithGeometry(a)})},t.prototype.getItemsAfterProcess=function(n){var r=this.getTooltipCfg().customItems,a=r||function(i){return i};return a(n)},t}(eb),w2e={};function T2e(e){return w2e[e.toLowerCase()]}function us(e,t){w2e[e.toLowerCase()]=t}var Z0={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},$7t={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},oie={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var t;return e.isRect?t=e.isTransposed?"grow-in-x":"grow-in-y":(t="grow-in-xy",e.isPolar&&e.isTransposed&&(t="wave-in")),{animation:t}},schema:function(e){var t;return e.isRect?t=e.isTransposed?"grow-in-x":"grow-in-y":t="grow-in-xy",{animation:t}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function L7t(e,t){return{delay:kt(e.delay)?e.delay(t):e.delay,easing:kt(e.easing)?e.easing(t):e.easing,duration:kt(e.duration)?e.duration(t):e.duration,callback:e.callback,repeat:e.repeat}}function A2e(e,t,n){var r=$7t[e];return r&&(kt(r)&&(r=r(t)),r=At({},Z0,r),n)?r[n]:r}function Jv(e,t,n){var r=ce(e.get("origin"),"data",Cr),a=t.animation,i=L7t(t,r);if(a){var o=T2e(a);o&&o(e,i,n)}else e.animate(n.toAttrs,i)}function P7t(e,t,n,r,a){if(oie[n]){var i=oie[n](r),o=T2e(ce(i,"animation",""));if(o){var l=U(U(U({},Z0.appear),i),t);e.stopAnimate(),o(e,l,{coordinate:r,minYPoint:a,toAttrs:null})}}}var GH="element-background",I2e=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;r.labelShape=[],r.states=[];var a=n.shapeFactory,i=n.container,o=n.offscreenGroup,l=n.elementIndex,s=n.visible,u=s===void 0?!0:s;return r.shapeFactory=a,r.container=i,r.offscreenGroup=o,r.visible=u,r.elementIndex=l,r}return t.prototype.draw=function(n,r){r===void 0&&(r=!1),this.model=n,this.data=n.data,this.shapeType=this.getShapeType(n),this.drawShape(n,r),this.visible===!1&&this.changeVisible(!1)},t.prototype.update=function(n){var r=this,a=r.shapeFactory,i=r.shape;if(i){this.model=n,this.data=n.data,this.shapeType=this.getShapeType(n),this.setShapeInfo(i,n);var o=this.getOffscreenGroup(),l=a.drawShape(this.shapeType,n,o);l.cfg.data=this.data,l.cfg.origin=n,l.cfg.element=this,this.syncShapeStyle(i,l,this.getStates(),this.getAnimateCfg("update"))}},t.prototype.destroy=function(){var n=this,r=n.shapeFactory,a=n.shape;if(a){var i=this.getAnimateCfg("leave");i?Jv(a,i,{coordinate:r.coordinate,toAttrs:U({},a.attr())}):a.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},t.prototype.changeVisible=function(n){e.prototype.changeVisible.call(this,n),n?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(r){r.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(r){r.hide()}))},t.prototype.setState=function(n,r){var a=this,i=a.states,o=a.shapeFactory,l=a.model,s=a.shape,u=a.shapeType,c=i.indexOf(n);if(r){if(c>-1)return;i.push(n),(n==="active"||n==="selected")&&(s==null||s.toFront())}else{if(c===-1)return;if(i.splice(c,1),n==="active"||n==="selected"){var d=this.geometry,f=d.sortZIndex,p=d.zIndexReversed,h=p?this.geometry.elements.length-this.elementIndex:this.elementIndex;f?s.setZIndex(h):s.set("zIndex",h)}}var m=o.drawShape(u,l,this.getOffscreenGroup());i.length?this.syncShapeStyle(s,m,i,null):this.syncShapeStyle(s,m,["reset"],null),m.remove(!0);var v={state:n,stateStatus:r,element:this,target:this.container};this.container.emit("statechange",v),Rwe(this.shape,"statechange",v)},t.prototype.clearStates=function(){var n=this,r=this.states;oe(r,function(a){n.setState(a,!1)}),this.states=[]},t.prototype.hasState=function(n){return this.states.includes(n)},t.prototype.getStates=function(){return this.states},t.prototype.getData=function(){return this.data},t.prototype.getModel=function(){return this.model},t.prototype.getBBox=function(){var n=this,r=n.shape,a=n.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return r&&(i=r.getCanvasBBox()),a&&a.forEach(function(o){var l=o.getCanvasBBox();i.x=Math.min(l.x,i.x),i.y=Math.min(l.y,i.y),i.minX=Math.min(l.minX,i.minX),i.minY=Math.min(l.minY,i.minY),i.maxX=Math.max(l.maxX,i.maxX),i.maxY=Math.max(l.maxY,i.maxY)}),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},t.prototype.getStatesStyle=function(){if(!this.statesStyle){var n=this,r=n.shapeType,a=n.geometry,i=n.shapeFactory,o=a.stateOption,l=i.defaultShapeType,s=i.theme[r]||i.theme[l];this.statesStyle=At({},s,o)}return this.statesStyle},t.prototype.getStateStyle=function(n,r){var a=this.getStatesStyle(),i=ce(a,[n,"style"],{}),o=i[r]||i;return kt(o)?o(this):o},t.prototype.getAnimateCfg=function(n){var r=this,a=this.animate;if(a){var i=a[n];return i&&U(U({},i),{callback:function(){var o;kt(i.callback)&&i.callback(),(o=r.geometry)===null||o===void 0||o.emit(sp.AFTER_DRAW_ANIMATE)}})}return null},t.prototype.drawShape=function(n,r){var a;r===void 0&&(r=!1);var i=this,o=i.shapeFactory,l=i.container,s=i.shapeType;if(this.shape=o.drawShape(s,n,l),this.shape){this.setShapeInfo(this.shape,n);var u=this.shape.cfg.name;u?Jt(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=r?"enter":"appear",d=this.getAnimateCfg(c);d&&((a=this.geometry)===null||a===void 0||a.emit(sp.BEFORE_DRAW_ANIMATE),Jv(this.shape,d,{coordinate:o.coordinate,toAttrs:U({},this.shape.attr())}))}},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var n=this.container.getGroupBase();this.offscreenGroup=new n({})}return this.offscreenGroup},t.prototype.setShapeInfo=function(n,r){var a=this;if(n.cfg.origin=r,n.cfg.element=this,n.isGroup()){var i=n.get("children");i.forEach(function(o){a.setShapeInfo(o,r)})}},t.prototype.syncShapeStyle=function(n,r,a,i,o){var l=this,s;if(a===void 0&&(a=[]),o===void 0&&(o=0),!(!n||!r)){var u=n.get("clipShape"),c=r.get("clipShape");if(this.syncShapeStyle(u,c,a,i),n.isGroup())for(var d=n.get("children"),f=r.get("children"),p=0;p=0?i=r:a<=0?i=a:i=0,i},t.prototype.createAttrOption=function(n,r,a){if(Ge(r)||pr(r))pr(r)&&fa(Object.keys(r),["values"])?za(this.attributeOption,n,{fields:r.values}):za(this.attributeOption,n,r);else{var i={};un(r)?i.values=[r]:i.fields=o1(r),a&&(kt(a)?i.callback=a:i.values=a),za(this.attributeOption,n,i)}},t.prototype.initAttributes=function(){var n=this,r=this,a=r.attributes,i=r.attributeOption,o=r.theme,l=r.shapeType;this.groupScales=[];var s={},u=function(f){if(i.hasOwnProperty(f)){var p=i[f];if(!p)return{value:void 0};var h=U({},p),m=h.callback,v=h.values,y=h.fields,b=y===void 0?[]:y,x=b.map(function(S){var C=n.scales[S];if(!s[S]&&Ov.includes(f)){var w=Zwe(C,ce(n.scaleDefs,S),f,n.type);w==="cat"&&(n.groupScales.push(C),s[S]=!0)}return C});h.scales=x,f!=="position"&&x.length===1&&x[0].type==="identity"?h.values=x[0].values:!m&&!v&&(f==="size"?h.values=o.sizes:f==="shape"?h.values=o.shapes[l]||[]:f==="color"&&(x.length?h.values=x[0].values.length<=10?o.colors10:o.colors20:h.values=o.colors10));var E=Iwe(f);a[f]=new E(h)}};for(var c in i){var d=u(c);if(typeof d=="object")return d.value}},t.prototype.processData=function(n){var r,a;this.hasSorted=!1;for(var i=this.getAttribute("position").scales,o=i.filter(function(w){return w.isCategory}),l=this.groupData(n),s=[],u=0,c=l.length;ul&&(l=d)}var f=this.scaleDefs,p={};on.max&&!ce(f,[i,"max"])&&(p.max=l),n.change(p)},t.prototype.beforeMapping=function(n){var r=n;if(this.sortable&&this.sort(r),this.generatePoints)for(var a=0,i=r.length;a1)for(var f=0;f0})}function D2e(e,t,n){var r=n.data,a=n.origin,i=n.animateCfg,o=n.coordinate,l=ce(i,"update");e.set("data",r),e.set("origin",a),e.set("animateCfg",i),e.set("coordinate",o),e.set("visible",t.get("visible")),(e.getChildren()||[]).forEach(function(s,u){var c=t.getChildByIndex(u);if(!c)e.removeChild(s),s.remove(!0);else{s.set("data",r),s.set("origin",a),s.set("animateCfg",i),s.set("coordinate",o);var d=Qwe(s,c);l?Jv(s,l,{toAttrs:d,coordinate:o}):s.attr(d),c.isGroup()&&D2e(s,c,n)}}),oe(t.getChildren(),function(s,u){Qe(e.getChildren())&&u>=e.getCount()&&(s.destroyed||e.add(s))})}var q7t=function(){function e(t){this.shapesMap={};var n=t.layout,r=t.container;this.layout=n,this.container=r}return e.prototype.render=function(t,n,r){return r===void 0&&(r=!1),xE(this,void 0,void 0,function(){var a,i,o,l,s,u,c,d,f=this;return EE(this,function(p){switch(p.label){case 0:if(a={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=tr(t),l=o.next();!l.done;l=o.next())s=l.value,s&&(a[s.id]=this.renderLabel(s,i))}catch(h){c={error:h}}finally{try{l&&!l.done&&(d=o.return)&&d.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(t,n,a)];case 1:p.sent(),this.renderLabelLine(t,a),this.renderLabelBackground(t,a),this.adjustLabel(t,a),p.label=2;case 2:return u=this.shapesMap,oe(a,function(h,m){if(h.destroyed)delete a[m];else{if(u[m]){var v=h.get("data"),y=h.get("origin"),b=h.get("coordinate"),x=h.get("animateCfg"),E=u[m];D2e(E,a[m],{data:v,origin:y,animateCfg:x,coordinate:b}),a[m]=E}else{if(f.container.destroyed)return;f.container.add(h);var S=ce(h.get("animateCfg"),r?"enter":"appear");S&&Jv(h,S,{toAttrs:U({},h.attr()),coordinate:h.get("coordinate")})}delete u[m]}}),oe(u,function(h){var m=ce(h.get("animateCfg"),"leave");m?Jv(h,m,{toAttrs:null,coordinate:h.get("coordinate")}):h.remove(!0)}),this.shapesMap=a,i.destroy(),[2]}})})},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(t,n){var r=t.id,a=t.elementId,i=t.data,o=t.mappingData,l=t.coordinate,s=t.animate,u=t.content,c=t.capture,d={id:r,elementId:a,capture:c,data:i,origin:U(U({},o),{data:o[Cr]}),coordinate:l},f=n.addGroup(U({name:"label",animateCfg:this.animate===!1||s===null||s===!1?!1:At({},this.animate,s)},d)),p;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var h=u.getCanvasBBox(),m=h.width,v=h.height,y=ce(t,"textAlign","left"),b=t.x,x=t.y-v/2;y==="center"?b=b-m/2:(y==="right"||y==="end")&&(b=b-m),xC(u,b,x),p=u,f.add(u)}else{var E=ce(t,["style","fill"]);p=f.addShape("text",U({attrs:U(U({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:ce(t,"textBaseline","middle"),text:t.content},t.style),{fill:ALt(E)?t.color:E})},d))}return t.rotate&&YH(p,t.rotate),f},e.prototype.doLayout=function(t,n,r){return xE(this,void 0,void 0,function(){var a,i=this;return EE(this,function(o){switch(o.label){case 0:return this.layout?(a=Qe(this.layout)?this.layout:[this.layout],[4,Promise.all(a.map(function(l){var s=B7t(ce(l,"type",""));if(s){var u=[],c=[];return oe(r,function(d,f){u.push(d),c.push(n[d.get("elementId")])}),s(t,u,c,i.region,l.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderLabelLine=function(t,n){oe(t,function(r){var a=ce(r,"coordinate");if(!(!r||!a)){var i=a.getCenter(),o=a.getRadius();if(r.labelLine){var l=ce(r,"labelLine",{}),s=r.id,u=l.path;if(!u){var c=Ma(i.x,i.y,o,r.angle);u=[["M",c.x,c.y],["L",r.x,r.y]]}var d=n[s];d.destroyed||d.addShape("path",{capture:!1,attrs:U({path:u,stroke:r.color?r.color:ce(r,["style","fill"],"#000"),fill:null},l.style),id:s,origin:r.mappingData,data:r.data,coordinate:r.coordinate})}}})},e.prototype.renderLabelBackground=function(t,n){oe(t,function(r){var a=ce(r,"coordinate"),i=ce(r,"background");if(!(!i||!a)){var o=r.id,l=n[o];if(!l.destroyed){var s=l.getChildren()[0];if(s){var u=N2e(l,r,i.padding),c=u.rotation,d=mr(u,["rotation"]),f=l.addShape("rect",{attrs:U(U({},d),i.style||{}),id:o,origin:r.mappingData,data:r.data,coordinate:r.coordinate});if(f.setZIndex(-1),c){var p=s.getMatrix();f.setMatrix(p)}}}}})},e.prototype.createOffscreenGroup=function(){var t=this.container,n=t.getGroupBase(),r=new n({});return r},e.prototype.adjustLabel=function(t,n){oe(t,function(r){if(r){var a=r.id,i=n[a];if(!i.destroyed){var o=i.findAll(function(l){return l.get("type")!=="path"});oe(o,function(l){l&&(r.offsetX&&l.attr("x",l.attr("x")+r.offsetX),r.offsetY&&l.attr("y",l.attr("y")+r.offsetY))})}}})},e}();function sie(e){var t=0;return oe(e,function(n){t+=n}),t/e.length}var e_=function(){function e(t){this.geometry=t}return e.prototype.getLabelItems=function(t){var n=this,r=[],a=this.getLabelCfgs(t);return oe(t,function(i,o){var l=a[o];if(!l||Ge(i.x)||Ge(i.y)){r.push(null);return}var s=Qe(l.content)?l.content:[l.content];l.content=s;var u=s.length;oe(s,function(c,d){if(Ge(c)||c===""){r.push(null);return}var f=U(U({},l),n.getLabelPoint(l,i,d));f.textAlign||(f.textAlign=n.getLabelAlign(f,d,u)),f.offset<=0&&(f.labelLine=null),r.push(f)})}),r},e.prototype.render=function(t,n){return n===void 0&&(n=!1),xE(this,void 0,void 0,function(){var r,a,i;return EE(this,function(o){switch(o.label){case 0:return r=this.getLabelItems(t),a=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,a.render(r,i,n)];case 1:return o.sent(),[2]}})})},e.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},e.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(t,n){var r=this.geometry,a=r.type,i=r.theme;return a==="polygon"||a==="interval"&&n==="middle"||t<0&&!["line","point","path"].includes(a)?ce(i,"innerLabels",{}):ce(i,"labels",{})},e.prototype.getThemedLabelCfg=function(t){var n=this.geometry,r=this.getDefaultLabelCfg(),a=n.type,i=n.theme,o;return a==="polygon"||t.offset<0&&!["line","point","path"].includes(a)?o=At({},r,i.innerLabels,t):o=At({},r,i.labels,t),o},e.prototype.setLabelPosition=function(t,n,r,a){},e.prototype.getLabelOffset=function(t){var n=this.getCoordinate(),r=this.getOffsetVector(t);return n.isTransposed?r[0]:r[1]},e.prototype.getLabelOffsetPoint=function(t,n,r){var a=t.offset,i=this.getCoordinate(),o=i.isTransposed,l=o?"x":"y",s=o?1:-1,u={x:0,y:0};return n>0||r===1?u[l]=a*s:u[l]=a*s*-1,u},e.prototype.getLabelPoint=function(t,n,r){var a=this.getCoordinate(),i=t.content.length;function o(v,y,b){b===void 0&&(b=!1);var x=v;return Qe(x)&&(t.content.length===1?b?x=sie(x):x.length<=2?x=x[v.length-1]:x=sie(x):x=x[y]),x}var l={content:t.content[r],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Qe(n.shape)?n.shape[0]:n.shape,u=s==="funnel"||s==="pyramid";if(this.geometry.type==="polygon"){var c=xBt(n.x,n.y);l.x=c[0],l.y=c[1]}else this.geometry.type==="interval"&&!u?(l.x=o(n.x,r,!0),l.y=o(n.y,r)):(l.x=o(n.x,r),l.y=o(n.y,r));if(u){var d=ce(n,"nextPoints"),f=ce(n,"points");if(d){var p=a.convert(f[1]),h=a.convert(d[1]);l.x=(p.x+h.x)/2,l.y=(p.y+h.y)/2}else if(s==="pyramid"){var p=a.convert(f[1]),h=a.convert(f[2]);l.x=(p.x+h.x)/2,l.y=(p.y+h.y)/2}}t.position&&this.setLabelPosition(l,n,r,t.position);var m=this.getLabelOffsetPoint(t,r,i);return l.start={x:l.x,y:l.y},l.x+=m.x,l.y+=m.y,l.color=n.color,l},e.prototype.getLabelAlign=function(t,n,r){var a="center",i=this.getCoordinate();if(i.isTransposed){var o=t.offset;o<0?a="right":o===0?a="center":a="left",r>1&&n===0&&(a==="right"?a="left":a==="left"&&(a="right"))}return a},e.prototype.getLabelId=function(t){var n=this.geometry,r=n.type,a=n.getXScale(),i=n.getYScale(),o=t[Cr],l=n.getElementId(t);return r==="line"||r==="area"?l+=" ".concat(o[a.field]):r==="path"&&(l+=" ".concat(o[a.field],"-").concat(o[i.field])),l},e.prototype.getLabelsRenderer=function(){var t=this.geometry,n=t.labelsContainer,r=t.labelOption,a=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new q7t({container:n,layout:ce(r,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=a,l.animate=i?A2e("label",o):!1,l},e.prototype.getLabelCfgs=function(t){var n=this,r=this.geometry,a=r.labelOption,i=r.scales,o=r.coordinate,l=a,s=l.fields,u=l.callback,c=l.cfg,d=s.map(function(p){return i[p]}),f=[];return oe(t,function(p,h){var m=p[Cr],v=n.getLabelText(m,d),y;if(u){var b=s.map(function(w){return m[w]});if(y=u.apply(void 0,Wt([],$t(b),!1)),Ge(y)){f.push(null);return}}var x=U(U({id:n.getLabelId(p),elementId:n.geometry.getElementId(p),data:m,mappingData:p,coordinate:o},c),y);kt(x.position)&&(x.position=x.position(m,p,h));var E=n.getLabelOffset(x.offset||0),S=n.getDefaultLabelCfg(E,x.position);x=At({},S,x),x.offset=n.getLabelOffset(x.offset||0);var C=x.content;kt(C)?x.content=C(m,p,h):Ph(C)&&(x.content=v[0]),f.push(x)}),f},e.prototype.getLabelText=function(t,n){var r=[];return oe(n,function(a){var i=t[a.field];Qe(i)?i=i.map(function(o){return a.getText(o)}):i=a.getText(i),Ge(i)||i===""?r.push(null):r.push(i)}),r},e.prototype.getOffsetVector=function(t){t===void 0&&(t=0);var n=this.getCoordinate(),r=0;return un(t)&&(r=t),n.isTransposed?n.applyMatrix(r,0):n.applyMatrix(0,r)},e.prototype.getGeometryShapes=function(){var t=this.geometry,n={};return oe(t.elementsMap,function(r,a){n[a]=r.shape}),oe(t.getOffscreenGroup().getChildren(),function(r){var a=t.getElementId(r.get("origin").mappingData);n[a]=r}),n},e}();function VF(e,t,n){if(!e)return n;var r;if(e.callback&&e.callback.length>1){var a=Array(e.callback.length-1).fill("");r=e.mapping.apply(e,Wt([t],$t(a),!1)).join("")}else r=e.mapping(t).join("");return r||n}var Og={hexagon:function(e,t,n){var r=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+r,t-n/2],["L",e+r,t+n/2],["L",e,t+n],["L",e-r,t+n/2],["L",e-r,t-n/2],["Z"]]},bowtie:function(e,t,n){var r=n-1.5;return[["M",e-n,t-r],["L",e+n,t+r],["L",e+n,t-r],["L",e-n,t+r],["Z"]]},cross:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]]},tick:function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},plus:function(e,t,n){return[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]]},hyphen:function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},line:function(e,t,n){return[["M",e,t-n],["L",e,t+n]]}},Y7t=["line","cross","tick","plus","hyphen"];function K7t(e,t){return kt(t)?t(e):At({},e,t)}function X7t(e,t){var n=e.symbol;if(Jt(n)&&Y7t.indexOf(n)!==-1){var r=ce(e,"style",{}),a=ce(r,"lineWidth",1),i=r.stroke||r.fill||t;e.style=At({},e.style,{lineWidth:a,stroke:i,fill:null})}}function M2e(e){var t=e.symbol;Jt(t)&&Og[t]&&(e.symbol=Og[t])}function IM(e){return e.startsWith(ct.LEFT)||e.startsWith(ct.RIGHT)?"vertical":"horizontal"}function $2e(e,t,n,r,a){var i=n.getScale(n.type);if(i.isCategory){var o=i.field,l=t.getAttribute("color"),s=t.getAttribute("shape"),u=e.getTheme().defaultColor,c=t.coordinate.isPolar;return i.getTicks().map(function(d,f){var p,h=d.text,m=d.value,v=h,y=i.invert(m),b=e.filterFieldData(o,[(p={},p[o]=y,p)]).length===0;oe(e.views,function(w){var I;w.filterFieldData(o,[(I={},I[o]=y,I)]).length||(b=!0)});var x=VF(l,y,u),E=VF(s,y,"point"),S=t.getShapeMarker(E,{color:x,isInPolar:c}),C=a;return kt(C)&&(C=C(v,f,U({name:v,value:y},At({},r,S)))),S=At({},r,S,il(U({},C),["style"])),X7t(S,x),C&&C.style&&(S.style=K7t(S.style,C.style)),M2e(S),{id:y,name:v,value:y,marker:S,unchecked:b}})}return[]}function Q7t(e,t,n){return n.map(function(r,a){var i=t;kt(i)&&(i=i(r.name,a,At({},e,r)));var o=kt(r.marker)?r.marker(r.name,a,At({},e,r)):r.marker,l=At({},e,i,o);return M2e(l),r.marker=l,r})}function uie(e,t){var n=ce(e,["components","legend"],{});return At({},ce(n,["common"],{}),At({},ce(n,[t],{})))}function OM(e){return e?!1:e==null||isNaN(e)}function cie(e){if(Qe(e))return OM(e[1].y);var t=e.y;return Qe(t)?OM(t[0]):OM(t)}function t_(e,t,n){if(t===void 0&&(t=!1),n===void 0&&(n=!0),!e.length||e.length===1&&!n)return[];if(t){for(var r=[],a=0,i=e.length;a=e&&a<=e+n&&i>=t&&i<=t+r}function VE(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY=0&&a<1/2*Math.PI?(l={x:o.minX,y:o.minY},s={x:o.maxX,y:o.maxY}):1/2*Math.PI<=a&&a1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var h=n*n*(f*f)+r*r*(d*d),m=h?Math.sqrt((n*n*(r*r)-h)/h):1;i===o&&(m*=-1),isNaN(m)&&(m=0);var v=r?m*n*f/r:0,y=n?m*-r*d/n:0,b=(l+u)/2+Math.cos(a)*v-Math.sin(a)*y,x=(s+c)/2+Math.sin(a)*v+Math.cos(a)*y,E=[(d-v)/n,(f-y)/r],S=[(-1*d-v)/n,(-1*f-y)/r],C=fie([1,0],E),w=fie(E,S);return GF(E,S)<=-1&&(w=Math.PI),GF(E,S)>=1&&(w=0),o===0&&w>0&&(w=w-2*Math.PI),o===1&&w<0&&(w=w+2*Math.PI),{cx:b,cy:x,rx:die(e,[u,c])?0:n,ry:die(e,[u,c])?0:r,startAngle:C,endAngle:C+w,xRotation:a,arcFlag:i,sweepFlag:o}}var pO=Math.sin,hO=Math.cos,XH=Math.atan2,B2=Math.PI;function V2e(e,t,n,r,a,i,o){var l=t.stroke,s=t.lineWidth,u=n-a,c=r-i,d=XH(c,u),f=new tj({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*hO(B2/6)+","+10*pO(B2/6)+" L0,0 L"+10*hO(B2/6)+",-"+10*pO(B2/6),stroke:l,lineWidth:s}});f.translate(a,i),f.rotateAtPoint(a,i,d),e.set(o?"startArrowShape":"endArrowShape",f)}function W2e(e,t,n,r,a,i,o){var l=t.startArrow,s=t.endArrow,u=t.stroke,c=t.lineWidth,d=o?l:s,f=d.d,p=d.fill,h=d.stroke,m=d.lineWidth,v=mr(d,["d","fill","stroke","lineWidth"]),y=n-a,b=r-i,x=XH(b,y);f&&(a=a-hO(x)*f,i=i-pO(x)*f);var E=new tj({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:U(U({},v),{stroke:h||u,lineWidth:m||c,fill:p})});E.translate(a,i),E.rotateAtPoint(a,i,x),e.set(o?"startArrowShape":"endArrowShape",E)}function ag(e,t,n,r,a){var i=XH(r-t,n-e);return{dx:hO(i)*a,dy:pO(i)*a}}function QH(e,t,n,r,a,i){typeof t.startArrow=="object"?W2e(e,t,n,r,a,i,!0):t.startArrow?V2e(e,t,n,r,a,i,!0):e.set("startArrowShape",null)}function ZH(e,t,n,r,a,i){typeof t.endArrow=="object"?W2e(e,t,n,r,a,i,!1):t.endArrow?V2e(e,t,n,r,a,i,!1):e.set("startArrowShape",null)}var pie={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function J0(e,t){var n=t.attr();for(var r in n){var a=n[r],i=pie[r]?pie[r]:r;i==="matrix"&&a?e.transform(a[0],a[1],a[3],a[4],a[6],a[7]):i==="lineDash"&&e.setLineDash?Qe(a)&&e.setLineDash(a):(i==="strokeStyle"||i==="fillStyle"?a=p9t(e,t,a):i==="globalAlpha"&&(a=a*e.globalAlpha),e[i]=a)}}function qF(e,t,n){for(var r=0;rS?E:S,O=E>S?1:E/S,R=E>S?S/E:1;t.translate(b,x),t.rotate(I),t.scale(O,R),t.arc(0,0,A,C,w,1-T),t.scale(1/O,1/R),t.rotate(-I),t.translate(-b,-x)}break}case"Z":t.closePath();break}if(f==="Z")l=s;else{var N=d.length;l=[d[N-2],d[N-1]]}}}}function Y2e(e,t){var n=e.get("canvas");n&&(t==="remove"&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(n.refreshElement(e,t,n),n.get("autoDraw")&&n.draw())))}function v9t(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var n=e.get("cacheCanvasBBox"),r=n&&!!(n.width&&n.height),a=e.getCanvasBBox(),i=a&&!!(a.width&&a.height);r&&i?t=o9t(n,a):r?t=n:i&&(t=a)}return t}function y9t(e){if(!e.length)return null;var t=[],n=[],r=[],a=[];return oe(e,function(i){var o=v9t(i);o&&(t.push(o.minX),n.push(o.minY),r.push(o.maxX),a.push(o.maxY))}),{minX:Fs(t),minY:Fs(n),maxX:is(r),maxY:is(a)}}function b9t(e,t){return!e||!t||!VE(e,t)?null:{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}}var ej=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onCanvasChange=function(n){Y2e(this,n)},t.prototype.getShapeBase=function(){return FO},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(n,r){r&&(n.save(),J0(n,r),r.createPath(n),n.restore(),n.clip(),r._afterDraw())},t.prototype.cacheCanvasBBox=function(){var n=this.cfg.children,r=[],a=[];oe(n,function(f){var p=f.cfg.cacheCanvasBBox;p&&f.cfg.isInView&&(r.push(p.minX,p.maxX),a.push(p.minY,p.maxY))});var i=null;if(r.length){var o=Fs(r),l=is(r),s=Fs(a),u=is(a);i={minX:o,minY:s,x:o,y:s,maxX:l,maxY:u,width:l-o,height:u-s};var c=this.cfg.canvas;if(c){var d=c.getViewRange();this.set("isInView",VE(i,d))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},t.prototype.draw=function(n,r){var a=this.cfg.children,i=r?this.cfg.refresh:!0;a.length&&i&&(n.save(),J0(n,this),this._applyClip(n,this.getClip()),qF(n,a,r),n.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t}(k3),Zu=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return FO},t.prototype.getGroupBase=function(){return ej},t.prototype.onCanvasChange=function(n){Y2e(this,n)},t.prototype.calculateBBox=function(){var n=this.get("type"),r=this.getHitLineWidth(),a=_3(n),i=a(this),o=r/2,l=i.x-o,s=i.y-o,u=i.x+i.width+o,c=i.y+i.height+o;return{x:l,minX:l,y:s,minY:s,width:i.width+r,height:i.height+r,maxX:u,maxY:c}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(n,r){r&&(n.save(),J0(n,r),r.createPath(n),n.restore(),n.clip(),r._afterDraw())},t.prototype.draw=function(n,r){var a=this.cfg.clipShape;if(r){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!VE(r,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}n.save(),J0(n,this),this._applyClip(n,a),this.drawPath(n),n.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var n=this.cfg.canvas;return n?n.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var n=this.getCanvasViewBox();if(n){var r=this.getCanvasBBox(),a=VE(r,n);this.set("isInView",a),a?this.set("cacheCanvasBBox",r):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(n){this.createPath(n),this.strokeAndFill(n),this.afterDrawPath(n)},t.prototype.fill=function(n){n.fill()},t.prototype.stroke=function(n){n.stroke()},t.prototype.strokeAndFill=function(n){var r=this.attrs,a=r.lineWidth,i=r.opacity,o=r.strokeOpacity,l=r.fillOpacity;this.isFill()&&(!Ge(l)&&l!==1?(n.globalAlpha=l,this.fill(n),n.globalAlpha=i):this.fill(n)),this.isStroke()&&a>0&&(!Ge(o)&&o!==1&&(n.globalAlpha=o),this.stroke(n)),this.afterDrawPath(n)},t.prototype.createPath=function(n){},t.prototype.afterDrawPath=function(n){},t.prototype.isInShape=function(n,r){var a=this.isStroke(),i=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(n,r,a,i,o)},t.prototype.isInStrokeOrPath=function(n,r,a,i,o){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var n=this.attrs;return n.lineWidth+n.lineAppendWidth},t}(R3),x9t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(n,r,a,i,o){var l=this.attr(),s=l.x,u=l.y,c=l.r,d=o/2,f=H2e(s,u,n,r);return i&&a?f<=c+d:i?f<=c:a?f>=c-d&&f<=c+d:!1},t.prototype.createPath=function(n){var r=this.attr(),a=r.x,i=r.y,o=r.r;n.beginPath(),n.arc(a,i,o,0,Math.PI*2,!1),n.closePath()},t}(Zu);function z2(e,t,n,r){return e/(n*n)+t/(r*r)}var E9t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(n,r,a,i,o){var l=this.attr(),s=o/2,u=l.x,c=l.y,d=l.rx,f=l.ry,p=(n-u)*(n-u),h=(r-c)*(r-c);return i&&a?z2(p,h,d+s,f+s)<=1:i?z2(p,h,d,f)<=1:a?z2(p,h,d-s,f-s)>=1&&z2(p,h,d+s,f+s)<=1:!1},t.prototype.createPath=function(n){var r=this.attr(),a=r.x,i=r.y,o=r.rx,l=r.ry;if(n.beginPath(),n.ellipse)n.ellipse(a,i,o,l,0,0,Math.PI*2,!1);else{var s=o>l?o:l,u=o>l?1:o/l,c=o>l?l/o:1;n.save(),n.translate(a,i),n.scale(u,c),n.arc(0,0,s,0,Math.PI*2),n.restore(),n.closePath()}},t}(Zu);function hie(e){return e instanceof HTMLElement&&Jt(e.nodeName)&&e.nodeName.toUpperCase()==="CANVAS"}var S9t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(n){this._setImage(n.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var n=this.get("canvas");n?n.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(n){var r=this,a=this.attrs;if(Jt(n)){var i=new Image;i.onload=function(){if(r.destroyed)return!1;r.attr("img",i),r.set("loading",!1),r._afterLoading();var o=r.get("callback");o&&o.call(r)},i.crossOrigin="Anonymous",i.src=n,this.set("loading",!0)}else n instanceof Image?(a.width||(a.width=n.width),a.height||(a.height=n.height)):hie(n)&&(a.width||(a.width=Number(n.getAttribute("width"))),a.height||(a.height,Number(n.getAttribute("height"))))},t.prototype.onAttrChange=function(n,r,a){e.prototype.onAttrChange.call(this,n,r,a),n==="img"&&this._setImage(r)},t.prototype.createPath=function(n){if(this.get("loading")){this.set("toDraw",!0),this.set("context",n);return}var r=this.attr(),a=r.x,i=r.y,o=r.width,l=r.height,s=r.sx,u=r.sy,c=r.swidth,d=r.sheight,f=r.img;(f instanceof Image||hie(f))&&(!Ge(s)&&!Ge(u)&&!Ge(c)&&!Ge(d)?n.drawImage(f,s,u,c,d,a,i,o,l):n.drawImage(f,a,i,o,l))},t}(Zu);function qf(e,t,n,r,a,i,o){var l=Math.min(e,n),s=Math.max(e,n),u=Math.min(t,r),c=Math.max(t,r),d=a/2;return i>=l-d&&i<=s+d&&o>=u-d&&o<=c+d?zi.pointToLine(e,t,n,r,i,o)<=a/2:!1}var C9t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(n){this.setArrow()},t.prototype.onAttrChange=function(n,r,a){e.prototype.onAttrChange.call(this,n,r,a),this.setArrow()},t.prototype.setArrow=function(){var n=this.attr(),r=n.x1,a=n.y1,i=n.x2,o=n.y2,l=n.startArrow,s=n.endArrow;l&&QH(this,n,i,o,r,a),s&&ZH(this,n,r,a,i,o)},t.prototype.isInStrokeOrPath=function(n,r,a,i,o){if(!a||!o)return!1;var l=this.attr(),s=l.x1,u=l.y1,c=l.x2,d=l.y2;return qf(s,u,c,d,o,n,r)},t.prototype.createPath=function(n){var r=this.attr(),a=r.x1,i=r.y1,o=r.x2,l=r.y2,s=r.startArrow,u=r.endArrow,c={dx:0,dy:0},d={dx:0,dy:0};s&&s.d&&(c=ag(a,i,o,l,r.startArrow.d)),u&&u.d&&(d=ag(a,i,o,l,r.endArrow.d)),n.beginPath(),n.moveTo(a+c.dx,i+c.dy),n.lineTo(o-d.dx,l-d.dy)},t.prototype.afterDrawPath=function(n){var r=this.get("startArrowShape"),a=this.get("endArrowShape");r&&r.draw(n),a&&a.draw(n)},t.prototype.getTotalLength=function(){var n=this.attr(),r=n.x1,a=n.y1,i=n.x2,o=n.y2;return zi.length(r,a,i,o)},t.prototype.getPoint=function(n){var r=this.attr(),a=r.x1,i=r.y1,o=r.x2,l=r.y2;return zi.pointAt(a,i,o,l,n)},t}(Zu),w9t=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,T9t=/[^\s\,]+/ig;function A9t(e){var t=e||[];if(Qe(t))return t;if(Jt(t))return t=t.match(w9t),oe(t,function(n,r){if(n=n.match(T9t),n[0].length>1){var a=n[0].charAt(0);n.splice(1,0,n[0].substr(1)),n[0]=a}oe(n,function(i,o){isNaN(i)||(n[o]=+i)}),t[r]=n}),t}var Ex=` +\v\f\r   ᠎              \u2028\u2029`,I9t=new RegExp("([a-z])["+Ex+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Ex+"]*,?["+Ex+"]*)+)","ig"),O9t=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Ex+"]*,?["+Ex+"]*","ig");function k9t(e){if(!e)return null;if(Qe(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(I9t,function(r,a,i){var o=[],l=a.toLowerCase();if(i.replace(O9t,function(s,u){u&&o.push(+u)}),l==="m"&&o.length>2&&(n.push([a].concat(o.splice(0,2))),l="l",a=a==="m"?"l":"L"),l==="o"&&o.length===1&&n.push([a,o[0]]),l==="r")n.push([a].concat(o));else for(;o.length>=t[l]&&(n.push([a].concat(o.splice(0,t[l]))),!!t[l]););return""}),n}var R9t=/[a-z]/;function gie(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function K2e(e){var t=k9t(e);if(!t||!t.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return t;var i=[],o=0,l=0,s=0,u=0,c=0,d=t[0];(d[0]==="M"||d[0]==="m")&&(o=+d[1],l=+d[2],s=o,u=l,c++,i[0]=["M",o,l]);for(var r=c,f=t.length;r1&&(n*=Math.sqrt(p),r*=Math.sqrt(p));var h=n*n*(f*f)+r*r*(d*d),m=h?Math.sqrt((n*n*(r*r)-h)/h):1;i===o&&(m*=-1),isNaN(m)&&(m=0);var v=r?m*n*f/r:0,y=n?m*-r*d/n:0,b=(l+u)/2+Math.cos(a)*v-Math.sin(a)*y,x=(s+c)/2+Math.sin(a)*v+Math.cos(a)*y,E=[(d-v)/n,(f-y)/r],S=[(-1*d-v)/n,(-1*f-y)/r],C=mie([1,0],E),w=mie(E,S);return KF(E,S)<=-1&&(w=Math.PI),KF(E,S)>=1&&(w=0),o===0&&w>0&&(w=w-2*Math.PI),o===1&&w<0&&(w=w+2*Math.PI),{cx:b,cy:x,rx:XF(e,[u,c])?0:n,ry:XF(e,[u,c])?0:r,startAngle:C,endAngle:C+w,xRotation:a,arcFlag:i,sweepFlag:o}}function vie(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function N9t(e){e=A9t(e);for(var t=[],n=null,r=null,a=null,i=0,o=e.length,l=0;l0!=kM(l[1]-n)>0&&kM(t-(n-o[1])*(o[0]-l[0])/(o[1]-l[1])-o[0])<0&&(r=!r)}return r}function $1(e,t,n,r,a,i,o,l){var s=(Math.atan2(l-t,o-e)+Math.PI*2)%(Math.PI*2);if(sa)return!1;var u={x:e+n*Math.cos(s),y:t+n*Math.sin(s)};return H2e(u.x,u.y,o,l)<=i/2}var P9t=Ua;function F9t(e){for(var t=!1,n=e.length,r=0;rx?b:x,T=b>x?1:b/x,A=b>x?x/b:1,O=P9t(null,[["t",-v,-y],["r",-C],["s",1/T,1/A]]);RE(w,w,O),i=$1(0,0,I,E,S,t,w[0],w[1]);break}if(i)break}}return i}function z9t(e){for(var t=e.length,n=[],r=[],a=[],i=0;i0&&r.push(a),{polygons:n,polylines:r}}const j2=U({hasArc:F9t,extractPolygons:z9t,isPointInStroke:B9t},mH);function yie(e,t,n){for(var r=!1,a=0;a=c[0]&&n<=c[1]&&(a=(n-c[0])/(c[1]-c[0]),i=d)});var l=o[i];if(Ge(l)||Ge(i))return null;var s=l.length,u=o[i+1];return gx.pointAt(l[s-2],l[s-1],u[1],u[2],u[3],u[4],u[5],u[6],a)},t.prototype._calculateCurve=function(){var n=this.attr().path;this.set("curve",j2.pathToCurve(n))},t.prototype._setTcache=function(){var n=0,r=0,a=[],i,o,l,s,u=this.get("curve");if(u){if(oe(u,function(c,d){l=u[d+1],s=c.length,l&&(n+=gx.length(c[s-2],c[s-1],l[1],l[2],l[3],l[4],l[5],l[6])||0)}),this.set("totalLength",n),n===0){this.set("tCache",[]);return}oe(u,function(c,d){l=u[d+1],s=c.length,l&&(i=[],i[0]=r/n,o=gx.length(c[s-2],c[s-1],l[1],l[2],l[3],l[4],l[5],l[6]),r+=o||0,i[1]=r/n,a.push(i))}),this.set("tCache",a)}},t.prototype.getStartTangent=function(){var n=this.getSegments(),r;if(n.length>1){var a=n[0].currentPoint,i=n[1].currentPoint,o=n[1].startTangent;r=[],o?(r.push([a[0]-o[0],a[1]-o[1]]),r.push([a[0],a[1]])):(r.push([i[0],i[1]]),r.push([a[0],a[1]]))}return r},t.prototype.getEndTangent=function(){var n=this.getSegments(),r=n.length,a;if(r>1){var i=n[r-2].currentPoint,o=n[r-1].currentPoint,l=n[r-1].endTangent;a=[],l?(a.push([o[0]-l[0],o[1]-l[1]]),a.push([o[0],o[1]])):(a.push([i[0],i[1]]),a.push([o[0],o[1]]))}return a},t}(Zu);function Z2e(e,t,n,r,a){var i=e.length;if(i<2)return!1;for(var o=0;o=l[0]&&n<=l[1]&&(i=(n-l[0])/(l[1]-l[0]),o=s)}),zi.pointAt(r[o][0],r[o][1],r[o+1][0],r[o+1][1],i)},t.prototype._setTcache=function(){var n=this.attr().points;if(!(!n||n.length===0)){var r=this.getTotalLength();if(!(r<=0)){var a=0,i=[],o,l;oe(n,function(s,u){n[u+1]&&(o=[],o[0]=a/r,l=zi.length(s[0],s[1],n[u+1][0],n[u+1][1]),a+=l,o[1]=a/r,i.push(o))}),this.set("tCache",i)}}},t.prototype.getStartTangent=function(){var n=this.attr().points,r=[];return r.push([n[1][0],n[1][1]]),r.push([n[0][0],n[0][1]]),r},t.prototype.getEndTangent=function(){var n=this.attr().points,r=n.length-1,a=[];return a.push([n[r-1][0],n[r-1][1]]),a.push([n[r][0],n[r][1]]),a},t}(Zu);function U9t(e,t,n,r,a,i,o){var l=a/2;return Bh(e-l,t-l,n,a,i,o)||Bh(e+n-l,t-l,a,r,i,o)||Bh(e+l,t+r-l,n,a,i,o)||Bh(e-l,t+l,a,r,i,o)}function V9t(e,t,n,r,a,i,o,l){return qf(e+a,t,e+n-a,t,i,o,l)||qf(e+n,t+a,e+n,t+r-a,i,o,l)||qf(e+n-a,t+r,e+a,t+r,i,o,l)||qf(e,t+r-a,e,t+a,i,o,l)||$1(e+n-a,t+a,a,1.5*Math.PI,2*Math.PI,i,o,l)||$1(e+n-a,t+r-a,a,0,.5*Math.PI,i,o,l)||$1(e+a,t+r-a,a,.5*Math.PI,Math.PI,i,o,l)||$1(e+a,t+a,a,Math.PI,1.5*Math.PI,i,o,l)}var W9t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(n,r,a,i,o){var l=this.attr(),s=l.x,u=l.y,c=l.width,d=l.height,f=l.radius;if(f){var h=!1;return a&&(h=V9t(s,u,c,d,f,o,n,r)),!h&&i&&(h=X2e(this,n,r)),h}else{var p=o/2;if(i&&a)return Bh(s-p,u-p,c+p,d+p,n,r);if(i)return Bh(s,u,c,d,n,r);if(a)return U9t(s,u,c,d,o,n,r)}},t.prototype.createPath=function(n){var r=this.attr(),a=r.x,i=r.y,o=r.width,l=r.height,s=r.radius;if(n.beginPath(),s===0)n.rect(a,i,o,l);else{var u=h9t(s),c=u[0],d=u[1],f=u[2],p=u[3];n.moveTo(a+c,i),n.lineTo(a+o-d,i),d!==0&&n.arc(a+o-d,i+d,d,-Math.PI/2,0),n.lineTo(a+o,i+l-f),f!==0&&n.arc(a+o-f,i+l-f,f,0,Math.PI/2),n.lineTo(a+p,i+l),p!==0&&n.arc(a+p,i+l-p,p,Math.PI/2,Math.PI),n.lineTo(a,i+c),c!==0&&n.arc(a+c,i+c,c,Math.PI,Math.PI*1.5),n.closePath()}},t}(Zu),G9t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(n){this._assembleFont(),n.text&&this._setText(n.text)},t.prototype._assembleFont=function(){var n=this.attrs;n.font=$3(n)},t.prototype._setText=function(n){var r=null;Jt(n)&&n.indexOf(` +`)!==-1&&(r=n.split(` +`)),this.set("textArr",r)},t.prototype.onAttrChange=function(n,r,a){e.prototype.onAttrChange.call(this,n,r,a),n.startsWith("font")&&this._assembleFont(),n==="text"&&this._setText(r)},t.prototype._getSpaceingY=function(){var n=this.attrs,r=n.lineHeight,a=n.fontSize*1;return r?r-a:a*.14},t.prototype._drawTextArr=function(n,r,a){var i=this.attrs,o=i.textBaseline,l=i.x,s=i.y,u=i.fontSize*1,c=this._getSpaceingY(),d=M3(i.text,i.fontSize,i.lineHeight),f;oe(r,function(p,h){f=s+h*(c+u)-d+u,o==="middle"&&(f+=d-u-(d-u)/2),o==="top"&&(f+=d-u),Ge(p)||(a?n.fillText(p,l,f):n.strokeText(p,l,f))})},t.prototype._drawText=function(n,r){var a=this.attr(),i=a.x,o=a.y,l=this.get("textArr");if(l)this._drawTextArr(n,l,r);else{var s=a.text;Ge(s)||(r?n.fillText(s,i,o):n.strokeText(s,i,o))}},t.prototype.strokeAndFill=function(n){var r=this.attrs,a=r.lineWidth,i=r.opacity,o=r.strokeOpacity,l=r.fillOpacity;this.isStroke()&&a>0&&(!Ge(o)&&o!==1&&(n.globalAlpha=i),this.stroke(n)),this.isFill()&&(!Ge(l)&&l!==1?(n.globalAlpha=l,this.fill(n),n.globalAlpha=i):this.fill(n)),this.afterDrawPath(n)},t.prototype.fill=function(n){this._drawText(n,!0)},t.prototype.stroke=function(n){this._drawText(n,!1)},t}(Zu);function q9t(e,t){if(t){var n=A3(t);return xd(n,e)}return e}function J2e(e,t,n){var r=e.getTotalMatrix();if(r){var a=q9t([t,n,1],r),i=a[0],o=a[1];return[i,o]}return[t,n]}function bie(e,t,n){if(e.isCanvas&&e.isCanvas())return!0;if(!kE(e)||e.cfg.isInView===!1)return!1;if(e.cfg.clipShape){var r=J2e(e,t,n),a=r[0],i=r[1];if(e.isClipped(a,i))return!1}var o=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=o.minX&&t<=o.maxX&&n>=o.minY&&n<=o.maxY}function eTe(e,t,n){if(!bie(e,t,n))return null;for(var r=null,a=e.getChildren(),i=a.length,o=i-1;o>=0;o--){var l=a[o];if(l.isGroup())r=eTe(l,t,n);else if(bie(l,t,n)){var s=l,u=J2e(l,t,n),c=u[0],d=u[1];s.isInShape(c,d)&&(r=l)}if(r)break}return r}var Y9t=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var n=e.prototype.getDefaultCfg.call(this);return n.renderer="canvas",n.autoDraw=!0,n.localRefresh=!0,n.refreshElements=[],n.clipView=!0,n.quickHit=!1,n},t.prototype.onCanvasChange=function(n){(n==="attr"||n==="sort"||n==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return FO},t.prototype.getGroupBase=function(){return ej},t.prototype.getPixelRatio=function(){var n=this.get("pixelRatio")||i9t();return n>=1?Math.ceil(n):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var n=document.createElement("canvas"),r=n.getContext("2d");return this.set("context",r),n},t.prototype.setDOMSize=function(n,r){e.prototype.setDOMSize.call(this,n,r);var a=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*n,i.height=o*r,o>1&&a.scale(o,o)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var n=this.get("context"),r=this.get("el");n.clearRect(0,0,r.width,r.height)},t.prototype.getShape=function(n,r){var a;return this.get("quickHit")?a=eTe(this,n,r):a=e.prototype.getShape.call(this,n,r,null),a},t.prototype._getRefreshRegion=function(){var n=this.get("refreshElements"),r=this.getViewRange(),a;if(n.length&&n[0]===this)a=r;else if(a=y9t(n),a){a.minX=Math.floor(a.minX),a.minY=Math.floor(a.minY),a.maxX=Math.ceil(a.maxX),a.maxY=Math.ceil(a.maxY),a.maxY+=1;var i=this.get("clipView");i&&(a=b9t(a,r))}return a},t.prototype.refreshElement=function(n){var r=this.get("refreshElements");r.push(n)},t.prototype._clearFrame=function(){var n=this.get("drawFrame");n&&(RLt(n),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var n=this.get("drawFrame");this.get("autoDraw")&&n||this._startDraw()},t.prototype._drawAll=function(){var n=this.get("context"),r=this.get("el"),a=this.getChildren();n.clearRect(0,0,r.width,r.height),J0(n,this),qF(n,a),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var n=this.get("context"),r=this.get("refreshElements"),a=this.getChildren(),i=this._getRefreshRegion();i?(n.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),n.save(),n.beginPath(),n.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),n.clip(),J0(n,this),g9t(this,a,i),qF(n,a,i),n.restore()):r.length&&G2e(r),oe(r,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},t.prototype._startDraw=function(){var n=this,r=this.get("drawFrame");r||(r=kLt(function(){n.get("localRefresh")?n._drawRegion():n._drawAll(),n.set("drawFrame",null)}),this.set("drawFrame",r))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var n=this.get("el");n.width=0,n.height=0,n.parentNode.removeChild(n)},t}(O3),K9t="0.5.12";const X9t=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:O3,AbstractGroup:k3,AbstractShape:R3,Base:w3,Canvas:Y9t,Event:pC,Group:ej,PathUtil:mH,Shape:FO,assembleFont:$3,getArcParams:fO,getBBoxMethod:_3,getOffScreenContext:D3,getTextHeight:M3,invert:A3,isAllowCapture:kE,multiplyVec2:xd,registerBBox:Xs,registerEasing:YCe,version:K9t},Symbol.toStringTag,{value:"Module"}));var QF={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Kn={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function Bs(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function tTe(e){var t=QF[e.type],n=e.getParent();if(!t)throw new Error("the type "+e.type+" is not supported by svg");var r=Bs(t);if(e.get("id")&&(r.id=e.get("id")),e.set("el",r),e.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function nTe(e,t){var n=e.get("el"),r=LLt(n.children).sort(t),a=document.createDocumentFragment();r.forEach(function(i){a.appendChild(i)}),n.appendChild(a)}function Q9t(e,t){var n=e.parentNode,r=Array.from(n.childNodes).filter(function(l){return l.nodeType===1&&l.nodeName.toLowerCase()!=="defs"}),a=r[t],i=r.indexOf(e);if(a){if(i>t)n.insertBefore(e,a);else if(i0&&(r?"stroke"in a?this._setColor(n,"stroke",l):"strokeStyle"in a&&this._setColor(n,"stroke",s):this._setColor(n,"stroke",l||s),c&&f.setAttribute(Kn.strokeOpacity,c),d&&f.setAttribute(Kn.lineWidth,d))},t.prototype._setColor=function(n,r,a){var i=this.get("el");if(!a){i.setAttribute(Kn[r],"none");return}if(a=a.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(a)){var o=n.find("gradient",a);o||(o=n.addGradient(a)),i.setAttribute(Kn[r],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(a)){var o=n.find("pattern",a);o||(o=n.addPattern(a)),i.setAttribute(Kn[r],"url(#"+o+")")}else i.setAttribute(Kn[r],a)},t.prototype.shadow=function(n,r){var a=this.attr(),i=r||a,o=i.shadowOffsetX,l=i.shadowOffsetY,s=i.shadowBlur,u=i.shadowColor;(o||l||s||u)&&Z9t(this,n)},t.prototype.transform=function(n){var r=this.attr(),a=(n||r).matrix;a&&EC(this)},t.prototype.isInShape=function(n,r){return this.isPointInPath(n,r)},t.prototype.isPointInPath=function(n,r){var a=this.get("el"),i=this.get("canvas"),o=i.get("el").getBoundingClientRect(),l=n+o.left,s=r+o.top,u=document.elementFromPoint(l,s);return!!(u&&u.isEqualNode(a))},t.prototype.getHitLineWidth=function(){var n=this.attrs,r=n.lineWidth,a=n.lineAppendWidth;return this.isStroke()?r+a:0},t}(R3),J9t=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="circle",n.canFill=!0,n.canStroke=!0,n}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,r:0})},t.prototype.createPath=function(n,r){var a=this.attr(),i=this.get("el");oe(r||a,function(o,l){l==="x"||l==="y"?i.setAttribute("c"+l,o):Kn[l]&&i.setAttribute(Kn[l],o)})},t}(Qs),ezt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dom",n.canFill=!1,n.canStroke=!1,n}return t.prototype.createPath=function(n,r){var a=this.attr(),i=this.get("el");if(oe(r||a,function(u,c){Kn[c]&&i.setAttribute(Kn[c],u)}),typeof a.html=="function"){var o=a.html.call(this,a);if(o instanceof Element||o instanceof HTMLDocument){for(var l=i.childNodes,s=l.length-1;s>=0;s--)i.removeChild(l[s]);i.appendChild(o)}else i.innerHTML=o}else i.innerHTML=a.html},t}(Qs),tzt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="ellipse",n.canFill=!0,n.canStroke=!0,n}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(n,r){var a=this.attr(),i=this.get("el");oe(r||a,function(o,l){l==="x"||l==="y"?i.setAttribute("c"+l,o):Kn[l]&&i.setAttribute(Kn[l],o)})},t}(Qs),nzt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="image",n.canFill=!1,n.canStroke=!1,n}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(n,r){var a=this,i=this.attr(),o=this.get("el");oe(r||i,function(l,s){s==="img"?a._setImage(i.img):Kn[s]&&o.setAttribute(Kn[s],l)})},t.prototype.setAttr=function(n,r){this.attrs[n]=r,n==="img"&&this._setImage(r)},t.prototype._setImage=function(n){var r=this.attr(),a=this.get("el");if(Jt(n))a.setAttribute("href",n);else if(n instanceof window.Image)r.width||(a.setAttribute("width",n.width),this.attr("width",n.width)),r.height||(a.setAttribute("height",n.height),this.attr("height",n.height)),a.setAttribute("href",n.src);else if(n instanceof HTMLElement&&Jt(n.nodeName)&&n.nodeName.toUpperCase()==="CANVAS")a.setAttribute("href",n.toDataURL());else if(n instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+n.width),i.setAttribute("height",""+n.height),i.getContext("2d").putImageData(n,0,0),r.width||(a.setAttribute("width",""+n.width),this.attr("width",n.width)),r.height||(a.setAttribute("height",""+n.height),this.attr("height",n.height)),a.setAttribute("href",i.toDataURL())}},t}(Qs),rzt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="line",n.canFill=!1,n.canStroke=!0,n}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(n,r){var a=this.attr(),i=this.get("el");oe(r||a,function(o,l){if(l==="startArrow"||l==="endArrow")if(o){var s=pr(o)?n.addArrow(a,Kn[l]):n.getDefaultArrow(a,Kn[l]);i.setAttribute(Kn[l],"url(#"+s+")")}else i.removeAttribute(Kn[l]);else Kn[l]&&i.setAttribute(Kn[l],o)})},t.prototype.getTotalLength=function(){var n=this.attr(),r=n.x1,a=n.y1,i=n.x2,o=n.y2;return zi.length(r,a,i,o)},t.prototype.getPoint=function(n){var r=this.attr(),a=r.x1,i=r.y1,o=r.x2,l=r.y2;return zi.pointAt(a,i,o,l,n)},t}(Qs),U2={circle:function(e,t,n){return[["M",e,t],["m",-n,0],["a",n,n,0,1,0,n*2,0],["a",n,n,0,1,0,-n*2,0]]},square:function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},diamond:function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},triangle:function(e,t,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["z"]]},triangleDown:function(e,t,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]}};const xie={get:function(e){return U2[e]},register:function(e,t){U2[e]=t},remove:function(e){delete U2[e]},getAll:function(){return U2}};var azt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="marker",n.canFill=!0,n.canStroke=!0,n}return t.prototype.createPath=function(n){var r=this.get("el");r.setAttribute("d",this._assembleMarker())},t.prototype._assembleMarker=function(){var n=this._getPath();return Qe(n)?n.map(function(r){return r.join(" ")}).join(""):n},t.prototype._getPath=function(){var n=this.attr(),r=n.x,a=n.y,i=n.r||n.radius,o=n.symbol||"circle",l;return kt(o)?l=o:l=xie.get(o),l?l(r,a,i):(console.warn(l+" symbol is not exist."),null)},t.symbolsFactory=xie,t}(Qs),izt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="path",n.canFill=!0,n.canStroke=!0,n}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(n,r){var a=this,i=this.attr(),o=this.get("el");oe(r||i,function(l,s){if(s==="path"&&Qe(l))o.setAttribute("d",a._formatPath(l));else if(s==="startArrow"||s==="endArrow")if(l){var u=pr(l)?n.addArrow(i,Kn[s]):n.getDefaultArrow(i,Kn[s]);o.setAttribute(Kn[s],"url(#"+u+")")}else o.removeAttribute(Kn[s]);else Kn[s]&&o.setAttribute(Kn[s],l)})},t.prototype._formatPath=function(n){var r=n.map(function(a){return a.join(" ")}).join("");return~r.indexOf("NaN")?"":r},t.prototype.getTotalLength=function(){var n=this.get("el");return n?n.getTotalLength():null},t.prototype.getPoint=function(n){var r=this.get("el"),a=this.getTotalLength();if(a===0)return null;var i=r?r.getPointAtLength(n*a):null;return i?{x:i.x,y:i.y}:null},t}(Qs),ozt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="polygon",n.canFill=!0,n.canStroke=!0,n}return t.prototype.createPath=function(n,r){var a=this.attr(),i=this.get("el");oe(r||a,function(o,l){l==="points"&&Qe(o)&&o.length>=2?i.setAttribute("points",o.map(function(s){return s[0]+","+s[1]}).join(" ")):Kn[l]&&i.setAttribute(Kn[l],o)})},t}(Qs),lzt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="polyline",n.canFill=!0,n.canStroke=!0,n}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(n,r,a){e.prototype.onAttrChange.call(this,n,r,a),["points"].indexOf(n)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.createPath=function(n,r){var a=this.attr(),i=this.get("el");oe(r||a,function(o,l){l==="points"&&Qe(o)&&o.length>=2?i.setAttribute("points",o.map(function(s){return s[0]+","+s[1]}).join(" ")):Kn[l]&&i.setAttribute(Kn[l],o)})},t.prototype.getTotalLength=function(){var n=this.attr().points,r=this.get("totalLength");return Ge(r)?(this.set("totalLength",rwe.length(n)),this.get("totalLength")):r},t.prototype.getPoint=function(n){var r=this.attr().points,a=this.get("tCache");a||(this._setTcache(),a=this.get("tCache"));var i,o;return oe(a,function(l,s){n>=l[0]&&n<=l[1]&&(i=(n-l[0])/(l[1]-l[0]),o=s)}),zi.pointAt(r[o][0],r[o][1],r[o+1][0],r[o+1][1],i)},t.prototype._setTcache=function(){var n=this.attr().points;if(!(!n||n.length===0)){var r=this.getTotalLength();if(!(r<=0)){var a=0,i=[],o,l;oe(n,function(s,u){n[u+1]&&(o=[],o[0]=a/r,l=zi.length(s[0],s[1],n[u+1][0],n[u+1][1]),a+=l,o[1]=a/r,i.push(o))}),this.set("tCache",i)}}},t.prototype.getStartTangent=function(){var n=this.attr().points,r=[];return r.push([n[1][0],n[1][1]]),r.push([n[0][0],n[0][1]]),r},t.prototype.getEndTangent=function(){var n=this.attr().points,r=n.length-1,a=[];return a.push([n[r-1][0],n[r-1][1]]),a.push([n[r][0],n[r][1]]),a},t}(Qs);function szt(e){var t=0,n=0,r=0,a=0;return Qe(e)?e.length===1?t=n=r=a=e[0]:e.length===2?(t=r=e[0],n=a=e[1]):e.length===3?(t=e[0],n=a=e[1],r=e[2]):(t=e[0],n=e[1],r=e[2],a=e[3]):t=n=r=a=e,{r1:t,r2:n,r3:r,r4:a}}var uzt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="rect",n.canFill=!0,n.canStroke=!0,n}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(n,r){var a=this,i=this.attr(),o=this.get("el"),l=!1,s=["x","y","width","height","radius"];oe(r||i,function(u,c){s.indexOf(c)!==-1&&!l?(o.setAttribute("d",a._assembleRect(i)),l=!0):s.indexOf(c)===-1&&Kn[c]&&o.setAttribute(Kn[c],u)})},t.prototype._assembleRect=function(n){var r=n.x,a=n.y,i=n.width,o=n.height,l=n.radius;if(!l)return"M "+r+","+a+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var s=szt(l);Qe(l)?l.length===1?s.r1=s.r2=s.r3=s.r4=l[0]:l.length===2?(s.r1=s.r3=l[0],s.r2=s.r4=l[1]):l.length===3?(s.r1=l[0],s.r2=s.r4=l[1],s.r3=l[2]):(s.r1=l[0],s.r2=l[1],s.r3=l[2],s.r4=l[3]):s.r1=s.r2=s.r3=s.r4=l;var u=[["M "+(r+s.r1)+","+a],["l "+(i-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(o-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-i)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-o)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]];return u.join(" ")},t}(Qs),Eie=.3,czt={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},dzt={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},fzt={left:"left",start:"left",center:"middle",right:"end",end:"end"},pzt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="text",n.canFill=!0,n.canStroke=!0,n}return t.prototype.getDefaultAttrs=function(){var n=e.prototype.getDefaultAttrs.call(this);return U(U({},n),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.createPath=function(n,r){var a=this,i=this.attr(),o=this.get("el");this._setFont(),oe(r||i,function(l,s){s==="text"?a._setText(""+l):s==="matrix"&&l?EC(a):Kn[s]&&o.setAttribute(Kn[s],l)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},t.prototype._setFont=function(){var n=this.get("el"),r=this.attr(),a=r.textBaseline,i=r.textAlign,o=ICe();o&&o.name==="firefox"?n.setAttribute("dominant-baseline",dzt[a]||"alphabetic"):n.setAttribute("alignment-baseline",czt[a]||"baseline"),n.setAttribute("text-anchor",fzt[i]||"left")},t.prototype._setText=function(n){var r=this.get("el"),a=this.attr(),i=a.x,o=a.textBaseline,l=o===void 0?"bottom":o;if(!n)r.innerHTML="";else if(~n.indexOf(` +`)){var s=n.split(` +`),u=s.length-1,c="";oe(s,function(d,f){f===0?l==="alphabetic"?c+=''+d+"":l==="top"?c+=''+d+"":l==="middle"?c+=''+d+"":l==="bottom"?c+=''+d+"":l==="hanging"&&(c+=''+d+""):c+=''+d+""}),r.innerHTML=c}else r.innerHTML=n},t}(Qs),hzt=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,gzt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,mzt=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function iTe(e){var t=e.match(mzt);if(!t)return"";var n="";return t.sort(function(r,a){return r=r.split(":"),a=a.split(":"),Number(r[0])-Number(a[0])}),oe(t,function(r){r=r.split(":"),n+=''}),n}function vzt(e,t){var n=hzt.exec(e),r=x3(E3(parseFloat(n[1])),Math.PI*2),a=n[2],i,o;r>=0&&r<.5*Math.PI?(i={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=r&&r`;n.innerHTML=r},e}(),Sie=function(){function e(t,n){this.cfg={};var r=Bs("marker"),a=qp("marker_");r.setAttribute("id",a);var i=Bs("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),r.appendChild(i),r.setAttribute("overflow","visible"),r.setAttribute("orient","auto-start-reverse"),this.el=r,this.child=i,this.id=a;var o=t[n==="marker-start"?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",o===!0?this._setDefaultPath(n,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(t,n){var r=this.el;n.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),r.setAttribute("refX",""+10*Math.cos(Math.PI/6)),r.setAttribute("refY","5")},e.prototype._setMarker=function(t,n){var r=this.el,a=this.cfg.path,i=this.cfg.d;Qe(a)&&(a=a.map(function(o){return o.join(" ")}).join("")),n.setAttribute("d",a),r.appendChild(n),i&&r.setAttribute("refX",""+i/t)},e.prototype.update=function(t){var n=this.child;n.attr?n.attr("fill",t):n.setAttribute("fill",t)},e}(),Czt=function(){function e(t){this.type="clip",this.cfg={};var n=Bs("clipPath");this.el=n,this.id=qp("clip_"),n.id=this.id;var r=t.cfg.el;return n.appendChild(r),this.cfg=t,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},e}(),wzt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Tzt=function(){function e(t){this.cfg={};var n=Bs("pattern");n.setAttribute("patternUnits","userSpaceOnUse");var r=Bs("image");n.appendChild(r);var a=qp("pattern_");n.id=a,this.el=n,this.id=a,this.cfg=t;var i=wzt.exec(t),o=i[2];r.setAttribute("href",o);var l=new Image;o.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=o;function s(){n.setAttribute("width",""+l.width),n.setAttribute("height",""+l.height)}return l.complete?s():(l.onload=s,l.src=l.src),this}return e.prototype.match=function(t,n){return this.cfg===n},e}(),Azt=function(){function e(t){var n=Bs("defs"),r=qp("defs_");n.id=r,t.appendChild(n),this.children=[],this.defaultArrow={},this.el=n,this.canvas=t}return e.prototype.find=function(t,n){for(var r=this.children,a=null,i=0;i0&&(p[0][0]="L")),i=i.concat(p)}),i.push(["Z"])}return i}function n_(e,t,n,r,a){for(var i=Ia(e,t,!t,"lineWidth"),o=e.connectNulls,l=e.isInCircle,s=e.points,u=e.showSinglePoint,c=t_(s,o,u),d=[],f=0,p=c.length;fo&&(o=s),s=r[0]}));var v=this.scales[h];try{for(var y=tr(n),b=y.next();!b.done;b=y.next()){var x=b.value,E=this.getDrawCfg(x),S=E.x,C=E.y,w=v.scale(x[Cr][h]);this.drawGrayScaleBlurredCircle(S-u.x,C-c.y,a+i,w,m)}}catch(A){o={error:A}}finally{try{b&&!b.done&&(l=y.return)&&l.call(y)}finally{if(o)throw o.error}}var I=m.getImageData(0,0,d,f);this.clearShadowCanvasCtx(),this.colorize(I),m.putImageData(I,0,0);var T=this.getImageShape();T.attr("x",u.x),T.attr("y",c.y),T.attr("width",d),T.attr("height",f),T.attr("img",m.canvas),T.set("origin",this.getShapeInfo(n))},t.prototype.getDefaultSize=function(){var n=this.getAttribute("position"),r=this.coordinate;return Math.min(r.getWidth()/(n.scales[0].ticks.length*4),r.getHeight()/(n.scales[1].ticks.length*4))},t.prototype.clearShadowCanvasCtx=function(){var n=this.getShadowCanvasCtx();n.clearRect(0,0,n.canvas.width,n.canvas.height)},t.prototype.getShadowCanvasCtx=function(){var n=this.shadowCanvas;return n||(n=document.createElement("canvas"),this.shadowCanvas=n),n.width=this.coordinate.getWidth(),n.height=this.coordinate.getHeight(),n.getContext("2d")},t.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},t.prototype.drawGrayScaleBlurredCircle=function(n,r,a,i,o){var l=this.getGrayScaleBlurredCanvas();o.globalAlpha=i,o.drawImage(l,n-a,r-a)},t.prototype.colorize=function(n){for(var r=this.getAttribute("color"),a=n.data,i=this.paletteCache,o=3;ot&&(n=n?t/(1+r/n):0,r=t-n),a+i>t&&(a=a?t/(1+i/a):0,i=t-a),[n||0,r||0,a||0,i||0]}function sTe(e,t,n){var r=[];if(n.isRect){var a=n.isTransposed?{x:n.start.x,y:t[0].y}:{x:t[0].x,y:n.start.y},i=n.isTransposed?{x:n.end.x,y:t[2].y}:{x:t[3].x,y:n.end.y},o=ce(e,["background","style","radius"]);if(o){var l=n.isTransposed?Math.abs(t[0].y-t[2].y):t[2].x-t[1].x,s=n.isTransposed?n.getWidth():n.getHeight(),u=$t(lTe(o,Math.min(l,s)),4),c=u[0],d=u[1],f=u[2],p=u[3],h=n.isTransposed&&n.isReflect("y"),m=h?0:1,v=function(C){return h?-C:C};r.push(["M",a.x,i.y+v(c)]),c!==0&&r.push(["A",c,c,0,0,m,a.x+c,i.y]),r.push(["L",i.x-d,i.y]),d!==0&&r.push(["A",d,d,0,0,m,i.x,i.y+v(d)]),r.push(["L",i.x,a.y-v(f)]),f!==0&&r.push(["A",f,f,0,0,m,i.x-f,a.y]),r.push(["L",a.x+p,a.y]),p!==0&&r.push(["A",p,p,0,0,m,a.x,a.y-v(p)])}else r.push(["M",a.x,a.y]),r.push(["L",i.x,a.y]),r.push(["L",i.x,i.y]),r.push(["L",a.x,i.y]),r.push(["L",a.x,a.y]);r.push(["z"])}if(n.isPolar){var y=n.getCenter(),b=zE(e,n),x=b.startAngle,E=b.endAngle;if(n.type!=="theta"&&!n.isTransposed)r=dp(y.x,y.y,n.getRadius(),x,E);else{var S=function(I){return Math.pow(I,2)},c=Math.sqrt(S(y.x-t[0].x)+S(y.y-t[0].y)),d=Math.sqrt(S(y.x-t[2].x)+S(y.y-t[2].y));r=dp(y.x,y.y,c,n.startAngle,n.endAngle,d)}}return r}function Mzt(e,t,n){var r=n.getWidth(),a=n.getHeight(),i=n.type==="rect",o=[],l=(e[2].x-e[1].x)/2,s=n.isTransposed?l*a/r:l*r/a;return t==="round"?(i?(o.push(["M",e[0].x,e[0].y+s]),o.push(["L",e[1].x,e[1].y-s]),o.push(["A",l,l,0,0,1,e[2].x,e[2].y-s]),o.push(["L",e[3].x,e[3].y+s]),o.push(["A",l,l,0,0,1,e[0].x,e[0].y+s])):(o.push(["M",e[0].x,e[0].y]),o.push(["L",e[1].x,e[1].y]),o.push(["A",l,l,0,0,1,e[2].x,e[2].y]),o.push(["L",e[3].x,e[3].y]),o.push(["A",l,l,0,0,1,e[0].x,e[0].y])),o.push(["z"])):o=ij(e),o}function uTe(e,t,n){var r=[];return Ge(t)?n?r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):r.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",t[1].x,t[1].y],["L",t[0].x,t[0].y],["Z"]),r}function l1(e,t){return[t,e]}function $zt(e,t,n){var r,a,i,o,l,s,u,c=$t(Wt([],$t(e),!1),4),d=c[0],f=c[1],p=c[2],h=c[3],m=$t(typeof n=="number"?Array(4).fill(n):n,4),v=m[0],y=m[1],b=m[2],x=m[3];t.isTransposed&&(r=$t(l1(f,h),2),f=r[0],h=r[1]),t.isReflect("y")&&(a=$t(l1(d,f),2),d=a[0],f=a[1],i=$t(l1(p,h),2),p=i[0],h=i[1]),t.isReflect("x")&&(o=$t(l1(d,h),2),d=o[0],h=o[1],l=$t(l1(f,p),2),f=l[0],p=l[1]);var E=[],S=function(C){return Math.abs(C)};return s=$t(lTe([v,y,b,x],Math.min(S(h.x-d.x),S(f.y-d.y))).map(function(C){return S(C)}),4),v=s[0],y=s[1],b=s[2],x=s[3],t.isTransposed&&(u=$t([x,v,y,b],4),v=u[0],y=u[1],b=u[2],x=u[3]),d.yo&&(a=o)}return a}function Pzt(e,t){if(t){var n=as(e),r=Bu(n,t);return r.length}return e.length}function oj(e){var t=e.theme,n=e.coordinate,r=e.getXScale(),a=r.values,i=e.beforeMappingData,o=a.length,l=vC(e.coordinate),s=e.intervalPadding,u=e.dodgePadding,c=e.maxColumnWidth||t.maxColumnWidth,d=e.minColumnWidth||t.minColumnWidth,f=e.columnWidthRatio||t.columnWidthRatio,p=e.multiplePieWidthRatio||t.multiplePieWidthRatio,h=e.roseWidthRatio||t.roseWidthRatio;if(r.isLinear&&a.length>1){a.sort();var m=Lzt(a,r);o=(r.max-r.min)/m,a.length>o&&(o=a.length)}var v=r.range,y=1/o,b=1;if(n.isPolar?n.isTransposed&&o>1?b=p:b=h:(r.isLinear&&(y*=v[1]-v[0]),b=f),!Ge(s)&&s>=0){var x=s/l;y=(1-(o-1)*x)/o}else y*=b;if(e.getAdjust("dodge")){var E=e.getAdjust("dodge"),S=E.dodgeBy,C=Pzt(i,S);if(!Ge(u)&&u>=0){var w=u/l;y=(y-w*(C-1))/C}else!Ge(s)&&s>=0&&(y*=b),y=y/C;y=y>=0?y:0}if(!Ge(c)&&c>=0){var I=c/l;y>I&&(y=I)}if(!Ge(d)&&d>=0){var T=d/l;y0&&!ce(r,[a,"min"])&&n.change({min:0}),o<=0&&!ce(r,[a,"max"])&&n.change({max:0}))}},t.prototype.getDrawCfg=function(n){var r=e.prototype.getDrawCfg.call(this,n);return r.background=this.background,r},t}(Kp),Bzt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;r.type="line";var a=n.sortable,i=a===void 0?!1:a;return r.sortable=i,r}return t}(rj),cTe=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],zzt=["cross","tick","plus","hyphen","line"];function lj(e,t,n,r,a){var i,o,l=Ia(t,a,!a,"r"),s=e.parsePoints(t.points),u=s[0];if(t.isStack)u=s[1];else if(s.length>1){var c=n.addGroup();try{for(var d=tr(s),f=d.next();!f.done;f=d.next()){var p=f.value;c.addShape({type:"marker",attrs:U(U(U({},l),{symbol:Og[r]||r}),p)})}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return c}return n.addShape({type:"marker",attrs:U(U(U({},l),{symbol:Og[r]||r}),u)})}Yp("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return KH(e)}});oe(cTe,function(e){rr("point","hollow-".concat(e),{draw:function(t,n){return lj(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:Og[e]||e,style:{r:4.5,stroke:n,fill:null}}}})});var Hzt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="point",n.shapeType="point",n.generatePoints=!0,n}return t.prototype.getDrawCfg=function(n){var r=e.prototype.getDrawCfg.call(this,n);return U(U({},r),{isStack:!!this.getAdjust("stack")})},t}(Kp);function jzt(e){for(var t=e[0],n=1,r=[["M",t.x,t.y]];n2?"weight":"normal",i;if(e.isInCircle){var o={x:0,y:1};return a==="normal"?i=qzt(r[0],r[1],o):(n.fill=n.stroke,i=Yzt(r,o)),i=this.parsePath(i),t.addShape("path",{attrs:U(U({},n),{path:i})})}else{if(a==="normal")return r=this.parsePoints(r),i=Xwe((r[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,Math.PI*2),t.addShape("path",{attrs:U(U({},n),{path:i})});var l=ZF(r[1],r[3]),s=ZF(r[2],r[0]);return i=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],l,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],s,["Z"]],i=this.parsePath(i),n.fill=n.stroke,t.addShape("path",{attrs:U(U({},n),{path:i})})}},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});function Kzt(e,t){var n=ZF(e,t),r=[["M",e.x,e.y]];return r.push(n),r}rr("edge","smooth",{draw:function(e,t){var n=Ia(e,!0,!1,"lineWidth"),r=e.points,a=this.parsePath(Kzt(r[0],r[1]));return t.addShape("path",{attrs:U(U({},n),{path:a})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var V2=1/3;function Xzt(e,t){var n=[];n.push({x:e.x,y:e.y*(1-V2)+t.y*V2}),n.push({x:t.x,y:e.y*(1-V2)+t.y*V2}),n.push(t);var r=[["M",e.x,e.y]];return oe(n,function(a){r.push(["L",a.x,a.y])}),r}rr("edge","vhv",{draw:function(e,t){var n=Ia(e,!0,!1,"lineWidth"),r=e.points,a=this.parsePath(Xzt(r[0],r[1]));return t.addShape("path",{attrs:U(U({},n),{path:a})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});rr("interval","funnel",{getPoints:function(e){return e.size=e.size*2,aj(e)},draw:function(e,t){var n=Ia(e,!1,!0),r=this.parsePath(uTe(e.points,e.nextPoints,!1)),a=t.addShape("path",{attrs:U(U({},n),{path:r}),name:"interval"});return a},getMarker:function(e){var t=e.color;return{symbol:"square",style:{r:4,fill:t}}}});rr("interval","hollow-rect",{draw:function(e,t){var n=Ia(e,!0,!1),r=t,a=e==null?void 0:e.background;if(a){r=t.addGroup();var i=F2e(e),o=sTe(e,this.parsePoints(e.points),this.coordinate);r.addShape("path",{attrs:U(U({},i),{path:o}),capture:!1,zIndex:-1,name:GH})}var l=this.parsePath(ij(e.points)),s=r.addShape("path",{attrs:U(U({},n),{path:l}),name:"interval"});return a?r:s},getMarker:function(e){var t=e.color,n=e.isInPolar;return n?{symbol:"circle",style:{r:4.5,stroke:t,fill:null}}:{symbol:"square",style:{r:4,stroke:t,fill:null}}}});function Qzt(e){var t=e.x,n=e.y,r=e.y0;return Qe(n)?n.map(function(a,i){return{x:Qe(t)?t[i]:t,y:a}}):[{x:t,y:r},{x:t,y:n}]}rr("interval","line",{getPoints:function(e){return Qzt(e)},draw:function(e,t){var n=Ia(e,!0,!1,"lineWidth"),r=il(U({},n),["fill"]),a=this.parsePath(ij(e.points,!1)),i=t.addShape("path",{attrs:U(U({},r),{path:a}),name:"interval"});return i},getMarker:function(e){var t=e.color;return{symbol:function(n,r,a){return[["M",n,r-a],["L",n,r+a]]},style:{r:5,stroke:t}}}});rr("interval","pyramid",{getPoints:function(e){return e.size=e.size*2,aj(e)},draw:function(e,t){var n=Ia(e,!1,!0),r=this.parsePath(uTe(e.points,e.nextPoints,!0)),a=t.addShape("path",{attrs:U(U({},n),{path:r}),name:"interval"});return a},getMarker:function(e){var t=e.color;return{symbol:"square",style:{r:4,fill:t}}}});function Zzt(e){var t,n=e.x,r=e.y,a=e.y0,i=e.size,o,l;Qe(r)?(t=$t(r,2),o=t[0],l=t[1]):(o=a,l=r);var s=n+i/2,u=n-i/2;return[{x:n,y:o},{x:n,y:l},{x:u,y:o},{x:s,y:o},{x:u,y:l},{x:s,y:l}]}function Jzt(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]]}rr("interval","tick",{getPoints:function(e){return Zzt(e)},draw:function(e,t){var n=Ia(e,!0,!1),r=this.parsePath(Jzt(e.points)),a=t.addShape("path",{attrs:U(U({},n),{path:r}),name:"interval"});return a},getMarker:function(e){var t=e.color;return{symbol:function(n,r,a){return[["M",n-a/2,r-a],["L",n+a/2,r-a],["M",n,r-a],["L",n,r+a],["M",n-a/2,r+a],["L",n+a/2,r+a]]},style:{r:5,stroke:t}}}});var eHt=function(e,t,n){var r=e.x,a=e.y,i=t.x,o=t.y,l;switch(n){case"hv":l=[{x:i,y:a}];break;case"vh":l=[{x:r,y:o}];break;case"hvh":var s=(i+r)/2;l=[{x:s,y:a},{x:s,y:o}];break;case"vhv":var u=(a+o)/2;l=[{x:r,y:u},{x:i,y:u}];break}return l};function tHt(e,t){var n=[];return oe(e,function(r,a){var i=e[a+1];if(n.push(r),i){var o=eHt(r,i,t);n=n.concat(o)}}),n}function nHt(e){return e.map(function(t,n){return n===0?["M",t.x,t.y]:["L",t.x,t.y]})}function rHt(e,t){var n=t_(e.points,e.connectNulls,e.showSinglePoint),r=[];return oe(n,function(a){var i=tHt(a,t);r=r.concat(nHt(i))}),U(U({},Ia(e,!0,!1,"lineWidth")),{path:r})}oe(["hv","vh","hvh","vhv"],function(e){rr("line",e,{draw:function(t,n){var r=rHt(t,e),a=n.addShape({type:"path",attrs:r,name:"line"});return a},getMarker:function(t){return B2e(t,e)}})});oe(zzt,function(e){rr("point",e,{draw:function(t,n){return lj(this,t,n,e,!0)},getMarker:function(t){var n=t.color;return{symbol:Og[e],style:{r:4.5,stroke:n,fill:null}}}})});rr("point","image",{draw:function(e,t){var n,r,a=Ia(e,!1,!1,"r").r,i=this.parsePoints(e.points),o=i[0];if(e.isStack)o=i[1];else if(i.length>1){var l=t.addGroup();try{for(var s=tr(i),u=s.next();!u.done;u=s.next()){var c=u.value;l.addShape("image",{attrs:{x:c.x-a/2,y:c.y-a,width:a,height:a,img:e.shape[1]}})}}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return l}return t.addShape("image",{attrs:{x:o.x-a/2,y:o.y-a,width:a,height:a,img:e.shape[1]}})},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{r:4.5,fill:t}}}});oe(cTe,function(e){rr("point",e,{draw:function(t,n){return lj(this,t,n,e,!1)},getMarker:function(t){var n=t.color;return{symbol:Og[e]||e,style:{r:4.5,fill:n}}}})});function Cie(e){var t=Qe(e)?e:[e],n=t[0],r=t[t.length-1],a=t.length>1?t[1]:n,i=t.length>3?t[3]:r,o=t.length>2?t[2]:a;return{min:n,max:r,min1:a,max1:i,median:o}}function wie(e,t,n){var r=n/2,a;if(Qe(t)){var i=Cie(t),o=i.min,l=i.max,s=i.median,u=i.min1,c=i.max1,d=e-r,f=e+r;a=[[d,l],[f,l],[e,l],[e,c],[d,u],[d,c],[f,c],[f,u],[e,u],[e,o],[d,o],[f,o],[d,s],[f,s]]}else{t=Ge(t)?.5:t;var p=Cie(e),o=p.min,l=p.max,s=p.median,u=p.min1,c=p.max1,h=t-r,m=t+r;a=[[o,h],[o,m],[o,t],[u,t],[u,h],[u,m],[c,m],[c,h],[c,t],[l,t],[l,h],[l,m],[s,h],[s,m]]}return a.map(function(v){return{x:v[0],y:v[1]}})}function aHt(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y],["L",e[6].x,e[6].y],["L",e[7].x,e[7].y],["L",e[4].x,e[4].y],["Z"],["M",e[8].x,e[8].y],["L",e[9].x,e[9].y],["M",e[10].x,e[10].y],["L",e[11].x,e[11].y],["M",e[12].x,e[12].y],["L",e[13].x,e[13].y]]}rr("schema","box",{getPoints:function(e){var t=e.x,n=e.y,r=e.size;return wie(t,n,r)},draw:function(e,t){var n=Ia(e,!0,!1),r=this.parsePath(aHt(e.points)),a=t.addShape("path",{attrs:U(U({},n),{path:r,name:"schema"})});return a},getMarker:function(e){var t=e.color;return{symbol:function(n,r,a){var i=[r-6,r-3,r,r+3,r+6],o=wie(n,i,a);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:t}}}});function iHt(e){var t=Qe(e)?e:[e],n=t.sort(function(r,a){return a-r});return EBt(n,4,n[n.length-1])}function Tie(e,t,n){var r=iHt(t);return[{x:e,y:r[0]},{x:e,y:r[1]},{x:e-n/2,y:r[2]},{x:e-n/2,y:r[1]},{x:e+n/2,y:r[1]},{x:e+n/2,y:r[2]},{x:e,y:r[2]},{x:e,y:r[3]}]}function oHt(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["L",e[4].x,e[4].y],["L",e[5].x,e[5].y],["Z"],["M",e[6].x,e[6].y],["L",e[7].x,e[7].y]]}rr("schema","candle",{getPoints:function(e){var t=e.x,n=e.y,r=e.size;return Tie(t,n,r)},draw:function(e,t){var n=Ia(e,!0,!0),r=this.parsePath(oHt(e.points)),a=t.addShape("path",{attrs:U(U({},n),{path:r,name:"schema"})});return a},getMarker:function(e){var t=e.color;return{symbol:function(n,r,a){var i=[r+7.5,r+3,r-3,r-7.5],o=Tie(n,i,a);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:t,fill:t,r:6}}}});function lHt(e,t){var n=Math.abs(e[0].x-e[2].x),r=Math.abs(e[0].y-e[2].y),a=Math.min(n,r);t&&(a=Lr(t,0,Math.min(n,r))),a=a/2;var i=(e[0].x+e[2].x)/2,o=(e[0].y+e[2].y)/2;return{x:i-a,y:o-a,width:a*2,height:a*2}}rr("polygon","square",{draw:function(e,t){if(!vl(e.points)){var n=Ia(e,!0,!0),r=this.parsePoints(e.points);return t.addShape("rect",{attrs:U(U({},n),lHt(r,e.size)),name:"polygon"})}},getMarker:function(e){var t=e.color;return{symbol:"square",style:{r:4,fill:t}}}});rr("violin","smooth",{draw:function(e,t){var n=Ia(e,!0,!0),r=this.parsePath(P2e(e.points));return t.addShape("path",{attrs:U(U({},n),{path:r})})},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{stroke:null,r:4,fill:t}}}});rr("violin","hollow",{draw:function(e,t){var n=Ia(e,!0,!1),r=this.parsePath(L2e(e.points));return t.addShape("path",{attrs:U(U({},n),{path:r})})},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:t}}}});rr("violin","hollow-smooth",{draw:function(e,t){var n=Ia(e,!0,!1),r=this.parsePath(P2e(e.points));return t.addShape("path",{attrs:U(U({},n),{path:r})})},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:t}}}});var sHt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelValueDir=function(n){var r="y",a=n.points;return a[0][r]<=a[2][r]?1:-1},t.prototype.getLabelOffsetPoint=function(n,r,a,i){var o,l=e.prototype.getLabelOffsetPoint.call(this,n,r,a),s=this.getCoordinate(),u=s.isTransposed,c=u?"x":"y",d=this.getLabelValueDir(n.mappingData);return l=U(U({},l),(o={},o[c]=l[c]*d,o)),s.isReflect("x")&&(l=U(U({},l),{x:l.x*-1})),s.isReflect("y")&&(l=U(U({},l),{y:l.y*-1})),l},t.prototype.getThemedLabelCfg=function(n){var r=this.geometry,a=this.getDefaultLabelCfg(),i=r.theme;return At({},a,i.labels,n.position==="middle"?{offset:0}:{},n)},t.prototype.setLabelPosition=function(n,r,a,i){var o=this.getCoordinate(),l=o.isTransposed,s=r.points,u=o.convert(s[0]),c=o.convert(s[2]),d=this.getLabelValueDir(r),f,p,h,m,v=Qe(r.shape)?r.shape[0]:r.shape;if(v==="funnel"||v==="pyramid"){var y=ce(r,"nextPoints"),b=ce(r,"points");if(y){var x=o.convert(b[0]),E=o.convert(b[1]),S=o.convert(y[0]),C=o.convert(y[1]);l?(f=Math.min(S.y,x.y),h=Math.max(S.y,x.y),p=(E.x+C.x)/2,m=(x.x+S.x)/2):(f=Math.min((E.y+C.y)/2,(x.y+S.y)/2),h=Math.max((E.y+C.y)/2,(x.y+S.y)/2),p=C.x,m=x.x)}else f=Math.min(c.y,u.y),h=Math.max(c.y,u.y),p=c.x,m=u.x}else f=Math.min(c.y,u.y),h=Math.max(c.y,u.y),p=c.x,m=u.x;switch(i){case"right":n.x=p,n.y=(f+h)/2,n.textAlign=ce(n,"textAlign",d>0?"left":"right");break;case"left":n.x=m,n.y=(f+h)/2,n.textAlign=ce(n,"textAlign",d>0?"left":"right");break;case"bottom":l&&(n.x=(p+m)/2),n.y=h,n.textAlign=ce(n,"textAlign","center"),n.textBaseline=ce(n,"textBaseline",d>0?"bottom":"top");break;case"middle":l&&(n.x=(p+m)/2),n.y=(f+h)/2,n.textAlign=ce(n,"textAlign","center"),n.textBaseline=ce(n,"textBaseline","middle");break;case"top":l&&(n.x=(p+m)/2),n.y=f,n.textAlign=ce(n,"textAlign","center"),n.textBaseline=ce(n,"textBaseline",d>0?"bottom":"top");break}},t}(e_),W2=Math.PI/2,dTe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelOffset=function(n){var r=this.getCoordinate(),a=0;if(un(n))a=n;else if(Jt(n)&&n.indexOf("%")!==-1){var i=r.getRadius();r.innerRadius>0&&(i=i*(1-r.innerRadius)),a=parseFloat(n)*.01*i}return a},t.prototype.getLabelItems=function(n){var r=e.prototype.getLabelItems.call(this,n),a=this.geometry.getYScale();return Hr(r,function(i){if(i&&a){var o=a.scale(ce(i.data,a.field));return U(U({},i),{percent:o})}return i})},t.prototype.getLabelAlign=function(n){var r=this.getCoordinate(),a;if(n.labelEmit)a=n.angle<=Math.PI/2&&n.angle>=-Math.PI/2?"left":"right";else if(!r.isTransposed)a="center";else{var i=r.getCenter(),o=n.offset;Math.abs(n.x-i.x)<1?a="center":n.angle>Math.PI||n.angle<=0?a=o>0?"left":"right":a=o>0?"right":"left"}return a},t.prototype.getLabelPoint=function(n,r,a){var i=1,o,l=n.content[a];this.isToMiddle(r)?o=this.getMiddlePoint(r.points):(n.content.length===1&&a===0?a=1:a===0&&(i=-1),o=this.getArcPoint(r,a));var s=n.offset*i,u=this.getPointAngle(o),c=n.labelEmit,d=this.getCirclePoint(u,s,o,c);return d.r===0?d.content="":(d.content=l,d.angle=u,d.color=r.color),d.rotate=n.autoRotate?this.getLabelRotate(u,s,c):n.rotate,d.start={x:o.x,y:o.y},d},t.prototype.getArcPoint=function(n,r){return r===void 0&&(r=0),!Qe(n.x)&&!Qe(n.y)?{x:n.x,y:n.y}:{x:Qe(n.x)?n.x[r]:n.x,y:Qe(n.y)?n.y[r]:n.y}},t.prototype.getPointAngle=function(n){return X0(this.getCoordinate(),n)},t.prototype.getCirclePoint=function(n,r,a,i){var o=this.getCoordinate(),l=o.getCenter(),s=K3(o,a);if(s===0)return U(U({},l),{r:s});var u=n;if(o.isTransposed&&s>r&&!i){var c=Math.asin(r/(2*s));u=n+c*2}else s=s+r;return{x:l.x+s*Math.cos(u),y:l.y+s*Math.sin(u),r:s}},t.prototype.getLabelRotate=function(n,r,a){var i=n+W2;return a&&(i-=W2),i&&(i>W2?i=i-Math.PI:i<-W2&&(i=i+Math.PI)),i},t.prototype.getMiddlePoint=function(n){var r=this.getCoordinate(),a=n.length,i={x:0,y:0};return oe(n,function(o){i.x+=o.x,i.y+=o.y}),i.x/=a,i.y/=a,i=r.convert(i),i},t.prototype.isToMiddle=function(n){return n.x.length>2},t}(e_),uHt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.defaultLayout="distribute",n}return t.prototype.getDefaultLabelCfg=function(n,r){var a=e.prototype.getDefaultLabelCfg.call(this,n,r);return At({},a,ce(this.geometry.theme,"pieLabels",{}))},t.prototype.getLabelOffset=function(n){return e.prototype.getLabelOffset.call(this,n)||0},t.prototype.getLabelRotate=function(n,r,a){var i;return r<0&&(i=n,i>Math.PI/2&&(i=i-Math.PI),i<-Math.PI/2&&(i=i+Math.PI)),i},t.prototype.getLabelAlign=function(n){var r=this.getCoordinate(),a=r.getCenter(),i;return n.angle<=Math.PI/2&&n.x>=a.x?i="left":i="right",n.offset<=0&&(i==="right"?i="left":i="right"),i},t.prototype.getArcPoint=function(n){return n},t.prototype.getPointAngle=function(n){var r=this.getCoordinate(),a={x:Qe(n.x)?n.x[0]:n.x,y:n.y[0]},i={x:Qe(n.x)?n.x[1]:n.x,y:n.y[1]},o,l=X0(r,a);if(n.points&&n.points[0].y===n.points[1].y)o=l;else{var s=X0(r,i);l>=s&&(s=s+Math.PI*2),o=l+(s-l)/2}return o},t.prototype.getCirclePoint=function(n,r){var a=this.getCoordinate(),i=a.getCenter(),o=a.getRadius()+r;return U(U({},Ma(i.x,i.y,o,n)),{angle:n,r:o})},t}(dTe),Aie=4;function cHt(e,t,n,r,a,i){var o,l,s=!0,u=r.start,c=r.end,d=Math.min(u.y,c.y),f=Math.abs(u.y-c.y),p,h=0,m=Number.MIN_VALUE,v=t.map(function(w){return w.y>h&&(h=w.y),w.yf&&(f=h-d);s;)for(v.forEach(function(w){var I=(Math.min.apply(m,w.targets)+Math.max.apply(m,w.targets))/2;w.pos=Math.min(Math.max(m,I-w.size/2),f-w.size)}),s=!1,p=v.length;p--;)if(p>0){var y=v[p-1],b=v[p];y.pos+y.size>b.pos&&(y.size+=b.size,y.targets=y.targets.concat(b.targets),y.pos+y.size>f&&(y.pos=f-y.size),v.splice(p,1),s=!0)}p=0,v.forEach(function(w){var I=d+n/2;w.targets.forEach(function(){t[p].y=w.pos+I,I+=n,p++})});var x={};try{for(var E=tr(e),S=E.next();!S.done;S=E.next()){var C=S.value;x[C.get("id")]=C}}catch(w){o={error:w}}finally{try{S&&!S.done&&(l=E.return)&&l.call(E)}finally{if(o)throw o.error}}t.forEach(function(w){var I=w.r*w.r,T=Math.pow(Math.abs(w.y-a.y),2);if(I0){var s=14,u=o+a,c=u*2+s*2,d={start:i.start,end:i.end},f=[[],[]];e.forEach(function(p){p&&(p.textAlign==="right"?f[0].push(p):f[1].push(p))}),f.forEach(function(p,h){var m=c/s;p.length>m&&(p.sort(function(v,y){return y["..percent"]-v["..percent"]}),p.splice(m,p.length-m)),p.sort(function(v,y){return v.y-y.y}),cHt(t,p,s,d,l,h)})}oe(e,function(p){if(p&&p.labelLine){var h=p.offset,m=p.angle,v=Ma(l.x,l.y,o,m),y=Ma(l.x,l.y,o+h/2,m),b=p.x+ce(p,"offsetX",0),x=p.y+ce(p,"offsetY",0),E={x:b-Math.cos(m)*Aie,y:x-Math.sin(m)*Aie};pr(p.labelLine)||(p.labelLine={}),p.labelLine.path=["M ".concat(v.x),"".concat(v.y," Q").concat(y.x),"".concat(y.y," ").concat(E.x),E.y].join(",")}})}}function fTe(e,t,n){var r=e.filter(function(h){return!h.invisible});r.sort(function(h,m){return h.y-m.y});var a=!0,i=n.minY,o=n.maxY,l=Math.abs(i-o),s,u=0,c=Number.MIN_VALUE,d=r.map(function(h){return h.y>u&&(u=h.y),h.yl&&(l=u-i);a;)for(d.forEach(function(h){var m=(Math.min.apply(c,h.targets)+Math.max.apply(c,h.targets))/2;h.pos=Math.min(Math.max(c,m-h.size/2),l-h.size),h.pos=Math.max(0,h.pos)}),a=!1,s=d.length;s--;)if(s>0){var f=d[s-1],p=d[s];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>l&&(f.pos=l-f.size),d.splice(s,1),a=!0)}s=0,d.forEach(function(h){var m=i+t/2;h.targets.forEach(function(){r[s].y=h.pos+m,m+=t,s++})})}var Iie=4;function fHt(e,t){var n=t.getCenter(),r=t.getRadius();if(e&&e.labelLine){var a=e.angle,i=e.offset,o=Ma(n.x,n.y,r,a),l=e.x+ce(e,"offsetX",0)*(Math.cos(a)>0?1:-1),s=e.y+ce(e,"offsetY",0)*(Math.sin(a)>0?1:-1),u={x:l-Math.cos(a)*Iie,y:s-Math.sin(a)*Iie},c=e.labelLine.smooth,d=[],f=u.x-n.x,p=u.y-n.y,h=Math.atan(p/f);if(f<0&&(h+=Math.PI),c===!1){pr(e.labelLine)||(e.labelLine={});var m=0;(a<0&&a>-Math.PI/2||a>Math.PI*1.5)&&u.y>o.y&&(m=1),a>=0&&ao.y&&(m=1),a>=Math.PI/2&&au.y&&(m=1),(a<-Math.PI/2||a>=Math.PI&&au.y&&(m=1);var v=i/2>4?4:Math.max(i/2-1,0),y=Ma(n.x,n.y,r+v,a),b=Ma(n.x,n.y,r+i/2,h),x=0;d.push("M ".concat(o.x," ").concat(o.y)),d.push("L ".concat(y.x," ").concat(y.y)),d.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(x," ").concat(m," ").concat(b.x," ").concat(b.y)),d.push("L ".concat(u.x," ").concat(u.y))}else{var y=Ma(n.x,n.y,r+(i/2>4?4:Math.max(i/2-1,0)),a),E=o.xMath.pow(Math.E,-16)&&d.push.apply(d,["C",u.x+E*4,u.y,2*y.x-o.x,2*y.y-o.y,o.x,o.y]),d.push("L ".concat(o.x," ").concat(o.y))}e.labelLine.path=d.join(" ")}}function pHt(e,t,n,r){var a,i,o=Gi(e,function(I){return!Ge(I)}),l=t[0]&&t[0].get("coordinate");if(l){var s=l.getCenter(),u=l.getRadius(),c={};try{for(var d=tr(t),f=d.next();!f.done;f=d.next()){var p=f.value;c[p.get("id")]=p}}catch(I){a={error:I}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(a)throw a.error}}var h=ce(o[0],"labelHeight",14),m=ce(o[0],"offset",0);if(!(m<=0)){var v="left",y="right",b=Zl(o,function(I){return I.xA&&(I.sort(function(O,R){return R.percent-O.percent}),oe(I,function(O,R){R+1>A&&(c[O.id].set("visible",!1),O.invisible=!0)})),fTe(I,h,w)}),oe(b,function(I,T){oe(I,function(A){var O=T===y,R=c[A.id],N=R.getChildByIndex(0);if(N){var _=u+m,L=A.y-s.y,$=Math.pow(_,2),k=Math.pow(L,2),P=$-k>0?$-k:0,B=Math.sqrt(P),F=Math.abs(Math.cos(A.angle)*_);O?A.x=s.x+Math.max(B,F):A.x=s.x-Math.max(B,F)}N&&(N.attr("y",A.y),N.attr("x",A.x)),fHt(A,l)})})}}}var e8=4,hHt=4,Oie=4;function gHt(e,t,n){var r=t.getCenter(),a=t.getRadius(),i={x:e.x-(n?Oie:-Oie),y:e.y},o=Ma(r.x,r.y,a+e8,e.angle),l={x:i.x,y:i.y},s={x:o.x,y:o.y},u=Ma(r.x,r.y,a,e.angle),c="";if(i.y!==o.y){var d=n?4:-4;l.y=i.y,e.angle<0&&e.angle>=-Math.PI/2&&(l.x=Math.max(o.x,i.x-d),i.y0&&e.angleo.y?s.y=l.y:(s.y=o.y,s.x=Math.max(s.x,l.x-d))),e.angle>Math.PI/2&&(l.x=Math.min(o.x,i.x-d),i.y>o.y?s.y=l.y:(s.y=o.y,s.x=Math.min(s.x,l.x-d))),e.angle<-Math.PI/2&&(l.x=Math.min(o.x,i.x-d),i.yl.x||I.x===l.x&&I.y>l.y,O=Ge(I.offsetX)?hHt:I.offsetX,R=Ma(l.x,l.y,s+e8,I.angle),N=h+O;I.x=l.x+(A?1:-1)*(s+N),I.y=R.y}}});var m=o.start,v=o.end,y="left",b="right",x=Zl(e,function(I){return I.xE&&(E=Math.min(T,Math.abs(m.y-v.y)))});var S={minX:m.x,maxX:v.x,minY:l.y-E/2,maxY:l.y+E/2};oe(x,function(I,T){var A=E/p;I.length>A&&(I.sort(function(O,R){return R.percent-O.percent}),oe(I,function(O,R){R>A&&(u[O.id].set("visible",!1),O.invisible=!0)})),fTe(I,p,S)});var C=S.minY,w=S.maxY;oe(x,function(I,T){var A=T===b;oe(I,function(O){var R=ce(u,O&&[O.id]);if(R){if(O.yw){R.set("visible",!1);return}var N=R.getChildByIndex(0),_=N.getCanvasBBox(),L={x:A?_.x:_.maxX,y:_.y+_.height/2};xC(N,O.x-L.x,O.y-L.y),O.labelLine&&gHt(O,o,A)}})})}}function vHt(e,t,n,r){oe(t,function(a){var i=r.minX,o=r.minY,l=r.maxX,s=r.maxY,u=a.getCanvasBBox(),c=u.minX,d=u.minY,f=u.maxX,p=u.maxY,h=u.x,m=u.y,v=u.width,y=u.height,b=h,x=m;(cl?b=l-v:f>l&&(b=b-(f-l)),d>s?x=s-y:p>s&&(x=x-(p-s)),(b!==h||x!==m)&&xC(a,b-h,x-m)})}function yHt(e,t,n,r){oe(t,function(a,i){var o=a.getCanvasBBox(),l=n[i].getBBox();(o.minXl.maxX||o.maxY>l.maxY)&&a.remove(!0)})}var bHt=100,pTe=function(){function e(t){t===void 0&&(t={}),this.bitmap={};var n=t.xGap,r=n===void 0?1:n,a=t.yGap,i=a===void 0?8:a;this.xGap=r,this.yGap=i}return e.prototype.hasGap=function(t){for(var n=!0,r=this.bitmap,a=Math.round(t.minX),i=Math.round(t.maxX),o=Math.round(t.minY),l=Math.round(t.maxY),s=a;s<=i;s+=1){if(!r[s]){r[s]={};continue}if(s===a||s===i){for(var u=o;u<=l;u++)if(r[s][u]){n=!1;break}}else if(r[s][o]||r[s][l]){n=!1;break}}return n},e.prototype.fillGap=function(t){for(var n=this.bitmap,r=Math.round(t.minX),a=Math.round(t.maxX),i=Math.round(t.minY),o=Math.round(t.maxY),l=r;l<=a;l+=1)n[l]||(n[l]={});for(var l=r;l<=a;l+=this.xGap){for(var s=i;s<=o;s+=this.yGap)n[l][s]=!0;n[l][o]=!0}if(this.yGap!==1)for(var l=i;l<=o;l+=1)n[r][l]=!0,n[a][l]=!0;if(this.xGap!==1)for(var l=r;l<=a;l+=1)n[l][i]=!0,n[l][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function xHt(e,t,n){n===void 0&&(n=bHt);var r=-1,a=e.attr(),i=a.x,o=a.y,l=e.getCanvasBBox(),s=Math.sqrt(l.width*l.width+l.height*l.height),u,c=-r,d=0,f=0,p=function(y){var b=y*.1;return[b*Math.cos(b),b*Math.sin(b)]};if(t.hasGap(l))return t.fillGap(l),!0;for(var h=!1,m=0,v={};Math.min(Math.abs(d),Math.abs(f))4)return[];var t=function(a,i){return[i.x-a.x,i.y-a.y]},n=t(e[0],e[1]),r=t(e[1],e[2]);return[n,r]}function G2(e,t,n){t===void 0&&(t=0),n===void 0&&(n={x:0,y:0});var r=e.x,a=e.y;return{x:(r-n.x)*Math.cos(-t)+(a-n.y)*Math.sin(-t)+n.x,y:(n.x-r)*Math.sin(-t)+(a-n.y)*Math.cos(-t)+n.y}}function Rie(e){var t=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],n=e.rotation;return n?[G2(t[0],n,t[0]),G2(t[1],n,t[0]),G2(t[2],n,t[0]),G2(t[3],n,t[0])]:t}function _ie(e,t){if(e.length>4)return{min:0,max:0};var n=[];return e.forEach(function(r){n.push(wHt([r.x,r.y],t))}),{min:Math.min.apply(Math,Wt([],$t(n),!1)),max:Math.max.apply(Math,Wt([],$t(n),!1))}}function THt(e,t){return e.max>t.min&&e.mine.x+e.width+n||t.x+t.widthe.y+e.height+n||t.y+t.height"u")){var t;try{t=new Blob([e.toString()],{type:"application/javascript"})}catch{t=new window.BlobBuilder,t.append(e.toString()),t=t.getBlob()}return new kHt(URL.createObjectURL(t))}}var _Ht=function(e){function t(){function u(x,E){return(x[0]||0)*(E[0]||0)+(x[1]||0)*(E[1]||0)+(x[2]||0)*(E[2]||0)}function c(x){if(x.length>4)return[];var E=function(w,I){return[I.x-w.x,I.y-w.y]},S=E(x[0],x[1]),C=E(x[1],x[2]);return[S,C]}function d(x,E,S){E===void 0&&(E=0),S===void 0&&(S={x:0,y:0});var C=x.x,w=x.y;return{x:(C-S.x)*Math.cos(-E)+(w-S.y)*Math.sin(-E)+S.x,y:(S.x-C)*Math.sin(-E)+(w-S.y)*Math.cos(-E)+S.y}}function f(x){var E=[{x:x.x,y:x.y},{x:x.x+x.width,y:x.y},{x:x.x+x.width,y:x.y+x.height},{x:x.x,y:x.y+x.height}],S=x.rotation;return S?[d(E[0],S,E[0]),d(E[1],S,E[0]),d(E[2],S,E[0]),d(E[3],S,E[0])]:E}function p(x,E){if(x.length>4)return{min:0,max:0};var S=[];return x.forEach(function(C){S.push(u([C.x,C.y],E))}),{min:Math.min.apply(null,S),max:Math.max.apply(null,S)}}function h(x,E){return x.max>E.min&&x.minx.x+x.width+S||E.x+E.widthx.y+x.height+S||E.y+E.height=i.height:o.width>=i.width}function PHt(e,t,n){var r=!!e.getAdjust("stack");return r||t.every(function(a,i){var o=n[i];return LHt(e,a,o)})}function FHt(e,t,n){var r=e.coordinate,a=Uo.fromObject(n.getBBox()),i=Ip(t);r.isTransposed?i.attr({x:a.minX+a.width/2,textAlign:"center"}):i.attr({y:a.minY+a.height/2,textBaseline:"middle"})}function BHt(e,t,n){var r;if(n.length!==0){var a=(r=n[0])===null||r===void 0?void 0:r.get("element"),i=a==null?void 0:a.geometry;if(!(!i||i.type!=="interval")){var o=PHt(i,t,n);o&&n.forEach(function(l,s){var u=t[s];FHt(i,u,l)})}}}function zHt(e){var t=500,n=[],r=Math.max(Math.floor(e.length/t),1);return oe(e,function(a,i){i%r===0?n.push(a):a.set("visible",!1)}),n}function HHt(e,t,n){var r;if(n.length!==0){var a=(r=n[0])===null||r===void 0?void 0:r.get("element"),i=a==null?void 0:a.geometry;if(!(!i||i.type!=="interval")){var o=zHt(t),l=$t(i.getXYFields(),1),s=l[0],u=[],c=[],d=Zl(o,function(v){return v.get("data")[s]}),f=wg(Hr(o,function(v){return v.get("data")[s]})),p;o.forEach(function(v){v.set("visible",!0)});var h=function(v){v&&(v.length&&c.push(v.pop()),c.push.apply(c,Wt([],$t(v),!1)))};for(Ei(f)>0&&(p=f.shift(),h(d[p])),Ei(f)>0&&(p=f.pop(),h(d[p])),oe(f.reverse(),function(v){h(d[v])});c.length>0;){var m=c.shift();m.get("visible")&&(G7t(m,u)?m.set("visible",!1):u.push(m))}}}}function jHt(e,t){var n=e.getXYFields()[1],r=[],a=t.sort(function(i,o){return i.get("data")[n]-i.get("data")[n]});return a.length>0&&r.push(a.shift()),a.length>0&&r.push(a.pop()),r.push.apply(r,Wt([],$t(a),!1)),r}function hTe(e,t,n){return e.some(function(r){return n(r,t)})}function UHt(e,t,n){n===void 0&&(n=0);var r=Math.max(0,Math.min(e.x+e.width+n,t.x+t.width+n)-Math.max(e.x-n,t.x-n)),a=Math.max(0,Math.min(e.y+e.height+n,t.y+t.height+n)-Math.max(e.y-n,t.y-n));return r*a}function $ie(e,t){return hTe(e,t,function(n,r){var a=Ip(n),i=Ip(r);return UHt(a.getCanvasBBox(),i.getCanvasBBox(),2)>0})}function VHt(e,t,n,r,a){var i,o;if(n.length!==0){var l=(i=n[0])===null||i===void 0?void 0:i.get("element"),s=l==null?void 0:l.geometry;if(!(!s||s.type!=="point")){var u=$t(s.getXYFields(),2),c=u[0],d=u[1],f=Zl(t,function(m){return m.get("data")[c]}),p=[],h=a&&a.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;Hr(Yy(f).reverse(),function(m){for(var v=jHt(s,f[m]);v.length;){var y=v.shift(),b=Ip(y);if(hTe(p,y,function(S,C){return S.get("data")[c]===C.get("data")[c]&&S.get("data")[d]===C.get("data")[d]})){b.set("visible",!1);continue}var x=$ie(p,y),E=!1;if(x&&(b.attr("y",b.attr("y")+2*h),E=$ie(p,y)),E){b.set("visible",!1);continue}p.push(y)}})}}}function WHt(e,t){var n=e.getXYFields()[1],r=[],a=t.sort(function(i,o){return i.get("data")[n]-i.get("data")[n]});return a.length>0&&r.push(a.shift()),a.length>0&&r.push(a.pop()),r.push.apply(r,Wt([],$t(a),!1)),r}function gTe(e,t,n){return e.some(function(r){return n(r,t)})}function GHt(e,t,n){n===void 0&&(n=0);var r=Math.max(0,Math.min(e.x+e.width+n,t.x+t.width+n)-Math.max(e.x-n,t.x-n)),a=Math.max(0,Math.min(e.y+e.height+n,t.y+t.height+n)-Math.max(e.y-n,t.y-n));return r*a}function Lie(e,t){return gTe(e,t,function(n,r){var a=Ip(n),i=Ip(r);return GHt(a.getCanvasBBox(),i.getCanvasBBox(),2)>0})}function qHt(e,t,n,r,a){var i,o;if(n.length!==0){var l=(i=n[0])===null||i===void 0?void 0:i.get("element"),s=l==null?void 0:l.geometry;if(!(!s||["path","line","area"].indexOf(s.type)<0)){var u=$t(s.getXYFields(),2),c=u[0],d=u[1],f=Zl(t,function(m){return m.get("data")[c]}),p=[],h=a&&a.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;Hr(Yy(f).reverse(),function(m){for(var v=WHt(s,f[m]);v.length;){var y=v.shift(),b=Ip(y);if(gTe(p,y,function(S,C){return S.get("data")[c]===C.get("data")[c]&&S.get("data")[d]===C.get("data")[d]})){b.set("visible",!1);continue}var x=Lie(p,y),E=!1;if(x&&(b.attr("y",b.attr("y")+2*h),E=Lie(p,y)),E){b.set("visible",!1);continue}p.push(y)}})}}}var NM;function YHt(){return NM||(NM=document.createElement("canvas").getContext("2d")),NM}var q2=Xy(function(e,t){t===void 0&&(t={});var n=t.fontSize,r=t.fontFamily,a=t.fontWeight,i=t.fontStyle,o=t.fontVariant,l=YHt();return l.font=[i,o,a,"".concat(n,"px"),r].join(" "),l.measureText(Jt(e)?e:"").width},function(e,t){return t===void 0&&(t={}),Wt([e],$t(S3(t)),!1).join("")}),KHt=function(e,t,n){var r=16,a=q2("...",n),i;Jt(e)?i=e:i=fC(e);var o=t,l=[],s,u;if(q2(e,n)<=t)return e;for(;s=i.substr(0,r),u=q2(s,n),!(u+a>o&&u>o);)if(l.push(s),o-=u,i=i.substr(r),!i)return l.join("");for(;s=i.substr(0,1),u=q2(s,n),!(u+a>o);)if(l.push(s),o-=u,i=i.substr(1),!i)return l.join("");return"".concat(l.join(""),"...")};function XHt(e,t,n,r,a){if(!(t.length<=0)){var i=(a==null?void 0:a.direction)||["top","right","bottom","left"],o=(a==null?void 0:a.action)||"translate",l=(a==null?void 0:a.margin)||0,s=t[0].get("coordinate");if(s){var u=TBt(s,l),c=u.minX,d=u.minY,f=u.maxX,p=u.maxY;oe(t,function(h){var m=h.getCanvasBBox(),v=m.minX,y=m.minY,b=m.maxX,x=m.maxY,E=m.x,S=m.y,C=m.width,w=m.height,I=E,T=S;if(i.indexOf("left")>=0&&(v=0&&(y=0&&(v>f?I=f-C:b>f&&(I=I-(b-f))),i.indexOf("bottom")>=0&&(y>p?T=p-w:x>p&&(T=T-(x-p))),I!==E||T!==S){var A=I-E;if(o==="translate")xC(h,A,T-S);else if(o==="ellipsis"){var O=h.findAll(function(R){return R.get("type")==="text"});O.forEach(function(R){var N=fH(R.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),_=R.getCanvasBBox(),L=KHt(R.attr("text"),_.width-Math.abs(A),N);R.attr("text",L)})}else h.hide()}})}}}function QHt(e,t,n){var r={fillOpacity:Ge(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:Ge(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:Ge(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(r,t)}function ZHt(e,t,n){var r={fillOpacity:0,strokeOpacity:0,opacity:0},a=t.easing,i=t.duration,o=t.delay;e.animate(r,i,a,function(){e.remove(!0)},o)}function JHt(e,t,n){var r,a=$t(t,2),i=a[0],o=a[1];return e.applyToMatrix([i,o,1]),n==="x"?(e.setMatrix(Ua(e.getMatrix(),[["t",-i,-o],["s",.01,1],["t",i,o]])),r=Ua(e.getMatrix(),[["t",-i,-o],["s",100,1],["t",i,o]])):n==="y"?(e.setMatrix(Ua(e.getMatrix(),[["t",-i,-o],["s",1,.01],["t",i,o]])),r=Ua(e.getMatrix(),[["t",-i,-o],["s",1,100],["t",i,o]])):n==="xy"&&(e.setMatrix(Ua(e.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]])),r=Ua(e.getMatrix(),[["t",-i,-o],["s",100,100],["t",i,o]])),r}function sj(e,t,n,r,a){var i=n.start,o=n.end,l=n.getWidth(),s=n.getHeight(),u,c;a==="y"?(u=i.x+l/2,c=r.yi.x?r.x:i.x,c=i.y+s/2):a==="xy"&&(n.isPolar?(u=n.getCenter().x,c=n.getCenter().y):(u=(i.x+o.x)/2,c=(i.y+o.y)/2));var d=JHt(e,[u,c],a);e.animate({matrix:d},t)}function ejt(e,t,n){var r=n.coordinate,a=n.minYPoint;sj(e,t,r,a,"x")}function tjt(e,t,n){var r=n.coordinate,a=n.minYPoint;sj(e,t,r,a,"y")}function njt(e,t,n){var r=n.coordinate,a=n.minYPoint;sj(e,t,r,a,"xy")}function rjt(e,t,n){var r=e.getTotalLength();e.attr("lineDash",[r]),e.animate(function(a){return{lineDashOffset:(1-a)*r}},t)}function ajt(e,t,n){var r=n.toAttrs,a=r.x,i=r.y;delete r.x,delete r.y,e.attr(r),e.animate({x:a,y:i},t)}function ijt(e,t,n){var r=e.getBBox(),a=e.get("origin").mappingData,i=a.points,o=i[0].y-i[1].y>0?r.maxX:r.minX,l=(r.minY+r.maxY)/2;e.applyToMatrix([o,l,1]);var s=Ua(e.getMatrix(),[["t",-o,-l],["s",.01,1],["t",o,l]]);e.setMatrix(s),e.animate({matrix:Ua(e.getMatrix(),[["t",-o,-l],["s",100,1],["t",o,l]])},t)}function ojt(e,t,n){var r=e.getBBox(),a=e.get("origin").mappingData,i=(r.minX+r.maxX)/2,o=a.points,l=o[0].y-o[1].y<=0?r.maxY:r.minY;e.applyToMatrix([i,l,1]);var s=Ua(e.getMatrix(),[["t",-i,-l],["s",1,.01],["t",i,l]]);e.setMatrix(s),e.animate({matrix:Ua(e.getMatrix(),[["t",-i,-l],["s",1,100],["t",i,l]])},t)}function Pie(e,t){var n,r=fO(e,t),a=r.startAngle,i=r.endAngle;return!Bi(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),!Bi(i,-Math.PI*.5)&&i<-Math.PI*.5&&(i+=Math.PI*2),t[5]===0&&(n=$t([i,a],2),a=n[0],i=n[1]),Bi(a,Math.PI*1.5)&&(a=Math.PI*-.5),Bi(i,Math.PI*-.5)&&!Bi(a,i)&&(i=Math.PI*1.5),{startAngle:a,endAngle:i}}function Fie(e){var t;return e[0]==="M"||e[0]==="L"?t=[e[1],e[2]]:(e[0]==="a"||e[0]==="A"||e[0]==="C")&&(t=[e[e.length-2],e[e.length-1]]),t}function Bie(e){var t,n,r,a=e.filter(function(x){return x[0]==="A"||x[0]==="a"});if(a.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var i=a[0],o=a.length>1?a[1]:a[0],l=e.indexOf(i),s=e.indexOf(o),u=Fie(e[l-1]),c=Fie(e[s-1]),d=Pie(u,i),f=d.startAngle,p=d.endAngle,h=Pie(c,o),m=h.startAngle,v=h.endAngle;Bi(f,m)&&Bi(p,v)?(n=f,r=p):(n=Math.min(f,m),r=Math.max(p,v));var y=i[1],b=a[a.length-1][1];return y=0;u--){var c=this.getFacetsByLevel(n,u);try{for(var d=(r=void 0,tr(c)),f=d.next();!f.done;f=d.next()){var p=f.value;this.isLeaf(p)||(p.originColIndex=p.columnIndex,p.columnIndex=this.getRegionIndex(p.children),p.columnValuesLength=o.length)}}catch(h){r={error:h}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}}},t.prototype.getFacetsByLevel=function(n,r){var a=[];return n.forEach(function(i){i.rowIndex===r&&a.push(i)}),a},t.prototype.getRegionIndex=function(n){var r=n[0],a=n[n.length-1];return(a.columnIndex-r.columnIndex)/2+r.columnIndex},t.prototype.isLeaf=function(n){return!n.children||!n.children.length},t.prototype.getRows=function(){return this.cfg.fields.length+1},t.prototype.getChildFacets=function(n,r,a){var i=this,o=this.cfg.fields,l=o.length;if(!(l=p){var v=a.parsePosition([h[s],h[l.field]]);v&&f.push(v)}if(h[s]===d)return!1}),f},t.prototype.parsePercentPosition=function(n){var r=parseFloat(n[0])/100,a=parseFloat(n[1])/100,i=this.view.getCoordinate(),o=i.start,l=i.end,s={x:Math.min(o.x,l.x),y:Math.min(o.y,l.y)},u=i.getWidth()*r+s.x,c=i.getHeight()*a+s.y;return{x:u,y:c}},t.prototype.getCoordinateBBox=function(){var n=this.view.getCoordinate(),r=n.start,a=n.end,i=n.getWidth(),o=n.getHeight(),l={x:Math.min(r.x,a.x),y:Math.min(r.y,a.y)};return{x:l.x,y:l.y,minX:l.x,minY:l.y,maxX:l.x+i,maxY:l.y+o,width:i,height:o}},t.prototype.getAnnotationCfg=function(n,r,a){var i=this,o=this.view.getCoordinate(),l=this.view.getCanvas(),s={};if(Ge(r))return null;var u=r.start,c=r.end,d=r.position,f=this.parsePosition(u),p=this.parsePosition(c),h=this.parsePosition(d);if(["arc","image","line","region","regionFilter"].includes(n)&&(!f||!p))return null;if(["text","dataMarker","html"].includes(n)&&!h)return null;if(n==="arc"){var m=r;m.start,m.end;var v=mr(m,["start","end"]),y=X0(o,f),b=X0(o,p);y>b&&(b=Math.PI*2+b),s=U(U({},v),{center:o.getCenter(),radius:K3(o,f),startAngle:y,endAngle:b})}else if(n==="image"){var x=r;x.start,x.end;var v=mr(x,["start","end"]);s=U(U({},v),{start:f,end:p,src:r.src})}else if(n==="line"){var E=r;E.start,E.end;var v=mr(E,["start","end"]);s=U(U({},v),{start:f,end:p,text:ce(r,"text",null)})}else if(n==="region"){var S=r;S.start,S.end;var v=mr(S,["start","end"]);s=U(U({},v),{start:f,end:p})}else if(n==="text"){var C=this.view.getData(),w=r;w.position;var I=w.content,v=mr(w,["position","content"]),T=I;kt(I)&&(T=I(C)),s=U(U(U({},h),v),{content:T})}else if(n==="dataMarker"){var A=r;A.position;var O=A.point,R=A.line,N=A.text,_=A.autoAdjust,L=A.direction,v=mr(A,["position","point","line","text","autoAdjust","direction"]);s=U(U(U({},v),h),{coordinateBBox:this.getCoordinateBBox(),point:O,line:R,text:N,autoAdjust:_,direction:L})}else if(n==="dataRegion"){var $=r,k=$.start,P=$.end,B=$.region,N=$.text,F=$.lineLength,v=mr($,["start","end","region","text","lineLength"]);s=U(U({},v),{points:this.getRegionPoints(k,P),region:B,text:N,lineLength:F})}else if(n==="regionFilter"){var D=r;D.start,D.end;var j=D.apply,z=D.color,v=mr(D,["start","end","apply","color"]),V=this.view.geometries,G=[],W=function(ve){ve&&(ve.isGroup()?ve.getChildren().forEach(function(ge){return W(ge)}):G.push(ve))};oe(V,function(ve){j?wh(j,ve.type)&&oe(ve.elements,function(ge){W(ge.shape)}):oe(ve.elements,function(ge){W(ge.shape)})}),s=U(U({},v),{color:z,shapes:G,start:f,end:p})}else if(n==="shape"){var Y=r,J=Y.render,Z=mr(Y,["render"]),K=function(se){if(kt(r.render))return J(se,i.view,{parsePosition:i.parsePosition.bind(i)})};s=U(U({},Z),{render:K})}else if(n==="html"){var ee=r,ae=ee.html;ee.position;var Z=mr(ee,["html","position"]),te=function(ve){return kt(ae)?ae(ve,i.view):ae};s=U(U(U({},Z),h),{parent:l.get("el").parentNode,html:te})}var re=At({},a,U(U({},s),{top:r.top,style:r.style,offsetX:r.offsetX,offsetY:r.offsetY}));return n!=="html"&&(re.container=this.getComponentContainer(re)),re.animate=this.view.getOptions().animate&&re.animate&&ce(r,"animate",re.animate),re.animateOption=At({},Z0,re.animateOption,r.animateOption),re},t.prototype.isTop=function(n){return ce(n,"top",!0)},t.prototype.getComponentContainer=function(n){return this.isTop(n)?this.foregroundContainer:this.backgroundContainer},t.prototype.getAnnotationTheme=function(n){return ce(this.view.getTheme(),["components","annotation",n],{})},t.prototype.updateOrCreate=function(n){var r=this.cache.get(this.getCacheKey(n));if(r){var a=n.type,i=this.getAnnotationTheme(a),o=this.getAnnotationCfg(a,n,i);o&&il(o,["container"]),r.component.update(U(U({},o||{}),{visible:!!o})),wh(K2,n.type)&&r.component.render()}else r=this.createAnnotation(n),r&&(r.component.init(),wh(K2,n.type)&&r.component.render());return r},t.prototype.syncCache=function(n){var r=this,a=new Map(this.cache);return n.forEach(function(i,o){a.set(o,i)}),a.forEach(function(i,o){ku(r.option,function(l){return o===r.getCacheKey(l)})||(i.component.destroy(),a.delete(o))}),a},t.prototype.getCacheKey=function(n){return n},t}(eb);function Hie(e,t){var n=At({},ce(e,["components","axis","common"]),ce(e,["components","axis",t]));return ce(n,["grid"],{})}function X2(e,t,n,r){var a=[],i=t.getTicks();return e.isPolar&&i.push({value:1,text:"",tickValue:""}),i.reduce(function(o,l,s){var u=l.value;if(r)a.push({points:[e.convert(n==="y"?{x:0,y:u}:{x:u,y:0}),e.convert(n==="y"?{x:1,y:u}:{x:u,y:1})]});else if(s){var c=o.value,d=(c+u)/2;a.push({points:[e.convert(n==="y"?{x:0,y:d}:{x:d,y:0}),e.convert(n==="y"?{x:1,y:d}:{x:d,y:1})]})}return l},i[0]),a}function MM(e,t,n,r,a){var i=t.values.length,o=[],l=n.getTicks();return l.reduce(function(s,u){var c=s?s.value:u.value,d=u.value,f=(c+d)/2;return a==="x"?o.push({points:[e.convert({x:r?d:f,y:0}),e.convert({x:r?d:f,y:1})]}):o.push({points:Hr(Array(i+1),function(p,h){return e.convert({x:h/i,y:r?d:f})})}),u},l[0]),o}function jie(e,t){var n=ce(t,"grid");if(n===null)return!1;var r=ce(e,"grid");return!(n===void 0&&r===null)}var gf=["container"],Uie=U(U({},Z0),{appear:null}),bjt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.cache=new Map,r.gridContainer=r.view.getLayer(Sa.BG).addGroup(),r.gridForeContainer=r.view.getLayer(Sa.FORE).addGroup(),r.axisContainer=r.view.getLayer(Sa.BG).addGroup(),r.axisForeContainer=r.view.getLayer(Sa.FORE).addGroup(),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var n=this,r=this.view.getCoordinate();oe(this.getComponents(),function(a){var i=a.component,o=a.direction,l=a.type,s=a.extra,u=s.dim,c=s.scale,d=s.alignTick,f;if(l===yi.AXIS)r.isPolar?u==="x"?f=r.isTransposed?L2(r,o):TM(r):u==="y"&&(f=r.isTransposed?TM(r):L2(r,o)):f=L2(r,o);else if(l===yi.GRID)if(r.isPolar){var p=void 0;r.isTransposed?p=u==="x"?MM(r,n.view.getYScales()[0],c,d,u):X2(r,c,u,d):p=u==="x"?X2(r,c,u,d):MM(r,n.view.getXScale(),c,d,u),f={items:p,center:n.view.getCoordinate().getCenter()}}else f={items:X2(r,c,u,d)};i.update(f)})},t.prototype.update=function(){this.option=this.view.getOptions().axes;var n=new Map;this.updateXAxes(n),this.updateYAxes(n);var r=new Map;this.cache.forEach(function(a,i){n.has(i)?r.set(i,a):a.component.destroy()}),this.cache=r},t.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},t.prototype.getComponents=function(){var n=[];return this.cache.forEach(function(r){n.push(r)}),n},t.prototype.updateXAxes=function(n){var r=this.view.getXScale();if(!(!r||r.isIdentity)){var a=uO(this.option,r.field);if(a!==!1){var i=Gae(a,ct.BOTTOM),o=Sa.BG,l="x",s=this.view.getCoordinate(),u=this.getId("axis",r.field),c=this.getId("grid",r.field);if(s.isRect){var d=this.cache.get(u);if(d){var f=this.getLineAxisCfg(r,a,i);il(f,gf),d.component.update(f),n.set(u,d)}else d=this.createLineAxis(r,a,o,i,l),this.cache.set(u,d),n.set(u,d);var p=this.cache.get(c);if(p){var f=this.getLineGridCfg(r,a,i,l);il(f,gf),p.component.update(f),n.set(c,p)}else p=this.createLineGrid(r,a,o,i,l),p&&(this.cache.set(c,p),n.set(c,p))}else if(s.isPolar){var d=this.cache.get(u);if(d){var f=s.isTransposed?this.getLineAxisCfg(r,a,ct.RADIUS):this.getCircleAxisCfg(r,a,i);il(f,gf),d.component.update(f),n.set(u,d)}else{if(s.isTransposed){if(Ph(a))return;d=this.createLineAxis(r,a,o,ct.RADIUS,l)}else d=this.createCircleAxis(r,a,o,i,l);this.cache.set(u,d),n.set(u,d)}var p=this.cache.get(c);if(p){var f=s.isTransposed?this.getCircleGridCfg(r,a,ct.RADIUS,l):this.getLineGridCfg(r,a,ct.CIRCLE,l);il(f,gf),p.component.update(f),n.set(c,p)}else{if(s.isTransposed){if(Ph(a))return;p=this.createCircleGrid(r,a,o,ct.RADIUS,l)}else p=this.createLineGrid(r,a,o,ct.CIRCLE,l);p&&(this.cache.set(c,p),n.set(c,p))}}}}},t.prototype.updateYAxes=function(n){var r=this,a=this.view.getYScales();oe(a,function(i,o){if(!(!i||i.isIdentity)){var l=i.field,s=uO(r.option,l);if(s!==!1){var u=Sa.BG,c="y",d=r.getId("axis",l),f=r.getId("grid",l),p=r.view.getCoordinate();if(p.isRect){var h=Gae(s,o===0?ct.LEFT:ct.RIGHT),m=r.cache.get(d);if(m){var v=r.getLineAxisCfg(i,s,h);il(v,gf),m.component.update(v),n.set(d,m)}else m=r.createLineAxis(i,s,u,h,c),r.cache.set(d,m),n.set(d,m);var y=r.cache.get(f);if(y){var v=r.getLineGridCfg(i,s,h,c);il(v,gf),y.component.update(v),n.set(f,y)}else y=r.createLineGrid(i,s,u,h,c),y&&(r.cache.set(f,y),n.set(f,y))}else if(p.isPolar){var m=r.cache.get(d);if(m){var v=p.isTransposed?r.getCircleAxisCfg(i,s,ct.CIRCLE):r.getLineAxisCfg(i,s,ct.RADIUS);il(v,gf),m.component.update(v),n.set(d,m)}else{if(p.isTransposed){if(Ph(s))return;m=r.createCircleAxis(i,s,u,ct.CIRCLE,c)}else m=r.createLineAxis(i,s,u,ct.RADIUS,c);r.cache.set(d,m),n.set(d,m)}var y=r.cache.get(f);if(y){var v=p.isTransposed?r.getLineGridCfg(i,s,ct.CIRCLE,c):r.getCircleGridCfg(i,s,ct.RADIUS,c);il(v,gf),y.component.update(v),n.set(f,y)}else{if(p.isTransposed){if(Ph(s))return;y=r.createLineGrid(i,s,u,ct.CIRCLE,c)}else y=r.createCircleGrid(i,s,u,ct.RADIUS,c);y&&(r.cache.set(f,y),n.set(f,y))}}}}})},t.prototype.createLineAxis=function(n,r,a,i,o){var l={component:new hBt(this.getLineAxisCfg(n,r,i)),layer:a,direction:i===ct.RADIUS?ct.NONE:i,type:yi.AXIS,extra:{dim:o,scale:n}};return l.component.set("field",n.field),l.component.init(),l},t.prototype.createLineGrid=function(n,r,a,i,o){var l=this.getLineGridCfg(n,r,i,o);if(l){var s={component:new mBt(l),layer:a,direction:ct.NONE,type:yi.GRID,extra:{dim:o,scale:n,alignTick:ce(l,"alignTick",!0)}};return s.component.init(),s}},t.prototype.createCircleAxis=function(n,r,a,i,o){var l={component:new gBt(this.getCircleAxisCfg(n,r,i)),layer:a,direction:i,type:yi.AXIS,extra:{dim:o,scale:n}};return l.component.set("field",n.field),l.component.init(),l},t.prototype.createCircleGrid=function(n,r,a,i,o){var l=this.getCircleGridCfg(n,r,i,o);if(l){var s={component:new vBt(l),layer:a,direction:ct.NONE,type:yi.GRID,extra:{dim:o,scale:n,alignTick:ce(l,"alignTick",!0)}};return s.component.init(),s}},t.prototype.getLineAxisCfg=function(n,r,a){var i=ce(r,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),l=L2(o,a),s=qae(n,r),u=P2(this.view.getTheme(),a),c=ce(r,["title"])?At({title:{style:{text:s}}},{title:Wae(this.view.getTheme(),a,r.title)},r):r,d=At(U(U({container:i},l),{ticks:n.getTicks().map(function(x){return{id:"".concat(x.tickValue),name:x.text,value:x.value}}),verticalFactor:o.isPolar?Vae(l,o.getCenter())*-1:Vae(l,o.getCenter()),theme:u}),u,c),f=this.getAnimateCfg(d),p=f.animate,h=f.animateOption;d.animateOption=h,d.animate=p;var m=e2e(l),v=ce(d,"verticalLimitLength",m?1/3:1/2);if(v<=1){var y=this.view.getCanvas().get("width"),b=this.view.getCanvas().get("height");d.verticalLimitLength=v*(m?y:b)}return d},t.prototype.getLineGridCfg=function(n,r,a,i){if(jie(P2(this.view.getTheme(),a),r)){var o=Hie(this.view.getTheme(),a),l=At({container:ce(r,["top"])?this.gridForeContainer:this.gridContainer},o,ce(r,"grid"),this.getAnimateCfg(r));return l.items=X2(this.view.getCoordinate(),n,i,ce(l,"alignTick",!0)),l}},t.prototype.getCircleAxisCfg=function(n,r,a){var i=ce(r,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),l=n.getTicks().map(function(m){return{id:"".concat(m.tickValue),name:m.text,value:m.value}});!n.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&l.length&&(l[l.length-1].name="");var s=qae(n,r),u=P2(this.view.getTheme(),ct.CIRCLE),c=ce(r,["title"])?At({title:{style:{text:s}}},{title:Wae(this.view.getTheme(),a,r.title)},r):r,d=At(U(U({container:i},TM(this.view.getCoordinate())),{ticks:l,verticalFactor:1,theme:u}),u,c),f=this.getAnimateCfg(d),p=f.animate,h=f.animateOption;return d.animate=p,d.animateOption=h,d},t.prototype.getCircleGridCfg=function(n,r,a,i){if(jie(P2(this.view.getTheme(),a),r)){var o=Hie(this.view.getTheme(),ct.RADIUS),l=At({container:ce(r,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,ce(r,"grid"),this.getAnimateCfg(r)),s=ce(l,"alignTick",!0),u=i==="x"?this.view.getYScales()[0]:this.view.getXScale();return l.items=MM(this.view.getCoordinate(),u,n,s,i),l}},t.prototype.getId=function(n,r){var a=this.view.getCoordinate();return"".concat(n,"-").concat(r,"-").concat(a.type)},t.prototype.getAnimateCfg=function(n){return{animate:this.view.getOptions().animate&&ce(n,"animate"),animateOption:n&&n.animateOption?At({},Uie,n.animateOption):Uie}},t}(eb);function Yf(e,t,n){return n===ct.TOP?[e.minX+e.width/2-t.width/2,e.minY]:n===ct.BOTTOM?[e.minX+e.width/2-t.width/2,e.maxY-t.height]:n===ct.LEFT?[e.minX,e.minY+e.height/2-t.height/2]:n===ct.RIGHT?[e.maxX-t.width,e.minY+e.height/2-t.height/2]:n===ct.TOP_LEFT||n===ct.LEFT_TOP?[e.tl.x,e.tl.y]:n===ct.TOP_RIGHT||n===ct.RIGHT_TOP?[e.tr.x-t.width,e.tr.y]:n===ct.BOTTOM_LEFT||n===ct.LEFT_BOTTOM?[e.bl.x,e.bl.y-t.height]:n===ct.BOTTOM_RIGHT||n===ct.RIGHT_BOTTOM?[e.br.x-t.width,e.br.y-t.height]:[0,0]}function Vie(e,t){return G0(e)?e===!1?!1:{}:ce(e,[t],e)}function Q2(e){return ce(e,"position",ct.BOTTOM)}var xjt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.container=r.view.getLayer(Sa.FORE).addGroup(),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var n=this;this.layoutBBox=this.view.viewBBox,oe(this.components,function(r){var a=r.component,i=r.direction,o=IM(i),l=a.get("maxWidthRatio"),s=a.get("maxHeightRatio"),u=n.getCategoryLegendSizeCfg(o,l,s),c=a.get("maxWidth"),d=a.get("maxHeight");a.update({maxWidth:Math.min(u.maxWidth,c||0),maxHeight:Math.min(u.maxHeight,d||0)});var f=a.get("padding"),p=a.getLayoutBBox(),h=new Uo(p.x,p.y,p.width,p.height).expand(f),m=$t(Yf(n.view.viewBBox,h,i),2),v=m[0],y=m[1],b=$t(Yf(n.layoutBBox,h,i),2),x=b[0],E=b[1],S=0,C=0;i.startsWith("top")||i.startsWith("bottom")?(S=v,C=E):(S=x,C=y),a.setLocation({x:S+f[3],y:C+f[0]}),n.layoutBBox=n.layoutBBox.cut(h,i)})},t.prototype.update=function(){var n=this;this.option=this.view.getOptions().legends;var r={},a=function(f,p,h){var m=n.getId(h.field),v=n.getComponentById(m);if(v){var y=void 0,b=Vie(n.option,h.field);b!==!1&&(ce(b,"custom")?y=n.getCategoryCfg(f,p,h,b,!0):h.isLinear?y=n.getContinuousCfg(f,p,h,b):h.isCategory&&(y=n.getCategoryCfg(f,p,h,b))),y&&(il(y,["container"]),v.direction=Q2(b),v.component.update(y),r[m]=!0)}else{var x=n.createFieldLegend(f,p,h);x&&(x.component.init(),n.components.push(x),r[m]=!0)}};if(ce(this.option,"custom")){var i="global-custom",o=this.getComponentById(i);if(o){var l=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);il(l,["container"]),o.component.update(l),r[i]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var u=Sa.FORE,c=Q2(this.option);this.components.push({id:i,component:s,layer:u,direction:c,type:yi.LEGEND,extra:void 0}),r[i]=!0}}}else this.loopLegends(a);var d=[];oe(this.getComponents(),function(f){r[f.id]?d.push(f):f.component.destroy()}),this.components=d},t.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},t.prototype.getGeometries=function(n){var r=this,a=n.geometries;return oe(n.views,function(i){a=a.concat(r.getGeometries(i))}),a},t.prototype.loopLegends=function(n){var r=this.view.getRootView()===this.view;if(r){var a=this.getGeometries(this.view),i={};oe(a,function(o){var l=o.getGroupAttributes();oe(l,function(s){var u=s.getScale(s.type);!u||u.type==="identity"||i[u.field]||(n(o,s,u),i[u.field]=!0)})})}},t.prototype.createFieldLegend=function(n,r,a){var i,o=Vie(this.option,a.field),l=Sa.FORE,s=Q2(o);if(o!==!1&&(ce(o,"custom")?i=this.createCustomLegend(n,r,a,o):a.isLinear?i=this.createContinuousLegend(n,r,a,o):a.isCategory&&(i=this.createCategoryLegend(n,r,a,o))),i)return i.set("field",a.field),{id:this.getId(a.field),component:i,layer:l,direction:s,type:yi.LEGEND,extra:{scale:a}}},t.prototype.createCustomLegend=function(n,r,a,i){var o=this.getCategoryCfg(n,r,a,i,!0);return new Hae(o)},t.prototype.createContinuousLegend=function(n,r,a,i){var o=this.getContinuousCfg(n,r,a,il(i,["value"]));return new yBt(o)},t.prototype.createCategoryLegend=function(n,r,a,i){var o=this.getCategoryCfg(n,r,a,i);return new Hae(o)},t.prototype.getContinuousCfg=function(n,r,a,i){var o=a.getTicks(),l=ku(o,function(m){return m.value===0}),s=ku(o,function(m){return m.value===1}),u=o.map(function(m){var v=m.value,y=m.tickValue,b=r.mapping(a.invert(v)).join("");return{value:y,attrValue:b,color:b,scaleValue:v}});l||u.push({value:a.min,attrValue:r.mapping(a.invert(0)).join(""),color:r.mapping(a.invert(0)).join(""),scaleValue:0}),s||u.push({value:a.max,attrValue:r.mapping(a.invert(1)).join(""),color:r.mapping(a.invert(1)).join(""),scaleValue:1}),u.sort(function(m,v){return m.value-v.value});var c={min:Ql(u).value,max:qa(u).value,colors:[],rail:{type:r.type},track:{}};r.type==="size"&&(c.track={style:{fill:r.type==="size"?this.view.getTheme().defaultColor:void 0}}),r.type==="color"&&(c.colors=u.map(function(m){return m.attrValue}));var d=this.container,f=Q2(i),p=IM(f),h=ce(i,"title");return h&&(h=At({text:HE(a)},h)),c.container=d,c.layout=p,c.title=h,c.animateOption=Z0,this.mergeLegendCfg(c,i,"continuous")},t.prototype.getCategoryCfg=function(n,r,a,i,o){var l=this.container,s=ce(i,"position",ct.BOTTOM),u=uie(this.view.getTheme(),s),c=ce(u,["marker"]),d=ce(i,"marker"),f=IM(s),p=ce(u,["pageNavigator"]),h=ce(i,"pageNavigator"),m=o?Q7t(c,d,i.items):$2e(this.view,n,r,c,d),v=ce(i,"title");v&&(v=At({text:a?HE(a):""},v));var y=ce(i,"maxWidthRatio"),b=ce(i,"maxHeightRatio"),x=this.getCategoryLegendSizeCfg(f,y,b);x.container=l,x.layout=f,x.items=m,x.title=v,x.animateOption=Z0,x.pageNavigator=At({},p,h);var E=this.mergeLegendCfg(x,i,s);E.reversed&&E.items.reverse();var S=ce(E,"maxItemWidth");return S&&S<=1&&(E.maxItemWidth=this.view.viewBBox.width*S),E},t.prototype.mergeLegendCfg=function(n,r,a){var i=a.split("-")[0],o=uie(this.view.getTheme(),i);return At({},o,n,r)},t.prototype.getId=function(n){return"".concat(this.name,"-").concat(n)},t.prototype.getComponentById=function(n){return ku(this.components,function(r){return r.id===n})},t.prototype.getCategoryLegendSizeCfg=function(n,r,a){r===void 0&&(r=Tre),a===void 0&&(a=Tre);var i=this.view.viewBBox,o=i.width,l=i.height;return n==="vertical"?{maxWidth:o*r,maxHeight:l}:{maxWidth:o,maxHeight:l*a}},t}(eb),Ejt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.onChangeFn=Gf,r.resetMeasure=function(){r.clear()},r.onValueChange=function(a){var i=$t(a,2),o=i[0],l=i[1];r.start=o,r.end=l,r.changeViewData(o,l)},r.container=r.view.getLayer(Sa.FORE).addGroup(),r.onChangeFn=pH(r.onValueChange,20,{leading:!0}),r.width=0,r.view.on(yn.BEFORE_CHANGE_DATA,r.resetMeasure),r.view.on(yn.BEFORE_CHANGE_SIZE,r.resetMeasure),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(yn.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(yn.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().slider;var n=this.getSliderCfg(),r=n.start,a=n.end;Ge(this.start)&&(this.start=r,this.end=a);var i=this.view.getOptions().data;this.option&&!vl(i)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},t.prototype.layout=function(){var n=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){n.view.destroyed||n.changeViewData(n.start,n.end)},0)),this.slider){var r=this.view.coordinateBBox.width,a=this.slider.component.get("padding"),i=$t(a,4),o=i[0];i[1],i[2];var l=i[3],s=this.slider.component.getLayoutBBox(),u=new Uo(s.x,s.y,Math.min(s.width,r),s.height).expand(a),c=this.getMinMaxText(this.start,this.end),d=c.minText,f=c.maxText,p=$t(Yf(this.view.viewBBox,u,ct.BOTTOM),2);p[0];var h=p[1],m=$t(Yf(this.view.coordinateBBox,u,ct.BOTTOM),2),v=m[0];m[1],this.slider.component.update(U(U({},this.getSliderCfg()),{x:v+l,y:h+o,width:this.width,start:this.start,end:this.end,minText:d,maxText:f})),this.view.viewBBox=this.view.viewBBox.cut(u,ct.BOTTOM)}},t.prototype.update=function(){this.render()},t.prototype.createSlider=function(){var n=this.getSliderCfg(),r=new dBt(U({container:this.container},n));return r.init(),{component:r,layer:Sa.FORE,direction:ct.BOTTOM,type:yi.SLIDER}},t.prototype.updateSlider=function(){var n=this.getSliderCfg();if(this.width){var r=this.getMinMaxText(this.start,this.end),a=r.minText,i=r.maxText;n=U(U({},n),{width:this.width,start:this.start,end:this.end,minText:a,maxText:i})}return this.slider.component.update(n),this.slider},t.prototype.measureSlider=function(){var n=this.getSliderCfg().width;this.width=n},t.prototype.getSliderCfg=function(){var n={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(pr(this.option)){var r=U({data:this.getData()},ce(this.option,"trendCfg",{}));n=At({},n,this.getThemeOptions(),this.option),n=U(U({},n),{trendCfg:r})}return n.start=Lr(Math.min(Ge(n.start)?0:n.start,Ge(n.end)?1:n.end),0,1),n.end=Lr(Math.max(Ge(n.start)?0:n.start,Ge(n.end)?1:n.end),0,1),n},t.prototype.getData=function(){var n=this.view.getOptions().data,r=$t(this.view.getYScales(),1),a=r[0],i=this.view.getGroupScales();if(i.length){var o=i[0],l=o.field,s=o.ticks;return n.reduce(function(u,c){return c[l]===s[0]&&u.push(c[a.field]),u},[])}return n.map(function(u){return u[a.field]||0})},t.prototype.getThemeOptions=function(){var n=this.view.getTheme();return ce(n,["components","slider","common"],{})},t.prototype.getMinMaxText=function(n,r){var a=this.view.getOptions().data,i=this.view.getXScale(),o=Bu(a,i.field);i.isLinear&&(o=o.sort());var l=o,s=Ei(a);if(!i||!s)return{};var u=Ei(l),c=Math.round(n*(u-1)),d=Math.round(r*(u-1)),f=ce(l,[c]),p=ce(l,[d]),h=this.getSliderCfg().formatter;return h&&(f=h(f,a[c],c),p=h(p,a[d],d)),{minText:f,maxText:p}},t.prototype.changeViewData=function(n,r){var a=this.view.getOptions().data,i=this.view.getXScale(),o=Ei(a);if(!(!i||!o)){var l=Bu(a,i.field),s=this.view.getXScale().isLinear?l.sort(function(p,h){return Number(p)-Number(h)}):l,u=s,c=Ei(u),d=Math.round(n*(c-1)),f=Math.round(r*(c-1));this.view.filter(i.field,function(p,h){var m=u.indexOf(p);return m>-1?_v(m,d,f):!0}),this.view.render(!0)}},t.prototype.getComponents=function(){return this.slider?[this.slider]:[]},t.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},t}(eb),Z2=0,Wie=8,Sjt=32,Cjt=20,wjt=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.onChangeFn=Gf,r.resetMeasure=function(){r.clear()},r.onValueChange=function(a){var i=a.ratio,o=r.getValidScrollbarCfg().animate;r.ratio=Lr(i,0,1);var l=r.view.getOptions().animate;o||r.view.animate(!1),r.changeViewData(r.getScrollRange(),!0),r.view.animate(l)},r.container=r.view.getLayer(Sa.FORE).addGroup(),r.onChangeFn=pH(r.onValueChange,20,{leading:!0}),r.trackLen=0,r.thumbLen=0,r.ratio=0,r.view.on(yn.BEFORE_CHANGE_DATA,r.resetMeasure),r.view.on(yn.BEFORE_CHANGE_SIZE,r.resetMeasure),r}return Object.defineProperty(t.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(yn.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(yn.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},t.prototype.layout=function(){var n=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){n.view.destroyed||n.changeViewData(n.getScrollRange(),!0)})),this.scrollbar){var r=this.view.coordinateBBox.width,a=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),o=new Uo(i.x,i.y,Math.min(i.width,r),i.height).expand(a),l=this.getScrollbarComponentCfg(),s=void 0,u=void 0;if(l.isHorizontal){var c=$t(Yf(this.view.viewBBox,o,ct.BOTTOM),2);c[0];var d=c[1],f=$t(Yf(this.view.coordinateBBox,o,ct.BOTTOM),2),p=f[0];f[1],s=p,u=d}else{var h=$t(Yf(this.view.viewBBox,o,ct.RIGHT),2);h[0];var d=h[1],m=$t(Yf(this.view.viewBBox,o,ct.RIGHT),2),p=m[0];m[1],s=p,u=d}s+=a[3],u+=a[0],this.trackLen?this.scrollbar.component.update(U(U({},l),{x:s,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(U(U({},l),{x:s,y:u})),this.view.viewBBox=this.view.viewBBox.cut(o,l.isHorizontal?ct.BOTTOM:ct.RIGHT)}},t.prototype.update=function(){this.render()},t.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},t.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},t.prototype.setValue=function(n){this.onValueChange({ratio:n})},t.prototype.getValue=function(){return this.ratio},t.prototype.getThemeOptions=function(){var n=this.view.getTheme();return ce(n,["components","scrollbar","common"],{})},t.prototype.getScrollbarTheme=function(n){var r=ce(this.view.getTheme(),["components","scrollbar"]),a=n||{},i=a.thumbHighlightColor,o=mr(a,["thumbHighlightColor"]);return{default:At({},ce(r,["default","style"],{}),o),hover:At({},ce(r,["hover","style"],{}),{thumbColor:i})}},t.prototype.measureScrollbar=function(){var n=this.view.getXScale(),r=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var a=this.getScrollbarComponentCfg(),i=a.trackLen,o=a.thumbLen;this.trackLen=i,this.thumbLen=o,this.xScaleCfg={field:n.field,values:n.values||[]},this.yScalesCfg=r},t.prototype.getScrollRange=function(){var n=Math.floor((this.cnt-this.step)*Lr(this.ratio,0,1)),r=Math.min(n+this.step-1,this.cnt-1);return[n,r]},t.prototype.changeViewData=function(n,r){var a=this,i=$t(n,2),o=i[0],l=i[1],s=this.getValidScrollbarCfg().type,u=s!=="vertical",c=Bu(this.data,this.xScaleCfg.field),d=this.view.getXScale().isLinear?c.sort(function(p,h){return Number(p)-Number(h)}):c,f=u?d:d.reverse();this.yScalesCfg.forEach(function(p){a.view.scale(p.field,{formatter:p.formatter,type:p.type,min:p.min,max:p.max,tickMethod:p.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(p){var h=f.indexOf(p);return h>-1?_v(h,o,l):!0}),this.view.render(!0)},t.prototype.createScrollbar=function(){var n=this.getValidScrollbarCfg().type,r=n!=="vertical",a=new pBt(U(U({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return a.init(),{component:a,layer:Sa.FORE,direction:r?ct.BOTTOM:ct.RIGHT,type:yi.SCROLLBAR}},t.prototype.updateScrollbar=function(){var n=this.getScrollbarComponentCfg(),r=this.trackLen?U(U({},n),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):U({},n);return this.scrollbar.component.update(r),this.scrollbar},t.prototype.getStep=function(){if(this.step)return this.step;var n=this.view.coordinateBBox,r=this.getValidScrollbarCfg(),a=r.type,i=r.categorySize,o=a!=="vertical";return Math.floor((o?n.width:n.height)/i)},t.prototype.getCnt=function(){if(this.cnt)return this.cnt;var n=this.view.getXScale(),r=this.getScrollbarData(),a=Bu(r,n.field);return Ei(a)},t.prototype.getScrollbarComponentCfg=function(){var n=this.view,r=n.coordinateBBox,a=n.viewBBox,i=this.getValidScrollbarCfg(),o=i.type,l=i.padding,s=i.width,u=i.height,c=i.style,d=o!=="vertical",f=$t(l,4),p=f[0],h=f[1],m=f[2],v=f[3],y=d?{x:r.minX+v,y:a.maxY-u-m}:{x:a.maxX-s-h,y:r.minY+p},b=this.getStep(),x=this.getCnt(),E=d?r.width-v-h:r.height-p-m,S=Math.max(E*Lr(b/x,0,1),Cjt);return U(U({},this.getThemeOptions()),{x:y.x,y:y.y,size:d?u:s,isHorizontal:d,trackLen:E,thumbLen:S,thumbOffset:0,theme:this.getScrollbarTheme(c)})},t.prototype.getValidScrollbarCfg=function(){var n={type:"horizontal",categorySize:Sjt,width:Wie,height:Wie,padding:[0,0,0,0],animate:!0,style:{}};return pr(this.option)&&(n=U(U({},n),this.option)),(!pr(this.option)||!this.option.padding)&&(n.padding=n.type==="horizontal"?[Z2,0,Z2,0]:[0,Z2,0,Z2]),n},t.prototype.getScrollbarData=function(){var n=this.view.getCoordinate(),r=this.getValidScrollbarCfg(),a=this.view.getOptions().data||[];return n.isReflect("y")&&r.type==="vertical"&&(a=Wt([],$t(a),!1).reverse()),a},t}(eb),Tjt={fill:"#CCD6EC",opacity:.3};function Ajt(e,t,n){var r,a,i,o,l,s,u=w7t(e,t,n);if(u.length){u=as(u);try{for(var c=tr(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{for(var p=(i=void 0,tr(f)),h=p.next();!h.done;h=p.next()){var m=h.value,v=m.mappingData,y=v.x,b=v.y;m.x=Qe(y)?y[y.length-1]:y,m.y=Qe(b)?b[b.length-1]:b}}catch(A){i={error:A}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}}catch(A){r={error:A}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}var x=n.shared;if(x===!1&&u.length>1){var E=u[0],S=Math.abs(t.y-E[0].y);try{for(var C=tr(u),w=C.next();!w.done;w=C.next()){var I=w.value,T=Math.abs(t.y-I[0].y);T<=S&&(E=I,S=T)}}catch(A){l={error:A}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(l)throw l.error}}u=[E]}return wg(as(u))}return[]}var Ijt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.show=function(n){var r=this.context.view,a=this.context.event,i=r.getController("tooltip").getTooltipCfg(),o=Ajt(r,{x:a.x,y:a.y},i);if(!fa(o,this.items)&&(this.items=o,o.length)){var l=r.getXScale().field,s=o[0].data[l],u=[],c=r.geometries;if(oe(c,function(P){if(P.type==="interval"||P.type==="schema"){var B=P.getElementsBy(function(F){var D=F.getData();return D[l]===s});u=u.concat(B)}}),u.length){var d=r.getCoordinate(),f=u[0].shape.getCanvasBBox(),p=u[0].shape.getCanvasBBox(),h=f;oe(u,function(P){var B=P.shape.getCanvasBBox();d.isTransposed?(B.minYp.maxY&&(p=B)):(B.minXp.maxX&&(p=B)),h.x=Math.min(B.minX,h.minX),h.y=Math.min(B.minY,h.minY),h.width=Math.max(B.maxX,h.maxX)-h.x,h.height=Math.max(B.maxY,h.maxY)-h.y});var m=r.backgroundGroup,v=r.coordinateBBox,y=void 0;if(d.isRect){var b=r.getXScale(),x=n||{},E=x.appendRatio,S=x.appendWidth;Ge(S)&&(E=Ge(E)?b.isLinear?0:.25:E,S=d.isTransposed?E*p.height:E*f.width);var C=void 0,w=void 0,I=void 0,T=void 0;d.isTransposed?(C=v.minX,w=Math.min(p.minY,f.minY)-S,I=v.width,T=h.height+S*2):(C=Math.min(f.minX,p.minX)-S,w=v.minY,I=h.width+S*2,T=v.height),y=[["M",C,w],["L",C+I,w],["L",C+I,w+T],["L",C,w+T],["Z"]]}else{var A=Ql(u),O=qa(u),R=zE(A.getModel(),d).startAngle,N=zE(O.getModel(),d).endAngle,_=d.getCenter(),L=d.getRadius(),$=d.innerRadius*L;y=dp(_.x,_.y,L,R,N,$)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var k=ce(n,"style",Tjt);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:U(U({},k),{path:y})})}}}},t.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},t.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},t}(Mr),mTe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.timeStamp=0,n}return t.prototype.show=function(){var n=this.context,r=n.event,a=n.view,i=a.isTooltipLocked();if(!i){var o=this.timeStamp,l=+new Date,s=ce(n.view.getOptions(),"tooltip.showDelay",16);if(l-o>s){var u=this.location,c={x:r.x,y:r.y};(!u||!fa(u,c))&&this.showTooltip(a,c),this.timeStamp=l,this.location=c}}},t.prototype.hide=function(){var n=this.context.view,r=n.getController("tooltip"),a=this.context.event,i=a.clientX,o=a.clientY;r.isCursorEntered({x:i,y:o})||n.isTooltipLocked()||(this.hideTooltip(n),this.location=null)},t.prototype.showTooltip=function(n,r){n.showTooltip(r)},t.prototype.hideTooltip=function(n){n.hideTooltip()},t}(Mr),Ojt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.showTooltip=function(n,r){var a=Tc(n);oe(a,function(i){var o=HF(n,i,r);i.showTooltip(o)})},t.prototype.hideTooltip=function(n){var r=Tc(n);oe(r,function(a){a.hideTooltip()})},t}(mTe),kjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.timeStamp=0,n}return t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.show=function(){var n=this.context,r=n.event,a=this.timeStamp,i=+new Date;if(i-a>16){var o=this.location,l={x:r.x,y:r.y};(!o||!fa(o,l))&&this.showTooltip(l),this.timeStamp=i,this.location=l}},t.prototype.hide=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(n){var r=this.context,a=r.event,i=a.target;if(i&&i.get("tip")){if(!this.tooltip)this.renderTooltip();else{var o=r.view,l=o.canvas,s={start:{x:0,y:0},end:{x:l.get("width"),y:l.get("height")}};this.tooltip.set("region",s)}var u=i.get("tip");this.tooltip.update(U({title:u},n)),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var n,r=this.context.view,a=r.canvas,i={start:{x:0,y:0},end:{x:a.get("width"),y:a.get("height")}},o=r.getTheme(),l=ce(o,["components","tooltip","domStyles"],{}),s=new Y3({parent:a.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:U({},At({},l,(n={},n[jd]={"max-width":"50%"},n[Ud]={"word-break":"break-all"},n)))});s.init(),s.setCapture(!1),this.tooltip=s},t}(Mr),cj=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="",n}return t.prototype.hasState=function(n){return n.hasState(this.stateName)},t.prototype.setElementState=function(n,r){n.setState(this.stateName,r)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.clear=function(){var n=this.context.view;this.clearViewState(n)},t.prototype.clearViewState=function(n){var r=this,a=p2e(n,this.stateName);oe(a,function(i){r.setElementState(i,!1)})},t}(Mr);function Gie(e){return ce(e.get("delegateObject"),"item")}var dj=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ignoreListItemStates=["unchecked"],n}return t.prototype.isItemIgnore=function(n,r){var a=this.ignoreListItemStates,i=a.filter(function(o){return r.hasState(n,o)});return!!i.length},t.prototype.setStateByComponent=function(n,r,a){var i=this.context.view,o=n.get("field"),l=Vi(i);this.setElementsStateByItem(l,o,r,a)},t.prototype.setStateByElement=function(n,r){this.setElementState(n,r)},t.prototype.isMathItem=function(n,r,a){var i=this.context.view,o=Q0(i,r),l=zu(n,r);return!Ge(l)&&a.name===o.getText(l)},t.prototype.setElementsStateByItem=function(n,r,a,i){var o=this;oe(n,function(l){o.isMathItem(l,r,a)&&l.setState(o.stateName,i)})},t.prototype.setStateEnable=function(n){var r=Ap(this.context);if(r)u2e(this.context)&&this.setStateByElement(r,n);else{var a=Ig(this.context);if(jE(a)){var i=a.item,o=a.component;if(i&&o&&!this.isItemIgnore(i,o)){var l=this.context.event.gEvent;if(l&&l.fromShape&&l.toShape&&Gie(l.fromShape)===Gie(l.toShape))return;this.setStateByComponent(o,i,n)}}}},t.prototype.toggle=function(){var n=Ap(this.context);if(n){var r=n.hasState(this.stateName);this.setElementState(n,!r)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}(cj),Rjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="active",n}return t.prototype.active=function(){this.setState()},t}(dj),_jt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache={},n}return t.prototype.getColorScale=function(n,r){var a=r.geometry.getAttribute("color");if(!a)return null;var i=n.getScaleByField(a.getFields()[0]);return i},t.prototype.getLinkPath=function(n,r){var a=this.context.view,i=a.getCoordinate().isTransposed,o=n.shape.getCanvasBBox(),l=r.shape.getCanvasBBox(),s=i?[["M",o.minX,o.minY],["L",l.minX,l.maxY],["L",l.maxX,l.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",l.minX,l.minY],["L",l.minX,l.maxY],["L",o.maxX,o.maxY],["Z"]];return s},t.prototype.addLinkShape=function(n,r,a,i){var o={opacity:.4,fill:r.shape.attr("fill")};n.addShape({type:"path",attrs:U(U({},At({},o,kt(i)?i(o,r):i)),{path:this.getLinkPath(r,a)})})},t.prototype.linkByElement=function(n,r){var a=this,i=this.context.view,o=this.getColorScale(i,n);if(o){var l=zu(n,o.field);if(!this.cache[l]){var s=n7t(i,o.field,l),u=this.linkGroup,c=u.addGroup();this.cache[l]=c;var d=s.length;oe(s,function(f,p){if(p=0},r)},t}(fj),Ljt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="active",n}return t.prototype.highlight=function(){this.setState()},t.prototype.setElementState=function(n,r){var a=this.context.view,i=Vi(a);vTe(i,function(o){return n===o},r)},t.prototype.clear=function(){var n=this.context.view;hj(n)},t}(pj),Pjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="selected",n}return t.prototype.selected=function(){this.setState()},t}(fj),Fjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="selected",n}return t.prototype.selected=function(){this.setState()},t}(dj),Bjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="selected",n}return t.prototype.selected=function(){this.setState()},t}(pj),tm=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="",n.ignoreItemStates=[],n}return t.prototype.getTriggerListInfo=function(){var n=Ig(this.context),r=null;return jE(n)&&(r={item:n.item,list:n.component}),r},t.prototype.getAllowComponents=function(){var n=this,r=this.context.view,a=g2e(r),i=[];return oe(a,function(o){o.isList()&&n.allowSetStateByElement(o)&&i.push(o)}),i},t.prototype.hasState=function(n,r){return n.hasState(r,this.stateName)},t.prototype.clearAllComponentsState=function(){var n=this,r=this.getAllowComponents();oe(r,function(a){a.clearItemsState(n.stateName)})},t.prototype.allowSetStateByElement=function(n){var r=n.get("field");if(!r)return!1;if(this.cfg&&this.cfg.componentNames){var a=n.get("name");if(this.cfg.componentNames.indexOf(a)===-1)return!1}var i=this.context.view,o=Q0(i,r);return o&&o.isCategory},t.prototype.allowSetStateByItem=function(n,r){var a=this.ignoreItemStates;if(a.length){var i=a.filter(function(o){return r.hasState(n,o)});return i.length===0}return!0},t.prototype.setStateByElement=function(n,r,a){var i=n.get("field"),o=this.context.view,l=Q0(o,i),s=zu(r,i),u=l.getText(s);this.setItemsState(n,u,a)},t.prototype.setStateEnable=function(n){var r=this,a=Ap(this.context);if(a){var i=this.getAllowComponents();oe(i,function(u){r.setStateByElement(u,a,n)})}else{var o=Ig(this.context);if(jE(o)){var l=o.item,s=o.component;this.allowSetStateByElement(s)&&this.allowSetStateByItem(l,s)&&this.setItemState(s,l,n)}}},t.prototype.setItemsState=function(n,r,a){var i=this,o=n.getItems();oe(o,function(l){l.name===r&&i.setItemState(n,l,a)})},t.prototype.setItemState=function(n,r,a){n.setItemState(r,this.stateName,a)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.reset=function(){this.setStateEnable(!1)},t.prototype.toggle=function(){var n=this.getTriggerListInfo();if(n&&n.item){var r=n.list,a=n.item,i=this.hasState(r,a);this.setItemState(r,a,!i)}},t.prototype.clear=function(){var n=this.getTriggerListInfo();n?n.list.clearItemsState(this.stateName):this.clearAllComponentsState()},t}(Mr),zjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="active",n}return t.prototype.active=function(){this.setState()},t}(tm),qie="inactive",Yie="active";function Hjt(e){var t=e.getItems();oe(t,function(n){e.hasState(n,Yie)&&e.setItemState(n,Yie,!1),e.hasState(n,qie)&&e.setItemState(n,qie,!1)})}var s1="inactive",oh="active",mj=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName=oh,n.ignoreItemStates=["unchecked"],n}return t.prototype.setItemsState=function(n,r,a){this.setHighlightBy(n,function(i){return i.name===r},a)},t.prototype.setItemState=function(n,r,a){n.getItems(),this.setHighlightBy(n,function(i){return i===r},a)},t.prototype.setHighlightBy=function(n,r,a){var i=n.getItems();if(a)oe(i,function(s){r(s)?(n.hasState(s,s1)&&n.setItemState(s,s1,!1),n.setItemState(s,oh,!0)):n.hasState(s,oh)||n.setItemState(s,s1,!0)});else{var o=n.getItemsByState(oh),l=!0;oe(o,function(s){if(!r(s))return l=!1,!1}),l?this.clear():oe(i,function(s){r(s)&&(n.hasState(s,oh)&&n.setItemState(s,oh,!1),n.setItemState(s,s1,!0))})}},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){var n=this.getTriggerListInfo();if(n)Hjt(n.list);else{var r=this.getAllowComponents();oe(r,function(a){a.clearItemsState(oh),a.clearItemsState(s1)})}},t}(tm),jjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="selected",n}return t.prototype.selected=function(){this.setState()},t}(tm),Ujt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName="unchecked",n}return t.prototype.unchecked=function(){this.setState()},t}(tm),Xm="unchecked",J2="checked",Vjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.stateName=J2,n}return t.prototype.setItemState=function(n,r,a){this.setCheckedBy(n,function(i){return i===r},a)},t.prototype.setCheckedBy=function(n,r,a){var i=n.getItems();a&&oe(i,function(o){r(o)?(n.hasState(o,Xm)&&n.setItemState(o,Xm,!1),n.setItemState(o,J2,!0)):n.hasState(o,J2)||n.setItemState(o,Xm,!0)})},t.prototype.toggle=function(){var n=this.getTriggerListInfo();if(n&&n.item){var r=n.list,a=n.item,i=!b3(r.getItems(),function(o){return r.hasState(o,Xm)});i||r.hasState(a,Xm)?this.setItemState(r,a,!0):this.reset()}},t.prototype.checked=function(){this.setState()},t.prototype.reset=function(){var n=this.getAllowComponents();oe(n,function(r){r.clearItemsState(J2),r.clearItemsState(Xm)})},t}(tm),Qm="unchecked",Wjt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toggle=function(){var n,r,a,i,o,l,s,u,c=this.getTriggerListInfo();if(c!=null&&c.item){var d=c.list,f=c.item,p=d.getItems(),h=p.filter(function(A){return!d.hasState(A,Qm)}),m=p.filter(function(A){return d.hasState(A,Qm)}),v=h[0];if(p.length===h.length)try{for(var y=tr(p),b=y.next();!b.done;b=y.next()){var x=b.value;d.setItemState(x,Qm,x.id!==f.id)}}catch(A){n={error:A}}finally{try{b&&!b.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}else if(p.length-m.length===1)if(v.id===f.id)try{for(var E=tr(p),S=E.next();!S.done;S=E.next()){var x=S.value;d.setItemState(x,Qm,!1)}}catch(A){a={error:A}}finally{try{S&&!S.done&&(i=E.return)&&i.call(E)}finally{if(a)throw a.error}}else try{for(var C=tr(p),w=C.next();!w.done;w=C.next()){var x=w.value;d.setItemState(x,Qm,x.id!==f.id)}}catch(A){o={error:A}}finally{try{w&&!w.done&&(l=C.return)&&l.call(C)}finally{if(o)throw o.error}}else try{for(var I=tr(p),T=I.next();!T.done;T=I.next()){var x=T.value;d.setItemState(x,Qm,x.id!==f.id)}}catch(A){s={error:A}}finally{try{T&&!T.done&&(u=I.return)&&u.call(I)}finally{if(s)throw s.error}}}},t}(tm),Kie="showRadio",$M="legend-radio-tip",Gjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.timeStamp=0,n}return t.prototype.show=function(){var n=this.getTriggerListInfo();if(n!=null&&n.item){var r=n.list,a=n.item;r.setItemState(a,Kie,!0)}},t.prototype.hide=function(){var n=this.getTriggerListInfo();if(n!=null&&n.item){var r=n.list,a=n.item;r.setItemState(a,Kie,!1)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.showTip=function(){var n=this.context,r=n.event,a=this.timeStamp,i=+new Date,o=this.context.event.target;if(i-a>16&&o.get("name")==="legend-item-radio"){var l=this.location,s={x:r.x,y:r.y};this.timeStamp=i,this.location=s,(!l||!fa(l,s))&&this.showTooltip(s)}},t.prototype.hideTip=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(n){var r=this.context,a=r.event,i=a.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var o=r.view.getCanvas().get("el").getBoundingClientRect(),l=o.x,s=o.y;this.tooltip.update(U(U({title:i.get("tip")},n),{x:n.x+l,y:n.y+s})),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var n,r=(n={},n[jd]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},n[Ud]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},n);document.getElementById($M)&&document.body.removeChild(document.getElementById($M));var a=new Y3({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:r,containerId:$M});a.init(),a.setCapture(!1),this.tooltip=a},t}(tm),vj=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.maskShape=null,n.points=[],n.starting=!1,n.moving=!1,n.preMovePoint=null,n.shapeType="path",n}return t.prototype.getCurrentPoint=function(){var n=this.context.event;return{x:n.x,y:n.y}},t.prototype.emitEvent=function(n){var r="mask:".concat(n),a=this.context.view,i=this.context.event;a.emit(r,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},t.prototype.createMask=function(){var n=this.context.view,r=this.getMaskAttrs(),a=n.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:U({fill:"#C5D4EB",opacity:.3},r)});return a},t.prototype.getMaskPath=function(){return[]},t.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},t.prototype.start=function(n){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(n==null?void 0:n.maskStyle),this.emitEvent("start")},t.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},t.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var n=this.getCurrentPoint(),r=this.preMovePoint,a=n.x-r.x,i=n.y-r.y,o=this.points;oe(o,function(l){l.x+=a,l.y+=i}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=n}},t.prototype.updateMask=function(n){var r=At({},this.getMaskAttrs(),n);this.maskShape.attr(r)},t.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},t.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},t.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},t.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},t.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},t}(Mr);function bTe(e){var t=qa(e),n=0,r=0,a=0;if(e.length){var i=e[0];n=jH(i,t)/2,r=(t.x+i.x)/2,a=(t.y+i.y)/2}return{x:r,y:a,r:n}}var qjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.shapeType="circle",n}return t.prototype.getMaskAttrs=function(){return bTe(this.points)},t}(vj);function xTe(e){return{start:Ql(e),end:qa(e)}}function ETe(e,t){var n=Math.min(e.x,t.x),r=Math.min(e.y,t.y),a=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y);return{x:n,y:r,width:a,height:i}}var STe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.shapeType="rect",n}return t.prototype.getRegion=function(){return xTe(this.points)},t.prototype.getMaskAttrs=function(){var n=this.getRegion(),r=n.start,a=n.end;return ETe(r,a)},t}(vj);function Xie(e){e.x=Lr(e.x,0,1),e.y=Lr(e.y,0,1)}function CTe(e,t,n,r){var a=null,i=null,o=r.invert(Ql(e)),l=r.invert(qa(e));return n&&(Xie(o),Xie(l)),t==="x"?(a=r.convert({x:o.x,y:0}),i=r.convert({x:l.x,y:1})):(a=r.convert({x:0,y:o.y}),i=r.convert({x:1,y:l.y})),{start:a,end:i}}var wTe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.dim="x",n.inPlot=!0,n}return t.prototype.getRegion=function(){var n=this.context.view.getCoordinate();return CTe(this.points,this.dim,this.inPlot,n)},t}(STe);function yj(e){var t=[];return e.length&&(oe(e,function(n,r){r===0?t.push(["M",n.x,n.y]):t.push(["L",n.x,n.y])}),t.push(["L",e[0].x,e[0].y])),t}function TTe(e){return{path:yj(e)}}var ATe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getMaskPath=function(){return yj(this.points)},t.prototype.getMaskAttrs=function(){return TTe(this.points)},t.prototype.addPoint=function(){this.resize()},t}(vj);function bj(e){return a7t(e,!0)}function ITe(e){return{path:bj(e)}}var Yjt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getMaskPath=function(){return bj(this.points)},t.prototype.getMaskAttrs=function(){return ITe(this.points)},t}(ATe),xj=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.maskShapes=[],n.starting=!1,n.moving=!1,n.recordPoints=null,n.preMovePoint=null,n.shapeType="path",n.maskType="multi-mask",n}return t.prototype.getCurrentPoint=function(){var n=this.context.event;return{x:n.x,y:n.y}},t.prototype.emitEvent=function(n){var r="".concat(this.maskType,":").concat(n),a=this.context.view,i=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(l){return o.hasOwnProperty(l)?o[l]:void 0}};a.emit(r,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:i.x,y:i.y})},t.prototype.createMask=function(n){var r=this.context.view,a=this.recordPoints[n],i=this.getMaskAttrs(a),o=r.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:U({fill:"#C5D4EB",opacity:.3},i)});this.maskShapes.push(o)},t.prototype.getMaskPath=function(n){return[]},t.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(n){return n.show()}),this.emitEvent("show"))},t.prototype.start=function(n){this.recordPointStart(),this.starting=!0,this.moving=!1;var r=this.recordPoints.length-1;this.createMask(r),this.updateShapesCapture(!1),this.updateMask(n==null?void 0:n.maskStyle),this.emitEvent("start")},t.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},t.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var n=this.getCurrentPoint(),r=this.preMovePoint,a=n.x-r.x,i=n.y-r.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(l){l.x+=a,l.y+=i}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=n)}},t.prototype.updateMask=function(n){var r=this;this.recordPoints.forEach(function(a,i){var o=At({},r.getMaskAttrs(a),n);r.maskShapes[i].attr(o)})},t.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},t.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},t.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},t.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(n){return n.hide()}),this.emitEvent("hide"))},t.prototype.remove=function(){var n=this.getCurMaskShapeIndex();n>-1&&(this.recordPoints.splice(n,1),this.maskShapes[n].remove(),this.maskShapes.splice(n,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},t.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(n){return n.remove()}),this.maskShapes=[],this.preMovePoint=null},t.prototype.clear=function(){var n=this.getCurMaskShapeIndex();n===-1?(this.recordPointClear(),this.maskShapes.forEach(function(r){return r.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(n,1),this.maskShapes[n].remove(),this.maskShapes.splice(n,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},t.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},t.prototype.getRecordPoints=function(){var n;return Wt([],$t((n=this.recordPoints)!==null&&n!==void 0?n:[]),!1)},t.prototype.recordPointStart=function(){var n=this.getRecordPoints(),r=this.getCurrentPoint();this.recordPoints=Wt(Wt([],$t(n),!1),[[r]],!1)},t.prototype.recordPointContinue=function(){var n=this.getRecordPoints(),r=this.getCurrentPoint(),a=n.splice(-1,1)[0]||[];a.push(r),this.recordPoints=Wt(Wt([],$t(n),!1),[a],!1)},t.prototype.recordPointClear=function(){this.recordPoints=[]},t.prototype.updateShapesCapture=function(n){this.maskShapes.forEach(function(r){return r.set("capture",n)})},t.prototype.getCurMaskShapeIndex=function(){var n=this.getCurrentPoint();return this.maskShapes.findIndex(function(r){var a=r.attrs,i=a.width,o=a.height,l=a.r,s=i===0||o===0||l===0;return!s&&r.isHit(n.x,n.y)})},t}(Mr),OTe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.shapeType="rect",n}return t.prototype.getRegion=function(n){return xTe(n)},t.prototype.getMaskAttrs=function(n){var r=this.getRegion(n),a=r.start,i=r.end;return ETe(a,i)},t}(xj),kTe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.dim="x",n.inPlot=!0,n}return t.prototype.getRegion=function(n){var r=this.context.view.getCoordinate();return CTe(n,this.dim,this.inPlot,r)},t}(OTe),Kjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.shapeType="circle",n.getMaskAttrs=bTe,n}return t}(xj),RTe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.getMaskPath=yj,n.getMaskAttrs=TTe,n}return t.prototype.addPoint=function(){this.resize()},t}(xj),Xjt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.getMaskPath=bj,n.getMaskAttrs=ITe,n}return t}(RTe),Qjt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setCursor=function(n){var r=this.context.view;r.getCanvas().setCursor(n)},t.prototype.default=function(){this.setCursor("default")},t.prototype.pointer=function(){this.setCursor("pointer")},t.prototype.move=function(){this.setCursor("move")},t.prototype.crosshair=function(){this.setCursor("crosshair")},t.prototype.wait=function(){this.setCursor("wait")},t.prototype.help=function(){this.setCursor("help")},t.prototype.text=function(){this.setCursor("text")},t.prototype.eResize=function(){this.setCursor("e-resize")},t.prototype.wResize=function(){this.setCursor("w-resize")},t.prototype.nResize=function(){this.setCursor("n-resize")},t.prototype.sResize=function(){this.setCursor("s-resize")},t.prototype.neResize=function(){this.setCursor("ne-resize")},t.prototype.nwResize=function(){this.setCursor("nw-resize")},t.prototype.seResize=function(){this.setCursor("se-resize")},t.prototype.swResize=function(){this.setCursor("sw-resize")},t.prototype.nsResize=function(){this.setCursor("ns-resize")},t.prototype.ewResize=function(){this.setCursor("ew-resize")},t.prototype.zoomIn=function(){this.setCursor("zoom-in")},t.prototype.zoomOut=function(){this.setCursor("zoom-out")},t}(Mr),Zjt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.filterView=function(n,r,a){var i=this;n.getScaleByField(r)&&n.filter(r,a),n.views&&n.views.length&&oe(n.views,function(o){i.filterView(o,r,a)})},t.prototype.filter=function(){var n=Ig(this.context);if(n){var r=this.context.view,a=n.component,i=a.get("field");if(jE(n)){if(i){var o=a.getItemsByState("unchecked"),l=Q0(r,i),s=o.map(function(p){return p.name});s.length?this.filterView(r,i,function(p){var h=l.getText(p);return!s.includes(h)}):this.filterView(r,i,null),r.render(!0)}}else if(c2e(n)){var u=a.getValue(),c=$t(u,2),d=c[0],f=c[1];this.filterView(r,i,function(p){return p>=d&&p<=f}),r.render(!0)}}},t}(Mr);function Qie(e,t,n,r){var a=Math.min(n[t],r[t]),i=Math.max(n[t],r[t]),o=$t(e.range,2),l=o[0],s=o[1];if(as&&(i=s),a===s&&i===s)return null;var u=e.invert(a),c=e.invert(i);if(e.isCategory){var d=e.values.indexOf(u),f=e.values.indexOf(c),p=e.values.slice(d,f+1);return function(h){return p.includes(h)}}else return function(h){return h>=u&&h<=c}}var rl;(function(e){e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset"})(rl||(rl={}));var r_=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.dims=["x","y"],n.startPoint=null,n.isStarted=!1,n}return t.prototype.hasDim=function(n){return this.dims.includes(n)},t.prototype.start=function(){var n=this.context;this.isStarted=!0,this.startPoint=n.getCurrentPoint()},t.prototype.filter=function(){var n,r;if(UE(this.context)){var a=this.context.event.target,i=a.getCanvasBBox();n={x:i.x,y:i.y},r={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;n=this.startPoint,r=this.context.getCurrentPoint()}if(!(Math.abs(n.x-r.x)<5||Math.abs(n.x-r.y)<5)){var o=this.context,l=o.view,s=o.event,u={view:l,event:s,dims:this.dims};l.emit(rl.BEFORE_FILTER,ra.fromData(l,rl.BEFORE_FILTER,u));var c=l.getCoordinate(),d=c.invert(r),f=c.invert(n);if(this.hasDim("x")){var p=l.getXScale(),h=Qie(p,"x",d,f);this.filterView(l,p.field,h)}if(this.hasDim("y")){var m=l.getYScales()[0],h=Qie(m,"y",d,f);this.filterView(l,m.field,h)}this.reRender(l,{source:rl.FILTER}),l.emit(rl.AFTER_FILTER,ra.fromData(l,rl.AFTER_FILTER,u))}},t.prototype.end=function(){this.isStarted=!1},t.prototype.reset=function(){var n=this.context.view;if(n.emit(rl.BEFORE_RESET,ra.fromData(n,rl.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var r=n.getXScale();this.filterView(n,r.field,null)}if(this.hasDim("y")){var a=n.getYScales()[0];this.filterView(n,a.field,null)}this.reRender(n,{source:rl.RESET}),n.emit(rl.AFTER_RESET,ra.fromData(n,rl.AFTER_RESET,{}))},t.prototype.filterView=function(n,r,a){n.filter(r,a)},t.prototype.reRender=function(n,r){n.render(!0,r)},t}(Mr),Ej=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.filterView=function(n,r,a){var i=Tc(n);oe(i,function(o){o.filter(r,a)})},t.prototype.reRender=function(n){var r=Tc(n);oe(r,function(a){a.render(!0)})},t}(r_),Jjt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.filter=function(){var n=Ig(this.context),r=this.context.view,a=Vi(r);if(UE(this.context)){var i=HH(this.context,10);i&&oe(a,function(m){i.includes(m)?m.show():m.hide()})}else if(n){var o=n.component,l=o.get("field");if(jE(n)){if(l){var s=o.getItemsByState("unchecked"),u=Q0(r,l),c=s.map(function(m){return m.name});oe(a,function(m){var v=zu(m,l),y=u.getText(v);c.indexOf(y)>=0?m.hide():m.show()})}}else if(c2e(n)){var d=o.getValue(),f=$t(d,2),p=f[0],h=f[1];oe(a,function(m){var v=zu(m,l);v>=p&&v<=h?m.show():m.hide()})}}},t.prototype.clear=function(){var n=Vi(this.context.view);oe(n,function(r){r.show()})},t.prototype.reset=function(){this.clear()},t}(Mr),_Te=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.byRecord=!1,n}return t.prototype.filter=function(){UE(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},t.prototype.filterByRecord=function(){var n=this.context.view,r=HH(this.context,10);if(r){var a=n.getXScale().field,i=n.getYScales()[0].field,o=r.map(function(s){return s.getModel().data}),l=Tc(n);oe(l,function(s){var u=Vi(s);oe(u,function(c){var d=c.getModel().data;m2e(o,d,a,i)?c.show():c.hide()})})}},t.prototype.filterByBBox=function(){var n=this,r=this.context.view,a=Tc(r);oe(a,function(i){var o=d2e(n.context,i,10),l=Vi(i);o&&oe(l,function(s){o.includes(s)?s.show():s.hide()})})},t.prototype.reset=function(){var n=Tc(this.context.view);oe(n,function(r){var a=Vi(r);oe(a,function(i){i.show()})})},t}(Mr),eUt=10,tUt=5,nUt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.buttonGroup=null,n.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},n}return t.prototype.getButtonCfg=function(){return At(this.buttonCfg,this.cfg)},t.prototype.drawButton=function(){var n=this.getButtonCfg(),r=this.context.view.foregroundGroup.addGroup({name:n.name}),a=r.addShape({type:"text",name:"button-text",attrs:U({text:n.text},n.textStyle)}),i=a.getBBox(),o=VH(n.padding),l=r.addShape({type:"rect",name:"button-rect",attrs:U({x:i.x-o[3],y:i.y-o[0],width:i.width+o[1]+o[3],height:i.height+o[0]+o[2]},n.style)});l.toBack(),r.on("mouseenter",function(){l.attr(n.activeStyle)}),r.on("mouseleave",function(){l.attr(n.style)}),this.buttonGroup=r},t.prototype.resetPosition=function(){var n=this.context.view,r=n.getCoordinate(),a=r.convert({x:1,y:1}),i=this.buttonGroup,o=i.getBBox(),l=Ua(null,[["t",a.x-o.width-eUt,a.y+o.height+tUt]]);i.setMatrix(l)},t.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},t.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},t.prototype.destroy=function(){var n=this.buttonGroup;n&&n.remove(),e.prototype.destroy.call(this)},t}(Mr),rUt=4,aUt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.starting=!1,n.dragStart=!1,n}return t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},t.prototype.drag=function(){if(this.startPoint){var n=this.context.getCurrentPoint(),r=this.context.view,a=this.context.event;this.dragStart?r.emit("drag",{target:a.target,x:a.x,y:a.y}):jH(n,this.startPoint)>rUt&&(r.emit("dragstart",{target:a.target,x:a.x,y:a.y}),this.dragStart=!0)}},t.prototype.end=function(){if(this.dragStart){var n=this.context.view,r=this.context.event;n.emit("dragend",{target:r.target,x:r.x,y:r.y})}this.starting=!1,this.dragStart=!1},t}(Mr),iUt=5,oUt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.starting=!1,n.isMoving=!1,n.startPoint=null,n.startMatrix=null,n}return t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},t.prototype.move=function(){if(this.starting){var n=this.startPoint,r=this.context.getCurrentPoint(),a=jH(n,r);if(a>iUt&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,o=Ua(this.startMatrix,[["t",r.x-n.x,r.y-n.y]]);i.backgroundGroup.setMatrix(o),i.foregroundGroup.setMatrix(o),i.middleGroup.setMatrix(o)}}},t.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},t.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var n=this.context.view;n.backgroundGroup.resetMatrix(),n.foregroundGroup.resetMatrix(),n.middleGroup.resetMatrix(),this.isMoving=!1},t}(Mr),Zie="x",Jie="y",NTe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.dims=[Zie,Jie],n.cfgFields=["dims"],n.cacheScaleDefs={},n}return t.prototype.hasDim=function(n){return this.dims.includes(n)},t.prototype.getScale=function(n){var r=this.context.view;return n==="x"?r.getXScale():r.getYScales()[0]},t.prototype.resetDim=function(n){var r=this.context.view;if(this.hasDim(n)&&this.cacheScaleDefs[n]){var a=this.getScale(n);r.scale(a.field,this.cacheScaleDefs[n]),this.cacheScaleDefs[n]=null}},t.prototype.reset=function(){this.resetDim(Zie),this.resetDim(Jie);var n=this.context.view;n.render(!0)},t}(Mr),lUt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.startPoint=null,n.starting=!1,n.startCache={},n}return t.prototype.start=function(){var n=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var r=this.dims;oe(r,function(a){var i=n.getScale(a),o=i.min,l=i.max,s=i.values;n.startCache[a]={min:o,max:l,values:s}})},t.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},t.prototype.translate=function(){var n=this;if(this.starting){var r=this.startPoint,a=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),o=a.invert(r),l=a.invert(i),s=l.x-o.x,u=l.y-o.y,c=this.context.view,d=this.dims;oe(d,function(f){n.translateDim(f,{x:s*-1,y:u*-1})}),c.render(!0)}},t.prototype.translateDim=function(n,r){if(this.hasDim(n)){var a=this.getScale(n);a.isLinear&&this.translateLinear(n,a,r)}},t.prototype.translateLinear=function(n,r,a){var i=this.context.view,o=this.startCache[n],l=o.min,s=o.max,u=s-l,c=a[n]*u;this.cacheScaleDefs[n]||(this.cacheScaleDefs[n]={nice:r.nice,min:l,max:s}),i.scale(r.field,{nice:!1,min:l+c,max:s+c})},t.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},t}(NTe),sUt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.zoomRatio=.05,n}return t.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},t.prototype.zoom=function(n){var r=this,a=this.dims;oe(a,function(i){r.zoomDim(i,n)}),this.context.view.render(!0)},t.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},t.prototype.zoomDim=function(n,r){if(this.hasDim(n)){var a=this.getScale(n);a.isLinear&&this.zoomLinear(n,a,r)}},t.prototype.zoomLinear=function(n,r,a){var i=this.context.view;this.cacheScaleDefs[n]||(this.cacheScaleDefs[n]={nice:r.nice,min:r.min,max:r.max});var o=this.cacheScaleDefs[n],l=o.max-o.min,s=r.min,u=r.max,c=a*l,d=s-c,f=u+c,p=f-d,h=p/l;f>d&&h<100&&h>.01&&i.scale(r.field,{nice:!1,min:s-c,max:u+c})},t}(NTe);function uUt(e){var t=e.gEvent.originalEvent;return t.deltaY>0}var cUt=1,dUt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.scroll=function(n){var r=this.context,a=r.view,i=r.event;if(a.getOptions().scrollbar){var o=(n==null?void 0:n.wheelDelta)||cUt,l=a.getController("scrollbar"),s=a.getXScale(),u=a.getOptions().data,c=Ei(Bu(u,s.field)),d=Ei(s.values),f=l.getValue(),p=Math.floor((c-d)*f),h=p+(uUt(i)?o:-o),m=o/(c-d)/1e4,v=Lr(h/(c-d)+m,0,1);l.setValue(v)}},t}(Mr),fUt="aixs-description-tooltip",pUt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.show=function(){var n=this.context,r=Ig(n).axis,a=r.cfg.title,i=a.description,o=a.text,l=a.descriptionTooltipStyle,s=n.event,u=s.x,c=s.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return` +
    +
    + 字段说明:`).concat(i,` +
    +
    + `)},x:u,y:c}),this.tooltip.show()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var n,r=this.context.view,a=r.canvas,i={start:{x:0,y:0},end:{x:a.get("width"),y:a.get("height")}},o=new Y3({parent:a.get("el").parentNode,region:i,visible:!1,containerId:fUt,domStyles:U({},At({},(n={},n[jd]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},n[Ud]={"word-break":"break-all","margin-bottom":"3px"},n)))});o.init(),o.setCapture(!1),this.tooltip=o},t}(Mr);v7t("dark",y2e(a9t));yCe("canvas",X9t);yCe("svg",kzt);Kc("Polygon",Uzt);Kc("Interval",Fzt);Kc("Schema",Vzt);Kc("Path",rj);Kc("Point",Hzt);Kc("Line",Bzt);Kc("Area",_zt);Kc("Edge",Nzt);Kc("Heatmap",Dzt);Kc("Violin",Gzt);bC("base",e_);bC("interval",sHt);bC("pie",uHt);bC("polar",dTe);Sl("overlap",CHt);Sl("distribute",dHt);Sl("fixed-overlap",SHt);Sl("hide-overlap",DHt);Sl("limit-in-shape",yHt);Sl("limit-in-canvas",vHt);Sl("limit-in-plot",XHt);Sl("pie-outer",pHt);Sl("adjust-color",$Ht);Sl("interval-adjust-position",BHt);Sl("interval-hide-overlap",HHt);Sl("point-adjust-position",VHt);Sl("pie-spider",mHt);Sl("path-adjust-position",qHt);us("fade-in",QHt);us("fade-out",ZHt);us("grow-in-x",ejt);us("grow-in-xy",njt);us("grow-in-y",tjt);us("scale-in-x",ijt);us("scale-in-y",ojt);us("wave-in",sjt);us("zoom-in",ujt);us("zoom-out",cjt);us("position-update",ajt);us("sector-path-update",ljt);us("path-in",rjt);Jy("rect",gjt);Jy("mirror",hjt);Jy("list",fjt);Jy("matrix",pjt);Jy("circle",djt);Jy("tree",mjt);em("axis",bjt);em("legend",xjt);em("tooltip",C2e);em("annotation",yjt);em("slider",Ejt);em("scrollbar",wjt);Vt("tooltip",mTe);Vt("sibling-tooltip",Ojt);Vt("ellipsis-text",kjt);Vt("element-active",Rjt);Vt("element-single-active",Djt);Vt("element-range-active",Njt);Vt("element-highlight",gj);Vt("element-highlight-by-x",$jt);Vt("element-highlight-by-color",Mjt);Vt("element-single-highlight",Ljt);Vt("element-range-highlight",yTe);Vt("element-sibling-highlight",yTe,{effectSiblings:!0,effectByRecord:!0});Vt("element-selected",Fjt);Vt("element-single-selected",Bjt);Vt("element-range-selected",Pjt);Vt("element-link-by-color",_jt);Vt("active-region",Ijt);Vt("list-active",zjt);Vt("list-selected",jjt);Vt("list-highlight",mj);Vt("list-unchecked",Ujt);Vt("list-checked",Vjt);Vt("list-focus",Wjt);Vt("list-radio",Gjt);Vt("legend-item-highlight",mj,{componentNames:["legend"]});Vt("axis-label-highlight",mj,{componentNames:["axis"]});Vt("axis-description",pUt);Vt("rect-mask",STe);Vt("x-rect-mask",wTe,{dim:"x"});Vt("y-rect-mask",wTe,{dim:"y"});Vt("circle-mask",qjt);Vt("path-mask",ATe);Vt("smooth-path-mask",Yjt);Vt("rect-multi-mask",OTe);Vt("x-rect-multi-mask",kTe,{dim:"x"});Vt("y-rect-multi-mask",kTe,{dim:"y"});Vt("circle-multi-mask",Kjt);Vt("path-multi-mask",RTe);Vt("smooth-path-multi-mask",Xjt);Vt("cursor",Qjt);Vt("data-filter",Zjt);Vt("brush",r_);Vt("brush-x",r_,{dims:["x"]});Vt("brush-y",r_,{dims:["y"]});Vt("sibling-filter",Ej);Vt("sibling-x-filter",Ej,{dims:"x"});Vt("sibling-y-filter",Ej,{dims:"y"});Vt("element-filter",Jjt);Vt("element-sibling-filter",_Te);Vt("element-sibling-filter-record",_Te,{byRecord:!0});Vt("view-drag",aUt);Vt("view-move",oUt);Vt("scale-translate",lUt);Vt("scale-zoom",sUt);Vt("reset-button",nUt,{name:"reset-button",text:"reset"});Vt("mousewheel-scroll",dUt);function Od(e){return e.isInPlot()}cn("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]});cn("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]});cn("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]});cn("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]});cn("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]});cn("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]});cn("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]});cn("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]});cn("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]});cn("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]});cn("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]});cn("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]});cn("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Od,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Od,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Od,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]});cn("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]});cn("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Od,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Od,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Od,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]});cn("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Od,action:"path-mask:start"},{trigger:"mousedown",isEnable:Od,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]});cn("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:Od,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!Q3(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]});cn("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]});cn("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]});cn("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]});cn("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]});cn("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]});cn("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]});cn("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]});function eoe(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}cn("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return eoe(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!eoe(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]});cn("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});cn("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var sl=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],Hu;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"})(Hu||(Hu={}));var hUt="AntV/G2Plot";function gUt(e){for(var t=[],n=1;n=0}),a=n.every(function(i){return ce(i,[t])<=0});return r?{min:0}:a?{max:0}:{}}function DTe(e,t,n,r,a){if(a===void 0&&(a=[]),!Array.isArray(e))return{nodes:[],links:[]};var i=[],o={},l=-1;return e.forEach(function(s){var u=s[t],c=s[n],d=s[r],f=dr(s,a);o[u]||(o[u]=U({id:++l,name:u},f)),o[c]||(o[c]=U({id:++l,name:c},f)),i.push(U({source:o[u].id,target:o[c].id,value:d},f))}),{nodes:Object.values(o).sort(function(s,u){return s.id-u.id}),links:i}}function ey(e,t){var n=Gi(e,function(r){var a=r[t];return a===null||typeof a=="number"&&!isNaN(a)});return Wd(Hu.WARN,n.length===e.length,"illegal data existed in chart data."),n}var mUt=5,vUt={}.toString,MTe=function(e,t){return vUt.call(e)==="[object "+t+"]"},yUt=function(e){return MTe(e,"Array")},bUt=function(e){return typeof e=="object"&&e!==null},toe=function(e){if(!bUt(e)||!MTe(e,"Object"))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},$Te=function(e,t,n,r){n=n||0,r=r||mUt;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var i=t[a];i?toe(i)?(toe(e[a])||(e[a]={}),n=r&&e<=a}function Op(e){if(un(e))return[e,e,e,e];if(Qe(e)){var t=e.length;if(t===1)return[e[0],e[0],e[0],e[0]];if(t===2)return[e[0],e[1],e[0],e[1]];if(t===3)return[e[0],e[1],e[2],e[1]];if(t===4)return e}return[0,0,0,0]}function a_(e,t,n){t===void 0&&(t="bottom"),n===void 0&&(n=25);var r=Op(e),a=[t.startsWith("top")?n:0,t.startsWith("right")?n:0,t.startsWith("bottom")?n:0,t.startsWith("left")?n:0];return[r[0]+a[0],r[1]+a[1],r[2]+a[2],r[3]+a[3]]}function Cj(e){var t=e.map(function(r){return Op(r)}),n=[0,0,0,0];return t.length>0&&(n=n.map(function(r,a){return t.forEach(function(i,o){r+=t[o][a]}),r})),n}function CUt(e,t){var n=[];if(e.length){n.push(["M",e[0].x,e[0].y]);for(var r=1,a=e.length;r"},key:"".concat(s===0?"top":"bottom","-statistic")},dr(l,["offsetX","offsetY","rotate","style","formatter"])))}})},IUt=function(e,t,n){var r=t.statistic,a=r.title,i=r.content;[a,i].forEach(function(o){if(o){var l=kt(o.style)?o.style(n):o.style;e.annotation().html(U({position:["50%","100%"],html:function(s,u){var c=u.getCoordinate(),d=u.views[0].getCoordinate(),f=d.getCenter(),p=d.getRadius(),h=Math.max(Math.sin(d.startAngle),Math.sin(d.endAngle))*p,m=f.y+h-c.y.start-parseFloat(ce(l,"fontSize",0)),v=c.getRadius()*c.innerRadius*2;PTe(s,U({width:"".concat(v,"px"),transform:"translate(-50%, ".concat(m,"px)")},LTe(l)));var y=u.getData();if(o.customHtml)return o.customHtml(s,u,n,y);var b=o.content;return o.formatter&&(b=o.formatter(n,y)),b?Jt(b)?b:"".concat(b):"
    "}},dr(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function FTe(e,t){return t?Oo(t,function(n,r,a){return n.replace(new RegExp("{\\s*".concat(a,"\\s*}"),"g"),r)},e):e}function Cn(e,t){return e.views.find(function(n){return n.id===t})}function L1(e){var t=e.parent;return t?t.views:[]}function roe(e){return L1(e).filter(function(t){return t!==e})}function SC(e,t,n){n===void 0&&(n=e.geometries),typeof t=="boolean"?e.animate(t):e.animate(!0),oe(n,function(r){var a;kt(t)?a=t(r.type||r.shapeType,r)||!0:a=t,r.animate(a)})}function o_(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function wj(e,t){t===void 0&&(t=e);var n=document.createElement("canvas"),r=o_();n.width=e*r,n.height=t*r,n.style.width="".concat(e,"px"),n.style.height="".concat(t,"px");var a=n.getContext("2d");return a.scale(r,r),n}function Tj(e,t,n,r){r===void 0&&(r=n);var a=t.backgroundColor,i=t.opacity;e.globalAlpha=i,e.fillStyle=a,e.beginPath(),e.fillRect(0,0,n,r),e.closePath()}function BTe(e,t,n){var r=e+t;return n?r*2:r}function zTe(e,t){var n=t?[[e*.25,e*.25],[e*.75,e*.75]]:[[e*.5,e*.5]];return n}function Aj(e,t){var n=t*Math.PI/180,r={a:Math.cos(n)*(1/e),b:Math.sin(n)*(1/e),c:-Math.sin(n)*(1/e),d:Math.cos(n)*(1/e),e:0,f:0};return r}var OUt={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function kUt(e,t,n,r){var a=t.size,i=t.fill,o=t.lineWidth,l=t.stroke,s=t.fillOpacity;e.beginPath(),e.globalAlpha=s,e.fillStyle=i,e.strokeStyle=l,e.lineWidth=o,e.arc(n,r,a/2,0,2*Math.PI,!1),e.fill(),o&&e.stroke(),e.closePath()}function RUt(e){var t=Pe({},OUt,e),n=t.size,r=t.padding,a=t.isStagger,i=t.rotation,o=BTe(n,r,a),l=zTe(o,a),s=wj(o,o),u=s.getContext("2d");Tj(u,t,o);for(var c=0,d=l;c1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var o=this,l=arguments.length,s=new Array(l),u=0;ux){var S=E/m.length,C=Math.max(1,Math.ceil(x/S)-1),w="".concat(m.slice(0,C),"...");b.attr("text",w)}}}}function IVt(e,t,n){TVt(e,t,n),AVt(e,t,n)}function OVt(e,t,n){return t===void 0&&(t=!0),n===void 0&&(n=!1),function(r){var a=r.options,i=r.chart,o=a.conversionTag,l=a.theme;return o&&!n&&(i.theme(Pe({},pr(l)?l:xx(l),{columnWidthRatio:1/3})),i.annotation().shape({render:function(s,u){var c=s.addGroup({id:"".concat(i.id,"-conversion-tag-group"),name:"conversion-tag-group"}),d=ku(i.geometries,function(h){return h.type==="interval"}),f={view:u,geometry:d,group:c,field:e,horizontal:t,options:wVt(o,t)},p=d.elements;oe(p,function(h,m){m>0&&IVt(f,p[m-1],h)})}})),r}}function kVt(e){var t=e.options,n=t.legend,r=t.seriesField,a=t.isStack;return r?n!==!1&&(n=U({position:a?"right-top":"top-left"},n)):n=!1,e.options.legend=n,e}function RVt(e){var t=e.chart,n=e.options,r=n.data,a=n.columnStyle,i=n.color,o=n.columnWidthRatio,l=n.isPercent,s=n.isGroup,u=n.isStack,c=n.xField,d=n.yField,f=n.seriesField,p=n.groupField,h=n.tooltip,m=n.shape,v=l&&s&&u?cVt(r,d,[c,p],d):wC(r,d,c,d,l),y=[];u&&f&&!s?v.forEach(function(E){var S=y.find(function(C){return C[c]===E[c]&&C[f]===E[f]});S?S[d]+=E[d]||0:y.push(U({},E))}):y=v,t.data(y);var b=l?U({formatter:function(E){var S;return{name:s&&u?"".concat(E[f]," - ").concat(E[p]):(S=E[f])!==null&&S!==void 0?S:E[c],value:(Number(E[d])*100).toFixed(2)+"%"}}},h):h,x=Pe({},e,{options:{data:y,widthRatio:o,tooltip:b,interval:{shape:m,style:a,color:i}}});return so(x),x}function _j(e){var t,n,r=e.options,a=r.xAxis,i=r.yAxis,o=r.xField,l=r.yField,s=r.data,u=r.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return rn(ba((t={},t[o]=a,t[l]=i,t),(n={},n[o]={type:"cat"},n[l]=U(U({},Sj(s,l)),c),n)))(e)}function _Vt(e){var t=e.chart,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return r===!1?t.axis(i,!1):t.axis(i,r),a===!1?t.axis(o,!1):t.axis(o,a),e}function NVt(e){var t=e.chart,n=e.options,r=n.legend,a=n.seriesField;return r&&a?t.legend(a,r):r===!1&&t.legend(!1),e}function DVt(e){var t=e.chart,n=e.options,r=n.label,a=n.yField,i=n.isRange,o=lo(t,"interval");if(!r)o.label(!1);else{var l=r.callback,s=mr(r,["callback"]);o.label({fields:[a],callback:l,cfg:U({layout:s!=null&&s.position?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Ci(i?U({content:function(u){var c;return(c=u[a])===null||c===void 0?void 0:c.join("-")}},s):s))})}return e}function MVt(e){var t=e.chart,n=e.options,r=n.tooltip,a=n.isGroup,i=n.isStack,o=n.groupField,l=n.data,s=n.xField,u=n.yField,c=n.seriesField;if(r===!1)t.tooltip(!1);else{var d=r;if(a&&i){var f=d.customItems,p=(d==null?void 0:d.formatter)||function(h){return{name:"".concat(h[c]," - ").concat(h[o]),value:h[u]}};d=U(U({},d),{customItems:function(h){var m=[];return oe(h,function(v){var y=Gi(l,function(b){return oCe(b,dr(v.data,[s,c]))});y.forEach(function(b){m.push(U(U(U({},v),{value:b[u],data:b,mappingData:{_origin:b}}),p(b)))})}),f?f(m):m}})}t.tooltip(d)}return e}function h_(e,t){t===void 0&&(t=!1);var n=e.options,r=n.seriesField;return rn(kVt,Yn,cs("columnStyle"),Xp,HTe("rect"),RVt,_j,_Vt,NVt,MVt,CC,Ij,DVt,eAe,Vr,br,aa(),OVt(n.yField,!t,!!r),CVt(!n.isStack),Rg)(e)}function $Vt(e){var t=e.options,n=t.xField,r=t.yField,a=t.xAxis,i=t.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},l=i!==!1?U({position:o[(i==null?void 0:i.position)||"left"]},i):!1,s=a!==!1?U({position:o[(a==null?void 0:a.position)||"bottom"]},a):!1;return U(U({},e),{options:U(U({},t),{xField:r,yField:n,xAxis:l,yAxis:s})})}function LVt(e){var t=e.options,n=t.label;return n&&!n.position&&(n.position="left",n.layout||(n.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),Pe({},e,{options:{label:n}})}function PVt(e){var t=e.options,n=t.seriesField,r=t.isStack,a=t.legend;return n?a!==!1&&(a=U({position:r?"top-left":"right-top"},a||{})):a=!1,Pe({},e,{options:{legend:a}})}function FVt(e){var t=e.options,n=[{type:"transpose"},{type:"reflectY"}].concat(t.coordinate||[]);return Pe({},e,{options:{coordinate:n}})}function BVt(e){var t=e.chart,n=e.options,r=n.barStyle,a=n.barWidthRatio,i=n.minBarWidth,o=n.maxBarWidth,l=n.barBackground;return h_({chart:t,options:U(U({},n),{columnStyle:r,columnWidthRatio:a,minColumnWidth:i,maxColumnWidth:o,columnBackground:l})},!0)}function nAe(e){return rn($Vt,LVt,PVt,pi,FVt,BVt)(e)}var zVt=Pe({},hn.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),HVt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="bar",n}return t.getDefaultOptions=function(){return zVt},t.prototype.changeData=function(n){var r,a;this.updateOption({data:n});var i=this,o=i.chart,l=i.options,s=l.isPercent,u=l.xField,c=l.yField,d=l.xAxis,f=l.yAxis;r=[c,u],u=r[0],c=r[1],a=[f,d],d=a[0],f=a[1];var p=U(U({},l),{xField:u,yField:c,yAxis:f,xAxis:d});_j({chart:o,options:p}),o.changeData(wC(n,u,c,u,s))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return nAe},t}(hn),jVt=Pe({},hn.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),UVt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="column",n}return t.getDefaultOptions=function(){return jVt},t.prototype.changeData=function(n){this.updateOption({data:n});var r=this.options,a=r.yField,i=r.xField,o=r.isPercent,l=this,s=l.chart,u=l.options;_j({chart:s,options:u}),this.chart.changeData(wC(n,a,i,a,o))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return h_},t}(hn),FM,kp="$$percentage$$",Rp="$$mappingValue$$",kd="$$conversion$$",a8="$$totalPercentage$$",qE="$$x$$",YE="$$y$$",VVt={appendPadding:[0,80],minSize:0,maxSize:1,meta:(FM={},FM[Rp]={min:0,max:1,nice:!1},FM),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},rAe="CONVERSION_TAG_NAME";function Nj(e,t,n){var r=[],a=n.yField,i=n.maxSize,o=n.minSize,l=ce(cCe(t,a),[a]),s=un(i)?i:1,u=un(o)?o:0;return r=Hr(e,function(c,d){var f=(c[a]||0)/l;return c[kp]=f,c[Rp]=(s-u)*f+u,c[kd]=[ce(e,[d-1,a]),c[a]],c}),r}function Dj(e){return function(t){var n=t.chart,r=t.options,a=r.conversionTag,i=r.filteredData,o=i||n.getOptions().data;if(a){var l=a.formatter;o.forEach(function(s,u){if(!(u<=0||Number.isNaN(s[Rp]))){var c=e(s,u,o,{top:!0,name:rAe,text:{content:kt(l)?l(s,o):l,offsetX:a.offsetX,offsetY:a.offsetY,position:"end",autoRotate:!1,style:U({textAlign:"start",textBaseline:"middle"},a.style)}});n.annotation().line(c)}})}return t}}function WVt(e){var t=e.chart,n=e.options,r=n.data,a=r===void 0?[]:r,i=n.yField,o=n.maxSize,l=n.minSize,s=Nj(a,a,{yField:i,maxSize:o,minSize:l});return t.data(s),e}function GVt(e){var t=e.chart,n=e.options,r=n.xField,a=n.yField,i=n.color,o=n.tooltip,l=n.label,s=n.shape,u=s===void 0?"funnel":s,c=n.funnelStyle,d=n.state,f=Zs(o,[r,a]),p=f.fields,h=f.formatter;Cl({chart:t,options:{type:"interval",xField:r,yField:Rp,colorField:r,tooltipFields:Qe(p)&&p.concat([kp,kd]),mapping:{shape:u,tooltip:h,color:i,style:c},label:l,state:d}});var m=lo(e.chart,"interval");return m.adjust("symmetric"),e}function qVt(e){var t=e.chart,n=e.options,r=n.isTransposed;return t.coordinate({type:"rect",actions:r?[]:[["transpose"],["scale",1,-1]]}),e}function aAe(e){var t=e.options,n=e.chart,r=t.maxSize,a=ce(n,["geometries","0","dataArray"],[]),i=ce(n,["options","data","length"]),o=Hr(a,function(s){return ce(s,["0","nextPoints","0","x"])*i-.5}),l=function(s,u,c,d){var f=r-(r-s[Rp])/2;return U(U({},d),{start:[o[u-1]||u-.5,f],end:[o[u-1]||u-.5,f+.05]})};return Dj(l)(e),e}function iAe(e){return rn(WVt,GVt,qVt,aAe)(e)}function YVt(e){var t,n=e.chart,r=e.options,a=r.data,i=a===void 0?[]:a,o=r.yField;return n.data(i),n.scale((t={},t[o]={sync:!0},t)),e}function KVt(e){var t=e.chart,n=e.options,r=n.data,a=n.xField,i=n.yField,o=n.color,l=n.compareField,s=n.isTransposed,u=n.tooltip,c=n.maxSize,d=n.minSize,f=n.label,p=n.funnelStyle,h=n.state,m=n.showFacetTitle;return t.facet("mirror",{fields:[l],transpose:!s,padding:s?0:[32,0,0,0],showTitle:m,eachView:function(v,y){var b=s?y.rowIndex:y.columnIndex;s||v.coordinate({type:"rect",actions:[["transpose"],["scale",b===0?-1:1,-1]]});var x=Nj(y.data,r,{yField:i,maxSize:c,minSize:d});v.data(x);var E=Zs(u,[a,i,l]),S=E.fields,C=E.formatter,w=s?{offset:b===0?10:-23,position:b===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:b===0?"end":"start"}};Cl({chart:v,options:{type:"interval",xField:a,yField:Rp,colorField:a,tooltipFields:Qe(S)&&S.concat([kp,kd]),mapping:{shape:"funnel",tooltip:C,color:o,style:p},label:f===!1?!1:Pe({},w,f),state:h}})}}),e}function oAe(e){var t=e.chart,n=e.index,r=e.options,a=r.conversionTag,i=r.isTransposed;(un(n)?[t]:t.views).forEach(function(o,l){var s=ce(o,["geometries","0","dataArray"],[]),u=ce(o,["options","data","length"]),c=Hr(s,function(f){return ce(f,["0","nextPoints","0","x"])*u-.5}),d=function(f,p,h,m){var v=(n||l)===0?-1:1;return Pe({},m,{start:[c[p-1]||p-.5,f[Rp]],end:[c[p-1]||p-.5,f[Rp]+.05],text:i?{style:{textAlign:"start"}}:{offsetX:a!==!1?v*a.offsetX:0,style:{textAlign:(n||l)===0?"end":"start"}}})};Dj(d)(Pe({},{chart:o,options:r}))})}function XVt(e){var t=e.chart;return t.once("beforepaint",function(){return oAe(e)}),e}function QVt(e){return rn(YVt,KVt,XVt)(e)}function ZVt(e){var t=e.chart,n=e.options,r=n.data,a=r===void 0?[]:r,i=n.yField,o=Oo(a,function(u,c){return u+(c[i]||0)},0),l=cCe(a,i)[i],s=Hr(a,function(u,c){var d=[],f=[];if(u[a8]=(u[i]||0)/o,c){var p=a[c-1][qE],h=a[c-1][YE];d[0]=p[3],f[0]=h[3],d[1]=p[2],f[1]=h[2]}else d[0]=-.5,f[0]=1,d[1]=.5,f[1]=1;return f[2]=f[1]-u[a8],d[2]=(f[2]+1)/4,f[3]=f[2],d[3]=-d[2],u[qE]=d,u[YE]=f,u[kp]=(u[i]||0)/l,u[kd]=[ce(a,[c-1,i]),u[i]],u});return t.data(s),e}function JVt(e){var t=e.chart,n=e.options,r=n.xField,a=n.yField,i=n.color,o=n.tooltip,l=n.label,s=n.funnelStyle,u=n.state,c=Zs(o,[r,a]),d=c.fields,f=c.formatter;return Cl({chart:t,options:{type:"polygon",xField:qE,yField:YE,colorField:r,tooltipFields:Qe(d)&&d.concat([kp,kd]),label:l,state:u,mapping:{tooltip:f,color:i,style:s}}}),e}function eWt(e){var t=e.chart,n=e.options,r=n.isTransposed;return t.coordinate({type:"rect",actions:r?[["transpose"],["reflect","x"]]:[]}),e}function tWt(e){var t=function(n,r,a,i){return U(U({},i),{start:[n[qE][1],n[YE][1]],end:[n[qE][1]+.05,n[YE][1]]})};return Dj(t)(e),e}function nWt(e){return rn(ZVt,JVt,eWt,tWt)(e)}function rWt(e){var t,n=e.chart,r=e.options,a=r.data,i=a===void 0?[]:a,o=r.yField;return n.data(i),n.scale((t={},t[o]={sync:!0},t)),e}function aWt(e){var t=e.chart,n=e.options,r=n.seriesField,a=n.isTransposed,i=n.showFacetTitle;return t.facet("rect",{fields:[r],padding:[a?0:32,10,0,10],showTitle:i,eachView:function(o,l){iAe(Pe({},e,{chart:o,options:{data:l.data}}))}}),e}function iWt(e){return rn(rWt,aWt)(e)}var oWt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.rendering=!1,n}return t.prototype.change=function(n){var r=this;if(!this.rendering){var a=n.seriesField,i=n.compareField,o=i?oAe:aAe,l=this.context.view,s=a||i?l.views:[l];Hr(s,function(u,c){var d=u.getController("annotation"),f=Gi(ce(d,["option"],[]),function(h){var m=h.name;return m!==rAe});d.clear(!0),oe(f,function(h){typeof h=="object"&&u.annotation()[h.type](h)});var p=ce(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:U(U({},n),{filteredData:Nj(p,p,n)})}),u.filterData(p),r.rendering=!0,u.render(!0)})}this.rendering=!1},t}(Mr),lAe="funnel-conversion-tag",i8="funnel-afterrender",sAe={trigger:"afterrender",action:"".concat(lAe,":change")};Vt(lAe,oWt);cn(i8,{start:[sAe]});function lWt(e){var t=e.options,n=t.compareField,r=t.xField,a=t.yField,i=t.locale,o=t.funnelStyle,l=t.data,s=l_(i),u={label:n?{fields:[r,a,n,kp,kd],formatter:function(d){return"".concat(d[a])}}:{fields:[r,a,kp,kd],offset:0,position:"middle",formatter:function(d){return"".concat(d[r]," ").concat(d[a])}},tooltip:{title:r,formatter:function(d){return{name:d[r],value:d[a]}}},conversionTag:{formatter:function(d){return"".concat(s.get(["conversionTag","label"]),": ").concat(tAe.apply(void 0,d[kd]))}}},c;return(n||o)&&(c=function(d){return Pe({},n&&{lineWidth:1,stroke:"#fff"},kt(o)?o(d):o)}),Pe({options:u},e,{options:{funnelStyle:c,data:Bo(l)}})}function sWt(e){var t=e.options,n=t.compareField,r=t.dynamicHeight,a=t.seriesField;return a?iWt(e):n?QVt(e):r?nWt(e):iAe(e)}function uWt(e){var t,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return rn(ba((t={},t[i]=r,t[o]=a,t)))(e)}function cWt(e){var t=e.chart;return t.axis(!1),e}function dWt(e){var t=e.chart,n=e.options,r=n.legend;return r===!1?t.legend(!1):t.legend(r),e}function fWt(e){var t=e.chart,n=e.options,r=n.interactions,a=n.dynamicHeight;return oe(r,function(i){i.enable===!1?t.removeInteraction(i.type):t.interaction(i.type,i.cfg||{})}),a?t.removeInteraction(i8):t.interaction(i8,{start:[U(U({},sAe),{arg:n})]}),e}function uAe(e){return rn(lWt,sWt,uWt,cWt,pi,fWt,dWt,br,Yn,aa())(e)}var pWt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="funnel",n}return t.getDefaultOptions=function(){return VVt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return uAe},t.prototype.setState=function(n,r,a){a===void 0&&(a=!0);var i=GE(this.chart);oe(i,function(o){r(o.getData())&&o.setState(n,a)})},t.prototype.getStates=function(){var n=GE(this.chart),r=[];return oe(n,function(a){var i=a.getData(),o=a.getStates();oe(o,function(l){r.push({data:i,state:l,geometry:a.geometry,element:a})})}),r},t.CONVERSATION_FIELD=kd,t.PERCENT_FIELD=kp,t.TOTAL_PERCENT_FIELD=a8,t}(hn),tT,Mj="range",cAe="type",Sd="percent",hWt="#f0f0f0",dAe="indicator-view",fAe="range-view",gWt={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(tT={},tT[Mj]={sync:"v"},tT[Sd]={sync:"v",tickCount:5,tickInterval:.2},tT),animation:!1};function mWt(e,t){return e.map(function(n,r){var a;return a={},a[Mj]=n-(e[r-1]||0),a[cAe]="".concat(r),a[Sd]=t,a})}function pAe(e){var t;return[(t={},t[Sd]=Lr(e,0,1),t)]}function hAe(e,t){var n=ce(t,["ticks"],[]),r=Ei(n)?wg(n):[0,Lr(e,0,1),1];return r[0]||r.shift(),mWt(r,e)}function vWt(e){var t=e.chart,n=e.options,r=n.percent,a=n.range,i=n.radius,o=n.innerRadius,l=n.startAngle,s=n.endAngle,u=n.axis,c=n.indicator,d=n.gaugeStyle,f=n.type,p=n.meter,h=a.color,m=a.width;if(c){var v=pAe(r),y=t.createView({id:dAe});y.data(v),y.point().position("".concat(Sd,"*1")).shape(c.shape||"gauge-indicator").customInfo({defaultColor:t.getTheme().defaultColor,indicator:c}),y.coordinate("polar",{startAngle:l,endAngle:s,radius:o*i}),y.axis(Sd,u),y.scale(Sd,dr(u,sl))}var b=hAe(r,n.range),x=t.createView({id:fAe});x.data(b);var E=Jt(h)?[h,hWt]:h,S=so({chart:x,options:{xField:"1",yField:Mj,seriesField:cAe,rawFields:[Sd],isStack:!0,interval:{color:E,style:d,shape:f==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:m,maxColumnWidth:m}}).ext,C=S.geometry;return C.customInfo({meter:p}),x.coordinate("polar",{innerRadius:o,radius:i,startAngle:l,endAngle:s}).transpose(),e}function yWt(e){var t;return rn(ba((t={range:{min:0,max:1,maxLimit:1,minLimit:0}},t[Sd]={},t)))(e)}function gAe(e,t){var n=e.chart,r=e.options,a=r.statistic,i=r.percent;if(n.getController("annotation").clear(!0),a){var o=a.content,l=void 0;o&&(l=Pe({},{content:"".concat((i*100).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),IUt(n,{statistic:U(U({},a),{content:l})},{percent:i})}return t&&n.render(!0),e}function bWt(e){var t=e.chart,n=e.options,r=n.tooltip;return r?t.tooltip(Pe({showTitle:!1,showMarkers:!1,containerTpl:'
    ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(a,i){var o=ce(i,[0,"data",Sd],0);return"".concat((o*100).toFixed(2),"%")}},r)):t.tooltip(!1),e}function xWt(e){var t=e.chart;return t.legend(!1),e}function mAe(e){return rn(Yn,br,vWt,yWt,bWt,gAe,Vr,aa(),xWt)(e)}rr("point","gauge-indicator",{draw:function(e,t){var n=e.customInfo,r=n.indicator,a=n.defaultColor,i=r,o=i.pointer,l=i.pin,s=t.addGroup(),u=this.parsePoint({x:0,y:0});return o&&s.addShape("line",{name:"pointer",attrs:U({x1:u.x,y1:u.y,x2:e.x,y2:e.y,stroke:a},o.style)}),l&&s.addShape("circle",{name:"pin",attrs:U({x:u.x,y:u.y,stroke:a},l.style)}),s}});rr("interval","meter-gauge",{draw:function(e,t){var n=e.customInfo.meter,r=n===void 0?{}:n,a=r.steps,i=a===void 0?50:a,o=r.stepRatio,l=o===void 0?.5:o;i=i<1?1:i,l=Lr(l,0,1);var s=this.coordinate,u=s.startAngle,c=s.endAngle,d=0;if(l>0&&l<1){var f=c-u;d=f/i/(l/(1-l)+1-1/i)}for(var p=d/(1-l)*l,h=t.addGroup(),m=this.coordinate.getCenter(),v=this.coordinate.getRadius(),y=yl.getAngle(e,this.coordinate),b=y.startAngle,x=y.endAngle,E=b;E1?s/(r-1):l.max),!n&&!r){var c=SWt(o);u=s/c}var d={},f=Zl(i,a);vl(f)?oe(i,function(h){var m=h[t],v=ooe(m,u,r),y="".concat(v[0],"-").concat(v[1]);Cp(d,y)||(d[y]={range:v,count:0}),d[y].count+=1}):Object.keys(f).forEach(function(h){oe(f[h],function(m){var v=m[t],y=ooe(v,u,r),b="".concat(y[0],"-").concat(y[1]),x="".concat(b,"-").concat(h);Cp(d,x)||(d[x]={range:y,count:0},d[x][a]=h),d[x].count+=1})});var p=[];return oe(d,function(h){p.push(h)}),p}var vO="range",KE="count",CWt=Pe({},hn.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function wWt(e){var t=e.chart,n=e.options,r=n.data,a=n.binField,i=n.binNumber,o=n.binWidth,l=n.color,s=n.stackField,u=n.legend,c=n.columnStyle,d=vAe(r,a,o,i,s);t.data(d);var f=Pe({},e,{options:{xField:vO,yField:KE,seriesField:s,isStack:!0,interval:{color:l,style:c}}});return so(f),u&&s?t.legend(s,u):t.legend(!1),e}function TWt(e){var t,n=e.options,r=n.xAxis,a=n.yAxis;return rn(ba((t={},t[vO]=r,t[KE]=a,t)))(e)}function AWt(e){var t=e.chart,n=e.options,r=n.xAxis,a=n.yAxis;return r===!1?t.axis(vO,!1):t.axis(vO,r),a===!1?t.axis(KE,!1):t.axis(KE,a),e}function IWt(e){var t=e.chart,n=e.options,r=n.label,a=lo(t,"interval");if(!r)a.label(!1);else{var i=r.callback,o=mr(r,["callback"]);a.label({fields:[KE],callback:i,cfg:Ci(o)})}return e}function yAe(e){return rn(Yn,cs("columnStyle"),wWt,TWt,AWt,Xp,IWt,pi,Vr,br)(e)}var OWt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="histogram",n}return t.getDefaultOptions=function(){return CWt},t.prototype.changeData=function(n){this.updateOption({data:n});var r=this.options,a=r.binField,i=r.binNumber,o=r.binWidth,l=r.stackField;this.chart.changeData(vAe(n,a,o,i,l))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return yAe},t}(hn),kWt=Pe({},hn.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),RWt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.active=function(){var n=this.getView(),r=this.context.event;if(r.data){var a=r.data.items,i=n.geometries.filter(function(o){return o.type==="point"});oe(i,function(o){oe(o.elements,function(l){var s=lCe(a,function(u){return u.data===l.data})!==-1;l.setState("active",s)})})}},t.prototype.reset=function(){var n=this.getView(),r=n.geometries.filter(function(a){return a.type==="point"});oe(r,function(a){oe(a.elements,function(i){i.setState("active",!1)})})},t.prototype.getView=function(){return this.context.view},t}(Mr);Vt("marker-active",RWt);cn("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var _Wt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="line",n}return t.getDefaultOptions=function(){return kWt},t.prototype.changeData=function(n){this.updateOption({data:n});var r=this,a=r.chart,i=r.options;p_({chart:a,options:i}),this.chart.changeData(n)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return QTe},t}(hn),bAe=Pe({},hn.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),NWt=[1,0,0,0,1,0,0,0,1];function o8(e,t){var n=t?Wt([],t,!0):Wt([],NWt,!0);return yl.transform(n,e)}var DWt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getActiveElements=function(){var n=yl.getDelegationObject(this.context);if(n){var r=this.context.view,a=n.component,i=n.item,o=a.get("field");if(o){var l=r.geometries[0].elements;return l.filter(function(s){return s.getModel().data[o]===i.value})}}return[]},t.prototype.getActiveElementLabels=function(){var n=this.context.view,r=this.getActiveElements(),a=n.geometries[0].labelsContainer.getChildren();return a.filter(function(i){return r.find(function(o){return fa(o.getData(),i.get("data"))})})},t.prototype.transfrom=function(n){n===void 0&&(n=7.5);var r=this.getActiveElements(),a=this.getActiveElementLabels();r.forEach(function(i,o){var l=a[o],s=i.geometry.coordinate;if(s.isPolar&&s.isTransposed){var u=yl.getAngle(i.getModel(),s),c=u.startAngle,d=u.endAngle,f=(c+d)/2,p=n,h=p*Math.cos(f),m=p*Math.sin(f);i.shape.setMatrix(o8([["t",h,m]])),l.setMatrix(o8([["t",h,m]]))}})},t.prototype.active=function(){this.transfrom()},t.prototype.reset=function(){this.transfrom(0)},t}(Mr);function MWt(e){var t=e.event,n,r=t.target;return r&&(n=r.get("element")),n}var $Wt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getAnnotations=function(n){var r=n||this.context.view;return r.getController("annotation").option},t.prototype.getInitialAnnotation=function(){return this.initialAnnotation},t.prototype.init=function(){var n=this,r=this.context.view;r.removeInteraction("tooltip"),r.on("afterchangesize",function(){var a=n.getAnnotations(r);n.initialAnnotation=a})},t.prototype.change=function(n){var r=this.context,a=r.view,i=r.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=ce(i,["data","data"]);if(i.type.match("legend-item")){var l=yl.getDelegationObject(this.context),s=a.getGroupedFields()[0];if(l&&s){var u=l.item;o=a.getData().find(function(p){return p[s]===u.value})}}if(o){var c=ce(n,"annotations",[]),d=ce(n,"statistic",{});a.getController("annotation").clear(!0),oe(c,function(p){typeof p=="object"&&a.annotation()[p.type](p)}),i_(a,{statistic:d,plotType:"pie"},o),a.render(!0)}var f=MWt(this.context);f&&f.shape.toFront()},t.prototype.reset=function(){var n=this.context.view,r=n.getController("annotation");r.clear(!0);var a=this.getInitialAnnotation();oe(a,function(i){n.annotation()[i.type](i)}),n.render(!0)},t}(Mr),xAe="pie-statistic";Vt(xAe,$Wt);cn("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]});Vt("pie-legend",DWt);cn("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function LWt(e,t){var n=null;return oe(e,function(r){typeof r[t]=="number"&&(n+=r[t])}),n}function PWt(e,t){var n;switch(e){case"inner":return n="-30%",Jt(t)&&t.endsWith("%")?parseFloat(t)*.01>0?n:t:t<0?t:n;case"outer":return n=12,Jt(t)&&t.endsWith("%")?parseFloat(t)*.01<0?n:t:t>0?t:n;default:return t}}function yO(e,t){return dH(ey(e,t),function(n){return n[t]===0})}function FWt(e){var t=e.chart,n=e.options,r=n.data,a=n.angleField,i=n.colorField,o=n.color,l=n.pieStyle,s=n.shape,u=ey(r,a);if(yO(u,a)){var c="$$percentage$$";u=u.map(function(f){var p;return U(U({},f),(p={},p[c]=1/u.length,p))}),t.data(u);var d=Pe({},e,{options:{xField:"1",yField:c,seriesField:i,isStack:!0,interval:{color:o,shape:s,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});so(d)}else{t.data(u);var d=Pe({},e,{options:{xField:"1",yField:a,seriesField:i,isStack:!0,interval:{color:o,shape:s,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});so(d)}return e}function BWt(e){var t,n=e.chart,r=e.options,a=r.meta,i=r.colorField,o=Pe({},a);return n.scale(o,(t={},t[i]={type:"cat"},t)),e}function zWt(e){var t=e.chart,n=e.options,r=n.radius,a=n.innerRadius,i=n.startAngle,o=n.endAngle;return t.coordinate({type:"theta",cfg:{radius:r,innerRadius:a,startAngle:i,endAngle:o}}),e}function HWt(e){var t=e.chart,n=e.options,r=n.label,a=n.colorField,i=n.angleField,o=t.geometries[0];if(!r)o.label(!1);else{var l=r.callback,s=mr(r,["callback"]),u=Ci(s);if(u.content){var c=u.content;u.content=function(h,m,v){var y=h[a],b=h[i],x=t.getScaleByField(i),E=x==null?void 0:x.scale(b);return kt(c)?c(U(U({},h),{percent:E}),m,v):Jt(c)?FTe(c,{value:b,name:y,percentage:un(E)&&!Ge(b)?"".concat((E*100).toFixed(2),"%"):null}):c}}var d={inner:"",outer:"pie-outer",spider:"pie-spider"},f=u.type?d[u.type]:"pie-outer",p=u.layout?Qe(u.layout)?u.layout:[u.layout]:[];u.layout=(f?[{type:f}]:[]).concat(p),o.label({fields:a?[i,a]:[i],callback:l,cfg:U(U({},u),{offset:PWt(u.type,u.offset),type:"pie"})})}return e}function EAe(e){var t=e.innerRadius,n=e.statistic,r=e.angleField,a=e.colorField,i=e.meta,o=e.locale,l=l_(o);if(t&&n){var s=Pe({},bAe.statistic,n),u=s.title,c=s.content;return u!==!1&&(u=Pe({},{formatter:function(d){var f=d?d[a]:Ge(u.content)?l.get(["statistic","total"]):u.content,p=ce(i,[a,"formatter"])||function(h){return h};return p(f)}},u)),c!==!1&&(c=Pe({},{formatter:function(d,f){var p=d?d[r]:LWt(f,r),h=ce(i,[r,"formatter"])||function(m){return m};return d||Ge(c.content)?h(p):c.content}},c)),Pe({},{statistic:{title:u,content:c}},e)}return e}function SAe(e){var t=e.chart,n=e.options,r=EAe(n),a=r.innerRadius,i=r.statistic;return t.getController("annotation").clear(!0),rn(aa())(e),a&&i&&i_(t,{statistic:i,plotType:"pie"}),e}function jWt(e){var t=e.chart,n=e.options,r=n.tooltip,a=n.colorField,i=n.angleField,o=n.data;if(r===!1)t.tooltip(r);else if(t.tooltip(Pe({},r,{shared:!1})),yO(o,i)){var l=ce(r,"fields"),s=ce(r,"formatter");vl(ce(r,"fields"))&&(l=[a,i],s=s||function(u){return{name:u[a],value:fC(u[i])}}),t.geometries[0].tooltip(l.join("*"),ov(l,s))}return e}function UWt(e){var t=e.chart,n=e.options,r=EAe(n),a=r.interactions,i=r.statistic,o=r.annotations;return oe(a,function(l){var s,u;if(l.enable===!1)t.removeInteraction(l.type);else if(l.type==="pie-statistic-active"){var c=[];!((s=l.cfg)===null||s===void 0)&&s.start||(c=[{trigger:"element:mouseenter",action:"".concat(xAe,":change"),arg:{statistic:i,annotations:o}}]),oe((u=l.cfg)===null||u===void 0?void 0:u.start,function(d){c.push(U(U({},d),{arg:{statistic:i,annotations:o}}))}),t.interaction(l.type,Pe({},l.cfg,{start:c}))}else t.interaction(l.type,l.cfg||{})}),e}function CAe(e){return rn(cs("pieStyle"),FWt,BWt,Yn,zWt,tb,jWt,HWt,Xp,SAe,UWt,br)(e)}var VWt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="pie",n}return t.getDefaultOptions=function(){return bAe},t.prototype.changeData=function(n){this.chart.emit(yn.BEFORE_CHANGE_DATA,ra.fromData(this.chart,yn.BEFORE_CHANGE_DATA,null));var r=this.options,a=this.options.angleField,i=ey(r.data,a),o=ey(n,a);yO(i,a)||yO(o,a)?this.update({data:n}):(this.updateOption({data:n}),this.chart.data(o),SAe({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(yn.AFTER_CHANGE_DATA,ra.fromData(this.chart,yn.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return CAe},t}(hn),wAe=["#FAAD14","#E8EDF3"],WWt={percent:.2,color:wAe,animation:{}};function $j(e){var t=Lr(kg(e)?e:0,0,1);return[{current:"".concat(t),type:"current",percent:t},{current:"".concat(t),type:"target",percent:1}]}function TAe(e){var t=e.chart,n=e.options,r=n.percent,a=n.progressStyle,i=n.color,o=n.barWidthRatio;t.data($j(r));var l=Pe({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:a,color:Jt(i)?[i,wAe[1]]:i},args:{zIndexReversed:!0,sortZIndex:!0}}});return so(l),t.tooltip(!1),t.axis(!1),t.legend(!1),e}function GWt(e){var t=e.chart;return t.coordinate("rect").transpose(),e}function AAe(e){return rn(TAe,ba({}),GWt,br,Yn,aa())(e)}var qWt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="process",n}return t.getDefaultOptions=function(){return WWt},t.prototype.changeData=function(n){this.updateOption({percent:n}),this.chart.changeData($j(n))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return AAe},t}(hn);function YWt(e){var t=e.chart,n=e.options,r=n.innerRadius,a=n.radius;return t.coordinate("theta",{innerRadius:r,radius:a}),e}function IAe(e,t){var n=e.chart,r=e.options,a=r.innerRadius,i=r.statistic,o=r.percent,l=r.meta;if(n.getController("annotation").clear(!0),a&&i){var s=ce(l,["percent","formatter"])||function(c){return"".concat((c*100).toFixed(2),"%")},u=i.content;u&&(u=Pe({},u,{content:Ge(u.content)?s(o):u.content})),i_(n,{statistic:U(U({},i),{content:u}),plotType:"ring-progress"},{percent:o})}return t&&n.render(!0),e}function OAe(e){return rn(TAe,ba({}),YWt,IAe,br,Yn,aa())(e)}var KWt={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},XWt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="ring-process",n}return t.getDefaultOptions=function(){return KWt},t.prototype.changeData=function(n){this.chart.emit(yn.BEFORE_CHANGE_DATA,ra.fromData(this.chart,yn.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:n}),this.chart.data($j(n)),IAe({chart:this.chart,options:this.options},!0),this.chart.emit(yn.AFTER_CHANGE_DATA,ra.fromData(this.chart,yn.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return OAe},t}(hn);function _p(e,t){return QWt(e)||ZWt(e,t)||JWt()}function QWt(e){if(Array.isArray(e))return e}function ZWt(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){a=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}function JWt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Lj(e,t,n,r){e=e.filter(function(h,m){var v=t(h,m),y=n(h,m);return v!=null&&isFinite(v)&&y!=null&&isFinite(y)}),r&&e.sort(function(h,m){return t(h)-t(m)});for(var a=e.length,i=new Float64Array(a),o=new Float64Array(a),l=0,s=0,u,c,d,f=0;fa&&(c.splice(p+1,0,y),f=!0)}return f}}function AC(e,t,n,r){var a=r-e*e,i=Math.abs(a)<1e-24?0:(n-e*t)/a,o=t-i*e;return[o,i]}function tGt(){var e=function(i){return i[0]},t=function(i){return i[1]},n;function r(a){var i=0,o=0,l=0,s=0,u=0,c=0,d=n?+n[0]:1/0,f=n?+n[1]:-1/0;rm(a,e,t,function(x,E){var S=Math.log(E),C=x*E;++i,o+=(E-o)/i,s+=(C-s)/i,c+=(x*C-c)/i,l+=(E*S-l)/i,u+=(C*S-u)/i,n||(xf&&(f=x))});var p=AC(s/o,l/o,u/o,c/o),h=_p(p,2),m=h[0],v=h[1];m=Math.exp(m);var y=function(E){return m*Math.exp(v*E)},b=TC(d,f,y);return b.a=m,b.b=v,b.predict=y,b.rSquared=rb(a,e,t,o,y),b}return r.domain=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function kAe(){var e=function(i){return i[0]},t=function(i){return i[1]},n;function r(a){var i=0,o=0,l=0,s=0,u=0,c=n?+n[0]:1/0,d=n?+n[1]:-1/0;rm(a,e,t,function(b,x){++i,o+=(b-o)/i,l+=(x-l)/i,s+=(b*x-s)/i,u+=(b*b-u)/i,n||(bd&&(d=b))});var f=AC(o,l,s,u),p=_p(f,2),h=p[0],m=p[1],v=function(x){return m*x+h},y=[[c,v(c)],[d,v(d)]];return y.a=m,y.b=h,y.predict=v,y.rSquared=rb(a,e,t,l,v),y}return r.domain=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function nGt(e){e.sort(function(n,r){return n-r});var t=e.length/2;return t%1===0?(e[t-1]+e[t])/2:e[Math.floor(t)]}var soe=2,uoe=1e-12;function rGt(){var e=function(i){return i[0]},t=function(i){return i[1]},n=.3;function r(a){for(var i=Lj(a,e,t,!0),o=_p(i,4),l=o[0],s=o[1],u=o[2],c=o[3],d=l.length,f=Math.max(2,~~(n*d)),p=new Float64Array(d),h=new Float64Array(d),m=new Float64Array(d).fill(1),v=-1;++v<=soe;){for(var y=[0,f-1],b=0;bl[S]-x?E:S,w=0,I=0,T=0,A=0,O=0,R=1/Math.abs(l[C]-x||1),N=E;N<=S;++N){var _=l[N],L=s[N],$=aGt(Math.abs(x-_)*R)*m[N],k=_*$;w+=$,I+=k,T+=L*$,A+=L*k,O+=_*k}var P=AC(I/w,T/w,A/w,O/w),B=_p(P,2),F=B[0],D=B[1];p[b]=F+D*x,h[b]=Math.abs(s[b]-p[b]),iGt(l,b+1,y)}if(v===soe)break;var j=nGt(h);if(Math.abs(j)=1?uoe:(G=1-V*V)*G}return oGt(l,p,u,c)}return r.bandwidth=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function aGt(e){return(e=1-e*e*e)*e*e}function iGt(e,t,n){var r=e[t],a=n[0],i=n[1]+1;if(!(i>=e.length))for(;t>a&&e[i]-r<=r-e[a];)n[0]=++a,n[1]=i,++i}function oGt(e,t,n,r){for(var a=e.length,i=[],o=0,l=0,s=[],u;of&&(f=E))});var h=AC(l,s,u,c),m=_p(h,2),v=m[0],y=m[1],b=function(S){return y*Math.log(S)/p+v},x=TC(d,f,b);return x.a=y,x.b=v,x.predict=b,x.rSquared=rb(i,e,t,s,b),x}return a.domain=function(i){return arguments.length?(r=i,a):r},a.x=function(i){return arguments.length?(e=i,a):e},a.y=function(i){return arguments.length?(t=i,a):t},a.base=function(i){return arguments.length?(n=i,a):n},a}function RAe(){var e=function(i){return i[0]},t=function(i){return i[1]},n;function r(a){var i=Lj(a,e,t),o=_p(i,4),l=o[0],s=o[1],u=o[2],c=o[3],d=l.length,f=0,p=0,h=0,m=0,v=0,y,b,x,E;for(y=0;yI&&(I=$))});var T=h-f*f,A=f*T-p*p,O=(v*f-m*p)/A,R=(m*T-v*p)/A,N=-O*f,_=function(k){return k=k-u,O*k*k+R*k+N+c},L=TC(w,I,_);return L.a=O,L.b=R-2*O*u,L.c=N-R*u+O*u*u+c,L.predict=_,L.rSquared=rb(a,e,t,S,_),L}return r.domain=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function sGt(){var e=function(o){return o[0]},t=function(o){return o[1]},n=3,r;function a(i){if(n===1){var o=kAe().x(e).y(t).domain(r)(i);return o.coefficients=[o.b,o.a],delete o.a,delete o.b,o}if(n===2){var l=RAe().x(e).y(t).domain(r)(i);return l.coefficients=[l.c,l.b,l.a],delete l.a,delete l.b,delete l.c,l}var s=Lj(i,e,t),u=_p(s,4),c=u[0],d=u[1],f=u[2],p=u[3],h=c.length,m=[],v=[],y=n+1,b=0,x=0,E=r?+r[0]:1/0,S=r?+r[1]:-1/0;rm(i,e,t,function(_,L){++x,b+=(L-b)/x,r||(_S&&(S=_))});var C,w,I,T,A;for(C=0;C=0;--i)for(l=t[i],s=1,a[i]+=l,o=1;o<=i;++o)s*=(i+1-o)/o,a[i-o]+=l*Math.pow(n,o)*s;return a[0]+=r,a}function cGt(e){var t=e.length-1,n=[],r,a,i,o,l;for(r=0;rMath.abs(e[r][o])&&(o=a);for(i=r;i=r;i--)e[i][a]-=e[i][r]*e[r][a]/e[r][r]}for(a=t-1;a>=0;--a){for(l=0,i=a+1;if&&(f=x))});var p=AC(o,l,s,u),h=_p(p,2),m=h[0],v=h[1];m=Math.exp(m);var y=function(E){return m*Math.pow(E,v)},b=TC(d,f,y);return b.a=m,b.b=v,b.predict=y,b.rSquared=rb(a,e,t,c,y),b}return r.domain=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}var fGt={exp:tGt,linear:kAe,loess:rGt,log:lGt,poly:sGt,pow:dGt,quad:RAe};function pGt(e,t){var n=10,r={regionStyle:[{position:{start:[e,"max"],end:["max",t]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,t]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",t],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,t],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",t],offsetX:-n,offsetY:-n,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",t],offsetX:n,offsetY:-n,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",t],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",t],offsetX:-n,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return r}var hGt=function(e,t){var n=t.view,r=t.options,a=r.xField,i=r.yField,o=n.getScaleByField(a),l=n.getScaleByField(i),s=e.map(function(u){return n.getCoordinate().convert({x:o.scale(u[0]),y:l.scale(u[1])})});return AUt(s,!1)},gGt=function(e){var t=e.options,n=t.xField,r=t.yField,a=t.data,i=t.regressionLine,o=i.type,l=o===void 0?"linear":o,s=i.algorithm,u=i.equation,c,d=null;if(s)c=Qe(s)?s:s(a),d=u;else{var f=fGt[l]().x(function(p){return p[n]}).y(function(p){return p[r]});c=f(a),d=vGt(l,c)}return[hGt(c,e),d]},mGt=function(e){var t,n=e.meta,r=n===void 0?{}:n,a=e.xField,i=e.yField,o=e.data,l=o[0][a],s=o[0][i],u=l>0,c=s>0;function d(f,p){var h=ce(r,[f]);function m(y){return ce(h,y)}var v={};return p==="x"?(un(l)&&(un(m("min"))||(v.min=u?0:l*2),un(m("max"))||(v.max=u?l*2:0)),v):(un(s)&&(un(m("min"))||(v.min=c?0:s*2),un(m("max"))||(v.max=c?s*2:0)),v)}return U(U({},r),(t={},t[a]=U(U({},r[a]),d(a,"x")),t[i]=U(U({},r[i]),d(i,"y")),t))};function vGt(e,t){var n,r,a,i=function(u,c){return c===void 0&&(c=4),Math.round(u*Math.pow(10,c))/Math.pow(10,c)},o=function(u){return Number.isFinite(u)?i(u):"?"};switch(e){case"linear":return"y = ".concat(o(t.a),"x + ").concat(o(t.b),", R^2 = ").concat(o(t.rSquared));case"exp":return"y = ".concat(o(t.a),"e^(").concat(o(t.b),"x), R^2 = ").concat(o(t.rSquared));case"log":return"y = ".concat(o(t.a),"ln(x) + ").concat(o(t.b),", R^2 = ").concat(o(t.rSquared));case"quad":return"y = ".concat(o(t.a),"x^2 + ").concat(o(t.b),"x + ").concat(o(t.c),", R^2 = ").concat(o(t.rSquared));case"poly":for(var l="y = ".concat(o((n=t.coefficients)===null||n===void 0?void 0:n[0])," + ").concat(o((r=t.coefficients)===null||r===void 0?void 0:r[1]),"x + ").concat(o((a=t.coefficients)===null||a===void 0?void 0:a[2]),"x^2"),s=3;s
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},$Gt={appendPadding:2,tooltip:U({},PAe),animation:{}};function LGt(e){var t=e.chart,n=e.options,r=n.data,a=n.color,i=n.areaStyle,o=n.point,l=n.line,s=o==null?void 0:o.state,u=am(r);t.data(u);var c=Pe({},e,{options:{xField:QE,yField:t0,area:{color:a,style:i},line:l,point:o}}),d=Pe({},c,{options:{tooltip:!1}}),f=Pe({},c,{options:{tooltip:!1,state:s}});return s_(c),nb(d),ds(f),t.axis(!1),t.legend(!1),e}function ab(e){var t,n,r=e.options,a=r.xAxis,i=r.yAxis,o=r.data,l=am(o);return rn(ba((t={},t[QE]=a,t[t0]=i,t),(n={},n[QE]={type:"cat"},n[t0]=Sj(l,t0),n)))(e)}function FAe(e){return rn(cs("areaStyle"),LGt,ab,pi,Yn,br,aa())(e)}var PGt={appendPadding:2,tooltip:U({},PAe),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},FGt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="tiny-area",n}return t.getDefaultOptions=function(){return PGt},t.prototype.changeData=function(n){this.updateOption({data:n});var r=this,a=r.chart,i=r.options;ab({chart:a,options:i}),a.changeData(am(n))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return FAe},t}(hn);function BGt(e){var t=e.chart,n=e.options,r=n.data,a=n.color,i=n.columnStyle,o=n.columnWidthRatio,l=am(r);t.data(l);var s=Pe({},e,{options:{xField:QE,yField:t0,widthRatio:o,interval:{style:i,color:a}}});return so(s),t.axis(!1),t.legend(!1),t.interaction("element-active"),e}function BAe(e){return rn(Yn,cs("columnStyle"),BGt,ab,pi,br,aa())(e)}var zGt={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return"".concat(ce(t,[0,"data","y"],0))},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},HGt={appendPadding:2,tooltip:U({},zGt),animation:{}},jGt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="tiny-column",n}return t.getDefaultOptions=function(){return HGt},t.prototype.changeData=function(n){this.updateOption({data:n});var r=this,a=r.chart,i=r.options;ab({chart:a,options:i}),a.changeData(am(n))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return BAe},t}(hn);function UGt(e){var t=e.chart,n=e.options,r=n.data,a=n.color,i=n.lineStyle,o=n.point,l=o==null?void 0:o.state,s=am(r);t.data(s);var u=Pe({},e,{options:{xField:QE,yField:t0,line:{color:a,style:i},point:o}}),c=Pe({},u,{options:{tooltip:!1,state:l}});return nb(u),ds(c),t.axis(!1),t.legend(!1),e}function zAe(e){return rn(UGt,ab,Yn,pi,br,aa())(e)}var VGt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="tiny-line",n}return t.getDefaultOptions=function(){return $Gt},t.prototype.changeData=function(n){this.updateOption({data:n});var r=this,a=r.chart,i=r.options;ab({chart:a,options:i}),a.changeData(am(n))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return zAe},t}(hn),WGt={line:QTe,pie:CAe,column:h_,bar:nAe,area:ZTe,gauge:mAe,"tiny-line":zAe,"tiny-column":BAe,"tiny-area":FAe,"ring-progress":OAe,progress:AAe,scatter:NAe,histogram:yAe,funnel:uAe,stock:LAe},GGt={line:_Wt,pie:VWt,column:UVt,bar:HVt,area:JTe,gauge:EWt,"tiny-line":VGt,"tiny-column":jGt,"tiny-area":FGt,"ring-progress":XWt,progress:qWt,scatter:AGt,histogram:OWt,funnel:pWt,stock:MGt},qGt={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function l8(e,t,n){var r=GGt[e];if(!r){console.error("could not find ".concat(e," plot"));return}var a=WGt[e];a({chart:t,options:Pe({},r.getDefaultOptions(),ce(qGt,e,{}),n)})}function YGt(e){var t=e.chart,n=e.options,r=n.views,a=n.legend;return oe(r,function(i){var o=i.region,l=i.data,s=i.meta,u=i.axes,c=i.coordinate,d=i.interactions,f=i.annotations,p=i.tooltip,h=i.geometries,m=t.createView({region:o});m.data(l);var v={};u&&oe(u,function(y,b){v[b]=dr(y,sl)}),v=Pe({},s,v),m.scale(v),u?oe(u,function(y,b){m.axis(b,y)}):m.axis(!1),m.coordinate(c),oe(h,function(y){var b=Cl({chart:m,options:y}).ext,x=y.adjust;x&&b.geometry.adjust(x)}),oe(d,function(y){y.enable===!1?m.removeInteraction(y.type):m.interaction(y.type,y.cfg)}),oe(f,function(y){m.annotation()[y.type](U({},y))}),typeof i.animation=="boolean"?m.animate(!1):(m.animate(!0),oe(m.geometries,function(y){y.animate(i.animation)})),p&&(m.interaction("tooltip"),m.tooltip(p))}),a?oe(a,function(i,o){t.legend(o,i)}):t.legend(!1),t.tooltip(n.tooltip),e}function KGt(e){var t=e.chart,n=e.options,r=n.plots,a=n.data,i=a===void 0?[]:a;return oe(r,function(o){var l=o.type,s=o.region,u=o.options,c=u===void 0?{}:u,d=o.top,f=c.tooltip;if(d){l8(l,t,U(U({},c),{data:i}));return}var p=t.createView(U({region:s},dr(c,qTe)));f&&p.interaction("tooltip"),l8(l,p,U({data:i},c))}),e}function XGt(e){var t=e.chart,n=e.options;return t.option("slider",n.slider),e}function QGt(e){return rn(br,YGt,KGt,Vr,br,Yn,pi,XGt,aa())(e)}function ZGt(e,t){var n=e.getModel(),r=n.data,a;return Qe(r)?a=r[0][t]:a=r[t],a}function JGt(e){var t=gO(e);oe(t,function(n){n.hasState("active")&&n.setState("active",!1),n.hasState("selected")&&n.setState("selected",!1),n.hasState("inactive")&&n.setState("inactive",!1)})}var eqt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getAssociationItems=function(n,r){var a,i=this.context.event,o=r||{},l=o.linkField,s=o.dim,u=[];if(!((a=i.data)===null||a===void 0)&&a.data){var c=i.data.data;oe(n,function(d){var f,p,h=l;if(s==="x"?h=d.getXScale().field:s==="y"?h=(f=d.getYScales().find(function(v){return v.field===h}))===null||f===void 0?void 0:f.field:h||(h=(p=d.getGroupScales()[0])===null||p===void 0?void 0:p.field),!!h){var m=Hr(gO(d),function(v){var y=!1,b=!1,x=Qe(c)?ce(c[0],h):ce(c,h);return ZGt(v,h)===x?y=!0:b=!0,{element:v,view:d,active:y,inactive:b}});u.push.apply(u,m)}})}return u},t.prototype.showTooltip=function(n){var r=roe(this.context.view),a=this.getAssociationItems(r,n);oe(a,function(i){if(i.active){var o=i.element.shape.getCanvasBBox();i.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},t.prototype.hideTooltip=function(){var n=roe(this.context.view);oe(n,function(r){r.hideTooltip()})},t.prototype.active=function(n){var r=L1(this.context.view),a=this.getAssociationItems(r,n);oe(a,function(i){var o=i.active,l=i.element;o&&l.setState("active",!0)})},t.prototype.selected=function(n){var r=L1(this.context.view),a=this.getAssociationItems(r,n);oe(a,function(i){var o=i.active,l=i.element;o&&l.setState("selected",!0)})},t.prototype.highlight=function(n){var r=L1(this.context.view),a=this.getAssociationItems(r,n);oe(a,function(i){var o=i.inactive,l=i.element;o&&l.setState("inactive",!0)})},t.prototype.reset=function(){var n=L1(this.context.view);oe(n,function(r){JGt(r)})},t}(Mr);Vt("association",eqt);cn("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});cn("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});cn("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]});cn("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="mix",n}return t.prototype.getSchemaAdaptor=function(){return QGt},t})(hn);var coe;(function(e){e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE"})(coe||(coe={}));var Nc="first-axes-view",Dc="second-axes-view",Hh="series-field-key";function HAe(e,t,n,r,a){var i=[];t.forEach(function(d){r.forEach(function(f){var p,h=(p={},p[e]=f[e],p[n]=d,p[d]=f[d],p);i.push(h)})});var o=Object.values(Zl(i,n)),l=o[0],s=l===void 0?[]:l,u=o[1],c=u===void 0?[]:u;return a?[s.reverse(),c.reverse()]:[s,c]}function Cd(e){return e!=="vertical"}function tqt(e,t,n){var r=t[0],a=t[1],i=r.autoPadding,o=a.autoPadding,l=e.__axisPosition,s=l.layout,u=l.position;if(Cd(s)&&u==="top"&&(r.autoPadding=n.instance(i.top,0,i.bottom,i.left),a.autoPadding=n.instance(o.top,i.left,o.bottom,0)),Cd(s)&&u==="bottom"&&(r.autoPadding=n.instance(i.top,i.right/2+5,i.bottom,i.left),a.autoPadding=n.instance(o.top,o.right,o.bottom,i.right/2+5)),!Cd(s)&&u==="bottom"){var c=i.left>=o.left?i.left:o.left;r.autoPadding=n.instance(i.top,i.right,i.bottom/2+5,c),a.autoPadding=n.instance(i.bottom/2+5,o.right,o.bottom,c)}if(!Cd(s)&&u==="top"){var c=i.left>=o.left?i.left:o.left;r.autoPadding=n.instance(i.top,i.right,0,c),a.autoPadding=n.instance(0,o.right,i.top,c)}}function nqt(e){var t=e.chart,n=e.options,r=n.data,a=n.xField,i=n.yField,o=n.color,l=n.barStyle,s=n.widthRatio,u=n.legend,c=n.layout,d=HAe(a,i,Hh,r,Cd(c));u?t.legend(Hh,u):u===!1&&t.legend(!1);var f,p,h=d[0],m=d[1];Cd(c)?(f=t.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:Nc}),f.coordinate().transpose().reflect("x"),p=t.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:Dc}),p.coordinate().transpose(),f.data(h),p.data(m)):(f=t.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:Nc}),p=t.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:Dc}),p.coordinate().reflect("y"),f.data(h),p.data(m));var v=Pe({},e,{chart:f,options:{widthRatio:s,xField:a,yField:i[0],seriesField:Hh,interval:{color:o,style:l}}});so(v);var y=Pe({},e,{chart:p,options:{xField:a,yField:i[1],seriesField:Hh,widthRatio:s,interval:{color:o,style:l}}});return so(y),e}function rqt(e){var t,n,r,a=e.options,i=e.chart,o=a.xAxis,l=a.yAxis,s=a.xField,u=a.yField,c=Cn(i,Nc),d=Cn(i,Dc),f={};return Yy((a==null?void 0:a.meta)||{}).map(function(p){ce(a==null?void 0:a.meta,[p,"alias"])&&(f[p]=a.meta[p].alias)}),i.scale((t={},t[Hh]={sync:!0,formatter:function(p){return ce(f,p,p)}},t)),ba((n={},n[s]=o,n[u[0]]=l[u[0]],n))(Pe({},e,{chart:c})),ba((r={},r[s]=o,r[u[1]]=l[u[1]],r))(Pe({},e,{chart:d})),e}function aqt(e){var t=e.chart,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField,l=n.layout,s=Cn(t,Nc),u=Cn(t,Dc);return(r==null?void 0:r.position)==="bottom"?u.axis(i,U(U({},r),{label:{formatter:function(){return""}}})):u.axis(i,!1),r===!1?s.axis(i,!1):s.axis(i,U({position:Cd(l)?"top":"bottom"},r)),a===!1?(s.axis(o[0],!1),u.axis(o[1],!1)):(s.axis(o[0],a[o[0]]),u.axis(o[1],a[o[1]])),t.__axisPosition={position:s.getOptions().axes[i].position,layout:l},e}function iqt(e){var t=e.chart;return Vr(Pe({},e,{chart:Cn(t,Nc)})),Vr(Pe({},e,{chart:Cn(t,Dc)})),e}function oqt(e){var t=e.chart,n=e.options,r=n.yField,a=n.yAxis;return Rg(Pe({},e,{chart:Cn(t,Nc),options:{yAxis:a[r[0]]}})),Rg(Pe({},e,{chart:Cn(t,Dc),options:{yAxis:a[r[1]]}})),e}function lqt(e){var t=e.chart;return Yn(Pe({},e,{chart:Cn(t,Nc)})),Yn(Pe({},e,{chart:Cn(t,Dc)})),Yn(e),e}function sqt(e){var t=e.chart;return br(Pe({},e,{chart:Cn(t,Nc)})),br(Pe({},e,{chart:Cn(t,Dc)})),e}function uqt(e){var t=this,n,r,a=e.chart,i=e.options,o=i.label,l=i.yField,s=i.layout,u=Cn(a,Nc),c=Cn(a,Dc),d=lo(u,"interval"),f=lo(c,"interval");if(!o)d.label(!1),f.label(!1);else{var p=o.callback,h=mr(o,["callback"]);h.position||(h.position="middle"),h.offset===void 0&&(h.offset=2);var m=U({},h);if(Cd(s)){var v=((n=m.style)===null||n===void 0?void 0:n.textAlign)||(h.position==="middle"?"center":"left");h.style=Pe({},h.style,{textAlign:v});var y={left:"right",right:"left",center:"center"};m.style=Pe({},m.style,{textAlign:y[v]})}else{var b={top:"bottom",bottom:"top",middle:"middle"};typeof h.position=="string"?h.position=b[h.position]:typeof h.position=="function"&&(h.position=function(){for(var S=[],C=0;C1?"".concat(t,"_").concat(n):"".concat(t)}function VAe(e){var t=e.data,n=e.xField,r=e.measureField,a=e.rangeField,i=e.targetField,o=e.layout,l=[],s=[];t.forEach(function(d,f){var p=[d[a]].flat();p.sort(function(v,y){return v-y}),p.forEach(function(v,y){var b,x=y===0?v:p[y]-p[y-1];l.push((b={rKey:"".concat(a,"_").concat(y)},b[n]=n?d[n]:String(f),b[a]=x,b))});var h=[d[r]].flat();h.forEach(function(v,y){var b;l.push((b={mKey:doe(h,r,y)},b[n]=n?d[n]:String(f),b[r]=v,b))});var m=[d[i]].flat();m.forEach(function(v,y){var b;l.push((b={tKey:doe(m,i,y)},b[n]=n?d[n]:String(f),b[i]=v,b))}),s.push(d[a],d[r],d[i])});var u=Math.min.apply(Math,s.flat(1/0)),c=Math.max.apply(Math,s.flat(1/0));return u=u>0?0:u,o==="vertical"&&l.reverse(),{min:u,max:c,ds:l}}function xqt(e){var t=e.chart,n=e.options,r=n.bulletStyle,a=n.targetField,i=n.rangeField,o=n.measureField,l=n.xField,s=n.color,u=n.layout,c=n.size,d=n.label,f=VAe(n),p=f.min,h=f.max,m=f.ds;t.data(m);var v=Pe({},e,{options:{xField:l,yField:i,seriesField:"rKey",isStack:!0,label:ce(d,"range"),interval:{color:ce(s,"range"),style:ce(r,"range"),size:ce(c,"range")}}});so(v),t.geometries[0].tooltip(!1);var y=Pe({},e,{options:{xField:l,yField:o,seriesField:"mKey",isStack:!0,label:ce(d,"measure"),interval:{color:ce(s,"measure"),style:ce(r,"measure"),size:ce(c,"measure")}}});so(y);var b=Pe({},e,{options:{xField:l,yField:a,seriesField:"tKey",label:ce(d,"target"),point:{color:ce(s,"target"),style:ce(r,"target"),size:kt(ce(c,"target"))?function(x){return ce(c,"target")(x)/2}:ce(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return ds(b),u==="horizontal"&&t.coordinate().transpose(),U(U({},e),{ext:{data:{min:p,max:h}}})}function WAe(e){var t,n,r=e.options,a=e.ext,i=r.xAxis,o=r.yAxis,l=r.targetField,s=r.rangeField,u=r.measureField,c=r.xField,d=a.data;return rn(ba((t={},t[c]=i,t[u]=o,t),(n={},n[u]={min:d==null?void 0:d.min,max:d==null?void 0:d.max,sync:!0},n[l]={sync:"".concat(u)},n[s]={sync:"".concat(u)},n)))(e)}function Eqt(e){var t=e.chart,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.measureField,l=n.rangeField,s=n.targetField;return t.axis("".concat(l),!1),t.axis("".concat(s),!1),r===!1?t.axis("".concat(i),!1):t.axis("".concat(i),r),a===!1?t.axis("".concat(o),!1):t.axis("".concat(o),a),e}function Sqt(e){var t=e.chart,n=e.options,r=n.legend;return t.removeInteraction("legend-filter"),t.legend(r),t.legend("rKey",!1),t.legend("mKey",!1),t.legend("tKey",!1),e}function Cqt(e){var t=e.chart,n=e.options,r=n.label,a=n.measureField,i=n.targetField,o=n.rangeField,l=t.geometries,s=l[0],u=l[1],c=l[2];return ce(r,"range")?s.label("".concat(o),U({layout:[{type:"limit-in-plot"}]},Ci(r.range))):s.label(!1),ce(r,"measure")?u.label("".concat(a),U({layout:[{type:"limit-in-plot"}]},Ci(r.measure))):u.label(!1),ce(r,"target")?c.label("".concat(i),U({layout:[{type:"limit-in-plot"}]},Ci(r.target))):c.label(!1),e}function wqt(e){rn(xqt,WAe,Eqt,Sqt,Yn,Cqt,pi,Vr,br)(e)}var Tqt=Pe({},hn.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}});(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="bullet",n}return t.getDefaultOptions=function(){return Tqt},t.prototype.changeData=function(n){this.updateOption({data:n});var r=VAe(this.options),a=r.min,i=r.max,o=r.ds;WAe({options:this.options,ext:{data:{min:a,max:i}},chart:this.chart}),this.chart.changeData(o)},t.prototype.getSchemaAdaptor=function(){return wqt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t})(hn);var Aqt={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null};function Iqt(e,t,n){oe(e,function(r,a){r.inEdges=t.filter(function(i){return"".concat(n.target(i))==="".concat(a)}),r.outEdges=t.filter(function(i){return"".concat(n.source(i))==="".concat(a)}),r.edges=r.outEdges.concat(r.inEdges),r.frequency=r.edges.length,r.value=0,r.inEdges.forEach(function(i){r.value+=n.targetWeight(i)}),r.outEdges.forEach(function(i){r.value+=n.sourceWeight(i)})})}function Oqt(e,t){var n={weight:function(a,i){return i.value-a.value},frequency:function(a,i){return i.frequency-a.frequency},id:function(a,i){return"".concat(t.id(a)).localeCompare("".concat(t.id(i)))}},r=n[t.sortBy];!r&&kt(t.sortBy)&&(r=t.sortBy),r&&e.sort(r)}function kqt(e,t){var n=e.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(t.weight){var r=t.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var a=r/(2*n),i=t.nodeWidthRatio;if(i<=0||i>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;e.forEach(function(s){o+=s.value}),e.forEach(function(s){s.weight=s.value/o,s.width=s.weight*(1-r),s.height=i}),e.forEach(function(s,u){for(var c=0,d=u-1;d>=0;d--)c+=e[d].width+2*a;var f=s.minX=a+c,p=s.maxX=s.minX+s.width,h=s.minY=t.y-i/2,m=s.maxY=h+i;s.x=[f,p,p,f],s.y=[h,h,m,m]})}else{var l=1/n;e.forEach(function(s,u){s.x=(u+.5)*l,s.y=t.y})}return e}function Rqt(e,t,n){if(n.weight){var r={};oe(e,function(a,i){r[i]=a.value}),t.forEach(function(a){var i=n.source(a),o=n.target(a),l=e[i],s=e[o];if(l&&s){var u=r[i],c=n.sourceWeight(a),d=l.minX+(l.value-u)/l.value*l.width,f=d+c/l.value*l.width;r[i]-=c;var p=r[o],h=n.targetWeight(a),m=s.minX+(s.value-p)/s.value*s.width,v=m+h/s.value*s.width;r[o]-=h;var y=n.y;a.x=[d,f,m,v],a.y=[y,y,y,y],a.source=l,a.target=s}})}else t.forEach(function(a){var i=e[n.source(a)],o=e[n.target(a)];i&&o&&(a.x=[i.x,o.x],a.y=[i.y,o.y],a.source=i,a.target=o)});return t}function _qt(e){return vr({},Aqt,e)}function Nqt(e,t){var n=_qt(e),r={},a=t.nodes,i=t.links;a.forEach(function(s){var u=n.id(s);r[u]=s}),Iqt(r,i,n),Oqt(a,n);var o=kqt(a,n),l=Rqt(r,i,n);return{nodes:o,links:l}}var GAe="x",qAe="y",YAe="name",KAe="source",Dqt={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,t){var n=(e[0]+e[1])/2,r=n>.5?-4:4;return{offsetX:r,content:t}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!ce(e,[0,"data","isNode"])},formatter:function(e){var t=e.source,n=e.target,r=e.value;return{name:"".concat(t," -> ").concat(n),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function Mqt(e){var t=e.options,n=t.data,r=t.sourceField,a=t.targetField,i=t.weightField,o=t.nodePaddingRatio,l=t.nodeWidthRatio,s=t.rawFields,u=s===void 0?[]:s,c=DTe(n,r,a,i),d=Nqt({weight:!0,nodePaddingRatio:o,nodeWidthRatio:l},c),f=d.nodes,p=d.links,h=f.map(function(v){return U(U({},dr(v,Wt(["id","x","y","name"],u,!0))),{isNode:!0})}),m=p.map(function(v){return U(U({source:v.source.name,target:v.target.name,name:v.source.name||v.target.name},dr(v,Wt(["x","y","value"],u,!0))),{isNode:!1})});return U(U({},e),{ext:U(U({},e.ext),{chordData:{nodesData:h,edgesData:m}})})}function $qt(e){var t,n=e.chart;return n.scale((t={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},t[YAe]={sync:"color"},t[KAe]={sync:"color"},t)),e}function Lqt(e){var t=e.chart;return t.axis(!1),e}function Pqt(e){var t=e.chart;return t.legend(!1),e}function Fqt(e){var t=e.chart,n=e.options,r=n.tooltip;return t.tooltip(r),e}function Bqt(e){var t=e.chart;return t.coordinate("polar").reflect("y"),e}function zqt(e){var t=e.chart,n=e.options,r=e.ext.chordData.nodesData,a=n.nodeStyle,i=n.label,o=n.tooltip,l=t.createView();return l.data(r),u_({chart:l,options:{xField:GAe,yField:qAe,seriesField:YAe,polygon:{style:a},label:i,tooltip:o}}),e}function Hqt(e){var t=e.chart,n=e.options,r=e.ext.chordData.edgesData,a=n.edgeStyle,i=n.tooltip,o=t.createView();o.data(r);var l={xField:GAe,yField:qAe,seriesField:KAe,edge:{style:a,shape:"arc"},tooltip:i};return UTe({chart:o,options:l}),e}function jqt(e){var t=e.chart,n=e.options,r=n.animation;return SC(t,r,xUt(t)),e}function Uqt(e){return rn(Yn,Mqt,Bqt,$qt,Lqt,Pqt,Fqt,Hqt,zqt,Vr,Xp,jqt)(e)}(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="chord",n}return t.getDefaultOptions=function(){return Dqt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return Uqt},t})(hn);var Vqt=["x","y","r","name","value","path","depth"],Wqt={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},foe=4,Gqt=0,poe=5,hoe="drilldown-bread-crumb",qqt={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},ZE="hierarchy-data-transform-params",Yqt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.name="drill-down",n.historyCache=[],n.breadCrumbGroup=null,n.breadCrumbCfg=qqt,n}return t.prototype.click=function(){var n=ce(this.context,["event","data","data"]);if(!n)return!1;this.drill(n),this.drawBreadCrumb()},t.prototype.resetPosition=function(){if(this.breadCrumbGroup){var n=this.context.view.getCoordinate(),r=this.breadCrumbGroup,a=r.getBBox(),i=this.getButtonCfg().position,o={x:n.start.x,y:n.end.y-(a.height+poe*2)};n.isPolar&&(o={x:0,y:0}),i==="bottom-left"&&(o={x:n.start.x,y:n.start.y});var l=yl.transform(null,[["t",o.x+Gqt,o.y+a.height+poe]]);r.setMatrix(l)}},t.prototype.back=function(){Ei(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},t.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},t.prototype.drill=function(n){var r=this.context.view,a=ce(r,["interactions","drill-down","cfg","transformData"],function(u){return u}),i=a(U({data:n.data},n[ZE]));r.changeData(i);for(var o=[],l=n;l;){var s=l.data;o.unshift({id:"".concat(s.name,"_").concat(l.height,"_").concat(l.depth),name:s.name,children:a(U({data:s},n[ZE]))}),l=l.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},t.prototype.backTo=function(n){if(!(!n||n.length<=0)){var r=this.context.view,a=qa(n).children;r.changeData(a),n.length>1?(this.historyCache=n,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},t.prototype.getButtonCfg=function(){var n=this.context.view,r=ce(n,["interactions","drill-down","cfg","drillDownConfig"]);return Pe(this.breadCrumbCfg,r==null?void 0:r.breadCrumb,this.cfg)},t.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},t.prototype.drawBreadCrumbGroup=function(){var n=this,r=this.getButtonCfg(),a=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:hoe});var i=0;a.forEach(function(o,l){var s=n.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(hoe,"_").concat(o.name,"_text"),attrs:U(U({text:l===0&&!Ge(r.rootText)?r.rootText:o.name},r.textStyle),{x:i,y:0})}),u=s.getBBox();if(i+=u.width+foe,s.on("click",function(f){var p,h=f.target.get("id");if(h!==((p=qa(a))===null||p===void 0?void 0:p.id)){var m=a.slice(0,a.findIndex(function(v){return v.id===h})+1);n.backTo(m)}}),s.on("mouseenter",function(f){var p,h=f.target.get("id");h!==((p=qa(a))===null||p===void 0?void 0:p.id)?s.attr(r.activeTextStyle):s.attr({cursor:"default"})}),s.on("mouseleave",function(){s.attr(r.textStyle)}),l=0;)t+=n[r].value;e.value=t}function aYt(){return this.eachAfter(rYt)}function iYt(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function oYt(e,t){for(var n=this,r=[n],a,i,o=-1;n=r.pop();)if(e.call(t,n,++o,this),a=n.children)for(i=a.length-1;i>=0;--i)r.push(a[i]);return this}function lYt(e,t){for(var n=this,r=[n],a=[],i,o,l,s=-1;n=r.pop();)if(a.push(n),i=n.children)for(o=0,l=i.length;o=0;)n+=r[a].value;t.value=n})}function cYt(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function dYt(e){for(var t=this,n=fYt(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var a=r.length;e!==n;)r.splice(a,0,e),e=e.parent;return r}function fYt(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),a=null;for(e=n.pop(),t=r.pop();e===t;)a=e,e=n.pop(),t=r.pop();return a}function pYt(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function hYt(){return Array.from(this)}function gYt(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function mYt(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*vYt(){var e=this,t,n=[e],r,a,i;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(a=0,i=r.length;a=0;--l)a.push(i=o[l]=new ny(o[l])),i.parent=r,i.depth=r.depth+1;return n.eachBefore(XAe)}function yYt(){return ib(this).eachBefore(EYt)}function bYt(e){return e.children}function xYt(e){return Array.isArray(e)?e[1]:null}function EYt(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function XAe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ny(e){this.data=e,this.depth=this.height=0,this.parent=null}ny.prototype=ib.prototype={constructor:ny,count:aYt,each:iYt,eachAfter:lYt,eachBefore:oYt,find:sYt,sum:uYt,sort:cYt,path:dYt,ancestors:pYt,descendants:hYt,leaves:gYt,links:mYt,copy:yYt,[Symbol.iterator]:vYt};function SYt(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function CYt(e){for(var t=e.length,n,r;t;)r=Math.random()*t--|0,n=e[t],e[t]=e[r],e[r]=n;return e}function QAe(e){for(var t=0,n=(e=CYt(Array.from(e))).length,r=[],a,i;t0&&n*n>r*r+a*a}function zM(e,t){for(var n=0;ns?(a=(u+s-i)/(2*u),l=Math.sqrt(Math.max(0,s/u-a*a)),n.x=e.x-a*r-l*o,n.y=e.y-a*o+l*r):(a=(u+i-s)/(2*u),l=Math.sqrt(Math.max(0,i/u-a*a)),n.x=t.x+a*r-l*o,n.y=t.y+a*o+l*r)):(n.x=t.x+n.r,n.y=t.y)}function moe(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,a=t.y-e.y;return n>0&&n*n>r*r+a*a}function voe(e){var t=e._,n=e.next._,r=t.r+n.r,a=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return a*a+i*i}function rT(e){this._=e,this.next=null,this.previous=null}function eIe(e){if(!(a=(e=SYt(e)).length))return 0;var t,n,r,a,i,o,l,s,u,c,d;if(t=e[0],t.x=0,t.y=0,!(a>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(a>2))return t.r+n.r;goe(n,t,r=e[2]),t=new rT(t),n=new rT(n),r=new rT(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(l=3;l0)throw new Error("cycle");return s}return n.id=function(r){return arguments.length?(e=bO(r),n):e},n.parentId=function(r){return arguments.length?(t=bO(r),n):t},n}function MYt(e,t){return e.parent===t.parent?1:2}function jM(e){var t=e.children;return t?t[0]:e.t}function UM(e){var t=e.children;return t?t[t.length-1]:e.t}function $Yt(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function LYt(e){for(var t=0,n=0,r=e.children,a=r.length,i;--a>=0;)i=r[a],i.z+=t,i.m+=t,t+=i.s+(n+=i.c)}function PYt(e,t,n){return e.a.parent===t.parent?e.a:n}function mA(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}mA.prototype=Object.create(ny.prototype);function FYt(e){for(var t=new mA(e,0),n,r=[t],a,i,o,l;n=r.pop();)if(i=n._.children)for(n.children=new Array(l=i.length),o=l-1;o>=0;--o)r.push(a=n.children[o]=new mA(i[o],o)),a.parent=n;return(t.parent=new mA(null,0)).children=[t],t}function BYt(){var e=MYt,t=1,n=1,r=null;function a(u){var c=FYt(u);if(c.eachAfter(i),c.parent.m=-c.z,c.eachBefore(o),r)u.eachBefore(s);else{var d=u,f=u,p=u;u.eachBefore(function(b){b.xf.x&&(f=b),b.depth>p.depth&&(p=b)});var h=d===f?1:e(d,f)/2,m=h-d.x,v=t/(f.x+h+m),y=n/(p.depth||1);u.eachBefore(function(b){b.x=(b.x+m)*v,b.y=b.depth*y})}return u}function i(u){var c=u.children,d=u.parent.children,f=u.i?d[u.i-1]:null;if(c){LYt(u);var p=(c[0].z+c[c.length-1].z)/2;f?(u.z=f.z+e(u._,f._),u.m=u.z-p):u.z=p}else f&&(u.z=f.z+e(u._,f._));u.parent.A=l(u,f,u.parent.A||d[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function l(u,c,d){if(c){for(var f=u,p=u,h=c,m=f.parent.children[0],v=f.m,y=p.m,b=h.m,x=m.m,E;h=UM(h),f=jM(f),h&&f;)m=jM(m),p=UM(p),p.a=u,E=h.z+b-f.z-v+e(h._,f._),E>0&&($Yt(PYt(h,u,d),u,E),v+=E,y+=E),b+=h.m,v+=f.m,x+=m.m,y+=p.m;h&&!UM(p)&&(p.t=h,p.m+=b-y),f&&!jM(m)&&(m.t=f,m.m+=v-x,d=u)}return d}function s(u){u.x*=t,u.y=u.depth*n}return a.separation=function(u){return arguments.length?(e=u,a):e},a.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],a):r?null:[t,n]},a.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],a):r?[t,n]:null},a}function m_(e,t,n,r,a){for(var i=e.children,o,l=-1,s=i.length,u=e.value&&(a-n)/e.value;++lb&&(b=u),C=v*v*S,x=Math.max(b/C,C/y),x>E){v-=u;break}E=x}o.push(s={value:v,dice:p1?r:1)},n}(aIe);function lIe(){var e=oIe,t=!1,n=1,r=1,a=[0],i=Th,o=Th,l=Th,s=Th,u=Th;function c(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),a=[0],t&&f.eachBefore(nIe),f}function d(f){var p=a[f.depth],h=f.x0+p,m=f.y0+p,v=f.x1-p,y=f.y1-p;v=f-1){var b=i[d];b.x0=h,b.y0=m,b.x1=v,b.y1=y;return}for(var x=u[d],E=p/2+x,S=d+1,C=f-1;S>>1;u[w]y-m){var A=p?(h*T+v*I)/p:v;c(d,S,I,h,m,A,y),c(S,f,T,A,m,v,y)}else{var O=p?(m*T+y*I)/p:y;c(d,S,I,h,m,v,O),c(S,f,T,h,O,v,y)}}}function HYt(e,t,n,r,a){(e.depth&1?m_:IC)(e,t,n,r,a)}const jYt=function e(t){function n(r,a,i,o,l){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,h=s.length,m=r.value;++f1?r:1)},n}(aIe),Eoe=Object.freeze(Object.defineProperty({__proto__:null,cluster:nYt,hierarchy:ib,pack:tIe,packEnclose:QAe,packSiblings:IYt,partition:rIe,stratify:DYt,tree:BYt,treemap:lIe,treemapBinary:zYt,treemapDice:IC,treemapResquarify:jYt,treemapSlice:m_,treemapSliceDice:HYt,treemapSquarify:oIe},Symbol.toStringTag,{value:"Module"}));var sIe="nodeIndex",uIe="childNodeCount",Pj="nodeAncestor",VM="Invalid field: it must be a string!";function Fj(e,t){var n=e.field,r=e.fields;if(Jt(n))return n;if(Qe(n))return console.warn(VM),n[0];if(console.warn("".concat(VM," will try to get fields instead.")),Jt(r))return r;if(Qe(r)&&r.length)return r[0];if(t)return t;throw new TypeError(VM)}function Bj(e){var t=[];if(e&&e.each){var n,r;e.each(function(a){var i,o;a.parent!==n?(n=a.parent,r=0):r+=1;var l=Gi((((i=a.ancestors)===null||i===void 0?void 0:i.call(a))||[]).map(function(s){return t.find(function(u){return u.name===s.name})||s}),function(s){var u=s.depth;return u>0&&u1;)c="".concat((u=d.parent.data)===null||u===void 0?void 0:u.name," / ").concat(c),d=d.parent;if(i&&s.depth>2)return null;var f=Pe({},s.data,U(U(U({},dr(s.data,a)),{path:c}),s));f.ext=n,f[ZE]={hierarchyConfig:n,rawFields:a,enableDrillDown:i},l.push(f)}),l}function dIe(e,t,n){var r=Cj([e,t]),a=r[0],i=r[1],o=r[2],l=r[3],s=n.width,u=n.height,c=s-(l+i),d=u-(a+o),f=Math.min(c,d),p=(c-f)/2,h=(d-f)/2,m=a+h,v=i+p,y=o+h,b=l+p,x=[m,v,y,b],E=f<0?0:f;return{finalPadding:x,finalSize:E}}function WYt(e){var t=e.chart,n=Math.min(t.viewBBox.width,t.viewBBox.height);return Pe({options:{size:function(r){var a=r.r;return a*n}}},e)}function GYt(e){var t=e.options,n=e.chart,r=n.viewBBox,a=t.padding,i=t.appendPadding,o=t.drilldown,l=i;if(o!=null&&o.enabled){var s=a_(n.appendPadding,ce(o,["breadCrumb","position"]));l=Cj([s,i])}var u=dIe(a,l,r).finalPadding;return n.padding=u,n.appendPadding=0,e}function qYt(e){var t=e.chart,n=e.options,r=t.padding,a=t.appendPadding,i=n.color,o=n.colorField,l=n.pointStyle,s=n.hierarchyConfig,u=n.sizeField,c=n.rawFields,d=c===void 0?[]:c,f=n.drilldown,p=cIe({data:n.data,hierarchyConfig:s,enableDrillDown:f==null?void 0:f.enabled,rawFields:d});t.data(p);var h=t.viewBBox,m=dIe(r,a,h).finalSize,v=function(y){var b=y.r;return b*m};return u&&(v=function(y){return y[u]*m}),ds(Pe({},e,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:Wt(Wt([],Vqt,!0),d,!0),point:{color:i,style:l,shape:"circle",size:v}}})),e}function YYt(e){return rn(ba({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function KYt(e){var t=e.chart,n=e.options,r=n.tooltip;if(r===!1)t.tooltip(!1);else{var a=r;ce(r,"fields")||(a=Pe({},{customItems:function(i){return i.map(function(o){var l=ce(t.getOptions(),"scales"),s=ce(l,["name","formatter"],function(c){return c}),u=ce(l,["value","formatter"],function(c){return c});return U(U({},o),{name:s(o.data.name),value:u(o.data.value)})})}},a)),t.tooltip(a)}return e}function XYt(e){var t=e.chart;return t.axis(!1),e}function QYt(e){var t=e.drilldown,n=e.interactions,r=n===void 0?[]:n;return t!=null&&t.enabled?Pe({},e,{interactions:Wt(Wt([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:cIe,enableDrillDown:!0}}],!1)}):e}function ZYt(e){var t=e.chart,n=e.options;return Vr({chart:t,options:QYt(n)}),e}function JYt(e){return rn(cs("pointStyle"),WYt,GYt,Yn,YYt,qYt,XYt,tb,KYt,ZYt,br,aa())(e)}function Soe(e){var t=ce(e,["event","data","data"],{});return Qe(t.children)&&t.children.length>0}function Coe(e){var t=e.view.getCoordinate(),n=t.innerRadius;if(n){var r=e.event,a=r.x,i=r.y,o=t.center,l=o.x,s=o.y,u=t.getRadius()*n,c=Math.sqrt(Math.pow(l-a,2)+Math.pow(s-i,2));return c-1?SUt(p,c,d):!0}),e.getRootView().render(!0)}};function rKt(e){var t,n=e.options,r=n.geometryOptions,a=r===void 0?[]:r,i=n.xField,o=n.yField,l=dH(a,function(s){var u=s.geometry;return u===_g.Line||u===void 0});return Pe({},{options:{geometryOptions:[],meta:(t={},t[i]={type:"cat",sync:!0,range:l?[0,1]:void 0},t),tooltip:{showMarkers:l,showCrosshairs:l,shared:!0,crosshairs:{type:"x"}},interactions:l?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:Toe(o,n.yAxis),geometryOptions:[woe(i,o[0],a[0]),woe(i,o[1],a[1])],annotations:Toe(o,n.annotations)}})}function aKt(e){var t,n,r=e.chart,a=e.options,i=a.geometryOptions,o={line:0,column:1},l=[{type:(t=i[0])===null||t===void 0?void 0:t.geometry,id:fs},{type:(n=i[1])===null||n===void 0?void 0:n.geometry,id:ps}];return l.sort(function(s,u){return-o[s.type]+o[u.type]}).forEach(function(s){return r.createView({id:s.id})}),e}function iKt(e){var t=e.chart,n=e.options,r=n.xField,a=n.yField,i=n.geometryOptions,o=n.data,l=n.tooltip,s=[U(U({},i[0]),{id:fs,data:o[0],yField:a[0]}),U(U({},i[1]),{id:ps,data:o[1],yField:a[1]})];return s.forEach(function(u){var c=u.id,d=u.data,f=u.yField,p=zj(u)&&u.isPercent,h=p?YTe(d,f,r,f):d,m=Cn(t,c).data(h),v=p?U({formatter:function(y){return{name:y[u.seriesField]||f,value:(Number(y[f])*100).toFixed(2)+"%"}}},l):l;nKt({chart:m,options:{xField:r,yField:f,tooltip:v,geometryOption:u}})}),e}function oKt(e){var t,n=e.chart,r=e.options,a=r.geometryOptions,i=((t=n.getTheme())===null||t===void 0?void 0:t.colors10)||[],o=0;return n.once("beforepaint",function(){oe(a,function(l,s){var u=Cn(n,s===0?fs:ps);if(!l.color){var c=u.getGroupScales(),d=ce(c,[0,"values","length"],1),f=i.slice(o,o+d).concat(s===0?[]:i);u.geometries.forEach(function(p){l.seriesField?p.color(l.seriesField,f):p.color(f[0])}),o+=d}}),n.render(!0)}),e}function lKt(e){var t,n,r=e.chart,a=e.options,i=a.xAxis,o=a.yAxis,l=a.xField,s=a.yField;return ba((t={},t[l]=i,t[s[0]]=o[0],t))(Pe({},e,{chart:Cn(r,fs)})),ba((n={},n[l]=i,n[s[1]]=o[1],n))(Pe({},e,{chart:Cn(r,ps)})),e}function sKt(e){var t=e.chart,n=e.options,r=Cn(t,fs),a=Cn(t,ps),i=n.xField,o=n.yField,l=n.xAxis,s=n.yAxis;return t.axis(i,!1),t.axis(o[0],!1),t.axis(o[1],!1),r.axis(i,l),r.axis(o[0],Aoe(s[0],ry.Left)),a.axis(i,!1),a.axis(o[1],Aoe(s[1],ry.Right)),e}function uKt(e){var t=e.chart,n=e.options,r=n.tooltip,a=Cn(t,fs),i=Cn(t,ps);return t.tooltip(r),a.tooltip({shared:!0}),i.tooltip({shared:!0}),e}function cKt(e){var t=e.chart;return Vr(Pe({},e,{chart:Cn(t,fs)})),Vr(Pe({},e,{chart:Cn(t,ps)})),e}function dKt(e){var t=e.chart,n=e.options,r=n.annotations,a=ce(r,[0]),i=ce(r,[1]);return aa(a)(Pe({},e,{chart:Cn(t,fs),options:{annotations:a}})),aa(i)(Pe({},e,{chart:Cn(t,ps),options:{annotations:i}})),e}function fKt(e){var t=e.chart;return Yn(Pe({},e,{chart:Cn(t,fs)})),Yn(Pe({},e,{chart:Cn(t,ps)})),Yn(e),e}function pKt(e){var t=e.chart;return br(Pe({},e,{chart:Cn(t,fs)})),br(Pe({},e,{chart:Cn(t,ps)})),e}function hKt(e){var t=e.chart,n=e.options,r=n.yAxis;return Rg(Pe({},e,{chart:Cn(t,fs),options:{yAxis:r[0]}})),Rg(Pe({},e,{chart:Cn(t,ps),options:{yAxis:r[1]}})),e}function gKt(e){var t=e.chart,n=e.options,r=n.legend,a=n.geometryOptions,i=n.yField,o=n.data,l=Cn(t,fs),s=Cn(t,ps);if(r===!1)t.legend(!1);else if(pr(r)&&r.custom===!0)t.legend(r);else{var u=ce(a,[0,"legend"],r),c=ce(a,[1,"legend"],r);t.once("beforepaint",function(){var d=o[0].length?Ioe({view:l,geometryOption:a[0],yField:i[0],legend:u}):[],f=o[1].length?Ioe({view:s,geometryOption:a[1],yField:i[1],legend:c}):[];t.legend(Pe({},r,{custom:!0,items:d.concat(f)}))}),a[0].seriesField&&l.legend(a[0].seriesField,u),a[1].seriesField&&s.legend(a[1].seriesField,c),t.on("legend-item:click",function(d){var f=ce(d,"gEvent.delegateObject",{});if(f&&f.item){var p=f.item,h=p.value,m=p.isGeometry,v=p.viewId;if(m){var y=lCe(i,function(E){return E===h});if(y>-1){var b=ce(Cn(t,v),"geometries");oe(b,function(E){E.changeVisible(!f.item.unchecked)})}}else{var x=ce(t.getController("legend"),"option.items",[]);oe(t.views,function(E){var S=E.getGroupScales();oe(S,function(C){C.values&&C.values.indexOf(h)>-1&&E.filter(C.field,function(w){var I=ku(x,function(T){return T.value===w});return!I.unchecked})}),t.render(!0)})}}})}return e}function mKt(e){var t=e.chart,n=e.options,r=n.slider,a=Cn(t,fs),i=Cn(t,ps);return r&&(a.option("slider",r),a.on("slider:valuechanged",function(o){var l=o.event,s=l.value,u=l.originValue;fa(s,u)||Ooe(i,s)}),t.once("afterpaint",function(){if(!G0(r)){var o=r.start,l=r.end;(o||l)&&Ooe(i,[o,l])}})),e}function vKt(e){return rn(rKt,aKt,fKt,iKt,lKt,sKt,hKt,uKt,cKt,dKt,pKt,oKt,gKt,mKt)(e)}(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dual-axes",n}return t.prototype.getDefaultOptions=function(){return Pe({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},t.prototype.getSchemaAdaptor=function(){return vKt},t})(hn);function yKt(e,t){var n=t.data,r=t.coordinate,a=t.interactions,i=t.annotations,o=t.animation,l=t.tooltip,s=t.axes,u=t.meta,c=t.geometries;n&&e.data(n);var d={};s&&oe(s,function(f,p){d[p]=dr(f,sl)}),d=Pe({},u,d),e.scale(d),r&&e.coordinate(r),s===!1?e.axis(!1):oe(s,function(f,p){e.axis(p,f)}),oe(c,function(f){var p=Cl({chart:e,options:f}).ext,h=f.adjust;h&&p.geometry.adjust(h)}),oe(a,function(f){f.enable===!1?e.removeInteraction(f.type):e.interaction(f.type,f.cfg)}),oe(i,function(f){e.annotation()[f.type](U({},f))}),SC(e,o),l?(e.interaction("tooltip"),e.tooltip(l)):l===!1&&e.removeInteraction("tooltip")}function bKt(e){var t=e.chart,n=e.options,r=n.type,a=n.data,i=n.fields,o=n.eachView,l=C3(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return t.data(a),t.facet(r,U(U({},l),{fields:i,eachView:function(s,u){var c=o(s,u);if(c.geometries)yKt(s,c);else{var d=c,f=d.options;f.tooltip&&s.interaction("tooltip"),l8(d.type,s,f)}}})),e}function xKt(e){var t=e.chart,n=e.options,r=n.axes,a=n.meta,i=n.tooltip,o=n.coordinate,l=n.theme,s=n.legend,u=n.interactions,c=n.annotations,d={};return r&&oe(r,function(f,p){d[p]=dr(f,sl)}),d=Pe({},a,d),t.scale(d),t.coordinate(o),r?oe(r,function(f,p){t.axis(p,f)}):t.axis(!1),i?(t.interaction("tooltip"),t.tooltip(i)):i===!1&&t.removeInteraction("tooltip"),t.legend(s),l&&t.theme(l),oe(u,function(f){f.enable===!1?t.removeInteraction(f.type):t.interaction(f.type,f.cfg)}),oe(c,function(f){t.annotation()[f.type](U({},f))}),e}function EKt(e){return rn(Yn,bKt,xKt)(e)}var SKt={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="area",n}return t.getDefaultOptions=function(){return SKt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EKt},t})(hn);function CKt(e){var t=e.chart,n=e.options,r=n.data,a=n.type,i=n.xField,o=n.yField,l=n.colorField,s=n.sizeField,u=n.sizeRatio,c=n.shape,d=n.color,f=n.tooltip,p=n.heatmapStyle,h=n.meta;t.data(r);var m="polygon";a==="density"&&(m="heatmap");var v=Zs(f,[i,o,l]),y=v.fields,b=v.formatter,x=1;return(u||u===0)&&(!c&&!s?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):x=u),Cl(Pe({},e,{options:{type:m,colorField:l,tooltipFields:y,shapeField:s||"",label:void 0,mapping:{tooltip:b,shape:c&&(s?function(E){var S=r.map(function(T){return T[s]}),C=(h==null?void 0:h[s])||{},w=C.min,I=C.max;return w=un(w)?w:Math.min.apply(Math,S),I=un(I)?I:Math.max.apply(Math,S),[c,(ce(E,s)-w)/(I-w),x]}:function(){return[c,1,x]}),color:d||l&&t.getTheme().sequenceColors.join("-"),style:p}}})),e}function wKt(e){var t,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return rn(ba((t={},t[i]=r,t[o]=a,t)))(e)}function TKt(e){var t=e.chart,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return r===!1?t.axis(i,!1):t.axis(i,r),a===!1?t.axis(o,!1):t.axis(o,a),e}function AKt(e){var t=e.chart,n=e.options,r=n.legend,a=n.colorField,i=n.sizeField,o=n.sizeLegend,l=r!==!1;return a&&t.legend(a,l?r:!1),i&&t.legend(i,o===void 0?r:o),!l&&!o&&t.legend(!1),e}function IKt(e){var t=e.chart,n=e.options,r=n.label,a=n.colorField,i=n.type,o=lo(t,i==="density"?"heatmap":"polygon");if(!r)o.label(!1);else if(a){var l=r.callback,s=mr(r,["callback"]);o.label({fields:[a],callback:l,cfg:Ci(s)})}return e}function OKt(e){var t,n,r=e.chart,a=e.options,i=a.coordinate,o=a.reflect,l=Pe({actions:[]},i??{type:"rect"});return o&&((n=(t=l.actions)===null||t===void 0?void 0:t.push)===null||n===void 0||n.call(t,["reflect",o])),r.coordinate(l),e}function kKt(e){return rn(Yn,cs("heatmapStyle"),wKt,OKt,CKt,TKt,AKt,pi,IKt,aa(),Vr,br,Xp)(e)}var RKt=Pe({},hn.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});rr("polygon","circle",{draw:function(e,t){var n,r,a=e.x,i=e.y,o=this.parsePoints(e.points),l=Math.abs(o[2].x-o[1].x),s=Math.abs(o[1].y-o[0].y),u=Math.min(l,s)/2,c=Number(e.shape[1]),d=Number(e.shape[2]),f=Math.sqrt(d),p=u*f*Math.sqrt(c),h=((n=e.style)===null||n===void 0?void 0:n.fill)||e.color||((r=e.defaultStyle)===null||r===void 0?void 0:r.fill),m=t.addShape("circle",{attrs:U(U(U({x:a,y:i,r:p},e.defaultStyle),e.style),{fill:h})});return m}});rr("polygon","square",{draw:function(e,t){var n,r,a=e.x,i=e.y,o=this.parsePoints(e.points),l=Math.abs(o[2].x-o[1].x),s=Math.abs(o[1].y-o[0].y),u=Math.min(l,s),c=Number(e.shape[1]),d=Number(e.shape[2]),f=Math.sqrt(d),p=u*f*Math.sqrt(c),h=((n=e.style)===null||n===void 0?void 0:n.fill)||e.color||((r=e.defaultStyle)===null||r===void 0?void 0:r.fill),m=t.addShape("rect",{attrs:U(U(U({x:a-p/2,y:i-p/2,width:p,height:p},e.defaultStyle),e.style),{fill:h})});return m}});(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="heatmap",n}return t.getDefaultOptions=function(){return RKt},t.prototype.getSchemaAdaptor=function(){return kKt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t})(hn);var _Kt="liquid";function pIe(e){return[{percent:e,type:_Kt}]}function NKt(e){var t=e.chart,n=e.options,r=n.percent,a=n.liquidStyle,i=n.radius,o=n.outline,l=n.wave,s=n.shape,u=n.shapeStyle,c=n.animation;t.scale({percent:{min:0,max:1}}),t.data(pIe(r));var d=n.color||t.getTheme().defaultColor,f=Pe({},e,{options:{xField:"type",yField:"percent",widthRatio:i,interval:{color:d,style:a,shape:"liquid-fill-gauge"}}}),p=so(f).ext,h=p.geometry,m=t.getTheme().background,v={percent:r,radius:i,outline:o,wave:l,shape:s,shapeStyle:u,background:m,animation:c};return h.customInfo(v),t.legend(!1),t.axis(!1),t.tooltip(!1),e}function hIe(e,t){var n=e.chart,r=e.options,a=r.statistic,i=r.percent,o=r.meta;n.getController("annotation").clear(!0);var l=ce(o,["percent","formatter"])||function(u){return"".concat((u*100).toFixed(2),"%")},s=a.content;return s&&(s=Pe({},s,{content:Ge(s.content)?l(i):s.content})),i_(n,{statistic:U(U({},a),{content:s}),plotType:"liquid"},{percent:i}),t&&n.render(!0),e}function DKt(e){return rn(Yn,cs("liquidStyle"),NKt,hIe,ba({}),br,Vr)(e)}var MKt={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},koe=5e3;function Roe(e,t,n){return e+(t-e)*n}function $Kt(e){var t=U({opacity:1},e.style);return e.color&&!t.fill&&(t.fill=e.color),t}function LKt(e){var t={fill:"#fff",fillOpacity:0,lineWidth:4},n=vr({},t,e.style);return e.color&&!n.stroke&&(n.stroke=e.color),un(e.opacity)&&(n.opacity=n.strokeOpacity=e.opacity),n}function PKt(e,t,n,r){return t===0?[[e+1/2*n/Math.PI/2,r/2],[e+1/2*n/Math.PI,r],[e+n/4,r]]:t===1?[[e+1/2*n/Math.PI/2*(Math.PI-2),r],[e+1/2*n/Math.PI/2*(Math.PI-1),r/2],[e+n/4,0]]:t===2?[[e+1/2*n/Math.PI/2,-r/2],[e+1/2*n/Math.PI,-r],[e+n/4,-r]]:[[e+1/2*n/Math.PI/2*(Math.PI-2),-r],[e+1/2*n/Math.PI/2*(Math.PI-1),-r/2],[e+n/4,0]]}function FKt(e,t,n,r,a,i,o){for(var l=Math.ceil(2*e/n*4)*4,s=[],u=r;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*n;var c=i-e+u-e*2;s.push(["M",c,t]);for(var d=0,f=0;f0){var R=t.addGroup({name:"waves"}),N=R.setClip({type:"path",attrs:{path:O}});BKt(x.x,x.y,1-e.points[1].y,v,w,R,N,C*2,y,d)}return t.addShape("path",{name:"distance",attrs:{path:O,fill:"transparent",lineWidth:h+m*2,stroke:c==="transparent"?"#fff":c}}),t.addShape("path",{name:"wrap",attrs:vr(I,{path:O,fill:"transparent",lineWidth:h})}),t}});(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="liquid",n}return t.getDefaultOptions=function(){return MKt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.changeData=function(n){this.chart.emit(yn.BEFORE_CHANGE_DATA,ra.fromData(this.chart,yn.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:n}),this.chart.data(pIe(n)),hIe({chart:this.chart,options:this.options},!0),this.chart.emit(yn.AFTER_CHANGE_DATA,ra.fromData(this.chart,yn.AFTER_CHANGE_DATA,null))},t.prototype.getSchemaAdaptor=function(){return DKt},t})(hn);function WKt(e){var t=e.chart,n=e.options,r=n.data,a=n.lineStyle,i=n.color,o=n.point,l=n.area;t.data(r);var s=Pe({},e,{options:{line:{style:a,color:i},point:o&&U({color:i},o),area:l&&U({color:i},l),label:void 0}}),u=Pe({},s,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||n.state,d=Pe({},s,{options:{tooltip:!1,state:c}});return nb(s),ds(d),s_(u),e}function GKt(e){var t,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return rn(ba((t={},t[i]=r,t[o]=a,t)))(e)}function qKt(e){var t=e.chart,n=e.options,r=n.radius,a=n.startAngle,i=n.endAngle;return t.coordinate("polar",{radius:r,startAngle:a,endAngle:i}),e}function YKt(e){var t=e.chart,n=e.options,r=n.xField,a=n.xAxis,i=n.yField,o=n.yAxis;return t.axis(r,a),t.axis(i,o),e}function KKt(e){var t=e.chart,n=e.options,r=n.label,a=n.yField,i=lo(t,"line");if(!r)i.label(!1);else{var o=r.callback,l=mr(r,["callback"]);i.label({fields:[a],callback:o,cfg:Ci(l)})}return e}function XKt(e){return rn(WKt,GKt,Yn,qKt,YKt,tb,pi,KKt,Vr,br,aa())(e)}var QKt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),t.prototype.getTooltipItems=function(n){var r=this.getTooltipCfg(),a=r.shared,i=r.title,o=e.prototype.getTooltipItems.call(this,n);if(o.length>0){var l=this.view.geometries[0],s=l.dataArray,u=o[0].name,c=[];return s.forEach(function(d){d.forEach(function(f){var p=yl.getTooltipItems(f,l),h=p[0];if(!a&&h&&h.name===u){var m=Ge(i)?u:i;c.push(U(U({},h),{name:h.title,title:m}))}else if(a&&h){var m=Ge(i)?h.name||u:i;c.push(U(U({},h),{name:h.title,title:m}))}})}),c}return[]},t}(C2e);em("radar-tooltip",QKt);var ZKt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=this.context.view;n.removeInteraction("tooltip")},t.prototype.show=function(){var n=this.context.event,r=this.getTooltipController();r.showTooltip({x:n.x,y:n.y})},t.prototype.hide=function(){var n=this.getTooltipController();n.hideTooltip()},t.prototype.getTooltipController=function(){var n=this.context.view;return n.getController("radar-tooltip")},t}(Mr);Vt("radar-tooltip",ZKt);cn("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="radar",n}return t.prototype.changeData=function(n){this.updateOption({data:n}),this.chart.changeData(n)},t.prototype.getDefaultOptions=function(){return Pe({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},t.prototype.getSchemaAdaptor=function(){return XKt},t})(hn);function JKt(e,t,n){var r=n.map(function(o){return o[t]}).filter(function(o){return o!==void 0}),a=r.length>0?Math.max.apply(Math,r):0,i=Math.abs(e)%360;return i?a*360/i:a}function eXt(e,t,n){var r=[];return e.forEach(function(a){var i=r.find(function(o){return o[t]===a[t]});i?i[n]+=a[n]||null:r.push(U({},a))}),r}function tXt(e){var t=e.chart,n=e.options,r=n.barStyle,a=n.color,i=n.tooltip,o=n.colorField,l=n.type,s=n.xField,u=n.yField,c=n.data,d=n.shape,f=ey(c,u);t.data(f);var p=Pe({},e,{options:{tooltip:i,seriesField:o,interval:{style:r,color:a,shape:d||(l==="line"?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return so(p),l==="line"&&ds({chart:t,options:{xField:s,yField:u,seriesField:o,point:{shape:"circle",color:a}}}),e}function gIe(e){var t,n=e.options,r=n.yField,a=n.xField,i=n.data,o=n.isStack,l=n.isGroup,s=n.colorField,u=n.maxAngle,c=o&&!l&&s?eXt(i,a,r):i,d=ey(c,r);return rn(ba((t={},t[r]={min:0,max:JKt(u,r,d)},t)))(e)}function nXt(e){var t=e.chart,n=e.options,r=n.radius,a=n.innerRadius,i=n.startAngle,o=n.endAngle;return t.coordinate({type:"polar",cfg:{radius:r,innerRadius:a,startAngle:i,endAngle:o}}).transpose(),e}function rXt(e){var t=e.chart,n=e.options,r=n.xField,a=n.xAxis;return t.axis(r,a),e}function aXt(e){var t=e.chart,n=e.options,r=n.label,a=n.yField,i=lo(t,"interval");if(!r)i.label(!1);else{var o=r.callback,l=mr(r,["callback"]);i.label({fields:[a],callback:o,cfg:U(U({},Ci(l)),{type:"polar"})})}return e}function iXt(e){return rn(cs("barStyle"),tXt,gIe,rXt,nXt,Vr,br,Yn,pi,tb,aa(),aXt)(e)}var oXt=Pe({},hn.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="radial-bar",n}return t.getDefaultOptions=function(){return oXt},t.prototype.changeData=function(n){this.updateOption({data:n}),gIe({chart:this.chart,options:this.options}),this.chart.changeData(n)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return iXt},t})(hn);function lXt(e){var t=e.chart,n=e.options,r=n.data,a=n.sectorStyle,i=n.shape,o=n.color;return t.data(r),rn(so)(Pe({},e,{options:{marginRatio:1,interval:{style:a,color:o,shape:i}}})),e}function sXt(e){var t=e.chart,n=e.options,r=n.label,a=n.xField,i=lo(t,"interval");if(r===!1)i.label(!1);else if(pr(r)){var o=r.callback,l=r.fields,s=mr(r,["callback","fields"]),u=s.offset,c=s.layout;(u===void 0||u>=0)&&(c=c?Qe(c)?c:[c]:[],s.layout=Gi(c,function(d){return d.type!=="limit-in-shape"}),s.layout.length||delete s.layout),i.label({fields:l||[a],callback:o,cfg:Ci(s)})}else Wd(Hu.WARN,r===null,"the label option must be an Object."),i.label({fields:[a]});return e}function uXt(e){var t=e.chart,n=e.options,r=n.legend,a=n.seriesField;return r===!1?t.legend(!1):a&&t.legend(a,r),e}function cXt(e){var t=e.chart,n=e.options,r=n.radius,a=n.innerRadius,i=n.startAngle,o=n.endAngle;return t.coordinate({type:"polar",cfg:{radius:r,innerRadius:a,startAngle:i,endAngle:o}}),e}function dXt(e){var t,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return rn(ba((t={},t[i]=r,t[o]=a,t)))(e)}function fXt(e){var t=e.chart,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return r?t.axis(i,r):t.axis(i,!1),a?t.axis(o,a):t.axis(o,!1),e}function pXt(e){rn(cs("sectorStyle"),lXt,dXt,sXt,cXt,fXt,uXt,pi,Vr,br,Yn,aa(),Xp)(e)}var hXt=Pe({},hn.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="rose",n}return t.getDefaultOptions=function(){return hXt},t.prototype.changeData=function(n){this.updateOption({data:n}),this.chart.changeData(n)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return pXt},t})(hn);var Noe="x",Doe="y",Moe="name",v_="nodes",y_="edges";function gXt(e,t,n){var r=[];return e.forEach(function(a){var i=a[t],o=a[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)}),r}function mXt(e,t,n,r){var a={};return t.forEach(function(i){a[i]={},t.forEach(function(o){a[i][o]=0})}),e.forEach(function(i){a[i[n]][i[r]]=1}),a}function vXt(e,t,n){if(!Qe(e))return[];var r=[],a=gXt(e,t,n),i=mXt(e,a,t,n),o={};a.forEach(function(s){o[s]=0});function l(s){o[s]=1,a.forEach(function(u){if(i[s][u]!=0)if(o[u]==1)r.push("".concat(s,"_").concat(u));else{if(o[u]==-1)return;l(u)}}),o[s]=-1}return a.forEach(function(s){o[s]!=-1&&l(s)}),r.length!==0&&console.warn("sankey data contains circle, ".concat(r.length," records removed."),r),e.filter(function(s){return r.findIndex(function(u){return u==="".concat(s[t],"_").concat(s[n])})<0})}function yXt(e){return e.target.depth}function bXt(e){return e.depth}function xXt(e,t){return t-1-e.height}function Hj(e,t){return e.sourceLinks.length?e.depth:t-1}function EXt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?SLt(e.sourceLinks,yXt)-1:0}function aT(e){return function(){return e}}function WM(e,t){for(var n=0,r=0;rP)throw new Error("circular link");B=F,F=new Set}if(u)for(var j=Math.max(GM(k,function(G){return G.depth})+1,0),z=void 0,V=0;VP)throw new Error("circular link");B=F,F=new Set}}function E($){for(var k=$.nodes,P=Math.max(GM(k,function(J){return J.depth})+1,0),B=(n-e-a)/(P-1),F=new Array(P).fill(0).map(function(){return[]}),D=0,j=k;D0){var te=(G/W-V.y0)*k;V.y0+=te,V.y1+=te,R(V)}}c===void 0&&D.sort(xO),D.length&&T(D,P)}}function I($,k,P){for(var B=$.length,F=B-2;F>=0;--F){for(var D=$[F],j=0,z=D;j0){var te=(G/W-V.y0)*k;V.y0+=te,V.y1+=te,R(V)}}c===void 0&&D.sort(xO),D.length&&T(D,P)}}function T($,k){var P=$.length>>1,B=$[P];O($,B.y0-o,P-1,k),A($,B.y1+o,P+1,k),O($,r,$.length-1,k),A($,t,0,k)}function A($,k,P,B){for(;P<$.length;++P){var F=$[P],D=(k-F.y0)*B;D>1e-6&&(F.y0+=D,F.y1+=D),k=F.y1+o}}function O($,k,P,B){for(;P>=0;--P){var F=$[P],D=(F.y1-k)*B;D>1e-6&&(F.y0-=D,F.y1-=D),k=F.y0-o}}function R($){var k=$.sourceLinks,P=$.targetLinks;if(d===void 0){for(var B=0,F=P;B "+a,value:i}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},t.prototype.changeData=function(n){this.updateOption({data:n});var r=mIe(this.options,this.chart.width,this.chart.height),a=r.nodes,i=r.edges,o=Cn(this.chart,v_),l=Cn(this.chart,y_);o.changeData(a),l.changeData(i)},t.prototype.getSchemaAdaptor=function(){return zXt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t})(hn);var jj="ancestor-node",vIe="value",JE="path",jXt=[JE,sIe,Pj,uIe,"name","depth","height"],UXt=Pe({},hn.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),VXt={field:"value",size:[1,1],round:!1,padding:0,sort:function(e,t){return t.value-e.value},as:["x","y"],ignoreParentValue:!0};function WXt(e,t){t=vr({},VXt,t);var n=t.as;if(!Qe(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var r;try{r=Fj(t)}catch(s){console.warn(s)}var a=function(s){return rIe().size(t.size).round(t.round).padding(t.padding)(ib(s).sum(function(u){return Ei(u.children)?t.ignoreParentValue?0:u[r]-Oo(u.children,function(c,d){return c+d[r]},0):u[r]}).sort(t.sort))},i=a(e),o=n[0],l=n[1];return i.each(function(s){var u,c;s[o]=[s.x0,s.x1,s.x1,s.x0],s[l]=[s.y1,s.y1,s.y0,s.y0],s.name=s.name||((u=s.data)===null||u===void 0?void 0:u.name)||((c=s.data)===null||c===void 0?void 0:c.label),s.data.name=s.name,["x0","x1","y0","y1"].forEach(function(d){n.indexOf(d)===-1&&delete s[d]})}),Bj(i)}var GXt={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,t){return t.value-e.value},ratio:.5*(1+Math.sqrt(5))};function qXt(e,t){return e==="treemapSquarify"?Eoe[e].ratio(t):Eoe[e]}function yIe(e,t){t=vr({},GXt,t);var n=t.as;if(!Qe(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var r;try{r=Fj(t)}catch(u){console.warn(u)}var a=qXt(t.tile,t.ratio),i=function(u){return lIe().tile(a).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(ib(u).sum(function(c){return t.ignoreParentValue&&c.children?0:c[r]}).sort(t.sort))},o=i(e),l=n[0],s=n[1];return o.each(function(u){u[l]=[u.x0,u.x1,u.x1,u.x0],u[s]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){n.indexOf(c)===-1&&delete u[c]})}),Bj(o)}function bIe(e){var t=e.data,n=e.colorField,r=e.rawFields,a=e.hierarchyConfig,i=a===void 0?{}:a,o=i.activeDepth,l={partition:WXt,treemap:yIe},s=e.seriesField,u=e.type||"partition",c=l[u](t,U(U({field:s||"value"},C3(i,["activeDepth"])),{type:"hierarchy.".concat(u),as:["x","y"]})),d=[];return c.forEach(function(f){var p,h,m,v,y,b;if(f.depth===0||o>0&&f.depth>o)return null;for(var x=f.data.name,E=U({},f);E.depth>1;)x="".concat((h=E.parent.data)===null||h===void 0?void 0:h.name," / ").concat(x),E=E.parent;var S=U(U(U({},dr(f.data,Wt(Wt([],r||[],!0),[i.field],!1))),(p={},p[JE]=x,p[jj]=E.data.name,p)),f);s&&(S[s]=f.data[s]||((v=(m=f.parent)===null||m===void 0?void 0:m.data)===null||v===void 0?void 0:v[s])),n&&(S[n]=f.data[n]||((b=(y=f.parent)===null||y===void 0?void 0:y.data)===null||b===void 0?void 0:b[n])),S.ext=i,S[ZE]={hierarchyConfig:i,colorField:n,rawFields:r},d.push(S)}),d}function YXt(e){var t=e.chart,n=e.options,r=n.color,a=n.colorField,i=a===void 0?jj:a,o=n.sunburstStyle,l=n.rawFields,s=l===void 0?[]:l,u=n.shape,c=bIe(n);t.data(c);var d;return o&&(d=function(f){return Pe({},{fillOpacity:Math.pow(.85,f.depth)},kt(o)?o(f):o)}),u_(Pe({},e,{options:{xField:"x",yField:"y",seriesField:i,rawFields:wg(Wt(Wt([],jXt,!0),s,!0)),polygon:{color:r,style:d,shape:u}}})),e}function KXt(e){var t=e.chart;return t.axis(!1),e}function XXt(e){var t=e.chart,n=e.options,r=n.label,a=lo(t,"polygon");if(!r)a.label(!1);else{var i=r.fields,o=i===void 0?["name"]:i,l=r.callback,s=mr(r,["fields","callback"]);a.label({fields:o,callback:l,cfg:Ci(s)})}return e}function QXt(e){var t=e.chart,n=e.options,r=n.innerRadius,a=n.radius,i=n.reflect,o=t.coordinate({type:"polar",cfg:{innerRadius:r,radius:a}});return i&&o.reflect(i),e}function ZXt(e){var t,n=e.options,r=n.hierarchyConfig,a=n.meta;return rn(ba({},(t={},t[vIe]=ce(a,ce(r,["field"],"value")),t)))(e)}function JXt(e){var t=e.chart,n=e.options,r=n.tooltip;if(r===!1)t.tooltip(!1);else{var a=r;ce(r,"fields")||(a=Pe({},{customItems:function(i){return i.map(function(o){var l=ce(t.getOptions(),"scales"),s=ce(l,[JE,"formatter"],function(c){return c}),u=ce(l,[vIe,"formatter"],function(c){return c});return U(U({},o),{name:s(o.data[JE]),value:u(o.data.value)})})}},a)),t.tooltip(a)}return e}function eQt(e){var t=e.drilldown,n=e.interactions,r=n===void 0?[]:n;return t!=null&&t.enabled?Pe({},e,{interactions:Wt(Wt([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:bIe}}],!1)}):e}function tQt(e){var t=e.chart,n=e.options,r=n.drilldown;return Vr({chart:t,options:eQt(n)}),r!=null&&r.enabled&&(t.appendPadding=a_(t.appendPadding,ce(r,["breadCrumb","position"]))),e}function nQt(e){return rn(Yn,cs("sunburstStyle"),YXt,KXt,ZXt,tb,QXt,JXt,XXt,tQt,br,aa())(e)}(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="sunburst",n}return t.getDefaultOptions=function(){return UXt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return nQt},t.SUNBURST_ANCESTOR_FIELD=jj,t.SUNBURST_PATH_FIELD=JE,t.NODE_ANCESTORS_FIELD=Pj,t})(hn);function xIe(e,t){if(Qe(e))return e.find(function(n){return n.type===t})}function EIe(e,t){var n=xIe(e,t);return n&&n.enable!==!1}function Uj(e){var t=e.interactions,n=e.drilldown;return ce(n,"enabled")||EIe(t,"treemap-drill-down")}function rQt(e){var t=e.interactions["drill-down"];if(t){var n=t.context.actions.find(function(r){return r.name==="drill-down-action"});n.reset()}}function Vj(e){var t=e.data,n=e.colorField,r=e.enableDrillDown,a=e.hierarchyConfig,i=yIe(t,U(U({},a),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return i.forEach(function(l){if(l.depth===0||r&&l.depth!==1||!r&&l.children)return null;var s=l.ancestors().map(function(f){return{data:f.data,height:f.height,value:f.value}}),u=r&&Qe(t.path)?s.concat(t.path.slice(1)):s,c=Object.assign({},l.data,U({x:l.x,y:l.y,depth:l.depth,value:l.value,path:u},l));if(!l.data[n]&&l.parent){var d=l.ancestors().find(function(f){return f.data[n]});c[n]=d==null?void 0:d.data[n]}else c[n]=l.data[n];c[ZE]={hierarchyConfig:a,colorField:n,enableDrillDown:r},o.push(c)}),o}function aQt(e){var t=e.options,n=t.colorField;return Pe({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(r){return{name:r.name,value:r.value}}}}},e)}function iQt(e){var t=e.chart,n=e.options,r=n.color,a=n.colorField,i=n.rectStyle,o=n.hierarchyConfig,l=n.rawFields,s=Vj({data:n.data,colorField:n.colorField,enableDrillDown:Uj(n),hierarchyConfig:o});return t.data(s),u_(Pe({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:l,polygon:{color:r,style:i}}})),t.coordinate().reflect("y"),e}function oQt(e){var t=e.chart;return t.axis(!1),e}function lQt(e){var t=e.drilldown,n=e.interactions,r=n===void 0?[]:n,a=Uj(e);return a?Pe({},e,{interactions:Wt(Wt([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:Vj}}],!1)}):e}function sQt(e){var t=e.chart,n=e.options,r=n.interactions,a=n.drilldown;Vr({chart:t,options:lQt(n)});var i=xIe(r,"view-zoom");i&&(i.enable!==!1?t.getCanvas().on("mousewheel",function(l){l.preventDefault()}):t.getCanvas().off("mousewheel"));var o=Uj(n);return o&&(t.appendPadding=a_(t.appendPadding,ce(a,["breadCrumb","position"]))),e}function uQt(e){return rn(aQt,Yn,cs("rectStyle"),iQt,oQt,tb,pi,sQt,br,aa())(e)}var cQt={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="treemap",n}return t.getDefaultOptions=function(){return cQt},t.prototype.changeData=function(n){var r=this.options,a=r.colorField,i=r.interactions,o=r.hierarchyConfig;this.updateOption({data:n});var l=Vj({data:n,colorField:a,enableDrillDown:EIe(i,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(l),rQt(this.chart)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return uQt},t})(hn);var Rd="id",u8="path",dQt={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function b_(e){if(e){var t=e.geometries[0].elements;t.forEach(function(n){n.shape.toFront()})}}var fQt=X3("element-active"),pQt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.syncElementsPos=function(){b_(this.context.view)},t.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(fQt),hQt=X3("element-highlight"),gQt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.syncElementsPos=function(){b_(this.context.view)},t.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(hQt),mQt=X3("element-selected"),vQt=X3("element-single-selected"),yQt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.syncElementsPos=function(){b_(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(mQt),bQt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.syncElementsPos=function(){b_(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(vQt);Vt("venn-element-active",pQt);Vt("venn-element-highlight",gQt);Vt("venn-element-selected",yQt);Vt("venn-element-single-selected",bQt);cn("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]});cn("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]});cn("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]});cn("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]});cn("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]});cn("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var xQt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getLabelPoint=function(n,r,a){var i=n.data,o=i.x,l=i.y,s=n.customLabelInfo,u=s.offsetX,c=s.offsetY;return{content:n.content[a],x:o+u,y:l+c}},t}(e_);bC("venn",xQt);var wx=` +\v\f\r   ᠎              \u2028\u2029`,EQt=new RegExp("([a-z])["+wx+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+wx+"]*,?["+wx+"]*)+)","ig"),SQt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+wx+"]*,?["+wx+"]*","ig");function CQt(e){if(!e)return null;if(Du(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(e).replace(EQt,function(r,a,i){var o=[],l=a.toLowerCase();if(i.replace(SQt,function(s,u){u&&o.push(+u)}),l==="m"&&o.length>2&&(n.push([a].concat(o.splice(0,2))),l="l",a=a==="m"?"l":"L"),l==="o"&&o.length===1&&n.push([a,o[0]]),l==="r")n.push([a].concat(o));else for(;o.length>=t[l]&&(n.push([a].concat(o.splice(0,t[l]))),!!t[l]););return""}),n}function wQt(e){return Pe({},e.defaultStyle,{fill:e.color},e.style)}rr("schema","venn",{draw:function(e,t){var n=e.data,r=CQt(n[u8]),a=wQt(e),i=t.addGroup({name:"venn-shape"});i.addShape("path",{attrs:U(U({},a),{path:r}),name:"venn-path"});var o=e.customInfo,l=o.offsetX,s=o.offsetY,u=yl.transform(null,[["t",l,s]]);return i.setMatrix(u),i},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:t,fill:t,r:4}}}});var TQt=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}},Boe={normal:function(e){return e},multiply:function(e,t){return e*t/255},screen:function(e,t){return 255*(1-(1-e/255)*(1-t/255))},overlay:function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},darken:function(e,t){return e>t?t:e},lighten:function(e,t){return e>t?e:t},dodge:function(e,t){return e===255?255:(e=255*(t/255)/(1-e/255),e>255?255:e)},burn:function(e,t){return t===255?255:e===0?0:255*(1-Math.min(1,(1-t/255)/(e/255)))}},AQt=function(e){if(!Boe[e])throw new Error("unknown blend mode "+e);return Boe[e]};function IQt(e,t,n){n===void 0&&(n="normal");var r=TQt(AQt(n))(iT(e),iT(t)),a=iT(e),i=a[0],o=a[1],l=a[2],s=a[3],u=iT(t),c=u[0],d=u[1],f=u[2],p=u[3],h=Number((s+p*(1-s)).toFixed(2)),m=Math.round((s*(1-p)*(i/255)+s*p*(r[0]/255)+(1-s)*p*(c/255))/h*255),v=Math.round((s*(1-p)*(o/255)+s*p*(r[1]/255)+(1-s)*p*(d/255))/h*255),y=Math.round((s*(1-p)*(l/255)+s*p*(r[2]/255)+(1-s)*p*(f/255))/h*255);return"rgba(".concat(m,", ").concat(v,", ").concat(y,", ").concat(h,")")}function iT(e){var t=e.replace("/s+/g",""),n;return typeof t=="string"&&!t.startsWith("rgba")&&!t.startsWith("#")?n=cp.rgb2arr(cp.toRGB(t)).concat([1]):(t.startsWith("rgba")&&(n=t.replace("rgba(","").replace(")","").split(",")),t.startsWith("#")&&(n=cp.rgb2arr(t).concat([1])),n.map(function(r,a){return a===3?Number(r):r|0}))}function OQt(e,t,n,r){r=r||{};var a=r.maxIterations||100,i=r.tolerance||1e-10,o=e(t),l=e(n),s=n-t;if(o*l>0)throw"Initial bisect points must have opposite signs";if(o===0)return t;if(l===0)return n;for(var u=0;u=0&&(t=c),Math.abs(s)=h[p-1].fx){var O=!1;if(E.fx>A.fx?(gd(S,1+c,x,-c,A),S.fx=e(S),S.fx=1)break;for(m=1;ml+i*a*s||u>=y)v=a;else{if(Math.abs(d)<=-o*s)return a;d*(v-m)>=0&&(v=m),m=a,y=u}return 0}for(var h=0;h<10;++h){if(gd(r.x,1,n.x,a,t),u=r.fx=e(r.x,r.fxprime),d=n0(r.fxprime,t),u>l+i*a*s||h&&u>=c)return p(f,a,c);if(Math.abs(d)<=-o*s)return a;if(d>=0)return p(a,f,u);c=u,f=a,a*=2}return a}function RQt(e,t,n){var r={x:t.slice(),fx:0,fxprime:t.slice()},a={x:t.slice(),fx:0,fxprime:t.slice()},i=t.slice(),o,l,s=1,u;n=n||{},u=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),f8(o,r.fxprime,-1);for(var c=0;c1){var s=AIe(r);for(o=0;o-1){var m=e[d.parentIndex[h]],v=Math.atan2(d.x-m.x,d.y-m.y),y=Math.atan2(c.x-m.x,c.y-m.y),b=y-v;b<0&&(b+=2*Math.PI);var x=y-b/2,E=Ru(f,{x:m.x+m.radius*Math.sin(x),y:m.y+m.radius*Math.cos(x)});E>m.radius*2&&(E=m.radius*2),(p===null||p.width>E)&&(p={circle:m,width:E,p1:d,p2:c})}p!==null&&(l.push(p),a+=p8(p.circle.radius,p.width),c=d)}}else{var S=e[0];for(o=1;oMath.abs(S.radius-e[o].radius)){C=!0;break}C?a=i=0:(a=S.radius*S.radius*Math.PI,l.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-CIe,y:S.y+S.radius},width:S.radius*2}))}return i/=2,t&&(t.area=a+i,t.arcArea=a,t.polygonArea=i,t.arcs=l,t.innerPoints=r,t.intersectionPoints=n),a+i}function _Qt(e,t){for(var n=0;nt[n].radius+CIe)return!1;return!0}function NQt(e){for(var t=[],n=0;n=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);var r=e-(n*n-t*t+e*e)/(2*n),a=t-(n*n-e*e+t*t)/(2*n);return p8(e,r)+p8(t,a)}function TIe(e,t){var n=Ru(e,t),r=e.radius,a=t.radius;if(n>=r+a||n<=Math.abs(r-a))return[];var i=(r*r-a*a+n*n)/(2*n),o=Math.sqrt(r*r-i*i),l=e.x+i*(t.x-e.x)/n,s=e.y+i*(t.y-e.y)/n,u=-(t.y-e.y)*(o/n),c=-(t.x-e.x)*(o/n);return[{x:l+u,y:s-c},{x:l-u,y:s+c}]}function AIe(e){for(var t={x:0,y:0},n=0;n=o&&(i=n[r],o=l)}var s=SIe(function(f){return-1*YM({x:f[0],y:f[1]},e,t)},[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:s[0],y:s[1]},c=!0;for(r=0;re[r].radius){c=!1;break}for(r=0;r0&&console.log("WARNING: area "+i+" not represented on screen")}return n}function $Qt(e,t,n){var r=[],a=e-n,i=t;return r.push("M",a,i),r.push("A",n,n,0,1,0,a+2*n,i),r.push("A",n,n,0,1,0,a,i),r.join(" ")}function LQt(e){var t={};Wj(e,t);var n=t.arcs;if(n.length===0)return"M 0 0";if(n.length==1){var r=n[0].circle;return $Qt(r.x,r.y,r.radius)}else{for(var a=[` +M`,n[0].p2.x,n[0].p2.y],i=0;il;a.push(` +A`,l,l,0,s?1:0,1,o.p1.x,o.p1.y)}return a.join(" ")}}function PQt(e,t){t=t||{},t.maxIterations=t.maxIterations||500;var n=t.initialLayout||HQt,r=t.lossFunction||Gj;e=FQt(e);var a=n(e,t),i=[],o=[],l;for(l in a)a.hasOwnProperty(l)&&(i.push(a[l].x),i.push(a[l].y),o.push(l));for(var s=SIe(function(d){for(var f={},p=0;pu?1:-1}),r=0;r=Math.min(t[o].size,t[l].size)?d=1:i.size<=1e-10&&(d=-1),a[o][l]=a[l][o]=d}),{distances:r,constraints:a}}function zQt(e,t,n,r){var a=0,i;for(i=0;i0&&h<=d||f<0&&h>=d||(a+=2*m*m,t[2*i]+=4*m*(o-u),t[2*i+1]+=4*m*(l-c),t[2*s]+=4*m*(u-o),t[2*s+1]+=4*m*(c-l))}return a}function HQt(e,t){var n=UQt(e,t),r=t.lossFunction||Gj;if(e.length>=8){var a=jQt(e,t),i=r(a,e),o=r(n,e);i+1e-8=Math.min(r[c].size,r[d].size)&&(u=0),a[c].push({set:d,size:s.size,weight:u}),a[d].push({set:c,size:s.size,weight:u})}var f=[];for(i in a)if(a.hasOwnProperty(i)){for(var p=0,o=0;o=y.length)){var N=Math.max(R-d,0),_=R,L=Math.min(R+d,y.length-1),$=N-(R-d),k=R+d-L,P=E[-d-1+$]||0,B=E[-d-1+k]||0,F=S/(S-P-B);$>0&&(w+=F*($-1)*C);var D=Math.max(0,R-d+1);i.inside(0,y.length-1,D)&&(y[D].y+=F*1*C),i.inside(0,y.length-1,_+1)&&(y[_+1].y-=F*2*C),i.inside(0,y.length-1,L+1)&&(y[L+1].y+=F*1*C)}});var I=w,T=0,A=0;return y.forEach(function(O){T+=O.y,I+=T,O.y=I,A+=I}),A>0&&y.forEach(function(O){O.y/=A}),y};function l(s,u){for(var c={},d=0,f=-u;f<=u;f++)d+=s(f/u),c[f]=d;return c}e.exports.getExpectedValueFromPdf=function(s){if(!(!s||s.length===0)){var u=0;return s.forEach(function(c){u+=c.x*c.y}),u}},e.exports.getXWithLeftTailArea=function(s,u){if(!(!s||s.length===0)){for(var c=0,d=0,f=0;f=u));f++);return s[d].x}},e.exports.getPerplexity=function(s){if(!(!s||s.length===0)){var u=0;return s.forEach(function(c){var d=Math.log(c.y);isFinite(d)&&(u+=c.y*d)}),u=-u/r,Math.pow(2,u)}}})(DIe);var dZt=DIe.exports;const fZt=Or(dZt);function Hoe(e,t){var n=e.length*t;if(e.length===0)throw new Error("quantile requires at least one data point.");if(t<0||t>1)throw new Error("quantiles must be between 0 and 1");return t===1?e[e.length-1]:t===0?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}function u1(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function vA(e,t,n,r){for(n=n||0,r=r||e.length-1;r>n;){if(r-n>600){var a=r-n+1,i=t-n+1,o=Math.log(a),l=.5*Math.exp(2*o/3),s=.5*Math.sqrt(o*l*(a-l)/a);i-a/2<0&&(s*=-1);var u=Math.max(n,Math.floor(t-i*l/a+s)),c=Math.min(r,Math.floor(t+(a-i)*l/a+s));vA(e,t,u,c)}var d=e[t],f=n,p=r;for(u1(e,n,t),e[r]>d&&u1(e,n,r);fd;)p--}e[n]===d?u1(e,n,p):(p++,u1(e,p,r)),p<=t&&(n=p+1),t<=p&&(r=p-1)}}function c1(e,t){var n=e.slice();if(Array.isArray(t)){pZt(n,t);for(var r=[],a=0;a0?c:d},v=Pe({},e,{options:{xField:a,yField:Rs,seriesField:a,rawFields:[i,x_,g8,Rs],widthRatio:s,interval:{style:u,shape:p||"waterfall",color:m}}}),y=so(v).ext,b=y.geometry;return b.customInfo(U(U({},h),{leaderLine:l})),e}function RZt(e){var t,n,r=e.options,a=r.xAxis,i=r.yAxis,o=r.xField,l=r.yField,s=r.meta,u=Pe({},{alias:l},ce(s,l));return rn(ba((t={},t[o]=a,t[l]=i,t[Rs]=i,t),Pe({},s,(n={},n[Rs]=u,n[x_]=u,n[Yj]=u,n))))(e)}function _Zt(e){var t=e.chart,n=e.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return r===!1?t.axis(i,!1):t.axis(i,r),a===!1?(t.axis(o,!1),t.axis(Rs,!1)):(t.axis(o,a),t.axis(Rs,a)),e}function NZt(e){var t=e.chart,n=e.options,r=n.legend,a=n.total,i=n.risingFill,o=n.fallingFill,l=n.locale,s=l_(l);if(r===!1)t.legend(!1);else{var u=[{name:s.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:i}}},{name:s.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];a&&u.push({name:a.label||"",value:"total",marker:{symbol:"square",style:Pe({},{r:5},ce(a,"style"))}}),t.legend(Pe({},{custom:!0,position:"top",items:u},r)),t.removeInteraction("legend-filter")}return e}function DZt(e){var t=e.chart,n=e.options,r=n.label,a=n.labelMode,i=n.xField,o=lo(t,"interval");if(!r)o.label(!1);else{var l=r.callback,s=mr(r,["callback"]);o.label({fields:a==="absolute"?[Yj,i]:[x_,i],callback:l,cfg:Ci(s)})}return e}function MZt(e){var t=e.chart,n=e.options,r=n.tooltip,a=n.xField,i=n.yField;if(r!==!1){t.tooltip(U({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[i]},r));var o=t.geometries[0];r!=null&&r.formatter?o.tooltip("".concat(a,"*").concat(i),r.formatter):o.tooltip(i)}else t.tooltip(!1);return e}function $Zt(e){return rn(OZt,Yn,kZt,RZt,_Zt,NZt,MZt,DZt,Xp,Vr,br,aa())(e)}(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="waterfall",n}return t.getDefaultOptions=function(){return wZt},t.prototype.changeData=function(n){var r=this.options,a=r.xField,i=r.yField,o=r.total;this.updateOption({data:n}),this.chart.changeData(FIe(n,a,i,o))},t.prototype.getSchemaAdaptor=function(){return $Zt},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t})(hn);var Kj="color",LZt=Pe({},hn.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",Kj],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),PZt={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function FZt(e,t){return t=vr({},PZt,t),BZt(e,t)}function BZt(e,t){var n=ZZt();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(s){Ge(t[s])||n[s](t[s])}),n.words(e),t.imageMask&&n.createMask(t.imageMask);var r=n.start(),a=r._tags;a.forEach(function(s){s.x+=t.size[0]/2,s.y+=t.size[1]/2});var i=t.size,o=i[0],l=i[1];return a.push({text:"",value:0,x:0,y:0,opacity:0}),a.push({text:"",value:0,x:o,y:l,opacity:0}),a}var KM=Math.PI/180,F1=64,xA=2048;function zZt(e){return e.text}function HZt(){return"serif"}function Voe(){return"normal"}function jZt(e){return e.value}function UZt(){return~~(Math.random()*2)*90}function VZt(){return 1}function WZt(e,t,n,r){if(!t.sprite){var a=e.context,i=e.ratio;a.clearRect(0,0,(F1<<5)/i,xA/i);var o=0,l=0,s=0,u=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(m+v),Math.abs(m-v))}else c=c+31>>5<<5;if(d>s&&(s=d),o+c>=F1<<5&&(o=0,l+=s,s=0),l+d>=xA)break;a.translate((o+(c>>1))/i,(l+(d>>1))/i),t.rotate&&a.rotate(t.rotate*KM),a.fillText(t.text,0,0),t.padding&&(a.lineWidth=2*t.padding,a.strokeText(t.text,0,0)),a.restore(),t.width=c,t.height=d,t.xoff=o,t.yoff=l,t.x1=c>>1,t.y1=d>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,o+=c}for(var b=a.getImageData(0,0,(F1<<5)/i,xA/i).data,x=[];--r>=0;)if(t=n[r],!!t.hasText){for(var c=t.width,E=c>>5,d=t.y1-t.y0,S=0;S>5),A=b[(l+I)*(F1<<5)+(o+S)<<2]?1<<31-S%32:0;x[T]|=A,C|=A}C?w=I:(t.y0++,d--,I--,l++)}t.y1=t.y0+w,t.sprite=x.slice(0,(t.y1-t.y0)*E)}}}function GZt(e,t,n){n>>=5;for(var r=e.sprite,a=e.width>>5,i=e.x-(a<<4),o=i&127,l=32-o,s=e.y1-e.y0,u=(e.y+e.y0)*n+(i>>5),c,d=0;d>>o:0))&t[u+f])return!0;u+=n}return!1}function qZt(e,t){var n=e[0],r=e[1];t.x+t.x0r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function YZt(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0t[0].y&&e.y+e.y0>5)*e[1]),E=s.length,S=[],C=s.map(function(A,O,R){return A.text=c.call(this,A,O,R),A.font=t.call(this,A,O,R),A.style=d.call(this,A,O,R),A.weight=r.call(this,A,O,R),A.rotate=a.call(this,A,O,R),A.size=~~n.call(this,A,O,R),A.padding=i.call(this,A,O,R),A}).sort(function(A,O){return O.size-A.size}),w=-1,I=p.board?[{x:0,y:0},{x:v,y}]:null;T();function T(){for(var A=Date.now();Date.now()-A>1,O.y=y*(l()+.5)>>1,WZt(b,O,C,w),O.hasText&&m(x,O,I)&&(S.push(O),I?p.hasImage||qZt(I,O):I=[{x:O.x+O.x0,y:O.y+O.y0},{x:O.x+O.x1,y:O.y+O.y1}],O.x-=e[0]>>1,O.y-=e[1]>>1)}p._tags=S,p._bounds=I}return p};function h(v){v.width=v.height=1;var y=Math.sqrt(v.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);v.width=(F1<<5)/y,v.height=xA/y;var b=v.getContext("2d",{willReadFrequently:!0});return b.fillStyle=b.strokeStyle="red",b.textAlign="center",{context:b,ratio:y}}function m(v,y,b){for(var x=y.x,E=y.y,S=Math.sqrt(e[0]*e[0]+e[1]*e[1]),C=o(e),w=l()<.5?1:-1,I,T=-w,A,O;(I=C(T+=w))&&(A=~~I[0],O=~~I[1],!(Math.min(Math.abs(A),Math.abs(O))>=S));)if(y.x=x+A,y.y=E+O,!(y.x+y.x0<0||y.y+y.y0<0||y.x+y.x1>e[0]||y.y+y.y1>e[1])&&(!b||!GZt(y,v,e[0]))&&(!b||YZt(y,b))){for(var R=y.sprite,N=y.width>>5,_=e[0]>>5,L=y.x-(N<<4),$=L&127,k=32-$,P=y.y1-y.y0,B=void 0,F=(y.y+y.y0)*_+(L>>5),D=0;D>>$:0);F+=_}return delete y.sprite,!0}return!1}return p.createMask=function(v){var y=document.createElement("canvas"),b=e[0],x=e[1];if(!(!b||!x)){var E=b>>5,S=Woe((b>>5)*x);y.width=b,y.height=x;var C=y.getContext("2d");C.drawImage(v,0,0,v.width,v.height,0,0,b,x);for(var w=C.getImageData(0,0,b,x).data,I=0;I>5),O=I*b+T<<2,R=w[O]>=250&&w[O+1]>=250&&w[O+2]>=250,N=R?1<<31-T%32:0;S[A]|=N}p.board=S,p.hasImage=!0}},p.timeInterval=function(v){u=v??1/0},p.words=function(v){s=v},p.size=function(v){e=[+v[0],+v[1]]},p.font=function(v){t=hc(v)},p.fontWeight=function(v){r=hc(v)},p.rotate=function(v){a=hc(v)},p.spiral=function(v){o=QZt[v]||v},p.fontSize=function(v){n=hc(v)},p.padding=function(v){i=hc(v)},p.random=function(v){l=hc(v)},p}function zIe(e){var t=e.options,n=e.chart,r=n,a=r.width,i=r.height,o=r.padding,l=r.appendPadding,s=r.ele,u=t.data,c=t.imageMask,d=t.wordField,f=t.weightField,p=t.colorField,h=t.wordStyle,m=t.timeInterval,v=t.random,y=t.spiral,b=t.autoFit,x=b===void 0?!0:b,E=t.placementStrategy;if(!u||!u.length)return[];var S=h.fontFamily,C=h.fontWeight,w=h.padding,I=h.fontSize,T=rJt(u,f),A=[oJt(T),lJt(T)],O=u.map(function(_){return{text:_[d],value:_[f],color:_[p],datum:_}}),R={imageMask:c,font:S,fontSize:nJt(I,A),fontWeight:C,size:JZt({width:a,height:i,padding:o,appendPadding:l,autoFit:x,container:s}),padding:w,timeInterval:m,random:v,spiral:y,rotate:aJt(t)};if(kt(E)){var N=O.map(function(_,L,$){return U(U(U({},_),{hasText:!!_.text,font:hc(R.font)(_,L,$),weight:hc(R.fontWeight)(_,L,$),rotate:hc(R.rotate)(_,L,$),size:hc(R.fontSize)(_,L,$),style:"normal"}),E.call(n,_,L,$))});return N.push({text:"",value:0,x:0,y:0,opacity:0}),N.push({text:"",value:0,x:R.size[0],y:R.size[1],opacity:0}),N}return FZt(O,R)}function JZt(e){var t=e.width,n=e.height,r=e.container,a=e.autoFit,i=e.padding,o=e.appendPadding;if(a){var l=t8(r);t=l.width,n=l.height}t=t||400,n=n||400;var s=eJt({padding:i,appendPadding:o}),u=s[0],c=s[1],d=s[2],f=s[3],p=[t-(f+c),n-(u+d)];return p}function eJt(e){var t=Op(e.padding),n=Op(e.appendPadding),r=t[0]+n[0],a=t[1]+n[1],i=t[2]+n[2],o=t[3]+n[3];return[r,a,i,o]}function tJt(e){return new Promise(function(t,n){if(e instanceof HTMLImageElement){t(e);return}if(Jt(e)){var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=function(){t(r)},r.onerror=function(){Wd(Hu.ERROR,!1,"image %s load failed !!!",e),n()};return}Wd(Hu.WARN,e===void 0,"The type of imageMask option must be String or HTMLImageElement."),n()})}function nJt(e,t){if(kt(e))return e;if(Qe(e)){var n=e[0],r=e[1];if(!t)return function(){return(r+n)/2};var a=t[0],i=t[1];return i===a?function(){return(r+n)/2}:function(l){var s=l.value;return(r-n)/(i-a)*(s-a)+n}}return function(){return e}}function rJt(e,t){return e.map(function(n){return n[t]}).filter(function(n){return typeof n=="number"&&!isNaN(n)})}function aJt(e){var t=iJt(e),n=t.rotation,r=t.rotationSteps;if(!Qe(n))return n;var a=n[0],i=n[1],o=r===1?0:(i-a)/(r-1);return function(){return i===a?i:Math.floor(Math.random()*r)*o}}function iJt(e){var t=e.wordStyle.rotationSteps;return t<1&&(Wd(Hu.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),t=1),{rotation:e.wordStyle.rotation,rotationSteps:t}}function oJt(e){return Math.min.apply(Math,e)}function lJt(e){return Math.max.apply(Math,e)}function sJt(e){var t=e.chart,n=e.options,r=n.colorField,a=n.color,i=zIe(e);t.data(i);var o=Pe({},e,{options:{xField:"x",yField:"y",seriesField:r&&Kj,rawFields:kt(a)&&Wt(Wt([],ce(n,"rawFields",[]),!0),["datum"],!1),point:{color:a,shape:"word-cloud"}}}),l=ds(o).ext;return l.geometry.label(!1),t.coordinate().reflect("y"),t.axis(!1),e}function uJt(e){return rn(ba({x:{nice:!1},y:{nice:!1}}))(e)}function cJt(e){var t=e.chart,n=e.options,r=n.legend,a=n.colorField;return r===!1?t.legend(!1):a&&t.legend(Kj,r),e}function dJt(e){rn(sJt,uJt,pi,cJt,Vr,br,Yn,Xp)(e)}rr("point","word-cloud",{draw:function(e,t){var n=e.x,r=e.y,a=t.addShape("text",{attrs:U(U({},fJt(e)),{x:n,y:r})}),i=e.data.rotate;return typeof i=="number"&&yl.rotate(a,i*Math.PI/180),a}});function fJt(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}(function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="word-cloud",n}return t.getDefaultOptions=function(){return LZt},t.prototype.changeData=function(n){this.updateOption({data:n}),this.options.imageMask?this.render():this.chart.changeData(zIe({chart:this.chart,options:this.options}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){var n=this;return new Promise(function(r){var a=n.options.imageMask;if(!a){e.prototype.render.call(n),r();return}var i=function(o){n.options=U(U({},n.options),{imageMask:o||null}),e.prototype.render.call(n),r()};tJt(a).then(i).catch(i)})},t.prototype.getSchemaAdaptor=function(){return dJt},t.prototype.triggerResize=function(){var n=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(n)}))},t})(hn);(function(e){De(t,e);function t(n,r,a,i){var o=e.call(this,n,Pe({},i,r))||this;return o.type="g2-plot",o.defaultOptions=i,o.adaptor=a,o}return t.prototype.getDefaultOptions=function(){return this.defaultOptions},t.prototype.getSchemaAdaptor=function(){return this.adaptor},t})(hn);jTe("en-US",BUt);jTe("zh-CN",zUt);var m8=globalThis&&globalThis.__assign||function(){return m8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=18&&(Xj=OC.createRoot)}catch{}function Goe(e){var t=OC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&typeof t=="object"&&(t.usingClientEntryPoint=e)}var qoe="__rc_react_root__";function mJt(e,t){Goe(!0);var n=t[qoe]||Xj(t);Goe(!1),n.render(e),t[qoe]=n}function vJt(e,t){hJt(e,t)}function yJt(e,t){if(Xj){mJt(e,t);return}vJt(e,t)}var XM=new Map,bJt=function(e,t,n){var r=document.createElement("div");return t==="tooltip"&&(r.setAttribute("data-uuid",n),XM.has(n)?r=XM.get(n):XM.set(n,r),r.className="g2-tooltip"),yJt(e,r),r};const xJt=bJt;var oT=function(e,t){var n={}.toString;return n.call(e)==="[object ".concat(t,"]")},EJt=function(e){if(!e)return e;var t={};for(var n in e)t[n]=e[n];return t},EO=function(e){if(!e||typeof e!="object")return e;var t;return Array.isArray(e)?t=e.map(function(n){return EO(n)}):(t={},Object.keys(e).forEach(function(n){return t[n]=EO(e[n])})),t},d1=function(e,t){for(var n=e,r=0;r{const{data:e}=yp({resource:"dealStages",filters:[{field:"title",operator:"in",value:["WON","LOST"]}],meta:{gqlQuery:aLt}}),n={data:M.useMemo(()=>tLt(e==null?void 0:e.data),[e==null?void 0:e.data]),xField:"timeText",yField:"value",isStack:!1,seriesField:"state",animation:!0,startOnZero:!1,smooth:!0,legend:{offsetY:-6},yAxis:{tickCount:4,label:{formatter:r=>`$${Number(r)/1e3}k`}},tooltip:{formatter:r=>({name:r.state,value:`$${Number(r.value)/1e3}k`})}};return q.jsx(fo,{style:{height:"100%"},headStyle:{padding:"8px 16px"},bodyStyle:{padding:"24px 24px 0 24px"},title:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[q.jsx(jOt,{}),q.jsx(Pr,{size:"sm",style:{marginLeft:"0.5rem"},children:"Deals"})]}),children:q.jsx(UIe,{...n,height:325})})},VIe=()=>q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 24px",borderBottom:"1px solid #d9d9d9"},children:[q.jsx(gl.Avatar,{size:"small",shape:"square"}),q.jsx(gl.Input,{size:"small",block:!0,style:{height:"22px"}})]}),FJt=({children:e})=>q.jsxs("div",{style:{display:"flex",flexDirection:"column",padding:"0 16px"},children:[q.jsx("div",{style:{padding:"12px"},children:q.jsxs(Un,{style:{width:"100%",justifyContent:"space-between"},children:[q.jsx(gl.Button,{size:"small",style:{width:"125px"}}),q.jsx(nn,{disabled:!0,type:"text",shape:"circle",icon:q.jsx(QEe,{style:{transform:"rotate(90deg)"}})}),q.jsx(nn,{disabled:!0,shape:"circle",icon:q.jsx(d9,{})})]})}),q.jsx("div",{style:{flex:1,border:"2px dashed transparent",borderRadius:"4px"},children:q.jsx("div",{style:{marginTop:"12px",display:"flex",flexDirection:"column",gap:"8px"},children:e})})]}),BJt=()=>q.jsxs(fo,{size:"small",bodyStyle:{display:"flex",justifyContent:"center",gap:"8px"},title:q.jsx(gl.Button,{active:!0,size:"small",style:{width:"200px",height:"22px"}}),children:[q.jsx(gl.Button,{active:!0,size:"small",style:{width:"200px"}}),q.jsx(gl.Avatar,{active:!0,size:"small"})]}),zJt=()=>q.jsx(Yl.Item,{children:q.jsx(Yl.Item.Meta,{avatar:q.jsx(gl.Avatar,{active:!0,size:48,shape:"square",style:{borderRadius:"4px"}}),title:q.jsx(gl.Button,{active:!0,style:{height:"16px"}}),description:q.jsx(gl.Button,{active:!0,style:{width:"300px",height:"16px"}})})}),QM=({color:e,children:t})=>q.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"50%",backgroundColor:e},children:t}),Koe={companies:{primaryColor:"#1677FF",secondaryColor:"#BAE0FF",icon:q.jsx(QM,{color:"#E6F4FF",children:q.jsx(ZEe,{className:"md",style:{color:"#1677FF"}})}),title:"Number of companies",data:[{index:"1",value:3500},{index:"2",value:2750},{index:"3",value:5e3},{index:"4",value:4250},{index:"5",value:5e3}]},contacts:{primaryColor:"#52C41A",secondaryColor:"#D9F7BE",icon:q.jsx(QM,{color:"#F6FFED",children:q.jsx(JEe,{className:"md",style:{color:"#52C41A"}})}),title:"Number of contacts",data:[{index:"1",value:1e4},{index:"2",value:19500},{index:"3",value:13e3},{index:"4",value:17e3},{index:"5",value:13e3},{index:"6",value:2e4}]},deals:{primaryColor:"#FA541C",secondaryColor:"#FFD8BF",icon:q.jsx(QM,{color:"#FFF2E8",children:q.jsx(MOt,{className:"md",style:{color:"#FA541C"}})}),title:"Total deals in pipeline",data:[{index:"1",value:1e3},{index:"2",value:1300},{index:"3",value:1200},{index:"4",value:2e3},{index:"5",value:800},{index:"6",value:1700},{index:"7",value:1400},{index:"8",value:1800}]}},HJt=[{label:"New",value:"NEW"},{label:"Qualified",value:"QUALIFIED"},{label:"Unqualified",value:"UNQUALIFIED"},{label:"Won",value:"WON"},{label:"Negotiation",value:"NEGOTIATION"},{label:"Lost",value:"LOST"},{label:"Interested",value:"INTERESTED"},{label:"Contacted",value:"CONTACTED"},{label:"Churned",value:"CHURNED"}],jJt=[{label:"Enterprise",value:"ENTERPRISE"},{label:"Large",value:"LARGE"},{label:"Medium",value:"MEDIUM"},{label:"Small",value:"SMALL"}],UJt=[{label:"Aerospace",value:"AEROSPACE"},{label:"Agriculture",value:"AGRICULTURE"},{label:"Automotive",value:"AUTOMOTIVE"},{label:"Chemicals",value:"CHEMICALS"},{label:"Construction",value:"CONSTRUCTION"},{label:"Defense",value:"DEFENSE"},{label:"Education",value:"EDUCATION"},{label:"Energy",value:"ENERGY"},{label:"Financial Services",value:"FINANCIAL_SERVICES"},{label:"Food and Beverage",value:"FOOD_AND_BEVERAGE"},{label:"Government",value:"GOVERNMENT"},{label:"Healthcare",value:"HEALTHCARE"},{label:"Hospitality",value:"HOSPITALITY"},{label:"Industrial Manufacturing",value:"INDUSTRIAL_MANUFACTURING"},{label:"Insurance",value:"INSURANCE"},{label:"Life Sciences",value:"LIFE_SCIENCES"},{label:"Logistics",value:"LOGISTICS"},{label:"Media",value:"MEDIA"},{label:"Mining",value:"MINING"},{label:"Nonprofit",value:"NONPROFIT"},{label:"Other",value:"OTHER"},{label:"Pharmaceuticals",value:"PHARMACEUTICALS"},{label:"Professional Services",value:"PROFESSIONAL_SERVICES"},{label:"Real Estate",value:"REAL_ESTATE"},{label:"Retail",value:"RETAIL"},{label:"Technology",value:"TECHNOLOGY"},{label:"Telecommunications",value:"TELECOMMUNICATIONS"},{label:"Transportation",value:"TRANSPORTATION"},{label:"Utilities",value:"UTILITIES"}],VJt=[{label:"B2B",value:"B2B"},{label:"B2C",value:"B2C"},{label:"B2G",value:"B2G"}],ZM=({resource:e,isLoading:t,totalCount:n})=>{const{primaryColor:r,secondaryColor:a,icon:i,title:o}=Koe[e],l={data:Koe[e].data,xField:"index",yField:"value",appendPadding:[1,0,0,0],padding:0,syncViewPadding:!0,autoFit:!0,tooltip:!1,animation:!1,xAxis:!1,yAxis:{tickCount:12,label:{style:{stroke:"transparent"}},grid:{line:{style:{stroke:"transparent"}}}},smooth:!0,line:{color:r},areaStyle:()=>({fill:`l(270) 0:#fff 0.2${a} 1:${r}`})};return q.jsxs(fo,{style:{height:"96px",padding:0},bodyStyle:{padding:"8px 8px 8px 12px"},size:"small",children:[q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[i,q.jsx(Pr,{size:"md",className:"secondary",style:{marginLeft:"8px"},children:o})]}),q.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[q.jsx(Pr,{size:"xxxl",strong:!0,style:{flex:1,whiteSpace:"nowrap",flexShrink:0,textAlign:"start",marginLeft:"48px",fontVariantNumeric:"tabular-nums"},children:t?q.jsx(gl.Button,{style:{marginTop:"8px",width:"74px"}}):n}),q.jsx(UIe,{...l,style:{width:"50%"}})]})]})},WJt=(e,t)=>typeof Intl=="object"&&Intl&&typeof Intl.NumberFormat=="function"?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",...t}).format(e):e.toString(),WIe=e=>{const t=Ir(e.date),n=Ir();return t.isBefore(n)?"error":t.isBefore(n.add(3,"day"))?"warning":e.defaultColor??"default"},Qj=(e,t=2)=>e.split(" ").map(a=>a[0]).join("").replace(/[^a-zA-Z]/g,"").slice(0,t).toUpperCase(),of=({name:e,style:t,...n})=>q.jsx(PS,{alt:e,size:"small",style:{backgroundColor:"#87d068",display:"flex",alignItems:"center",border:"none",...t},...n,children:Qj(e||"")}),GJt=()=>{var s;const{data:e,isLoading:t,isError:n,error:r}=yp({resource:"audits",meta:{gqlQuery:oLt}}),a=(s=e==null?void 0:e.data)==null?void 0:s.map(u=>u==null?void 0:u.targetId),{data:i,isLoading:o}=yp({resource:"deals",queryOptions:{enabled:!!(a!=null&&a.length)},pagination:{mode:"off"},filters:[{field:"id",operator:"in",value:a}],meta:{gqlQuery:iLt}});if(n)return console.log(r),null;const l=t||o;return q.jsx(fo,{headStyle:{padding:"16px"},bodyStyle:{padding:"0 1rem"},title:q.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[q.jsx(dkt,{}),q.jsx(Pr,{size:"sm",style:{marginLeft:"0.5rem"},children:"Latest Activities"})]}),children:l?q.jsx(Yl,{itemLayout:"horizontal",dataSource:Array.from({length:5}).map((u,c)=>({id:c})),renderItem:(u,c)=>q.jsx(zJt,{},c)}):q.jsx(Yl,{itemLayout:"horizontal",dataSource:e==null?void 0:e.data,renderItem:u=>{var d,f;const c=(i==null?void 0:i.data.find(p=>p.id===String(u.targetId)))||void 0;return q.jsx(Yl.Item,{children:q.jsx(Yl.Item.Meta,{title:Ir(c==null?void 0:c.createdAt).format("MMM DD, YYYY - HH:mm"),avatar:q.jsx(of,{shape:"square",size:48,src:c==null?void 0:c.company.avatarUrl,name:c==null?void 0:c.company.name}),description:q.jsxs(Un,{size:4,children:[q.jsx(Pr,{strong:!0,children:(d=u.user)==null?void 0:d.name}),q.jsx(Pr,{children:u.action==="CREATE"?"created":"moved"}),q.jsxs(Pr,{strong:!0,children:[" ",c==null?void 0:c.title]}),q.jsx(Pr,{children:"deal"}),q.jsx(Pr,{children:u.action==="CREATE"?"in":"to"}),q.jsx(Pr,{strong:!0,children:(f=c==null?void 0:c.stage)==null?void 0:f.title})]})})})}})})},qJt=({user:e})=>q.jsx(YS,{style:{padding:2,paddingRight:8,borderRadius:24,lineHeight:"unset",marginRight:"unset"},children:q.jsxs(Un,{size:4,children:[q.jsx(of,{src:e.avatarUrl,name:e.name,style:{display:"inline-flex"}}),e.name]})},e.id),JM=({accordionKey:e,activeKey:t,setActive:n,fallback:r,icon:a,label:i,children:o,isLoading:l})=>{if(l)return q.jsx(VIe,{});const s=t===e,u=()=>{n(s?void 0:e)};return q.jsxs("div",{style:{display:"flex",padding:"12px 24px",gap:"12px",alignItems:"start",borderBottom:"1px solid #d9d9d9"},children:[q.jsx("div",{style:{marginTop:"1px",flexShrink:0},children:a}),s?q.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px",flex:1},children:[q.jsx(Pr,{strong:!0,onClick:u,style:{cursor:"pointer"},children:i}),o]}):q.jsx("div",{onClick:u,style:{cursor:"pointer",flex:1},children:r})]})};function YJt(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const KJt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,XJt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,QJt={};function Xoe(e,t){return((t||QJt).jsx?XJt:KJt).test(e)}const ZJt=/[ \t\n\f\r]/g;function kC(e){return typeof e=="object"?e.type==="text"?Qoe(e.value):!1:Qoe(e)}function Qoe(e){return e.replace(ZJt,"")===""}let RC=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};RC.prototype.property={};RC.prototype.normal={};RC.prototype.space=null;function GIe(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&ren.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Joe,len);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Joe.test(i)){let o=i.replace(aen,oen);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Zj}return new a(r,t)}function oen(e){return"-"+e.toLowerCase()}function len(e){return e.charAt(1).toUpperCase()}const sen={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},uen=GIe([KIe,YIe,ZIe,JIe,ten],"html"),Jj=GIe([KIe,YIe,ZIe,JIe,nen],"svg");function cen(e){return e.join(" ").trim()}var eOe={},ele=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,den=/\n/g,fen=/^\s*/,pen=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,hen=/^:\s*/,gen=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,men=/^[;\s]*/,ven=/^\s+|\s+$/g,yen=` +`,tle="/",nle="*",Ah="",ben="comment",xen="declaration",Een=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(h){var m=h.match(den);m&&(n+=m.length);var v=h.lastIndexOf(yen);r=~v?h.length-v:r+h.length}function i(){var h={line:n,column:r};return function(m){return m.position=new o(h),u(),m}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(h){var m=new Error(t.source+":"+n+":"+r+": "+h);if(m.reason=h,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function s(h){var m=h.exec(e);if(m){var v=m[0];return a(v),e=e.slice(v.length),m}}function u(){s(fen)}function c(h){var m;for(h=h||[];m=d();)m!==!1&&h.push(m);return h}function d(){var h=i();if(!(tle!=e.charAt(0)||nle!=e.charAt(1))){for(var m=2;Ah!=e.charAt(m)&&(nle!=e.charAt(m)||tle!=e.charAt(m+1));)++m;if(m+=2,Ah===e.charAt(m-1))return l("End of comment missing");var v=e.slice(2,m-2);return r+=2,a(v),e=e.slice(m),r+=2,h({type:ben,comment:v})}}function f(){var h=i(),m=s(pen);if(m){if(d(),!s(hen))return l("property missing ':'");var v=s(gen),y=h({type:xen,property:rle(m[0].replace(ele,Ah)),value:v?rle(v[0].replace(ele,Ah)):Ah});return s(men),y}}function p(){var h=[];c(h);for(var m;m=f();)m!==!1&&(h.push(m),c(h));return h}return u(),p()};function rle(e){return e?e.replace(ven,Ah):Ah}var Sen=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eOe,"__esModule",{value:!0});var Cen=Sen(Een);function wen(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Cen.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,l=i.value;a?t(o,l,i):l&&(n=n||{},n[o]=l)}}),n}var ale=eOe.default=wen;const Ten=ale.default||ale,Aen=Ien("start");function Ien(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Oen(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ile(e.position):"start"in e||"end"in e?ile(e):"line"in e||"column"in e?x8(e):""}function x8(e){return ole(e&&e.line)+":"+ole(e&&e.column)}function ile(e){return x8(e&&e.start)+"-"+x8(e&&e.end)}function ole(e){return e&&typeof e=="number"?e:1}let qo=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=Oen(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};qo.prototype.file="";qo.prototype.name="";qo.prototype.reason="";qo.prototype.message="";qo.prototype.stack="";qo.prototype.column=void 0;qo.prototype.line=void 0;qo.prototype.ancestors=void 0;qo.prototype.cause=void 0;qo.prototype.fatal=void 0;qo.prototype.place=void 0;qo.prototype.ruleId=void 0;qo.prototype.source=void 0;const eU={}.hasOwnProperty,ken=new Map,Ren=/[A-Z]/g,_en=/-([a-z])/g,Nen=new Set(["table","tbody","thead","tfoot","tr"]),Den=new Set(["td","th"]),tOe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Men(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=jen(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Hen(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Jj:uen,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=nOe(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function nOe(e,t,n){if(t.type==="element")return $en(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Len(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Fen(e,t,n);if(t.type==="mdxjsEsm")return Pen(e,t);if(t.type==="root")return Ben(e,t,n);if(t.type==="text")return zen(e,t)}function $en(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Jj,e.schema=a),e.ancestors.push(t);const i=aOe(e,t.tagName,!1),o=Uen(e,t);let l=nU(e,t);return Nen.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!kC(s):!0})),rOe(e,o,i,t),tU(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function Len(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}eS(e,t.position)}function Pen(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eS(e,t.position)}function Fen(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Jj,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:aOe(e,t.name,!0),o=Ven(e,t),l=nU(e,t);return rOe(e,o,i,t),tU(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function Ben(e,t,n){const r={};return tU(r,nU(e,t)),e.create(t,e.Fragment,r,n)}function zen(e,t){return t.value}function rOe(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tU(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Hen(e,t,n){return r;function r(a,i,o,l){const u=Array.isArray(o.children)?n:t;return l?u(i,o,l):u(i,o)}}function jen(e,t){return n;function n(r,a,i,o){const l=Array.isArray(i.children),s=Aen(r);return t(a,i,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Uen(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&eU.call(t.properties,a)){const i=Wen(e,a,t.properties[a]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Den.has(t.tagName)?r=l:n[o]=l}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ven(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else eS(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,i=e.evaluater.evaluateExpression(l.expression)}else eS(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function nU(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:ken;for(;++ra?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Jl(e,e.length,0,t),e):t}const ule={}.hasOwnProperty;function oOe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function _u(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ho=Qp(/[A-Za-z]/),Io=Qp(/[\dA-Za-z]/),ttn=Qp(/[#-'*+\--9=?A-Z^-~]/);function SO(e){return e!==null&&(e<32||e===127)}const E8=Qp(/\d/),ntn=Qp(/[\dA-Fa-f]/),rtn=Qp(/[!-/:-@[-`{-~]/);function fn(e){return e!==null&&e<-2}function Ur(e){return e!==null&&(e<0||e===32)}function Xn(e){return e===-2||e===-1||e===32}const E_=Qp(/\p{P}|\p{S}/u),Ng=Qp(/\s/);function Qp(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function lb(e){const t=[];let n=-1,r=0,a=0;for(;++n55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(o=String.fromCharCode(i,l),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function fr(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return Xn(s)?(e.enter(n),l(s)):t(s)}function l(s){return Xn(s)&&i++o))return;const w=t.events.length;let I=w,T,A;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(T){A=t.events[I][1].end;break}T=!0}for(y(r),C=w;Cx;){const S=n[E];t.containerState=S[1],S[0].exit.call(t,e)}n.length=x}function b(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function stn(e,t,n){return fr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function CO(e){if(e===null||Ur(e)||Ng(e))return 1;if(E_(e))return 2}function S_(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);dle(d,-s),dle(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Os(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Os(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Os(u,S_(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Os(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Os(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Jl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Xn(C)?fr(e,b,"linePrefix",i+1)(C):b(C)}function b(C){return C===null||fn(C)?e.check(fle,m,E)(C):(e.enter("codeFlowValue"),x(C))}function x(C){return C===null||fn(C)?(e.exit("codeFlowValue"),b(C)):(e.consume(C),x)}function E(C){return e.exit("codeFenced"),t(C)}function S(C,w,I){let T=0;return A;function A(L){return C.enter("lineEnding"),C.consume(L),C.exit("lineEnding"),O}function O(L){return C.enter("codeFencedFence"),Xn(L)?fr(C,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):R(L)}function R(L){return L===l?(C.enter("codeFencedFenceSequence"),N(L)):I(L)}function N(L){return L===l?(T++,C.consume(L),N):T>=o?(C.exit("codeFencedFenceSequence"),Xn(L)?fr(C,_,"whitespace")(L):_(L)):I(L)}function _(L){return L===null||fn(L)?(C.exit("codeFencedFence"),w(L)):I(L)}}}function xtn(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const n$={name:"codeIndented",tokenize:Stn},Etn={tokenize:Ctn,partial:!0};function Stn(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),fr(e,i,"linePrefix",4+1)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):fn(u)?e.attempt(Etn,o,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||fn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function Ctn(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):fn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):fr(e,i,"linePrefix",4+1)(o)}function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):fn(o)?a(o):n(o)}}const wtn={name:"codeText",tokenize:Itn,resolve:Ttn,previous:Atn};function Ttn(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function fOe(e,t,n,r,a,i,o,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(y),e.exit(i),f):y===null||y===32||y===41||SO(y)?n(y):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(y))}function f(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(l),f(y)):y===null||y===60||fn(y)?n(y):(e.consume(y),y===92?h:p)}function h(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function m(y){return!c&&(y===null||y===41||Ur(y))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(y)):c999||p===null||p===91||p===93&&!s||p===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):fn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||fn(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!Xn(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function hOe(e,t,n,r,a,i){let o;return l;function l(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):fn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),fr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||fn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function Tx(e,t){let n;return r;function r(a){return fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Xn(a)?fr(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Mtn={name:"definition",tokenize:Ltn},$tn={tokenize:Ptn,partial:!0};function Ltn(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return pOe.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return a=_u(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return Ur(p)?Tx(e,u)(p):u(p)}function u(p){return fOe(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt($tn,d,d)(p)}function d(p){return Xn(p)?fr(e,f,"whitespace")(p):f(p)}function f(p){return p===null||fn(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function Ptn(e,t,n){return r;function r(l){return Ur(l)?Tx(e,a)(l):n(l)}function a(l){return hOe(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return Xn(l)?fr(e,o,"whitespace")(l):o(l)}function o(l){return l===null||fn(l)?t(l):n(l)}}const Ftn={name:"hardBreakEscape",tokenize:Btn};function Btn(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return fn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const ztn={name:"headingAtx",tokenize:jtn,resolve:Htn};function Htn(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Jl(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function jtn(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Ur(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||fn(c)?(e.exit("atxHeading"),t(c)):Xn(c)?fr(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Ur(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const Utn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hle=["pre","script","style","textarea"],Vtn={name:"htmlFlow",tokenize:Ytn,resolveTo:qtn,concrete:!0},Wtn={tokenize:Xtn,partial:!0},Gtn={tokenize:Ktn,partial:!0};function qtn(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ytn(e,t,n){const r=this;let a,i,o,l,s;return u;function u(z){return c(z)}function c(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),d}function d(z){return z===33?(e.consume(z),f):z===47?(e.consume(z),i=!0,m):z===63?(e.consume(z),a=3,r.interrupt?t:F):Ho(z)?(e.consume(z),o=String.fromCharCode(z),v):n(z)}function f(z){return z===45?(e.consume(z),a=2,p):z===91?(e.consume(z),a=5,l=0,h):Ho(z)?(e.consume(z),a=4,r.interrupt?t:F):n(z)}function p(z){return z===45?(e.consume(z),r.interrupt?t:F):n(z)}function h(z){const V="CDATA[";return z===V.charCodeAt(l++)?(e.consume(z),l===V.length?r.interrupt?t:R:h):n(z)}function m(z){return Ho(z)?(e.consume(z),o=String.fromCharCode(z),v):n(z)}function v(z){if(z===null||z===47||z===62||Ur(z)){const V=z===47,G=o.toLowerCase();return!V&&!i&&hle.includes(G)?(a=1,r.interrupt?t(z):R(z)):Utn.includes(o.toLowerCase())?(a=6,V?(e.consume(z),y):r.interrupt?t(z):R(z)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):i?b(z):x(z))}return z===45||Io(z)?(e.consume(z),o+=String.fromCharCode(z),v):n(z)}function y(z){return z===62?(e.consume(z),r.interrupt?t:R):n(z)}function b(z){return Xn(z)?(e.consume(z),b):A(z)}function x(z){return z===47?(e.consume(z),A):z===58||z===95||Ho(z)?(e.consume(z),E):Xn(z)?(e.consume(z),x):A(z)}function E(z){return z===45||z===46||z===58||z===95||Io(z)?(e.consume(z),E):S(z)}function S(z){return z===61?(e.consume(z),C):Xn(z)?(e.consume(z),S):x(z)}function C(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),s=z,w):Xn(z)?(e.consume(z),C):I(z)}function w(z){return z===s?(e.consume(z),s=null,T):z===null||fn(z)?n(z):(e.consume(z),w)}function I(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Ur(z)?S(z):(e.consume(z),I)}function T(z){return z===47||z===62||Xn(z)?x(z):n(z)}function A(z){return z===62?(e.consume(z),O):n(z)}function O(z){return z===null||fn(z)?R(z):Xn(z)?(e.consume(z),O):n(z)}function R(z){return z===45&&a===2?(e.consume(z),$):z===60&&a===1?(e.consume(z),k):z===62&&a===4?(e.consume(z),D):z===63&&a===3?(e.consume(z),F):z===93&&a===5?(e.consume(z),B):fn(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Wtn,j,N)(z)):z===null||fn(z)?(e.exit("htmlFlowData"),N(z)):(e.consume(z),R)}function N(z){return e.check(Gtn,_,j)(z)}function _(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),L}function L(z){return z===null||fn(z)?N(z):(e.enter("htmlFlowData"),R(z))}function $(z){return z===45?(e.consume(z),F):R(z)}function k(z){return z===47?(e.consume(z),o="",P):R(z)}function P(z){if(z===62){const V=o.toLowerCase();return hle.includes(V)?(e.consume(z),D):R(z)}return Ho(z)&&o.length<8?(e.consume(z),o+=String.fromCharCode(z),P):R(z)}function B(z){return z===93?(e.consume(z),F):R(z)}function F(z){return z===62?(e.consume(z),D):z===45&&a===2?(e.consume(z),F):R(z)}function D(z){return z===null||fn(z)?(e.exit("htmlFlowData"),j(z)):(e.consume(z),D)}function j(z){return e.exit("htmlFlow"),t(z)}}function Ktn(e,t,n){const r=this;return a;function a(o){return fn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Xtn(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(_C,t,n)}}const Qtn={name:"htmlText",tokenize:Ztn};function Ztn(e,t,n){const r=this;let a,i,o;return l;function l(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),s}function s(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),S):F===63?(e.consume(F),x):Ho(F)?(e.consume(F),I):n(F)}function u(F){return F===45?(e.consume(F),c):F===91?(e.consume(F),i=0,h):Ho(F)?(e.consume(F),b):n(F)}function c(F){return F===45?(e.consume(F),p):n(F)}function d(F){return F===null?n(F):F===45?(e.consume(F),f):fn(F)?(o=d,k(F)):(e.consume(F),d)}function f(F){return F===45?(e.consume(F),p):d(F)}function p(F){return F===62?$(F):F===45?f(F):d(F)}function h(F){const D="CDATA[";return F===D.charCodeAt(i++)?(e.consume(F),i===D.length?m:h):n(F)}function m(F){return F===null?n(F):F===93?(e.consume(F),v):fn(F)?(o=m,k(F)):(e.consume(F),m)}function v(F){return F===93?(e.consume(F),y):m(F)}function y(F){return F===62?$(F):F===93?(e.consume(F),y):m(F)}function b(F){return F===null||F===62?$(F):fn(F)?(o=b,k(F)):(e.consume(F),b)}function x(F){return F===null?n(F):F===63?(e.consume(F),E):fn(F)?(o=x,k(F)):(e.consume(F),x)}function E(F){return F===62?$(F):x(F)}function S(F){return Ho(F)?(e.consume(F),C):n(F)}function C(F){return F===45||Io(F)?(e.consume(F),C):w(F)}function w(F){return fn(F)?(o=w,k(F)):Xn(F)?(e.consume(F),w):$(F)}function I(F){return F===45||Io(F)?(e.consume(F),I):F===47||F===62||Ur(F)?T(F):n(F)}function T(F){return F===47?(e.consume(F),$):F===58||F===95||Ho(F)?(e.consume(F),A):fn(F)?(o=T,k(F)):Xn(F)?(e.consume(F),T):$(F)}function A(F){return F===45||F===46||F===58||F===95||Io(F)?(e.consume(F),A):O(F)}function O(F){return F===61?(e.consume(F),R):fn(F)?(o=O,k(F)):Xn(F)?(e.consume(F),O):T(F)}function R(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),a=F,N):fn(F)?(o=R,k(F)):Xn(F)?(e.consume(F),R):(e.consume(F),_)}function N(F){return F===a?(e.consume(F),a=void 0,L):F===null?n(F):fn(F)?(o=N,k(F)):(e.consume(F),N)}function _(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||Ur(F)?T(F):(e.consume(F),_)}function L(F){return F===47||F===62||Ur(F)?T(F):n(F)}function $(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):n(F)}function k(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),P}function P(F){return Xn(F)?fr(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):B(F)}function B(F){return e.enter("htmlTextData"),o(F)}}const aU={name:"labelEnd",tokenize:ann,resolveTo:rnn,resolveAll:nnn},Jtn={tokenize:inn},enn={tokenize:onn},tnn={tokenize:lnn};function nnn(e){let t=-1;for(;++t=3&&(u===null||fn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===a?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),Xn(u)?fr(e,l,"whitespace")(u):l(u))}}const tl={name:"list",tokenize:mnn,continuation:{tokenize:vnn},exit:bnn},hnn={tokenize:xnn,partial:!0},gnn={tokenize:ynn,partial:!0};function mnn(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:E8(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(EA,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return E8(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(_C,r.interrupt?n:c,e.attempt(hnn,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return Xn(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function vnn(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_C,a,i);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,fr(e,t,"listItemIndent",r.containerState.size+1)(l)}function i(l){return r.containerState.furtherBlankLines||!Xn(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gnn,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,fr(e,e.attempt(tl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function ynn(e,t,n){const r=this;return fr(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function bnn(e){e.exit(this.containerState.type)}function xnn(e,t,n){const r=this;return fr(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=r.events[r.events.length-1];return!Xn(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const gle={name:"setextUnderline",tokenize:Snn,resolveTo:Enn};function Enn(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function Snn(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Xn(u)?fr(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||fn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Cnn={tokenize:wnn};function wnn(e){const t=this,n=e.attempt(_C,r,e.attempt(this.parser.constructs.flowInitial,a,fr(e,e.attempt(this.parser.constructs.flow,a,e.attempt(ktn,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Tnn={resolveAll:mOe()},Ann=gOe("string"),Inn=gOe("text");function gOe(e){return{tokenize:t,resolveAll:mOe(e==="text"?Onn:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,l);return o;function o(c){return u(c)?i(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=a[c];let f=-1;if(d)for(;++f-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function _nn(e,t){let n=-1;const r=[];let a;for(;++n0){const Ae=Ee.tokenStack[Ee.tokenStack.length-1];(Ae[1]||ble).call(Ee,void 0,Ae[0])}for(Se.position={start:mf(pe.length>0?pe[0][1].start:{line:1,column:1,offset:0}),end:mf(pe.length>0?pe[pe.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function arn(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function irn(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function bOe(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function orn(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bOe(e,t);const a={src:lb(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function lrn(e,t){const n={src:lb(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function srn(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function urn(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return bOe(e,t);const a={href:lb(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function crn(e,t){const n={href:lb(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function drn(e,t,n){const r=e.all(t),a=n?frn(n):xOe(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l1}function prn(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function vrn(e){const t=SOe(e),n=EOe(e);if(t&&n)return{start:t,end:n}}function yrn(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=SOe(t.children[1]),s=EOe(t.children[t.children.length-1]);l&&s&&(o.position={start:l,end:s}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function brn(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(Sle(t.slice(a),a>0,!1)),i.join("")}function Sle(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===xle||i===Ele;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===xle||i===Ele;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function Srn(e,t){const n={type:"text",value:Ern(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Crn(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const wrn={blockquote:Znn,break:Jnn,code:ern,delete:trn,emphasis:nrn,footnoteReference:rrn,heading:arn,html:irn,imageReference:orn,image:lrn,inlineCode:srn,linkReference:urn,link:crn,listItem:drn,list:prn,paragraph:hrn,root:grn,strong:mrn,table:yrn,tableCell:xrn,tableRow:brn,text:Srn,thematicBreak:Crn,toml:lT,yaml:lT,definition:lT,footnoteDefinition:lT};function lT(){}const wOe=-1,C_=0,wO=1,TO=2,iU=3,oU=4,lU=5,sU=6,TOe=7,AOe=8,Cle=typeof self=="object"?self:globalThis,Trn=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case C_:case wOe:return n(o,a);case wO:{const l=n([],a);for(const s of o)l.push(r(s));return l}case TO:{const l=n({},a);for(const[s,u]of o)l[r(s)]=r(u);return l}case iU:return n(new Date(o),a);case oU:{const{source:l,flags:s}=o;return n(new RegExp(l,s),a)}case lU:{const l=n(new Map,a);for(const[s,u]of o)l.set(r(s),r(u));return l}case sU:{const l=n(new Set,a);for(const s of o)l.add(r(s));return l}case TOe:{const{name:l,message:s}=o;return n(new Cle[l](s),a)}case AOe:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new Cle[i](o),a)};return r},wle=e=>Trn(new Map,e)(0),Zm="",{toString:Arn}={},{keys:Irn}=Object,f1=e=>{const t=typeof e;if(t!=="object"||!e)return[C_,t];const n=Arn.call(e).slice(8,-1);switch(n){case"Array":return[wO,Zm];case"Object":return[TO,Zm];case"Date":return[iU,Zm];case"RegExp":return[oU,Zm];case"Map":return[lU,Zm];case"Set":return[sU,Zm]}return n.includes("Array")?[wO,n]:n.includes("Error")?[TOe,n]:[TO,n]},sT=([e,t])=>e===C_&&(t==="function"||t==="symbol"),Orn=(e,t,n,r)=>{const a=(o,l)=>{const s=r.push(o)-1;return n.set(l,s),s},i=o=>{if(n.has(o))return n.get(o);let[l,s]=f1(o);switch(l){case C_:{let c=o;switch(s){case"bigint":l=AOe,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return a([wOe],o)}return a([l,c],o)}case wO:{if(s)return a([s,[...o]],o);const c=[],d=a([l,c],o);for(const f of o)c.push(i(f));return d}case TO:{if(s)switch(s){case"BigInt":return a([s,o.toString()],o);case"Boolean":case"Number":case"String":return a([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=a([l,c],o);for(const f of Irn(o))(e||!sT(f1(o[f])))&&c.push([i(f),i(o[f])]);return d}case iU:return a([l,o.toISOString()],o);case oU:{const{source:c,flags:d}=o;return a([l,{source:c,flags:d}],o)}case lU:{const c=[],d=a([l,c],o);for(const[f,p]of o)(e||!(sT(f1(f))||sT(f1(p))))&&c.push([i(f),i(p)]);return d}case sU:{const c=[],d=a([l,c],o);for(const f of o)(e||!sT(f1(f)))&&c.push(i(f));return d}}const{message:u}=o;return a([l,{name:s,message:u}],o)};return i},Tle=(e,{json:t,lossy:n}={})=>{const r=[];return Orn(!(t||n),!!t,new Map,r)(e),r},Dg=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wle(Tle(e,t)):structuredClone(e):(e,t)=>wle(Tle(e,t));function krn(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Rrn(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _rn(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||krn,r=e.options.footnoteBackLabel||Rrn,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s0&&h.push({type:"text",value:" "});let b=typeof n=="string"?n:n(s,p);typeof b=="string"&&(b={type:"text",value:b}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const b=v.children[v.children.length-1];b&&b.type==="text"?b.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...h)}else c.push(...h);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,y),l.push(y)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Dg(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` +`}]}}const uU=function(e){if(e==null)return $rn;if(typeof e=="function")return w_(e);if(typeof e=="object")return Array.isArray(e)?Nrn(e):Drn(e);if(typeof e=="string")return Mrn(e);throw new Error("Expected function, string, or object as test")};function Nrn(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=IOe,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=Brn(n(s,c)),p[0]===w8))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==Frn)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m0&&n.push({type:"text",value:` +`}),n}function Ale(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ile(e,t){const n=Hrn(e,t),r=n.one(e,void 0),a=_rn(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` +`},a),i}function Grn(e,t){return e&&"run"in e?async function(n,r){const a=Ile(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Ile(n,{file:r,...t||e})}}function Ole(e){if(e)throw e}function A8(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qrn(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...a);function l(s,...u){const c=e[++i];let d=-1;if(s){o(s);return}for(;++do.length;let s;l&&o.push(a);try{s=e.apply(this,o)}catch(u){const c=u;if(l&&n)throw c;return a(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(o,...l){n||(n=!0,t(o,...l))}function i(o){a(null,o)}}let wl=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=Ax(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};wl.prototype.file="";wl.prototype.name="";wl.prototype.reason="";wl.prototype.message="";wl.prototype.stack="";wl.prototype.column=void 0;wl.prototype.line=void 0;wl.prototype.ancestors=void 0;wl.prototype.cause=void 0;wl.prototype.fatal=void 0;wl.prototype.place=void 0;wl.prototype.ruleId=void 0;wl.prototype.source=void 0;const cc={basename:Krn,dirname:Xrn,extname:Qrn,join:Zrn,sep:"/"};function Krn(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');DC(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Xrn(e){if(DC(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Qrn(e){DC(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Zrn(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ean(e,t){let n="",r=0,a=-1,i=0,o=-1,l,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return n}function DC(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tan={cwd:nan};function nan(){return"/"}function I8(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ran(e){if(typeof e=="string")e=new URL(e);else if(!I8(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return aan(e)}function aan(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...h]=c;const m=r[f][1];A8(m)&&A8(p)&&(p=Gv(!0,m,p)),r[f]=[u,p,...h]}}}};const uan=new san().freeze();function l$(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function s$(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function u$(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rle(e){if(!A8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _le(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function uT(e){return can(e)?e:new kOe(e)}function can(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dan(e){return typeof e=="string"||fan(e)}function fan(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pan="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nle=[],Dle={allowDangerousHtml:!0},han=/^(https?|ircs?|mailto|xmpp)$/i,gan=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function man(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,l=e.rehypePlugins||Nle,s=e.remarkPlugins||Nle,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Dle}:Dle,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||van,p=uan().use(Qnn).use(s).use(Grn,u).use(l),h=new kOe;typeof r=="string"&&(h.value=r);for(const b of gan)Object.hasOwn(e,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+pan+b.id,void 0);const m=p.parse(h);let v=p.runSync(m,h);return a&&(v={type:"element",tagName:"div",properties:{className:a},children:v.type==="root"?v.children:[v]}),NC(v,y),Men(v,{Fragment:q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:q.jsx,jsxs:q.jsxs,passKeys:!0,passNode:!0});function y(b,x,E){if(b.type==="raw"&&E&&typeof x=="number")return c?E.children.splice(x,1):E.children[x]={type:"text",value:b.value},x;if(b.type==="element"){let S;for(S in t$)if(Object.hasOwn(t$,S)&&Object.hasOwn(b.properties,S)){const C=b.properties[S],w=t$[S];(w===null||w.includes(b.tagName))&&(b.properties[S]=f(String(C||""),S,b))}}if(b.type==="element"){let S=t?!t.includes(b.tagName):o?o.includes(b.tagName):!1;if(!S&&n&&typeof x=="number"&&(S=!n(b,x,E)),S&&E&&typeof x=="number")return d&&b.children?E.children.splice(x,1,...b.children):E.children.splice(x,1),x}}}function van(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||han.test(e.slice(0,t))?e:""}function Mle(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function yan(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ban(e,t,n){const a=uU((n||{}).ignore||[]),i=xan(t);let o=-1;for(;++o0?{type:"text",value:C}:void 0),C===!1?f.lastIndex=E+1:(h!==E&&b.push({type:"text",value:u.value.slice(h,E)}),Array.isArray(C)?b.push(...C):C&&b.push(C),h=E+x[0].length,y=!0),!f.global)break;x=f.exec(u.value)}return y?(h?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Mle(e,"(");let i=Mle(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function _Oe(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ng(n)||E_(n))&&(!t||n!==47)}NOe.peek=Wan;function $an(){return{enter:{gfmFootnoteDefinition:Pan,gfmFootnoteDefinitionLabelString:Fan,gfmFootnoteCall:Han,gfmFootnoteCallString:jan},exit:{gfmFootnoteDefinition:zan,gfmFootnoteDefinitionLabelString:Ban,gfmFootnoteCall:Van,gfmFootnoteCallString:Uan}}}function Lan(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Gan,footnoteReference:NOe}}}function Pan(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fan(){this.buffer()}function Ban(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=_u(this.sliceSerialize(e)).toLowerCase()}function zan(e){this.exit(e)}function Han(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function jan(){this.buffer()}function Uan(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=_u(this.sliceSerialize(e)).toLowerCase()}function Van(e){this.exit(e)}function NOe(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),l(),o(),i+=a.move("]"),i}function Wan(){return"["}function Gan(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteDefinition"),l=n.enter("label");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),l(),i+=a.move("]:"+(e.children&&e.children.length>0?" ":"")),a.shift(4),i+=a.move(n.indentLines(n.containerFlow(e,a.current()),qan)),o(),i}function qan(e,t,n){return t===0?e:(n?"":" ")+e}const Yan=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];DOe.peek=Jan;function Kan(){return{canContainEols:["delete"],enter:{strikethrough:Qan},exit:{strikethrough:Zan}}}function Xan(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yan}],handlers:{delete:DOe}}}function Qan(e){this.enter({type:"delete",children:[]},e)}function Zan(e){this.exit(e)}function DOe(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function Jan(){return"~"}function ein(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||nin,a=[],i=[],o=[],l=[];let s=0,u=-1;for(;++us&&(s=e[u].length);++vl[v])&&(l[v]=b)}h.push(y)}i[u]=h,o[u]=m}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cl[c]&&(l[c]=y),f[c]=y),d[c]=b}i.splice(1,0,d),o.splice(1,0,f),u=-1;const p=[];for(;++u "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),ain);return a(),o}function ain(e,t,n){return">"+(n?"":" ")+e}function iin(e,t){return Lle(e,t.inConstruct,!0)&&!Lle(e,t.notInConstruct,!1)}function Lle(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}function lin(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function sin(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function uin(e,t,n,r){const a=sin(n),i=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(lin(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(i,cin);return d(),f}const l=n.createTracker(r),s=a.repeat(Math.max(oin(i,a)+1,3)),u=n.enter("codeFenced");let c=l.move(s);if(e.lang){const d=n.enter(`codeFencedLang${o}`);c+=l.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${o}`);c+=l.move(" "),c+=l.move(n.safe(e.meta,{before:c,after:` +`,encode:["`"],...l.current()})),d()}return c+=l.move(` +`),i&&(c+=l.move(i+` +`)),c+=l.move(s),u(),c}function cin(e,t,n){return(n?"":" ")+e}function cU(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function din(e,t,n,r){const a=cU(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const s=n.createTracker(r);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(n.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),o(),u}function fin(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}MOe.peek=pin;function MOe(e,t,n,r){const a=fin(n),i=n.enter("emphasis"),o=n.createTracker(r);let l=o.move(a);return l+=o.move(n.containerPhrasing(e,{before:l,after:a,...o.current()})),l+=o.move(a),i(),l}function pin(e,t,n){return n.options.emphasis||"*"}function hin(e,t){let n=!1;return NC(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,w8}),!!((!e.depth||e.depth<3)&&rU(e)&&(t.options.setext||n))}function gin(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(hin(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...i.current(),before:` +`,after:` +`});return d(),c(),f+` +`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(` +`))+1))}const o="#".repeat(a),l=n.enter("headingAtx"),s=n.enter("phrasing");i.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:` +`,...i.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),l(),u}$Oe.peek=min;function $Oe(e){return e.value||""}function min(){return"<"}LOe.peek=vin;function LOe(e,t,n,r){const a=cU(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(n.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function vin(){return"!"}POe.peek=yin;function POe(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let s=l.move("![");const u=n.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return o(),n.stack=c,i(),a==="full"||!u||u!==d?s+=l.move(d+"]"):a==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function yin(){return"!"}FOe.peek=bin;function FOe(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i\u007F]/.test(e.url))}zOe.peek=xin;function zOe(e,t,n,r){const a=cU(n),i=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,s;if(BOe(e,n)){const c=n.stack;n.stack=[],l=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),l(),n.stack=c,d}l=n.enter("link"),s=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=o.move(" "+a),u+=o.move(n.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),s()),u+=o.move(")"),l(),u}function xin(e,t,n){return BOe(e,n)?"<":"["}HOe.peek=Ein;function HOe(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let s=l.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return o(),n.stack=c,i(),a==="full"||!u||u!==d?s+=l.move(d+"]"):a==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function Ein(){return"["}function dU(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Sin(e){const t=dU(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Cin(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function jOe(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function win(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?Cin(n):dU(n);const l=e.ordered?o==="."?")":".":Sin(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),jOe(n)===o&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(i+" ".repeat(o-i.length)),l.shift(o);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),c);return s(),u;function c(d,f,p){return f?(p?"":" ".repeat(o))+d:(p?i:i+" ".repeat(o-i.length))+d}}function Iin(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o}const UOe=function(e){if(e==null)return _in;if(typeof e=="function")return T_(e);if(typeof e=="object")return Array.isArray(e)?Oin(e):kin(e);if(typeof e=="string")return Rin(e);throw new Error("Expected function, string, or object as test")};function Oin(e){const t=[];let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const con={tokenize:yon,partial:!0};function don(){return{document:{91:{tokenize:gon,continuation:{tokenize:mon},exit:von}},text:{91:{tokenize:hon},93:{add:"after",tokenize:fon,resolveTo:pon}}}}function fon(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const s=r.events[a][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!o||!o._balanced)return n(s);const u=_u(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function pon(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function hon(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(i>999||d===93&&!o||d===null||d===91||Ur(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(_u(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ur(d)||(o=!0),i++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),i++,u):u(d)}}function gon(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,l;return s;function s(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(o>999||h===93&&!l||h===null||h===91||Ur(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return i=_u(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ur(h)||(l=!0),o++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a.includes(i)||a.push(i),fr(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function mon(e,t,n){return e.check(_C,t,e.attempt(con,t,n))}function von(e){e.exit("gfmFootnoteDefinition")}function yon(e,t,n){const r=this;return fr(e,a,"gfmFootnoteDefinitionIndent",4+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function bon(e){let n=(e||{}).singleTilde;const r={tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,l){let s=-1;for(;++s1?s(h):(o.consume(h),d++,p);if(d<2&&!n)return s(h);const v=o.exit("strikethroughSequenceTemporary"),y=CO(h);return v._open=!y||y===2&&!!m,v._close=!m||m===2&&!!y,l(h)}}}class xon{constructor(){this.map=[]}add(t,n,r){Eon(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let a=r.pop();for(;a;)t.push(...a),a=r.pop();this.map.length=0}}function Eon(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a-1;){const _=r.events[O][1].type;if(_==="lineEnding"||_==="linePrefix")O--;else break}const R=O>-1?r.events[O][1].type:null,N=R==="tableHead"||R==="tableRow"?C:s;return N===C&&r.parser.lazy[r.now().line]?n(A):N(A)}function s(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(o=!0,i+=1),c(A)}function c(A){return A===null?n(A):fn(A)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):Xn(A)?fr(e,c,"whitespace")(A):(i+=1,o&&(o=!1,a+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),d(A)))}function d(A){return A===null||A===124||Ur(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?f:d)}function f(A){return A===92||A===124?(e.consume(A),d):d(A)}function p(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),o=!1,Xn(A)?fr(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):h(A))}function h(A){return A===45||A===58?v(A):A===124?(o=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),m):S(A)}function m(A){return Xn(A)?fr(e,v,"whitespace")(A):v(A)}function v(A){return A===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),y):A===45?(i+=1,y(A)):A===null||fn(A)?E(A):S(A)}function y(A){return A===45?(e.enter("tableDelimiterFiller"),b(A)):S(A)}function b(A){return A===45?(e.consume(A),b):A===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(A))}function x(A){return Xn(A)?fr(e,E,"whitespace")(A):E(A)}function E(A){return A===124?h(A):A===null||fn(A)?!o||a!==i?S(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):S(A)}function S(A){return n(A)}function C(A){return e.enter("tableRow"),w(A)}function w(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),w):A===null||fn(A)?(e.exit("tableRow"),t(A)):Xn(A)?fr(e,w,"whitespace")(A):(e.enter("data"),I(A))}function I(A){return A===null||A===124||Ur(A)?(e.exit("data"),w(A)):(e.consume(A),A===92?T:I)}function T(A){return A===92||A===124?(e.consume(A),I):I(A)}}function Ton(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],l=!1,s=0,u,c,d;const f=new xon;for(;++nn[2]+1){const h=n[2]+1,m=n[3]-n[2]-1;e.add(h,m,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},sv(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function zle(e,t,n,r,a){const i=[],o=sv(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function sv(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Aon={tokenize:Oon};function Ion(){return{text:{91:Aon}}}function Oon(e,t,n){const r=this;return a;function a(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),i)}function i(s){return Ur(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(s)}function l(s){return fn(s)?t(s):Xn(s)?e.check({tokenize:kon},t,n)(s):n(s)}}function kon(e,t,n){return fr(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function Ron(e){return oOe([ton(),don(),bon(e),Con(),Ion()])}const _on={};function Non(e){const t=this,n=e||_on,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(Ron(n)),i.push(Qin()),o.push(Zin(n))}let MC=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};MC.prototype.property={};MC.prototype.normal={};MC.prototype.space=null;function eke(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&Pon.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(jle,Hon);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!jle.test(i)){let o=i.replace(Fon,zon);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=pU}return new a(r,t)}function zon(e){return"-"+e.toLowerCase()}function Hon(e){return e.charAt(1).toUpperCase()}const jon=eke([rke,nke,oke,lke,$on],"html"),Uon=eke([rke,nke,oke,lke,Lon],"svg");function Ule(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}const Vle=/[#.]/g;function Von(e,t){const n=e||"",r={};let a=0,i,o;for(;a4&&n.slice(0,4)==="data"&&rln.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Yle,lln);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Yle.test(i)){let o=i.replace(aln,oln);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=hU}return new a(r,t)}function oln(e){return"-"+e.toLowerCase()}function lln(e){return e.charAt(1).toUpperCase()}const vke=uke([fke,dke,gke,mke,tln],"html"),yke=uke([fke,dke,gke,mke,nln],"svg"),m$=/\r?\n|\r/g;function sln(e){const t=String(e),n=[];for(m$.lastIndex=0;m$.test(t);)n.push(m$.lastIndex);return n.push(t.length+1),{toPoint:r,toOffset:a};function r(i){let o=-1;if(typeof i=="number"&&i>-1&&ii)return{line:o+1,column:i-(o>0?n[o-1]:0)+1,offset:i}}}function a(i){const o=i&&i.line,l=i&&i.column;if(typeof o=="number"&&typeof l=="number"&&!Number.isNaN(o)&&!Number.isNaN(l)&&o-1 in n){const s=(n[o-2]||0)+l-1||0;if(s>-1&&s4&&n.slice(0,4)==="data"&&vln.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Qle,Eln);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Qle.test(i)){let o=i.replace(yln,xln);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=mU}return new a(r,t)}function xln(e){return"-"+e.toLowerCase()}function Eln(e){return e.charAt(1).toUpperCase()}const Sln=Ske([Tke,wke,Oke,kke,gln],"html"),Rke=Ske([Tke,wke,Oke,kke,mln],"svg");function Cln(e){return e.join(" ").trim()}const Zle={}.hasOwnProperty;function wln(e,t){const n=t||{};function r(a,...i){let o=r.invalid;const l=r.handlers;if(a&&Zle.call(a,e)){const s=String(a[e]);o=Zle.call(l,s)?l[s]:r.unknown}if(o)return o.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Tln={},Aln={}.hasOwnProperty,_ke=wln("type",{handlers:{root:Oln,element:Dln,text:_ln,comment:Nln,doctype:Rln}});function Iln(e,t){const r=(t||Tln).space;return _ke(e,r==="svg"?Rke:Sln)}function Oln(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=vU(e.children,n,t),db(e,n),n}function kln(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=vU(e.children,n,t),db(e,n),n}function Rln(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return db(e,t),t}function _ln(e){const t={nodeName:"#text",value:e.value,parentNode:null};return db(e,t),t}function Nln(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return db(e,t),t}function Dln(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Rke);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Aln.call(e.properties,i)){const s=Mln(r,i,e.properties[i]);s&&a.push(s)}}const o=r.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Uh[o],childNodes:[],parentNode:null};return l.childNodes=vU(e.children,l,r),db(e,l),e.tagName==="template"&&e.content&&(l.content=kln(e.content,r)),l}function Mln(e,t,n){const r=bln(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?fln(n):Cln(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Uh[r.space]}return a}function vU(e,t,n){let r=-1;const a=[];if(e)for(;++r=55296&&e<=57343}function Lln(e){return e>=56320&&e<=57343}function Pln(e,t){return(e-55296)*1024+9216+t}function Mke(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function $ke(e){return e>=64976&&e<=65007||$ln.has(e)}var qe;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(qe=qe||(qe={}));const Fln=65536;class Bln{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Fln,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:n,col:r,offset:a}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:a,endOffset:a}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Lln(n))return this.pos++,this._addGap(),Pln(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,he.EOF;return this._err(qe.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,he.EOF;const r=this.html.charCodeAt(n);return r===he.CARRIAGE_RETURN?he.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,he.EOF;let t=this.html.charCodeAt(this.pos);return t===he.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,he.LINE_FEED):t===he.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Dke(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===he.LINE_FEED||t===he.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Mke(t)?this._err(qe.controlCharacterInInputStream):$ke(t)&&this._err(qe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const xf=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),zln=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var y$;const Hln=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),jln=(y$=String.fromCodePoint)!==null&&y$!==void 0?y$:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Uln(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Hln.get(e))!==null&&t!==void 0?t:e}var Hi;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Hi||(Hi={}));const Vln=32;var xc;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(xc||(xc={}));function L8(e){return e>=Hi.ZERO&&e<=Hi.NINE}function Wln(e){return e>=Hi.UPPER_A&&e<=Hi.UPPER_F||e>=Hi.LOWER_A&&e<=Hi.LOWER_F}function Gln(e){return e>=Hi.UPPER_A&&e<=Hi.UPPER_Z||e>=Hi.LOWER_A&&e<=Hi.LOWER_Z||L8(e)}function qln(e){return e===Hi.EQUALS||Gln(e)}var _i;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(_i||(_i={}));var Ih;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ih||(Ih={}));class Yln{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=_i.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ih.Strict}startEntity(t){this.decodeMode=t,this.state=_i.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case _i.EntityStart:return t.charCodeAt(n)===Hi.NUM?(this.state=_i.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=_i.NamedEntity,this.stateNamedEntity(t,n));case _i.NumericStart:return this.stateNumericStart(t,n);case _i.NumericDecimal:return this.stateNumericDecimal(t,n);case _i.NumericHex:return this.stateNumericHex(t,n);case _i.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Vln)===Hi.LOWER_X?(this.state=_i.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=_i.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,i!==0){if(o===Hi.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ih.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&xc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~xc.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case _i.NamedEntity:return this.result!==0&&(this.decodeMode!==Ih.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _i.NumericDecimal:return this.emitNumericEntity(0,2);case _i.NumericHex:return this.emitNumericEntity(0,3);case _i.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _i.EntityStart:return 0}}}function Pke(e){let t="";const n=new Yln(e,r=>t+=jln(r));return function(a,i){let o=0,l=0;for(;(l=a.indexOf("&",l))>=0;){t+=a.slice(o,l),n.startEntity(i);const u=n.write(a,l+1);if(u<0){o=l+n.end();break}o=l+u,l=u===0?o+1:o}const s=t+a.slice(o);return t="",s}}function Fke(e,t,n,r){const a=(t&xc.BRANCH_LENGTH)>>7,i=t&xc.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const s=r-i;return s<0||s>=a?-1:e[n+s]-1}let o=n,l=o+a-1;for(;o<=l;){const s=o+l>>>1,u=e[s];if(ur)l=s-1;else return e[s+a]}return-1}Pke(xf);Pke(zln);var nt;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(nt=nt||(nt={}));var hp;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(hp=hp||(hp={}));var Ul;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ul=Ul||(Ul={}));var ze;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ze=ze||(ze={}));var H;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(H=H||(H={}));const Kln=new Map([[ze.A,H.A],[ze.ADDRESS,H.ADDRESS],[ze.ANNOTATION_XML,H.ANNOTATION_XML],[ze.APPLET,H.APPLET],[ze.AREA,H.AREA],[ze.ARTICLE,H.ARTICLE],[ze.ASIDE,H.ASIDE],[ze.B,H.B],[ze.BASE,H.BASE],[ze.BASEFONT,H.BASEFONT],[ze.BGSOUND,H.BGSOUND],[ze.BIG,H.BIG],[ze.BLOCKQUOTE,H.BLOCKQUOTE],[ze.BODY,H.BODY],[ze.BR,H.BR],[ze.BUTTON,H.BUTTON],[ze.CAPTION,H.CAPTION],[ze.CENTER,H.CENTER],[ze.CODE,H.CODE],[ze.COL,H.COL],[ze.COLGROUP,H.COLGROUP],[ze.DD,H.DD],[ze.DESC,H.DESC],[ze.DETAILS,H.DETAILS],[ze.DIALOG,H.DIALOG],[ze.DIR,H.DIR],[ze.DIV,H.DIV],[ze.DL,H.DL],[ze.DT,H.DT],[ze.EM,H.EM],[ze.EMBED,H.EMBED],[ze.FIELDSET,H.FIELDSET],[ze.FIGCAPTION,H.FIGCAPTION],[ze.FIGURE,H.FIGURE],[ze.FONT,H.FONT],[ze.FOOTER,H.FOOTER],[ze.FOREIGN_OBJECT,H.FOREIGN_OBJECT],[ze.FORM,H.FORM],[ze.FRAME,H.FRAME],[ze.FRAMESET,H.FRAMESET],[ze.H1,H.H1],[ze.H2,H.H2],[ze.H3,H.H3],[ze.H4,H.H4],[ze.H5,H.H5],[ze.H6,H.H6],[ze.HEAD,H.HEAD],[ze.HEADER,H.HEADER],[ze.HGROUP,H.HGROUP],[ze.HR,H.HR],[ze.HTML,H.HTML],[ze.I,H.I],[ze.IMG,H.IMG],[ze.IMAGE,H.IMAGE],[ze.INPUT,H.INPUT],[ze.IFRAME,H.IFRAME],[ze.KEYGEN,H.KEYGEN],[ze.LABEL,H.LABEL],[ze.LI,H.LI],[ze.LINK,H.LINK],[ze.LISTING,H.LISTING],[ze.MAIN,H.MAIN],[ze.MALIGNMARK,H.MALIGNMARK],[ze.MARQUEE,H.MARQUEE],[ze.MATH,H.MATH],[ze.MENU,H.MENU],[ze.META,H.META],[ze.MGLYPH,H.MGLYPH],[ze.MI,H.MI],[ze.MO,H.MO],[ze.MN,H.MN],[ze.MS,H.MS],[ze.MTEXT,H.MTEXT],[ze.NAV,H.NAV],[ze.NOBR,H.NOBR],[ze.NOFRAMES,H.NOFRAMES],[ze.NOEMBED,H.NOEMBED],[ze.NOSCRIPT,H.NOSCRIPT],[ze.OBJECT,H.OBJECT],[ze.OL,H.OL],[ze.OPTGROUP,H.OPTGROUP],[ze.OPTION,H.OPTION],[ze.P,H.P],[ze.PARAM,H.PARAM],[ze.PLAINTEXT,H.PLAINTEXT],[ze.PRE,H.PRE],[ze.RB,H.RB],[ze.RP,H.RP],[ze.RT,H.RT],[ze.RTC,H.RTC],[ze.RUBY,H.RUBY],[ze.S,H.S],[ze.SCRIPT,H.SCRIPT],[ze.SECTION,H.SECTION],[ze.SELECT,H.SELECT],[ze.SOURCE,H.SOURCE],[ze.SMALL,H.SMALL],[ze.SPAN,H.SPAN],[ze.STRIKE,H.STRIKE],[ze.STRONG,H.STRONG],[ze.STYLE,H.STYLE],[ze.SUB,H.SUB],[ze.SUMMARY,H.SUMMARY],[ze.SUP,H.SUP],[ze.TABLE,H.TABLE],[ze.TBODY,H.TBODY],[ze.TEMPLATE,H.TEMPLATE],[ze.TEXTAREA,H.TEXTAREA],[ze.TFOOT,H.TFOOT],[ze.TD,H.TD],[ze.TH,H.TH],[ze.THEAD,H.THEAD],[ze.TITLE,H.TITLE],[ze.TR,H.TR],[ze.TRACK,H.TRACK],[ze.TT,H.TT],[ze.U,H.U],[ze.UL,H.UL],[ze.SVG,H.SVG],[ze.VAR,H.VAR],[ze.WBR,H.WBR],[ze.XMP,H.XMP]]);function fb(e){var t;return(t=Kln.get(e))!==null&&t!==void 0?t:H.UNKNOWN}const pt=H,Xln={[nt.HTML]:new Set([pt.ADDRESS,pt.APPLET,pt.AREA,pt.ARTICLE,pt.ASIDE,pt.BASE,pt.BASEFONT,pt.BGSOUND,pt.BLOCKQUOTE,pt.BODY,pt.BR,pt.BUTTON,pt.CAPTION,pt.CENTER,pt.COL,pt.COLGROUP,pt.DD,pt.DETAILS,pt.DIR,pt.DIV,pt.DL,pt.DT,pt.EMBED,pt.FIELDSET,pt.FIGCAPTION,pt.FIGURE,pt.FOOTER,pt.FORM,pt.FRAME,pt.FRAMESET,pt.H1,pt.H2,pt.H3,pt.H4,pt.H5,pt.H6,pt.HEAD,pt.HEADER,pt.HGROUP,pt.HR,pt.HTML,pt.IFRAME,pt.IMG,pt.INPUT,pt.LI,pt.LINK,pt.LISTING,pt.MAIN,pt.MARQUEE,pt.MENU,pt.META,pt.NAV,pt.NOEMBED,pt.NOFRAMES,pt.NOSCRIPT,pt.OBJECT,pt.OL,pt.P,pt.PARAM,pt.PLAINTEXT,pt.PRE,pt.SCRIPT,pt.SECTION,pt.SELECT,pt.SOURCE,pt.STYLE,pt.SUMMARY,pt.TABLE,pt.TBODY,pt.TD,pt.TEMPLATE,pt.TEXTAREA,pt.TFOOT,pt.TH,pt.THEAD,pt.TITLE,pt.TR,pt.TRACK,pt.UL,pt.WBR,pt.XMP]),[nt.MATHML]:new Set([pt.MI,pt.MO,pt.MN,pt.MS,pt.MTEXT,pt.ANNOTATION_XML]),[nt.SVG]:new Set([pt.TITLE,pt.FOREIGN_OBJECT,pt.DESC]),[nt.XLINK]:new Set,[nt.XML]:new Set,[nt.XMLNS]:new Set};function Bke(e){return e===pt.H1||e===pt.H2||e===pt.H3||e===pt.H4||e===pt.H5||e===pt.H6}ze.STYLE,ze.SCRIPT,ze.XMP,ze.IFRAME,ze.NOEMBED,ze.NOFRAMES,ze.PLAINTEXT;const Qln=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var be;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(be||(be={}));const Va={DATA:be.DATA,RCDATA:be.RCDATA,RAWTEXT:be.RAWTEXT,SCRIPT_DATA:be.SCRIPT_DATA,PLAINTEXT:be.PLAINTEXT,CDATA_SECTION:be.CDATA_SECTION};function Ix(e){return e>=he.DIGIT_0&&e<=he.DIGIT_9}function B1(e){return e>=he.LATIN_CAPITAL_A&&e<=he.LATIN_CAPITAL_Z}function Zln(e){return e>=he.LATIN_SMALL_A&&e<=he.LATIN_SMALL_Z}function Ef(e){return Zln(e)||B1(e)}function P8(e){return Ef(e)||Ix(e)}function zke(e){return e>=he.LATIN_CAPITAL_A&&e<=he.LATIN_CAPITAL_F}function Hke(e){return e>=he.LATIN_SMALL_A&&e<=he.LATIN_SMALL_F}function Jln(e){return Ix(e)||zke(e)||Hke(e)}function dT(e){return e+32}function jke(e){return e===he.SPACE||e===he.LINE_FEED||e===he.TABULATION||e===he.FORM_FEED}function esn(e){return e===he.EQUALS_SIGN||P8(e)}function Jle(e){return jke(e)||e===he.SOLIDUS||e===he.GREATER_THAN_SIGN}class tsn{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=be.DATA,this.returnState=be.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Bln(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(qe.endTagWithAttributes),t.selfClosing&&this._err(qe.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Vn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Vn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Vn.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Vn.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=jke(t)?Vn.WHITESPACE_CHARACTER:t===he.NULL?Vn.NULL_CHARACTER:Vn.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Vn.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,a=!1;for(let i=0,o=xf[0];i>=0&&(i=Fke(xf,o,i+1,t),!(i<0));t=this._consume()){r+=1,o=xf[i];const l=o&xc.VALUE_LENGTH;if(l){const s=(l>>14)-1;if(t!==he.SEMICOLON&&this._isCharacterReferenceInAttribute()&&esn(this.preprocessor.peek(1))?(n=[he.AMPERSAND],i+=s):(n=s===0?[xf[i]&~xc.VALUE_LENGTH]:s===1?[xf[++i]]:[xf[++i],xf[++i]],r=0,a=t!==he.SEMICOLON),s===0){this._consume();break}}}return this._unconsume(r),a&&!this.preprocessor.endOfChunkHit&&this._err(qe.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===be.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===be.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===be.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case be.DATA:{this._stateData(t);break}case be.RCDATA:{this._stateRcdata(t);break}case be.RAWTEXT:{this._stateRawtext(t);break}case be.SCRIPT_DATA:{this._stateScriptData(t);break}case be.PLAINTEXT:{this._statePlaintext(t);break}case be.TAG_OPEN:{this._stateTagOpen(t);break}case be.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case be.TAG_NAME:{this._stateTagName(t);break}case be.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case be.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case be.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case be.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case be.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case be.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case be.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case be.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case be.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case be.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case be.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case be.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case be.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case be.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case be.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case be.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case be.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case be.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case be.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case be.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case be.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case be.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case be.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case be.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case be.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case be.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case be.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case be.BOGUS_COMMENT:{this._stateBogusComment(t);break}case be.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case be.COMMENT_START:{this._stateCommentStart(t);break}case be.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case be.COMMENT:{this._stateComment(t);break}case be.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case be.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case be.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case be.COMMENT_END:{this._stateCommentEnd(t);break}case be.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case be.DOCTYPE:{this._stateDoctype(t);break}case be.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case be.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case be.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case be.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case be.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case be.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case be.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case be.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case be.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case be.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case be.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case be.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case be.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case be.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case be.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case be.CDATA_SECTION:{this._stateCdataSection(t);break}case be.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case be.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case be.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case be.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case be.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case be.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case be.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case be.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case be.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case be.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case he.LESS_THAN_SIGN:{this.state=be.TAG_OPEN;break}case he.AMPERSAND:{this.returnState=be.DATA,this.state=be.CHARACTER_REFERENCE;break}case he.NULL:{this._err(qe.unexpectedNullCharacter),this._emitCodePoint(t);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case he.AMPERSAND:{this.returnState=be.RCDATA,this.state=be.CHARACTER_REFERENCE;break}case he.LESS_THAN_SIGN:{this.state=be.RCDATA_LESS_THAN_SIGN;break}case he.NULL:{this._err(qe.unexpectedNullCharacter),this._emitChars(va);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case he.LESS_THAN_SIGN:{this.state=be.RAWTEXT_LESS_THAN_SIGN;break}case he.NULL:{this._err(qe.unexpectedNullCharacter),this._emitChars(va);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case he.LESS_THAN_SIGN:{this.state=be.SCRIPT_DATA_LESS_THAN_SIGN;break}case he.NULL:{this._err(qe.unexpectedNullCharacter),this._emitChars(va);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case he.NULL:{this._err(qe.unexpectedNullCharacter),this._emitChars(va);break}case he.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ef(t))this._createStartTagToken(),this.state=be.TAG_NAME,this._stateTagName(t);else switch(t){case he.EXCLAMATION_MARK:{this.state=be.MARKUP_DECLARATION_OPEN;break}case he.SOLIDUS:{this.state=be.END_TAG_OPEN;break}case he.QUESTION_MARK:{this._err(qe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=be.BOGUS_COMMENT,this._stateBogusComment(t);break}case he.EOF:{this._err(qe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(qe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=be.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ef(t))this._createEndTagToken(),this.state=be.TAG_NAME,this._stateTagName(t);else switch(t){case he.GREATER_THAN_SIGN:{this._err(qe.missingEndTagName),this.state=be.DATA;break}case he.EOF:{this._err(qe.eofBeforeTagName),this._emitChars("");break}case he.NULL:{this._err(qe.unexpectedNullCharacter),this.state=be.SCRIPT_DATA_ESCAPED,this._emitChars(va);break}case he.EOF:{this._err(qe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=be.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===he.SOLIDUS?this.state=be.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ef(t)?(this._emitChars("<"),this.state=be.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=be.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ef(t)?(this.state=be.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case he.NULL:{this._err(qe.unexpectedNullCharacter),this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(va);break}case he.EOF:{this._err(qe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===he.SOLIDUS?(this.state=be.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=be.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Zo.SCRIPT,!1)&&Jle(this.preprocessor.peek(Zo.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(qe.characterReferenceOutsideUnicodeRange),this.charRefCode=he.REPLACEMENT_CHARACTER;else if(Dke(this.charRefCode))this._err(qe.surrogateCharacterReference),this.charRefCode=he.REPLACEMENT_CHARACTER;else if($ke(this.charRefCode))this._err(qe.noncharacterCharacterReference);else if(Mke(this.charRefCode)||this.charRefCode===he.CARRIAGE_RETURN){this._err(qe.controlCharacterReference);const n=Qln.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Uke=new Set([H.DD,H.DT,H.LI,H.OPTGROUP,H.OPTION,H.P,H.RB,H.RP,H.RT,H.RTC]),ese=new Set([...Uke,H.CAPTION,H.COLGROUP,H.TBODY,H.TD,H.TFOOT,H.TH,H.THEAD,H.TR]),fT=new Map([[H.APPLET,nt.HTML],[H.CAPTION,nt.HTML],[H.HTML,nt.HTML],[H.MARQUEE,nt.HTML],[H.OBJECT,nt.HTML],[H.TABLE,nt.HTML],[H.TD,nt.HTML],[H.TEMPLATE,nt.HTML],[H.TH,nt.HTML],[H.ANNOTATION_XML,nt.MATHML],[H.MI,nt.MATHML],[H.MN,nt.MATHML],[H.MO,nt.MATHML],[H.MS,nt.MATHML],[H.MTEXT,nt.MATHML],[H.DESC,nt.SVG],[H.FOREIGN_OBJECT,nt.SVG],[H.TITLE,nt.SVG]]),nsn=[H.H1,H.H2,H.H3,H.H4,H.H5,H.H6],rsn=[H.TR,H.TEMPLATE,H.HTML],asn=[H.TBODY,H.TFOOT,H.THEAD,H.TEMPLATE,H.HTML],isn=[H.TABLE,H.TEMPLATE,H.HTML],osn=[H.TD,H.TH];class lsn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=H.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===H.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===nt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==nt.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(isn,nt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(asn,nt.HTML)}clearBackToTableRowContext(){this.clearBackTo(rsn,nt.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===H.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===H.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&a===nt.HTML)return!0;if(fT.get(r)===a)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(Bke(n)&&r===nt.HTML)return!0;if(fT.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&a===nt.HTML)return!0;if((r===H.UL||r===H.OL)&&a===nt.HTML||fT.get(r)===a)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],a=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&a===nt.HTML)return!0;if(r===H.BUTTON&&a===nt.HTML||fT.get(r)===a)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===nt.HTML){if(r===t)return!0;if(r===H.TABLE||r===H.TEMPLATE||r===H.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===nt.HTML){if(n===H.TBODY||n===H.THEAD||n===H.TFOOT)return!0;if(n===H.TABLE||n===H.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===nt.HTML){if(r===t)return!0;if(r!==H.OPTION&&r!==H.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Uke.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ese.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&ese.has(this.currentTagId);)this.pop()}}const b$=3;var Eu;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Eu=Eu||(Eu={}));const tse={type:Eu.Marker};class ssn{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let l=0;l[o.name,o.value]));let i=0;for(let o=0;oa.get(s.name)===s.value)&&(i+=1,i>=b$&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(tse)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Eu.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Eu.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(tse);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Eu.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Eu.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Eu.Element&&n.element===t)}}function nse(e){return{nodeName:"#text",value:e,parentNode:null}}const uv={createDocument(){return{nodeName:"#document",mode:Ul.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};uv.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(uv.isTextNode(n)){n.value+=t;return}}uv.appendChild(e,nse(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&uv.isTextNode(r)?r.value+=t:uv.insertBefore(e,nse(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function hsn(e){return e.name===Vke&&e.publicId===null&&(e.systemId===null||e.systemId===usn)}function gsn(e){if(e.name!==Vke)return Ul.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===csn)return Ul.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),fsn.has(n))return Ul.QUIRKS;let r=t===null?dsn:Wke;if(rse(n,r))return Ul.QUIRKS;if(r=t===null?Gke:psn,rse(n,r))return Ul.LIMITED_QUIRKS}return Ul.NO_QUIRKS}const ase={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},msn="definitionurl",vsn="definitionURL",ysn=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),bsn=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:nt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:nt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:nt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:nt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:nt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:nt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:nt.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:nt.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:nt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:nt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:nt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:nt.XMLNS}]]),xsn=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Esn=new Set([H.B,H.BIG,H.BLOCKQUOTE,H.BODY,H.BR,H.CENTER,H.CODE,H.DD,H.DIV,H.DL,H.DT,H.EM,H.EMBED,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HR,H.I,H.IMG,H.LI,H.LISTING,H.MENU,H.META,H.NOBR,H.OL,H.P,H.PRE,H.RUBY,H.S,H.SMALL,H.SPAN,H.STRONG,H.STRIKE,H.SUB,H.SUP,H.TABLE,H.TT,H.U,H.UL,H.VAR]);function Ssn(e){const t=e.tagID;return t===H.FONT&&e.attrs.some(({name:r})=>r===hp.COLOR||r===hp.SIZE||r===hp.FACE)||Esn.has(t)}function qke(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,o;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,o=this.fragmentContextID):{current:i,currentTagId:o}=this.openElements,this._setContextModes(i,o)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===nt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,nt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Oe.TEXT}switchToPlaintextParsing(){this.insertionMode=Oe.TEXT,this.originalInsertionMode=Oe.IN_BODY,this.tokenizer.state=Va.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===ze.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==nt.HTML))switch(this.fragmentContextID){case H.TITLE:case H.TEXTAREA:{this.tokenizer.state=Va.RCDATA;break}case H.STYLE:case H.XMP:case H.IFRAME:case H.NOEMBED:case H.NOFRAMES:case H.NOSCRIPT:{this.tokenizer.state=Va.RAWTEXT;break}case H.SCRIPT:{this.tokenizer.state=Va.SCRIPT_DATA;break}case H.PLAINTEXT:{this.tokenizer.state=Va.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,nt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,nt.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(ze.HTML,nt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,H.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,o=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:s,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:s,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===Vn.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===H.SVG&&this.treeAdapter.getTagName(n)===ze.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===nt.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===H.MGLYPH||t.tagID===H.MALIGNMARK)&&!this._isIntegrationPoint(r,n,nt.HTML)}_processToken(t){switch(t.type){case Vn.CHARACTER:{this.onCharacter(t);break}case Vn.NULL_CHARACTER:{this.onNullCharacter(t);break}case Vn.COMMENT:{this.onComment(t);break}case Vn.DOCTYPE:{this.onDoctype(t);break}case Vn.START_TAG:{this._processStartTag(t);break}case Vn.END_TAG:{this.onEndTag(t);break}case Vn.EOF:{this.onEof(t);break}case Vn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Asn(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Eu.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Oe.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(H.P),this.openElements.popUntilTagNamePopped(H.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case H.TR:{this.insertionMode=Oe.IN_ROW;return}case H.TBODY:case H.THEAD:case H.TFOOT:{this.insertionMode=Oe.IN_TABLE_BODY;return}case H.CAPTION:{this.insertionMode=Oe.IN_CAPTION;return}case H.COLGROUP:{this.insertionMode=Oe.IN_COLUMN_GROUP;return}case H.TABLE:{this.insertionMode=Oe.IN_TABLE;return}case H.BODY:{this.insertionMode=Oe.IN_BODY;return}case H.FRAMESET:{this.insertionMode=Oe.IN_FRAMESET;return}case H.SELECT:{this._resetInsertionModeForSelect(t);return}case H.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case H.HTML:{this.insertionMode=this.headElement?Oe.AFTER_HEAD:Oe.BEFORE_HEAD;return}case H.TD:case H.TH:{if(t>0){this.insertionMode=Oe.IN_CELL;return}break}case H.HEAD:{if(t>0){this.insertionMode=Oe.IN_HEAD;return}break}}this.insertionMode=Oe.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===H.TEMPLATE)break;if(r===H.TABLE){this.insertionMode=Oe.IN_SELECT_IN_TABLE;return}}this.insertionMode=Oe.IN_SELECT}_isElementCausesFosterParenting(t){return Kke.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case H.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===nt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case H.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Xln[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ocn(this,t);return}switch(this.insertionMode){case Oe.INITIAL:{p1(this,t);break}case Oe.BEFORE_HTML:{Ox(this,t);break}case Oe.BEFORE_HEAD:{kx(this,t);break}case Oe.IN_HEAD:{Rx(this,t);break}case Oe.IN_HEAD_NO_SCRIPT:{_x(this,t);break}case Oe.AFTER_HEAD:{Nx(this,t);break}case Oe.IN_BODY:case Oe.IN_CAPTION:case Oe.IN_CELL:case Oe.IN_TEMPLATE:{Qke(this,t);break}case Oe.TEXT:case Oe.IN_SELECT:case Oe.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Oe.IN_TABLE:case Oe.IN_TABLE_BODY:case Oe.IN_ROW:{x$(this,t);break}case Oe.IN_TABLE_TEXT:{rRe(this,t);break}case Oe.IN_COLUMN_GROUP:{IO(this,t);break}case Oe.AFTER_BODY:{OO(this,t);break}case Oe.AFTER_AFTER_BODY:{CA(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){icn(this,t);return}switch(this.insertionMode){case Oe.INITIAL:{p1(this,t);break}case Oe.BEFORE_HTML:{Ox(this,t);break}case Oe.BEFORE_HEAD:{kx(this,t);break}case Oe.IN_HEAD:{Rx(this,t);break}case Oe.IN_HEAD_NO_SCRIPT:{_x(this,t);break}case Oe.AFTER_HEAD:{Nx(this,t);break}case Oe.TEXT:{this._insertCharacters(t);break}case Oe.IN_TABLE:case Oe.IN_TABLE_BODY:case Oe.IN_ROW:{x$(this,t);break}case Oe.IN_COLUMN_GROUP:{IO(this,t);break}case Oe.AFTER_BODY:{OO(this,t);break}case Oe.AFTER_AFTER_BODY:{CA(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){F8(this,t);return}switch(this.insertionMode){case Oe.INITIAL:case Oe.BEFORE_HTML:case Oe.BEFORE_HEAD:case Oe.IN_HEAD:case Oe.IN_HEAD_NO_SCRIPT:case Oe.AFTER_HEAD:case Oe.IN_BODY:case Oe.IN_TABLE:case Oe.IN_CAPTION:case Oe.IN_COLUMN_GROUP:case Oe.IN_TABLE_BODY:case Oe.IN_ROW:case Oe.IN_CELL:case Oe.IN_SELECT:case Oe.IN_SELECT_IN_TABLE:case Oe.IN_TEMPLATE:case Oe.IN_FRAMESET:case Oe.AFTER_FRAMESET:{F8(this,t);break}case Oe.IN_TABLE_TEXT:{h1(this,t);break}case Oe.AFTER_BODY:{Psn(this,t);break}case Oe.AFTER_AFTER_BODY:case Oe.AFTER_AFTER_FRAMESET:{Fsn(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Oe.INITIAL:{Bsn(this,t);break}case Oe.BEFORE_HEAD:case Oe.IN_HEAD:case Oe.IN_HEAD_NO_SCRIPT:case Oe.AFTER_HEAD:{this._err(t,qe.misplacedDoctype);break}case Oe.IN_TABLE_TEXT:{h1(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,qe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?lcn(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Oe.INITIAL:{p1(this,t);break}case Oe.BEFORE_HTML:{zsn(this,t);break}case Oe.BEFORE_HEAD:{jsn(this,t);break}case Oe.IN_HEAD:{Ju(this,t);break}case Oe.IN_HEAD_NO_SCRIPT:{Wsn(this,t);break}case Oe.AFTER_HEAD:{qsn(this,t);break}case Oe.IN_BODY:{$o(this,t);break}case Oe.IN_TABLE:{ay(this,t);break}case Oe.IN_TABLE_TEXT:{h1(this,t);break}case Oe.IN_CAPTION:{Uun(this,t);break}case Oe.IN_COLUMN_GROUP:{EU(this,t);break}case Oe.IN_TABLE_BODY:{O_(this,t);break}case Oe.IN_ROW:{k_(this,t);break}case Oe.IN_CELL:{Gun(this,t);break}case Oe.IN_SELECT:{oRe(this,t);break}case Oe.IN_SELECT_IN_TABLE:{Yun(this,t);break}case Oe.IN_TEMPLATE:{Xun(this,t);break}case Oe.AFTER_BODY:{Zun(this,t);break}case Oe.IN_FRAMESET:{Jun(this,t);break}case Oe.AFTER_FRAMESET:{tcn(this,t);break}case Oe.AFTER_AFTER_BODY:{rcn(this,t);break}case Oe.AFTER_AFTER_FRAMESET:{acn(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?scn(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Oe.INITIAL:{p1(this,t);break}case Oe.BEFORE_HTML:{Hsn(this,t);break}case Oe.BEFORE_HEAD:{Usn(this,t);break}case Oe.IN_HEAD:{Vsn(this,t);break}case Oe.IN_HEAD_NO_SCRIPT:{Gsn(this,t);break}case Oe.AFTER_HEAD:{Ysn(this,t);break}case Oe.IN_BODY:{I_(this,t);break}case Oe.TEXT:{Dun(this,t);break}case Oe.IN_TABLE:{rS(this,t);break}case Oe.IN_TABLE_TEXT:{h1(this,t);break}case Oe.IN_CAPTION:{Vun(this,t);break}case Oe.IN_COLUMN_GROUP:{Wun(this,t);break}case Oe.IN_TABLE_BODY:{B8(this,t);break}case Oe.IN_ROW:{iRe(this,t);break}case Oe.IN_CELL:{qun(this,t);break}case Oe.IN_SELECT:{lRe(this,t);break}case Oe.IN_SELECT_IN_TABLE:{Kun(this,t);break}case Oe.IN_TEMPLATE:{Qun(this,t);break}case Oe.AFTER_BODY:{uRe(this,t);break}case Oe.IN_FRAMESET:{ecn(this,t);break}case Oe.AFTER_FRAMESET:{ncn(this,t);break}case Oe.AFTER_AFTER_BODY:{CA(this,t);break}}}onEof(t){switch(this.insertionMode){case Oe.INITIAL:{p1(this,t);break}case Oe.BEFORE_HTML:{Ox(this,t);break}case Oe.BEFORE_HEAD:{kx(this,t);break}case Oe.IN_HEAD:{Rx(this,t);break}case Oe.IN_HEAD_NO_SCRIPT:{_x(this,t);break}case Oe.AFTER_HEAD:{Nx(this,t);break}case Oe.IN_BODY:case Oe.IN_TABLE:case Oe.IN_CAPTION:case Oe.IN_COLUMN_GROUP:case Oe.IN_TABLE_BODY:case Oe.IN_ROW:case Oe.IN_CELL:case Oe.IN_SELECT:case Oe.IN_SELECT_IN_TABLE:{tRe(this,t);break}case Oe.TEXT:{Mun(this,t);break}case Oe.IN_TABLE_TEXT:{h1(this,t);break}case Oe.IN_TEMPLATE:{sRe(this,t);break}case Oe.AFTER_BODY:case Oe.IN_FRAMESET:case Oe.AFTER_FRAMESET:case Oe.AFTER_AFTER_BODY:case Oe.AFTER_AFTER_FRAMESET:{xU(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===he.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Oe.IN_HEAD:case Oe.IN_HEAD_NO_SCRIPT:case Oe.AFTER_HEAD:case Oe.TEXT:case Oe.IN_COLUMN_GROUP:case Oe.IN_SELECT:case Oe.IN_SELECT_IN_TABLE:case Oe.IN_FRAMESET:case Oe.AFTER_FRAMESET:{this._insertCharacters(t);break}case Oe.IN_BODY:case Oe.IN_CAPTION:case Oe.IN_CELL:case Oe.IN_TEMPLATE:case Oe.AFTER_BODY:case Oe.AFTER_AFTER_BODY:case Oe.AFTER_AFTER_FRAMESET:{Xke(this,t);break}case Oe.IN_TABLE:case Oe.IN_TABLE_BODY:case Oe.IN_ROW:{x$(this,t);break}case Oe.IN_TABLE_TEXT:{nRe(this,t);break}}}}function _sn(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):eRe(e,t),n}function Nsn(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Dsn(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);const l=e.activeFormattingElements.getElementEntry(o),s=l&&i>=ksn;!l||s?(s&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(o)):(o=Msn(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Msn(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function $sn(e,t,n){const r=e.treeAdapter.getTagName(t),a=fb(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===H.TEMPLATE&&i===nt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Lsn(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function bU(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(i);o&&!o.endTag&&e._setEndLocation(i,t)}}}}function Bsn(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ul.QUIRKS:gsn(t);hsn(t)||e._err(t,qe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Oe.BEFORE_HTML}function p1(e,t){e._err(t,qe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ul.QUIRKS),e.insertionMode=Oe.BEFORE_HTML,e._processToken(t)}function zsn(e,t){t.tagID===H.HTML?(e._insertElement(t,nt.HTML),e.insertionMode=Oe.BEFORE_HEAD):Ox(e,t)}function Hsn(e,t){const n=t.tagID;(n===H.HTML||n===H.HEAD||n===H.BODY||n===H.BR)&&Ox(e,t)}function Ox(e,t){e._insertFakeRootElement(),e.insertionMode=Oe.BEFORE_HEAD,e._processToken(t)}function jsn(e,t){switch(t.tagID){case H.HTML:{$o(e,t);break}case H.HEAD:{e._insertElement(t,nt.HTML),e.headElement=e.openElements.current,e.insertionMode=Oe.IN_HEAD;break}default:kx(e,t)}}function Usn(e,t){const n=t.tagID;n===H.HEAD||n===H.BODY||n===H.HTML||n===H.BR?kx(e,t):e._err(t,qe.endTagWithoutMatchingOpenElement)}function kx(e,t){e._insertFakeElement(ze.HEAD,H.HEAD),e.headElement=e.openElements.current,e.insertionMode=Oe.IN_HEAD,e._processToken(t)}function Ju(e,t){switch(t.tagID){case H.HTML:{$o(e,t);break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:{e._appendElement(t,nt.HTML),t.ackSelfClosing=!0;break}case H.TITLE:{e._switchToTextParsing(t,Va.RCDATA);break}case H.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Va.RAWTEXT):(e._insertElement(t,nt.HTML),e.insertionMode=Oe.IN_HEAD_NO_SCRIPT);break}case H.NOFRAMES:case H.STYLE:{e._switchToTextParsing(t,Va.RAWTEXT);break}case H.SCRIPT:{e._switchToTextParsing(t,Va.SCRIPT_DATA);break}case H.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Oe.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Oe.IN_TEMPLATE);break}case H.HEAD:{e._err(t,qe.misplacedStartTagForHeadElement);break}default:Rx(e,t)}}function Vsn(e,t){switch(t.tagID){case H.HEAD:{e.openElements.pop(),e.insertionMode=Oe.AFTER_HEAD;break}case H.BODY:case H.BR:case H.HTML:{Rx(e,t);break}case H.TEMPLATE:{um(e,t);break}default:e._err(t,qe.endTagWithoutMatchingOpenElement)}}function um(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==H.TEMPLATE&&e._err(t,qe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,qe.endTagWithoutMatchingOpenElement)}function Rx(e,t){e.openElements.pop(),e.insertionMode=Oe.AFTER_HEAD,e._processToken(t)}function Wsn(e,t){switch(t.tagID){case H.HTML:{$o(e,t);break}case H.BASEFONT:case H.BGSOUND:case H.HEAD:case H.LINK:case H.META:case H.NOFRAMES:case H.STYLE:{Ju(e,t);break}case H.NOSCRIPT:{e._err(t,qe.nestedNoscriptInHead);break}default:_x(e,t)}}function Gsn(e,t){switch(t.tagID){case H.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Oe.IN_HEAD;break}case H.BR:{_x(e,t);break}default:e._err(t,qe.endTagWithoutMatchingOpenElement)}}function _x(e,t){const n=t.type===Vn.EOF?qe.openElementsLeftAfterEof:qe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Oe.IN_HEAD,e._processToken(t)}function qsn(e,t){switch(t.tagID){case H.HTML:{$o(e,t);break}case H.BODY:{e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=Oe.IN_BODY;break}case H.FRAMESET:{e._insertElement(t,nt.HTML),e.insertionMode=Oe.IN_FRAMESET;break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{e._err(t,qe.abandonedHeadElementChild),e.openElements.push(e.headElement,H.HEAD),Ju(e,t),e.openElements.remove(e.headElement);break}case H.HEAD:{e._err(t,qe.misplacedStartTagForHeadElement);break}default:Nx(e,t)}}function Ysn(e,t){switch(t.tagID){case H.BODY:case H.HTML:case H.BR:{Nx(e,t);break}case H.TEMPLATE:{um(e,t);break}default:e._err(t,qe.endTagWithoutMatchingOpenElement)}}function Nx(e,t){e._insertFakeElement(ze.BODY,H.BODY),e.insertionMode=Oe.IN_BODY,A_(e,t)}function A_(e,t){switch(t.type){case Vn.CHARACTER:{Qke(e,t);break}case Vn.WHITESPACE_CHARACTER:{Xke(e,t);break}case Vn.COMMENT:{F8(e,t);break}case Vn.START_TAG:{$o(e,t);break}case Vn.END_TAG:{I_(e,t);break}case Vn.EOF:{tRe(e,t);break}}}function Xke(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Qke(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ksn(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Xsn(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Qsn(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,nt.HTML),e.insertionMode=Oe.IN_FRAMESET)}function Zsn(e,t){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function Jsn(e,t){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),Bke(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,nt.HTML)}function eun(e,t){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function tun(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(t,nt.HTML),n||(e.formElement=e.openElements.current))}function nun(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===H.LI&&a===H.LI||(n===H.DD||n===H.DT)&&(a===H.DD||a===H.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==H.ADDRESS&&a!==H.DIV&&a!==H.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(t,nt.HTML)}function run(e,t){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.tokenizer.state=Va.PLAINTEXT}function aun(e,t){e.openElements.hasInScope(H.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1}function iun(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ze.A);n&&(bU(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function oun(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function lun(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(H.NOBR)&&(bU(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,nt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sun(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function uun(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ul.QUIRKS&&e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=Oe.IN_TABLE}function Zke(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Jke(e){const t=Lke(e,hp.TYPE);return t!=null&&t.toLowerCase()===Isn}function cun(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,nt.HTML),Jke(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function dun(e,t){e._appendElement(t,nt.HTML),t.ackSelfClosing=!0}function fun(e,t){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._appendElement(t,nt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function pun(e,t){t.tagName=ze.IMG,t.tagID=H.IMG,Zke(e,t)}function hun(e,t){e._insertElement(t,nt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Va.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Oe.TEXT}function gun(e,t){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Va.RAWTEXT)}function mun(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Va.RAWTEXT)}function ose(e,t){e._switchToTextParsing(t,Va.RAWTEXT)}function vun(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Oe.IN_TABLE||e.insertionMode===Oe.IN_CAPTION||e.insertionMode===Oe.IN_TABLE_BODY||e.insertionMode===Oe.IN_ROW||e.insertionMode===Oe.IN_CELL?Oe.IN_SELECT_IN_TABLE:Oe.IN_SELECT}function yun(e,t){e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function bun(e,t){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,nt.HTML)}function xun(e,t){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(H.RTC),e._insertElement(t,nt.HTML)}function Eun(e,t){e._reconstructActiveFormattingElements(),qke(t),yU(t),t.selfClosing?e._appendElement(t,nt.MATHML):e._insertElement(t,nt.MATHML),t.ackSelfClosing=!0}function Sun(e,t){e._reconstructActiveFormattingElements(),Yke(t),yU(t),t.selfClosing?e._appendElement(t,nt.SVG):e._insertElement(t,nt.SVG),t.ackSelfClosing=!0}function lse(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,nt.HTML)}function $o(e,t){switch(t.tagID){case H.I:case H.S:case H.B:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.SMALL:case H.STRIKE:case H.STRONG:{oun(e,t);break}case H.A:{iun(e,t);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{Jsn(e,t);break}case H.P:case H.DL:case H.OL:case H.UL:case H.DIV:case H.DIR:case H.NAV:case H.MAIN:case H.MENU:case H.ASIDE:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.DETAILS:case H.ADDRESS:case H.ARTICLE:case H.SECTION:case H.SUMMARY:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{Zsn(e,t);break}case H.LI:case H.DD:case H.DT:{nun(e,t);break}case H.BR:case H.IMG:case H.WBR:case H.AREA:case H.EMBED:case H.KEYGEN:{Zke(e,t);break}case H.HR:{fun(e,t);break}case H.RB:case H.RTC:{bun(e,t);break}case H.RT:case H.RP:{xun(e,t);break}case H.PRE:case H.LISTING:{eun(e,t);break}case H.XMP:{gun(e,t);break}case H.SVG:{Sun(e,t);break}case H.HTML:{Ksn(e,t);break}case H.BASE:case H.LINK:case H.META:case H.STYLE:case H.TITLE:case H.SCRIPT:case H.BGSOUND:case H.BASEFONT:case H.TEMPLATE:{Ju(e,t);break}case H.BODY:{Xsn(e,t);break}case H.FORM:{tun(e,t);break}case H.NOBR:{lun(e,t);break}case H.MATH:{Eun(e,t);break}case H.TABLE:{uun(e,t);break}case H.INPUT:{cun(e,t);break}case H.PARAM:case H.TRACK:case H.SOURCE:{dun(e,t);break}case H.IMAGE:{pun(e,t);break}case H.BUTTON:{aun(e,t);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{sun(e,t);break}case H.IFRAME:{mun(e,t);break}case H.SELECT:{vun(e,t);break}case H.OPTION:case H.OPTGROUP:{yun(e,t);break}case H.NOEMBED:{ose(e,t);break}case H.FRAMESET:{Qsn(e,t);break}case H.TEXTAREA:{hun(e,t);break}case H.NOSCRIPT:{e.options.scriptingEnabled?ose(e,t):lse(e,t);break}case H.PLAINTEXT:{run(e,t);break}case H.COL:case H.TH:case H.TD:case H.TR:case H.HEAD:case H.FRAME:case H.TBODY:case H.TFOOT:case H.THEAD:case H.CAPTION:case H.COLGROUP:break;default:lse(e,t)}}function Cun(e,t){if(e.openElements.hasInScope(H.BODY)&&(e.insertionMode=Oe.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function wun(e,t){e.openElements.hasInScope(H.BODY)&&(e.insertionMode=Oe.AFTER_BODY,uRe(e,t))}function Tun(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Aun(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(H.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(H.FORM):n&&e.openElements.remove(n))}function Iun(e){e.openElements.hasInButtonScope(H.P)||e._insertFakeElement(ze.P,H.P),e._closePElement()}function Oun(e){e.openElements.hasInListItemScope(H.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(H.LI),e.openElements.popUntilTagNamePopped(H.LI))}function kun(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Run(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function _un(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Nun(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ze.BR,H.BR),e.openElements.pop(),e.framesetOk=!1}function eRe(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==H.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,o))break}}function I_(e,t){switch(t.tagID){case H.A:case H.B:case H.I:case H.S:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.NOBR:case H.SMALL:case H.STRIKE:case H.STRONG:{bU(e,t);break}case H.P:{Iun(e);break}case H.DL:case H.UL:case H.OL:case H.DIR:case H.DIV:case H.NAV:case H.PRE:case H.MAIN:case H.MENU:case H.ASIDE:case H.BUTTON:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.ADDRESS:case H.ARTICLE:case H.DETAILS:case H.SECTION:case H.SUMMARY:case H.LISTING:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{Tun(e,t);break}case H.LI:{Oun(e);break}case H.DD:case H.DT:{kun(e,t);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{Run(e);break}case H.BR:{Nun(e);break}case H.BODY:{Cun(e,t);break}case H.HTML:{wun(e,t);break}case H.FORM:{Aun(e);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{_un(e,t);break}case H.TEMPLATE:{um(e,t);break}default:eRe(e,t)}}function tRe(e,t){e.tmplInsertionModeStack.length>0?sRe(e,t):xU(e,t)}function Dun(e,t){var n;t.tagID===H.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Mun(e,t){e._err(t,qe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function x$(e,t){if(Kke.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Oe.IN_TABLE_TEXT,t.type){case Vn.CHARACTER:{rRe(e,t);break}case Vn.WHITESPACE_CHARACTER:{nRe(e,t);break}}else PC(e,t)}function $un(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,nt.HTML),e.insertionMode=Oe.IN_CAPTION}function Lun(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=Oe.IN_COLUMN_GROUP}function Pun(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ze.COLGROUP,H.COLGROUP),e.insertionMode=Oe.IN_COLUMN_GROUP,EU(e,t)}function Fun(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,nt.HTML),e.insertionMode=Oe.IN_TABLE_BODY}function Bun(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ze.TBODY,H.TBODY),e.insertionMode=Oe.IN_TABLE_BODY,O_(e,t)}function zun(e,t){e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Hun(e,t){Jke(t)?e._appendElement(t,nt.HTML):PC(e,t),t.ackSelfClosing=!0}function jun(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,nt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ay(e,t){switch(t.tagID){case H.TD:case H.TH:case H.TR:{Bun(e,t);break}case H.STYLE:case H.SCRIPT:case H.TEMPLATE:{Ju(e,t);break}case H.COL:{Pun(e,t);break}case H.FORM:{jun(e,t);break}case H.TABLE:{zun(e,t);break}case H.TBODY:case H.TFOOT:case H.THEAD:{Fun(e,t);break}case H.INPUT:{Hun(e,t);break}case H.CAPTION:{$un(e,t);break}case H.COLGROUP:{Lun(e,t);break}default:PC(e,t)}}function rS(e,t){switch(t.tagID){case H.TABLE:{e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode());break}case H.TEMPLATE:{um(e,t);break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TBODY:case H.TD:case H.TFOOT:case H.TH:case H.THEAD:case H.TR:break;default:PC(e,t)}}function PC(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,A_(e,t),e.fosterParentingEnabled=n}function nRe(e,t){e.pendingCharacterTokens.push(t)}function rRe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function h1(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===H.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===H.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop();break}case H.OPTION:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop();break}case H.SELECT:{e.openElements.hasInSelectScope(H.SELECT)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode());break}case H.TEMPLATE:{um(e,t);break}}}function Yun(e,t){const n=t.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e._processStartTag(t)):oRe(e,t)}function Kun(e,t){const n=t.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e.onEndTag(t)):lRe(e,t)}function Xun(e,t){switch(t.tagID){case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{Ju(e,t);break}case H.CAPTION:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:{e.tmplInsertionModeStack[0]=Oe.IN_TABLE,e.insertionMode=Oe.IN_TABLE,ay(e,t);break}case H.COL:{e.tmplInsertionModeStack[0]=Oe.IN_COLUMN_GROUP,e.insertionMode=Oe.IN_COLUMN_GROUP,EU(e,t);break}case H.TR:{e.tmplInsertionModeStack[0]=Oe.IN_TABLE_BODY,e.insertionMode=Oe.IN_TABLE_BODY,O_(e,t);break}case H.TD:case H.TH:{e.tmplInsertionModeStack[0]=Oe.IN_ROW,e.insertionMode=Oe.IN_ROW,k_(e,t);break}default:e.tmplInsertionModeStack[0]=Oe.IN_BODY,e.insertionMode=Oe.IN_BODY,$o(e,t)}}function Qun(e,t){t.tagID===H.TEMPLATE&&um(e,t)}function sRe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):xU(e,t)}function Zun(e,t){t.tagID===H.HTML?$o(e,t):OO(e,t)}function uRe(e,t){var n;if(t.tagID===H.HTML){if(e.fragmentContext||(e.insertionMode=Oe.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===H.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else OO(e,t)}function OO(e,t){e.insertionMode=Oe.IN_BODY,A_(e,t)}function Jun(e,t){switch(t.tagID){case H.HTML:{$o(e,t);break}case H.FRAMESET:{e._insertElement(t,nt.HTML);break}case H.FRAME:{e._appendElement(t,nt.HTML),t.ackSelfClosing=!0;break}case H.NOFRAMES:{Ju(e,t);break}}}function ecn(e,t){t.tagID===H.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==H.FRAMESET&&(e.insertionMode=Oe.AFTER_FRAMESET))}function tcn(e,t){switch(t.tagID){case H.HTML:{$o(e,t);break}case H.NOFRAMES:{Ju(e,t);break}}}function ncn(e,t){t.tagID===H.HTML&&(e.insertionMode=Oe.AFTER_AFTER_FRAMESET)}function rcn(e,t){t.tagID===H.HTML?$o(e,t):CA(e,t)}function CA(e,t){e.insertionMode=Oe.IN_BODY,A_(e,t)}function acn(e,t){switch(t.tagID){case H.HTML:{$o(e,t);break}case H.NOFRAMES:{Ju(e,t);break}}}function icn(e,t){t.chars=va,e._insertCharacters(t)}function ocn(e,t){e._insertCharacters(t),e.framesetOk=!1}function cRe(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==nt.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function lcn(e,t){if(Ssn(t))cRe(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===nt.MATHML?qke(t):r===nt.SVG&&(Csn(t),Yke(t)),yU(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function scn(e,t){if(t.tagID===H.P||t.tagID===H.BR){cRe(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===nt.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}ze.AREA,ze.BASE,ze.BASEFONT,ze.BGSOUND,ze.BR,ze.COL,ze.EMBED,ze.FRAME,ze.HR,ze.IMG,ze.INPUT,ze.KEYGEN,ze.LINK,ze.META,ze.PARAM,ze.SOURCE,ze.TRACK,ze.WBR;function ucn(e,t){return AO.parse(e,t)}function ccn(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=AO.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}const dRe=fRe("end"),cm=fRe("start");function fRe(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}const pRe=function(e){if(e==null)return hcn;if(typeof e=="function")return R_(e);if(typeof e=="object")return Array.isArray(e)?dcn(e):fcn(e);if(typeof e=="string")return pcn(e);throw new Error("Expected function, string, or object as test")};function dcn(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=hRe,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=bcn(n(s,c)),p[0]===sse))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==vcn)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function xRe(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?xRe(t.parentElement):null}function $cn(e){var t=n=>{var r=xRe(n.target);r&&(r.classList.add("active"),Mcn(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};g.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}var Lcn=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Pcn=e=>e;const Fcn=M.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:i,disableCopy:o=!1,skipHtml:l=!0,onScroll:s,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:f={},urlTransform:p}=e,h=_0(e,Lcn),m=M.useRef(null);g.useImperativeHandle(t,()=>ir({},e,{mdp:m}),[m,e]);var v=(n||"")+" "+(r||"");$cn(m);var y=[...h.rehypePlugins||[]],b={allowElement:(S,C,w)=>h.allowElement?h.allowElement(S,C,w):/^[A-Za-z0-9]+$/.test(S.tagName)};l&&y.push(bRe);var x=[...h.remarkPlugins||[],Non],E=ir({},f,d);return q.jsx("div",ir({ref:m,onScroll:s,onMouseOver:u},E,{className:v,style:i,children:q.jsx(man,ir({},b,h,{skipHtml:l,urlTransform:p||Pcn,rehypePlugins:c?c("rehype",y):y,remarkPlugins:c?c("remark",x):x,children:a||""}))}))}),ERe=function(e){if(e==null)return jcn;if(typeof e=="function")return __(e);if(typeof e=="object")return Array.isArray(e)?Bcn(e):zcn(e);if(typeof e=="string")return Hcn(e);throw new Error("Expected function, string, or object as test")};function Bcn(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=SRe,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=qcn(n(s,c)),p[0]===dse))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==Wcn)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m0&&c.length===0)return}const d={};let f;for(f in l)tdn.call(l,f)&&(d[f]=f==="children"?c:l[f]);return d}}function rdn(e){return"children"in e&&e.children!==void 0}var z8={exports:{}};(function(e,t){function n(r){let a=[],i;for(let o of r.split(",").map(l=>l.trim()))if(/^-?\d+$/.test(o))a.push(parseInt(o,10));else if(i=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[l,s,u,c]=i;if(s&&c){s=parseInt(s),c=parseInt(c);const d=s]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}ec.displayName="c";ec.aliases=[];function ec(e){e.register(Qn),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}dm.displayName="cpp";dm.aliases=[];function dm(e){e.register(ec),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}D_.displayName="arduino";D_.aliases=["ino"];function D_(e){e.register(dm),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}BC.displayName="bash";BC.aliases=["sh","shell"];function BC(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,l=0;l>/g,function(j,z){return"(?:"+D[+z]+")"})}function r(F,D,j){return RegExp(n(F,D),j||"")}function a(F,D){for(var j=0;j>/g,function(){return"(?:"+F+")"});return F.replace(/<>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(F){return"\\b(?:"+F.trim().replace(/ /g,"|")+")\\b"}var l=o(i.typeDeclaration),s=RegExp(o(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),u=o(i.typeDeclaration+" "+i.contextual+" "+i.other),c=o(i.type+" "+i.typeDeclaration+" "+i.other),d=a(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),f=a(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,h=n(/<<0>>(?:\s*<<1>>)?/.source,[p,d]),m=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,h]),v=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,v]),b=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,f,v]),x=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),E=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,m,v]),S={keyword:s,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,w=/"(?:\\.|[^\\"\r\n])*"/.source,I=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[w]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,E]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,h]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,c,p]),inside:S}],keyword:s,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,m]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,d]),inside:{function:r(/^<<0>>/.source,[p]),generic:{pattern:RegExp(d),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,h,p,E,s.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[h,f]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:s,"class-name":{pattern:RegExp(E),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=w+"|"+C,A=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),O=a(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[A]),2),R=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,N=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,O]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[R,N]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[R]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[O]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,L=a(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[A]),2),$=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,_]),k=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[T]),2),P=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[k,_]);function B(F,D){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[F]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[D,_]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[$]),lookbehind:!0,greedy:!0,inside:B($,L)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:B(P,k)}],char:{pattern:RegExp(C),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}qi.displayName="markup";qi.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function qi(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Zp.displayName="css";Zp.aliases=[];function Zp(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}M_.displayName="diff";M_.aliases=[];function M_(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var a=n[r],i=[];/^\w+$/.test(r)||i.push(/\w+/.exec(r)[0]),r==="diff"&&i.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+a+`].*(?:\r +?| +|(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}$_.displayName="go";$_.aliases=[];function $_(e){e.register(Qn),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}L_.displayName="ini";L_.aliases=[];function L_(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}pm.displayName="java";pm.aliases=[];function pm(e){e.register(Qn),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}P_.displayName="regex";P_.aliases=[];function P_(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",l=RegExp(o+"-"+o),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":i,escape:r}},"special-escape":n,"char-set":a,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}hb.displayName="json";hb.aliases=["webmanifest"];function hb(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}F_.displayName="kotlin";F_.aliases=["kt","kts"];function F_(e){e.register(Qn),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}B_.displayName="less";B_.aliases=[];function B_(e){e.register(Zp),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}zC.displayName="lua";zC.aliases=[];function zC(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}z_.displayName="makefile";z_.aliases=[];function z_(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}HC.displayName="yaml";HC.aliases=["yml"];function HC(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(s,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return a}).replace(/<>/g,function(){return s});return RegExp(c,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return a}).replace(/<>/g,function(){return"(?:"+i+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(o),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}H_.displayName="markdown";H_.aliases=["md"];function H_(e){e.register(qi),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(s){l!==s&&(t.languages.markdown[l].inside.content.inside[s]=t.languages.markdown[s])})}),t.hooks.add("after-tokenize",function(l){if(l.language!=="markdown"&&l.language!=="md")return;function s(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}U_.displayName="perl";U_.aliases=[];function U_(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}go.displayName="markup-templating";go.aliases=[];function go(e){e.register(qi),function(t){function n(r,a){return"___"+r.toUpperCase()+a+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,a,i,o){if(r.language===a){var l=r.tokenStack=[];r.code=r.code.replace(i,function(s){if(typeof o=="function"&&!o(s))return s;for(var u=l.length,c;r.code.indexOf(c=n(a,u))!==-1;)++u;return l[u]=s,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,a){if(r.language!==a||!r.tokenStack)return;r.grammar=t.languages[a];var i=0,o=Object.keys(r.tokenStack);function l(s){for(var u=0;u=o.length);u++){var c=s[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=o[i],f=r.tokenStack[d],p=typeof c=="string"?c:c.content,h=n(a,d),m=p.indexOf(h);if(m>-1){++i;var v=p.substring(0,m),y=new t.Token(a,t.tokenize(f,r.grammar),"language-"+a,f),b=p.substring(m+h.length),x=[];v&&x.push.apply(x,l([v])),x.push(y),b&&x.push.apply(x,l([b])),typeof c=="string"?s.splice.apply(s,[u,1].concat(x)):c.content=x}}else c.content&&l(c.content)}return s}l(r.tokens)}}})}(e)}hm.displayName="php";hm.aliases=[];function hm(e){e.register(go),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:i,punctuation:o};var l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:l}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:l}}];t.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:a,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}jC.displayName="python";jC.aliases=["py"];function jC(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}V_.displayName="r";V_.aliases=[];function V_(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}gm.displayName="ruby";gm.aliases=["rb"];function gm(e){e.register(Qn),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}W_.displayName="rust";W_.aliases=[];function W_(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}G_.displayName="sass";G_.aliases=[];function G_(e){e.register(Zp),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}q_.displayName="scss";q_.aliases=[];function q_(e){e.register(Zp),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}gb.displayName="sql";gb.aliases=[];function gb(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Y_.displayName="swift";Y_.aliases=[];function Y_(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}mb.displayName="typescript";mb.aliases=["ts"];function mb(e){e.register(ho),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}UC.displayName="basic";UC.aliases=[];function UC(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}VC.displayName="vbnet";VC.aliases=[];function VC(e){e.register(UC),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}let WC=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};WC.prototype.property={};WC.prototype.normal={};WC.prototype.space=null;function TRe(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&cdn.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(pse,hdn);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!pse.test(i)){let o=i.replace(ddn,pdn);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=SU}return new a(r,t)}function pdn(e){return"-"+e.toLowerCase()}function hdn(e){return e.charAt(1).toUpperCase()}const gdn=TRe([ORe,IRe,_Re,NRe,sdn],"html");TRe([ORe,IRe,_Re,NRe,udn],"svg");const hse=/[#.]/g;function mdn(e,t){const n=e||"",r={};let a=0,i,o;for(;a=48&&t<=57}function Tdn(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Adn(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function bse(e){return Adn(e)||DRe(e)}const Jm=String.fromCharCode,Idn=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Odn(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let a=0,i=-1,o="",l,s;t.position&&("start"in t.position||"indent"in t.position?(s=t.position.indent,l=t.position.start):l=t.position);let u=(l?l.line:0)||1,c=(l?l.column:0)||1,d=p(),f;for(a--;++a<=e.length;)if(f===10&&(c=(s?s[i]:0)||1),f=e.charCodeAt(a),f===38){const v=e.charCodeAt(a+1);if(v===9||v===10||v===12||v===32||v===38||v===60||Number.isNaN(v)||n&&v===n){o+=Jm(f),c++;continue}const y=a+1;let b=y,x=y,E;if(v===35){x=++b;const R=e.charCodeAt(x);R===88||R===120?(E="hexadecimal",x=++b):E="decimal"}else E="named";let S="",C="",w="";const I=E==="named"?bse:E==="decimal"?DRe:Tdn;for(x--;++x<=e.length;){const R=e.charCodeAt(x);if(!I(R))break;w+=Jm(R),E==="named"&&wdn.includes(w)&&(S=w,C=tS(w))}let T=e.charCodeAt(x)===59;if(T){x++;const R=E==="named"?tS(w):!1;R&&(S=w,C=R)}let A=1+x-y,O="";if(!(!T&&t.nonTerminated===!1))if(!w)E!=="named"&&h(4,A);else if(E==="named"){if(T&&!C)h(5,1);else if(S!==w&&(x=b+S.length,A=1+x-b,T=!1),!T){const R=S?1:3;if(t.attribute){const N=e.charCodeAt(x);N===61?(h(R,A),C=""):bse(N)?C="":h(R,A)}else h(R,A)}O=C}else{T||h(2,A);let R=Number.parseInt(w,E==="hexadecimal"?16:10);if(kdn(R))h(7,A),O=Jm(65533);else if(R in yse)h(6,A),O=yse[R];else{let N="";Rdn(R)&&h(6,A),R>65535&&(R-=65536,N+=Jm(R>>>10|55296),R=56320|R&1023),O=N+Jm(R)}}if(O){m(),d=p(),a=x-1,c+=x-y+1,r.push(O);const R=p();R.offset++,t.reference&&t.reference.call(t.referenceContext,O,{start:d,end:R},e.slice(y-1,x)),d=R}else w=e.slice(y-1,x),o+=w,c+=w.length,a=x-1}else f===10&&(u++,i++,c=0),Number.isNaN(f)?m():(o+=Jm(f),c++);return r.join("");function p(){return{line:u,column:c,offset:a+((l?l.offset:0)||0)}}function h(v,y){let b;t.warning&&(b=p(),b.column+=y,b.offset+=y,t.warning.call(t.warningContext,Idn[v],b,v))}function m(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:d,end:p()}),o="")}}function kdn(e){return e>=55296&&e<=57343||e>1114111}function Rdn(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var _dn=0,pT={},Ni={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++_dn}),e.__id},clone:function e(t,n){n=n||{};var r,a;switch(Ni.util.type(t)){case"Object":if(a=Ni.util.objId(t),n[a])return n[a];r={},n[a]=r;for(var i in t)t.hasOwnProperty(i)&&(r[i]=e(t[i],n));return r;case"Array":return a=Ni.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(o,l){r[l]=e(o,n)}),r);default:return t}}},languages:{plain:pT,plaintext:pT,text:pT,txt:pT,extend:function(e,t){var n=Ni.util.clone(Ni.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Ni.languages;var a=r[e],i={};for(var o in a)if(a.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(o)||(i[o]=a[o])}var s=r[e];return r[e]=i,Ni.languages.DFS(Ni.languages,function(u,c){c===s&&u!=e&&(this[u]=i)}),i},DFS:function e(t,n,r,a){a=a||{};var i=Ni.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var l=t[o],s=Ni.util.type(l);s==="Object"&&!a[i(l)]?(a[i(l)]=!0,e(l,n,null,a)):s==="Array"&&!a[i(l)]&&(a[i(l)]=!0,e(l,n,o,a))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Ni.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Ni.tokenize(r.code,r.grammar),Ni.hooks.run("after-tokenize",r),Dx.stringify(Ni.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new Ndn;return wA(a,a.head,e),MRe(e,a,t,a.head,0),Mdn(a)},hooks:{all:{},add:function(e,t){var n=Ni.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Ni.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:Dx};function Dx(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function xse(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function MRe(e,t,n,r,a,i){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var l=n[o];l=Array.isArray(l)?l:[l];for(var s=0;s=i.reach);y+=v.value.length,v=v.next){var b=v.value;if(t.length>e.length)return;if(!(b instanceof Dx)){var x=1,E;if(f){if(E=xse(m,y,e,d),!E||E.index>=e.length)break;var I=E.index,S=E.index+E[0].length,C=y;for(C+=v.value.length;I>=C;)v=v.next,C+=v.value.length;if(C-=v.value.length,y=C,v.value instanceof Dx)continue;for(var w=v;w!==t.tail&&(Ci.reach&&(i.reach=R);var N=v.prev;A&&(N=wA(t,N,A),y+=A.length),Ddn(t,N,x);var _=new Dx(o,c?Ni.tokenize(T,c):T,p,T);if(v=wA(t,N,_),O&&wA(t,v,O),x>1){var L={cause:o+","+s,reach:R};MRe(e,t,n,v.prev,y,L),i&&L.reach>i.reach&&(i.reach=L.reach)}}}}}}function Ndn(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function wA(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function Ddn(e,t,n){for(var r=t.next,a=0;a]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}wU.displayName="abnf";wU.aliases=[];function wU(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}TU.displayName="actionscript";TU.aliases=[];function TU(e){e.register(ho),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}AU.displayName="ada";AU.aliases=[];function AU(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}IU.displayName="agda";IU.aliases=[];function IU(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}OU.displayName="al";OU.aliases=[];function OU(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}kU.displayName="antlr4";kU.aliases=["g4"];function kU(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}RU.displayName="apacheconf";RU.aliases=[];function RU(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}_U.displayName="apex";_U.aliases=[];function _U(e){e.register(Qn),e.register(gb),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function a(o){return RegExp(o.replace(//g,function(){return r}),"i")}var i={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:a(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:i},{pattern:a(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:i},{pattern:a(/(?=\s*\w+\s*[;=,(){:])/.source),inside:i}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}NU.displayName="apl";NU.aliases=[];function NU(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}DU.displayName="applescript";DU.aliases=[];function DU(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}MU.displayName="aql";MU.aliases=[];function MU(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}$U.displayName="arff";$U.aliases=[];function $U(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}LU.displayName="armasm";LU.aliases=["arm-asm"];function LU(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}PU.displayName="arturo";PU.aliases=["art"];function PU(e){(function(t){var n=function(r,a){return{pattern:RegExp(/\{!/.source+"(?:"+(a||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}FU.displayName="asciidoc";FU.aliases=["adoc"];function FU(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function a(i){i=i.split(" ");for(var o={},l=0,s=i.length;l/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}zU.displayName="asm6502";zU.aliases=[];function zU(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}HU.displayName="asmatmel";HU.aliases=[];function HU(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}jU.displayName="autohotkey";jU.aliases=[];function jU(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}UU.displayName="autoit";UU.aliases=[];function UU(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}VU.displayName="avisynth";VU.aliases=["avs"];function VU(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(d,f){return c[+f]})}function r(u,c,d){return RegExp(n(u,c),d||"")}var a=/bool|clip|float|int|string|val/.source,i=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),s=[i,o,l].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[s],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}WU.displayName="avro-idl";WU.aliases=["avdl"];function WU(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}GU.displayName="awk";GU.aliases=["gawk"];function GU(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}qU.displayName="batch";qU.aliases=[];function qU(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:r,variable:n,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:r,variable:n,number:i,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}YU.displayName="bbcode";YU.aliases=["shortcode"];function YU(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}KU.displayName="bbj";KU.aliases=[];function KU(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}XU.displayName="bicep";XU.aliases=[];function XU(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}QU.displayName="birb";QU.aliases=[];function QU(e){e.register(Qn),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}ZU.displayName="bison";ZU.aliases=[];function ZU(e){e.register(ec),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}JU.displayName="bnf";JU.aliases=["rbnf"];function JU(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}eV.displayName="bqn";eV.aliases=[];function eV(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}tV.displayName="brainfuck";tV.aliases=[];function tV(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}nV.displayName="brightscript";nV.aliases=[];function nV(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}rV.displayName="bro";rV.aliases=[];function rV(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}aV.displayName="bsl";aV.aliases=["oscript"];function aV(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}iV.displayName="cfscript";iV.aliases=["cfc"];function iV(e){e.register(Qn),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}oV.displayName="chaiscript";oV.aliases=[];function oV(e){e.register(Qn),e.register(dm),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}lV.displayName="cil";lV.aliases=[];function lV(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}sV.displayName="cilkc";sV.aliases=["cilk-c"];function sV(e){e.register(ec),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}uV.displayName="cilkcpp";uV.aliases=["cilk","cilk-cpp"];function uV(e){e.register(dm),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}cV.displayName="clojure";cV.aliases=[];function cV(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}dV.displayName="cmake";dV.aliases=[];function dV(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}fV.displayName="cobol";fV.aliases=[];function fV(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}pV.displayName="coffeescript";pV.aliases=["coffee"];function pV(e){e.register(ho),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}hV.displayName="concurnas";hV.aliases=["conc"];function hV(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}gV.displayName="csp";gV.aliases=[];function gV(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}mV.displayName="cooklang";mV.aliases=[];function mV(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,a=/\{[^}#@]*\}/.source,i=r+a,o=/(?:h|hours|hrs|m|min|minutes)/.source,l={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+i+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+i+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":l}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}vV.displayName="coq";vV.aliases=[];function vV(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}yV.displayName="crystal";yV.aliases=[];function yV(e){e.register(gm),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}bV.displayName="css-extras";bV.aliases=[];function bV(e){e.register(Zp),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:i})}(e)}xV.displayName="csv";xV.aliases=[];function xV(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}EV.displayName="cue";EV.aliases=[];function EV(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,a="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+a+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}SV.displayName="cypher";SV.aliases=[];function SV(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}CV.displayName="d";CV.aliases=[];function CV(e){e.register(Qn),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}wV.displayName="dart";wV.aliases=[];function wV(e){e.register(Qn),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[a,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}TV.displayName="dataweave";TV.aliases=[];function TV(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}AV.displayName="dax";AV.aliases=[];function AV(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}IV.displayName="dhall";IV.aliases=[];function IV(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}OV.displayName="django";OV.aliases=["jinja2"];function OV(e){e.register(go),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"django",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"jinja2",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"jinja2")})}(e)}kV.displayName="dns-zone-file";kV.aliases=["dns-zone"];function kV(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}RV.displayName="docker";RV.aliases=["dockerfile"];function RV(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return a}),o={pattern:RegExp(a),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(u,c){return u=u.replace(//g,function(){return i}).replace(//g,function(){return r}),RegExp(u,c)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},t.languages.dockerfile=t.languages.docker})(e)}_V.displayName="dot";_V.aliases=["gv"];function _V(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function a(i,o){return RegExp(i.replace(//g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:a(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:a(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:a(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}NV.displayName="ebnf";NV.aliases=[];function NV(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}DV.displayName="editorconfig";DV.aliases=[];function DV(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}MV.displayName="eiffel";MV.aliases=[];function MV(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}$V.displayName="ejs";$V.aliases=["eta"];function $V(e){e.register(ho),e.register(go),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}LV.displayName="elixir";LV.aliases=[];function LV(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}PV.displayName="elm";PV.aliases=[];function PV(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}FV.displayName="etlua";FV.aliases=[];function FV(e){e.register(zC),e.register(go),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}BV.displayName="erb";BV.aliases=[];function BV(e){e.register(go),e.register(gm),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}zV.displayName="erlang";zV.aliases=[];function zV(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}HV.displayName="excel-formula";HV.aliases=["xls","xlsx"];function HV(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}jV.displayName="fsharp";jV.aliases=[];function jV(e){e.register(Qn),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}UV.displayName="factor";UV.aliases=[];function UV(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},i=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(u){return new RegExp("(^|\\s)(?:"+u.map(i).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(u){a[u].pattern=o(l[u])});var s=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];a.combinators.pattern=o(s),t.languages.factor=a})(e)}VV.displayName="false";VV.aliases=[];function VV(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}GV.displayName="flow";GV.aliases=[];function GV(e){e.register(ho),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}qV.displayName="fortran";qV.aliases=[];function qV(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}YV.displayName="ftl";YV.aliases=[];function YV(e){e.register(go),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},t.hooks.add("before-tokenize",function(i){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(i,"ftl",o)}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"ftl")})}(e)}KV.displayName="gml";KV.aliases=["gamemakerlanguage"];function KV(e){e.register(Qn),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}XV.displayName="gap";XV.aliases=[];function XV(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}QV.displayName="gcode";QV.aliases=[];function QV(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}ZV.displayName="gdscript";ZV.aliases=[];function ZV(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}JV.displayName="gedcom";JV.aliases=[];function JV(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}eW.displayName="gettext";eW.aliases=["po"];function eW(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}tW.displayName="gherkin";tW.aliases=[];function tW(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}nW.displayName="git";nW.aliases=[];function nW(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}rW.displayName="glsl";rW.aliases=[];function rW(e){e.register(ec),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}aW.displayName="gn";aW.aliases=["gni"];function aW(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}iW.displayName="linker-script";iW.aliases=["ld"];function iW(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}oW.displayName="go-module";oW.aliases=["go-mod"];function oW(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}lW.displayName="gradle";lW.aliases=[];function lW(e){e.register(Qn),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}sW.displayName="graphql";sW.aliases=[];function sW(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(v){return typeof v!="string"&&v.type!=="comment"&&v.type!=="scalar"}),a=0;function i(v){return r[a+v]}function o(v,y){y=y||0;for(var b=0;b0)){var p=l(/^\{$/,/^\}$/);if(p===-1)continue;for(var h=a;h=0&&s(m,"variable-input")}}}}})}uW.displayName="groovy";uW.aliases=[];function uW(e){e.register(Qn),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}cW.displayName="textile";cW.aliases=[];function cW(e){e.register(qi),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function a(d,f){return RegExp(d.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),f||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=o.phrase.inside,s={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=l.inline.inside;u.bold.inside=s,u.italic.inside=s,u.inserted.inside=s,u.deleted.inside=s,u.span.inside=s;var c=l.table.inside;c.inline=s.inline,c.link=s.link,c.image=s.image,c.footnote=s.footnote,c.acronym=s.acronym,c.mark=s.mark}(e)}dW.displayName="haml";dW.aliases=[];function dW(e){e.register(gm),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],a={},i=0,o=r.length;i@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}GC.displayName="haskell";GC.aliases=["hs"];function GC(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}pW.displayName="haxe";pW.aliases=[];function pW(e){e.register(Qn),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}hW.displayName="hcl";hW.aliases=[];function hW(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}gW.displayName="hlsl";gW.aliases=[];function gW(e){e.register(ec),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}mW.displayName="hoon";mW.aliases=[];function mW(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}vW.displayName="hpkp";vW.aliases=[];function vW(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}yW.displayName="hsts";yW.aliases=[];function yW(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}bW.displayName="uri";bW.aliases=["url"];function bW(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}xW.displayName="http";xW.aliases=[];function xW(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},i={"application/json":!0,"application/xml":!0};function o(c){var d=c.replace(/^[a-z]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+f+")"}var l;for(var s in a)if(a[s]){l=l||{};var u=i[s]?o(s):s;l[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[s]}}l&&t.languages.insertBefore("http","header",l)})(e)}EW.displayName="ichigojam";EW.aliases=[];function EW(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}SW.displayName="icon";SW.aliases=[];function SW(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}CW.displayName="icu-message-format";CW.aliases=[];function CW(e){(function(t){function n(s,u){return u<=0?/[]/.source:s.replace(//g,function(){return n(s,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:r,greedy:!0,inside:{escape:a}},o=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),l={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:i},l.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}wW.displayName="idris";wW.aliases=["idr"];function wW(e){e.register(GC),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}TW.displayName="ignore";TW.aliases=["gitignore","hgignore","npmignore"];function TW(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}AW.displayName="inform7";AW.aliases=[];function AW(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}IW.displayName="io";IW.aliases=[];function IW(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}bb.displayName="javadoclike";bb.aliases=[];function bb(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(i,o){var l="doc-comment",s=t.languages[i];if(s){var u=s[l];if(!u){var c={};c[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},s=t.languages.insertBefore(i,"comment",c),u=s[l]}if(u instanceof RegExp&&(u=s[l]={pattern:u}),Array.isArray(u))for(var d=0,f=u.length;d|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}RW.displayName="javadoc";RW.aliases=[];function RW(e){e.register(pm),e.register(bb),e.register(qi),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,a=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+a+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}_W.displayName="javastacktrace";_W.aliases=[];function _W(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}NW.displayName="jexl";NW.aliases=[];function NW(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}DW.displayName="jolie";DW.aliases=[];function DW(e){e.register(Qn),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}MW.displayName="jq";MW.aliases=[];function MW(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:r,lookbehind:!0,greedy:!0,inside:a},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};a.interpolation.inside.content.inside=i})(e)}$W.displayName="js-templates";$W.aliases=[];function $W(e){e.register(ho),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,a=n.inside.interpolation,i=a.inside["interpolation-punctuation"],o=a.pattern.source;function l(h,m){if(t.languages[h])return{pattern:RegExp("((?:"+m+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:h}}}}t.languages.javascript["template-string"]=[l("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),l("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),l("svg",/\bsvg/.source),l("markdown",/\b(?:markdown|md)/.source),l("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),l("sql",/\bsql/.source),n].filter(Boolean);function s(h,m){return"___"+m.toUpperCase()+"_"+h+"___"}function u(h,m,v){var y={code:h,grammar:m,language:v};return t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function c(h){var m={};m["interpolation-punctuation"]=i;var v=t.tokenize(h,m);if(v.length===3){var y=[1,1];y.push.apply(y,u(v[1],t.languages.javascript,"javascript")),v.splice.apply(v,y)}return new t.Token("interpolation",v,a.alias,h)}function d(h,m,v){var y=t.tokenize(h,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),b=0,x={},E=y.map(function(I){if(typeof I=="string")return I;for(var T=I.content,A;h.indexOf(A=s(b++,v))!==-1;);return x[A]=T,A}).join(""),S=u(E,m,v),C=Object.keys(x);b=0;function w(I){for(var T=0;T=C.length)return;var A=I[T];if(typeof A=="string"||typeof A.content=="string"){var O=C[b],R=typeof A=="string"?A:A.content,N=R.indexOf(O);if(N!==-1){++b;var _=R.substring(0,N),L=c(x[O]),$=R.substring(N+O.length),k=[];if(_&&k.push(_),k.push(L),$){var P=[$];w(P),k.push.apply(k,P)}typeof A=="string"?(I.splice.apply(I,[T,1].concat(k)),T+=k.length-1):A.content=k}}else{var B=A.content;Array.isArray(B)?w(B):w([B])}}}return w(S),new t.Token(v,S,"language-"+v,h)}var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(h){if(!(h.language in f))return;function m(v){for(var y=0,b=v.length;y\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}PW.displayName="n4js";PW.aliases=["n4jsd"];function PW(e){e.register(ho),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}FW.displayName="js-extras";FW.aliases=[];function FW(e){e.register(ho),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(s,u){return RegExp(s.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],a=0;a|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}jW.displayName="julia";jW.aliases=[];function jW(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}UW.displayName="keepalived";UW.aliases=[];function UW(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}VW.displayName="keyman";VW.aliases=[];function VW(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}WW.displayName="kumir";WW.aliases=["kum"];function WW(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(a,i){return RegExp(a.replace(//g,n),i)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}GW.displayName="kusto";GW.aliases=[];function GW(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}qW.displayName="latex";qW.aliases=["context","tex"];function qW(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}YW.displayName="latte";YW.aliases=[];function YW(e){e.register(Qn),e.register(go),e.register(hm),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var a=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",a),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}qC.displayName="scheme";qC.aliases=[];function qC(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var a in r)r[a]=r[a].replace(/<[\w\s]+>/g,function(i){return"(?:"+r[i].trim()+")"});return r[a]}})(e)}KW.displayName="lilypond";KW.aliases=["ly"];function KW(e){e.register(qC),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,a=0;a/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};i["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=i,t.languages.ly=i}(e)}XW.displayName="liquid";XW.aliases=[];function XW(e){e.register(go),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(a){var i=/^\{%-?\s*(\w+)/.exec(a);if(i){var o=i[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}QW.displayName="lisp";QW.aliases=["elisp","emacs","emacs-lisp"];function QW(e){(function(t){function n(h){return RegExp(/(\()/.source+"(?:"+h+")"+/(?=[\s\)])/.source)}function r(h){return RegExp(/([\s([])/.source+"(?:"+h+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+a,o="(\\()",l="(?=\\))",s="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+s),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+s),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:c},f="\\S+(?:\\s+\\S+)*",p={pattern:RegExp(o+u+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+f),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+f),inside:d},keys:{pattern:RegExp("&key\\s+"+f+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=p,c.defun.inside.arguments=t.util.clone(p),c.defun.inside.arguments.inside.sublist=p,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}ZW.displayName="livescript";ZW.aliases=[];function ZW(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}JW.displayName="llvm";JW.aliases=[];function JW(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}eG.displayName="log";eG.aliases=[];function eG(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}tG.displayName="lolcode";tG.aliases=[];function tG(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}nG.displayName="magma";nG.aliases=[];function nG(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}K_.displayName="mata";K_.aliases=[];function K_(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}rG.displayName="matlab";rG.aliases=[];function rG(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}aG.displayName="maxscript";aG.aliases=[];function aG(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}iG.displayName="mel";iG.aliases=[];function iG(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}oG.displayName="mermaid";oG.aliases=[];function oG(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}lG.displayName="metafont";lG.aliases=[];function lG(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}sG.displayName="mizar";sG.aliases=[];function sG(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}uG.displayName="mongodb";uG.aliases=[];function uG(e){e.register(ho),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(i){return i.replace("$","\\$")});var a="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+a+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}cG.displayName="monkey";cG.aliases=[];function cG(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}dG.displayName="moonscript";dG.aliases=["moon"];function dG(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}fG.displayName="n1ql";fG.aliases=[];function fG(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}pG.displayName="nand2tetris-hdl";pG.aliases=[];function pG(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}hG.displayName="naniscript";hG.aliases=["nani"];function hG(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var l=o.tokens;l.forEach(function(s){if(typeof s!="string"&&s.type==="generic-text"){var u=i(s);a(u)||(s.type="bad-line",s.content=u)}})});function a(o){for(var l="[]{}",s=[],u=0;u=&|$!]/}}mG.displayName="neon";mG.aliases=[];function mG(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}vG.displayName="nevod";vG.aliases=[];function vG(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}yG.displayName="nginx";yG.aliases=[];function yG(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}bG.displayName="nim";bG.aliases=[];function bG(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}xG.displayName="nix";xG.aliases=[];function xG(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}EG.displayName="nsis";EG.aliases=[];function EG(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}SG.displayName="ocaml";SG.aliases=[];function SG(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}CG.displayName="odin";CG.aliases=[];function CG(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}wG.displayName="opencl";wG.aliases=[];function wG(e){e.register(ec),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}TG.displayName="openqasm";TG.aliases=["qasm"];function TG(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}AG.displayName="oz";AG.aliases=[];function AG(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}IG.displayName="parigp";IG.aliases=[];function IG(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}OG.displayName="parser";OG.aliases=[];function OG(e){e.register(qi),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}kG.displayName="pascal";kG.aliases=["objectpascal"];function kG(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}RG.displayName="pascaligo";RG.aliases=[];function RG(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),a=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,l){return o[l]=a[l],o},{});a["class-name"].forEach(function(o){o.inside=i})})(e)}_G.displayName="psl";_G.aliases=[];function _G(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}NG.displayName="pcaxis";NG.aliases=["px"];function NG(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}DG.displayName="peoplecode";DG.aliases=["pcode"];function DG(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}MG.displayName="phpdoc";MG.aliases=[];function MG(e){e.register(bb),e.register(hm),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}$G.displayName="php-extras";$G.aliases=[];function $G(e){e.register(hm),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}LG.displayName="plant-uml";LG.aliases=["plantuml"];function LG(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,a=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,i="(?:-+"+a+"-+|\\.+"+a+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,l=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,s=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=s+"(?:"+i+l+"|"+o+i+"(?:"+l+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+c+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}PG.displayName="plsql";PG.aliases=[];function PG(e){e.register(gb),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}FG.displayName="powerquery";FG.aliases=["mscript","pq"];function FG(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}BG.displayName="powershell";BG.aliases=[];function BG(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}zG.displayName="processing";zG.aliases=[];function zG(e){e.register(Qn),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}HG.displayName="prolog";HG.aliases=[];function HG(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}jG.displayName="promql";jG.aliases=[];function jG(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],a=["offset"],i=n.concat(r,a);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+i.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}UG.displayName="properties";UG.aliases=[];function UG(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}VG.displayName="protobuf";VG.aliases=[];function VG(e){e.register(Qn),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}WG.displayName="stylus";WG.aliases=[];function WG(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:a.interpolation}},rest:a}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}GG.displayName="twig";GG.aliases=[];function GG(e){e.register(go),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}qG.displayName="pug";qG.aliases=[];function qG(e){e.register(ho),e.register(qi),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},i=0,o=r.length;i",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:t.languages[l.language]}}})}t.languages.insertBefore("pug","filter",a)}(e)}YG.displayName="puppet";YG.aliases=[];function YG(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}KG.displayName="pure";KG.aliases=[];function KG(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(a){var i=a;if(typeof a!="string"&&(i=a.alias,a=a.lang),t.languages[i]){var o={};o["inline-lang-"+i]={pattern:RegExp(r.replace("",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+i].inside.rest=t.util.clone(t.languages[i]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}XG.displayName="purebasic";XG.aliases=["pbfasm"];function XG(e){e.register(Qn),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}QG.displayName="purescript";QG.aliases=["purs"];function QG(e){e.register(GC),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}ZG.displayName="qsharp";ZG.aliases=["qs"];function ZG(e){e.register(Qn),function(t){function n(p,h){return p.replace(/<<(\d+)>>/g,function(m,v){return"(?:"+h[+v]+")"})}function r(p,h,m){return RegExp(n(p,h),m||"")}function a(p,h){for(var m=0;m>/g,function(){return"(?:"+p+")"});return p.replace(/<>/g,"[^\\s\\S]")}var i={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(p){return"\\b(?:"+p.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(o(i.type+" "+i.other)),s=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[s]),c={keyword:l,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var f=a(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[d]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[f]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[f]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}JG.displayName="q";JG.aliases=[];function JG(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}eq.displayName="qml";eq.aliases=[];function eq(e){e.register(ho),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}tq.displayName="qore";tq.aliases=[];function tq(e){e.register(Qn),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}nq.displayName="racket";nq.aliases=["rkt"];function nq(e){e.register(qC),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}rq.displayName="cshtml";rq.aliases=["razor"];function rq(e){e.register(fm),e.register(qi),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(b,x){for(var E=0;E/g,function(){return"(?:"+b+")"});return b.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var i=a(/\((?:[^()'"@/]|||)*\)/.source,2),o=a(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),l=a(/\{(?:[^{}'"@/]|||)*\}/.source,2),s=a(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+i+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+s+")?"+i+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),p=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|"+a(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function o(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return a}).replace(//g,function(){return i}),RegExp(u,c)}i=o(i).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var l=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(l).join(""):""},s=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===l(f.content[0].content[1])&&c.pop():f.content[f.content.length-1].content==="/>"||c.push({tagName:l(f.content[0].content[1]),openedBraces:0}):c.length>0&&f.type==="punctuation"&&f.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?c[c.length-1].openedBraces--:p=!0),(p||typeof f=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var h=l(f);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(h=l(u[d-1])+h,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",h,null,h)}f.content&&typeof f.content!="string"&&s(f.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||s(u.tokens)})}(e)}aq.displayName="tsx";aq.aliases=[];function aq(e){e.register(X_),e.register(mb),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}iq.displayName="reason";iq.aliases=[];function iq(e){e.register(Qn),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}oq.displayName="rego";oq.aliases=[];function oq(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}lq.displayName="renpy";lq.aliases=["rpy"];function lq(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}sq.displayName="rescript";sq.aliases=["res"];function sq(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}uq.displayName="rest";uq.aliases=[];function uq(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}cq.displayName="rip";cq.aliases=[];function cq(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}dq.displayName="roboconf";dq.aliases=[];function dq(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}fq.displayName="robotframework";fq.aliases=["robot"];function fq(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(s,u){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in u)c[d]=u[d];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return s}),"im"),alias:"section",inside:c}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":o,documentation:i,property:l}),keywords:a("Keywords",{"keyword-name":o,documentation:i,property:l}),tasks:a("Tasks",{"task-name":o,documentation:i,property:l}),comment:n},t.languages.robot=t.languages.robotframework})(e)}pq.displayName="sas";pq.aliases=[];function pq(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(n+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},f={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":a,punctuation:c,string:u},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},h={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},m={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},v={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,b={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:d,"arg-value":f["arg-value"],operator:f.operator,argument:f.arg,number:r,"numeric-constant":a,punctuation:c,string:u}},x={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":m,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":a,punctuation:c,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:x,"submit-statement":v,"global-statements":m,number:r,"numeric-constant":a,punctuation:c,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:x,"submit-statement":v,"global-statements":m,number:r,"numeric-constant":a,punctuation:c,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:f}},"cas-actions":b,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:l,keyword:x,function:d,format:p,altformat:h,"global-statements":m,number:r,"numeric-constant":a,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:f},"macro-keyword":o,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:s,number:r,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:f},"cas-actions":b,comment:s,function:d,format:p,altformat:h,"numeric-constant":a,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:l,keyword:x,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}hq.displayName="shell-session";hq.aliases=["sh-session","shellsession"];function hq(e){e.register(BC),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}gq.displayName="smali";gq.aliases=[];function gq(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}mq.displayName="smalltalk";mq.aliases=[];function mq(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}vq.displayName="smarty";vq.aliases=[];function vq(e){e.register(go),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(a){var i="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(a,"smarty",r,function(s){return s===o&&(l=!1),l?!1:(s===i&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"smarty")})}(e)}yq.displayName="sml";yq.aliases=["smlnj"];function yq(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}bq.displayName="solidity";bq.aliases=["sol"];function bq(e){e.register(Qn),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}xq.displayName="solution-file";xq.aliases=["sln"];function xq(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}Eq.displayName="soy";Eq.aliases=[];function Eq(e){e.register(go),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(a){var i=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",l="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(a,"soy",i,function(u){return u===l&&(s=!1),s?!1:(u===o&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"soy")})}(e)}Q_.displayName="turtle";Q_.aliases=["trig"];function Q_(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}Sq.displayName="sparql";Sq.aliases=["rq"];function Sq(e){e.register(Q_),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}Cq.displayName="splunk-spl";Cq.aliases=[];function Cq(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}wq.displayName="sqf";wq.aliases=[];function wq(e){e.register(Qn),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}Tq.displayName="squirrel";Tq.aliases=[];function Tq(e){e.register(Qn),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}Aq.displayName="stan";Aq.aliases=[];function Aq(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}Iq.displayName="stata";Iq.aliases=[];function Iq(e){e.register(pm),e.register(K_),e.register(jC),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}Oq.displayName="iecst";Oq.aliases=[];function Oq(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}kq.displayName="supercollider";kq.aliases=["sclang"];function kq(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}Rq.displayName="systemd";Rq.aliases=[];function Rq(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}YC.displayName="t4-templating";YC.aliases=[];function YC(e){(function(t){function n(a,i,o){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:o}}}}function r(a){var i=t.languages[a],o="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",i,o),"class-feature":n("\\+",i,o),standard:n("",i,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}_q.displayName="t4-cs";_q.aliases=["t4"];function _q(e){e.register(fm),e.register(YC),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Nq.displayName="t4-vb";Nq.aliases=[];function Nq(e){e.register(YC),e.register(VC),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}Dq.displayName="tap";Dq.aliases=[];function Dq(e){e.register(HC),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}Mq.displayName="tcl";Mq.aliases=[];function Mq(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}$q.displayName="tt2";$q.aliases=[];function $q(e){e.register(Qn),e.register(go),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}Lq.displayName="toml";Lq.aliases=[];function Lq(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(a){return a.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}Pq.displayName="tremor";Pq.aliases=["trickle","troy"];function Pq(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}Fq.displayName="typoscript";Fq.aliases=["tsconfig"];function Fq(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}Bq.displayName="unrealscript";Bq.aliases=["uc","uscript"];function Bq(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}zq.displayName="uorazor";zq.aliases=[];function zq(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}Hq.displayName="v";Hq.aliases=[];function Hq(e){e.register(Qn),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}jq.displayName="vala";jq.aliases=[];function jq(e){e.register(Qn),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}Uq.displayName="velocity";Uq.aliases=[];function Uq(e){e.register(qi),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}Vq.displayName="verilog";Vq.aliases=[];function Vq(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}Wq.displayName="vhdl";Wq.aliases=[];function Wq(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}Gq.displayName="vim";Gq.aliases=[];function Gq(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}qq.displayName="visual-basic";qq.aliases=["vb","vba"];function qq(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}Yq.displayName="warpscript";Yq.aliases=[];function Yq(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}Kq.displayName="wasm";Kq.aliases=[];function Kq(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}Xq.displayName="web-idl";Xq.aliases=["webidl"];function Xq(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:a}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var i in t.languages["web-idl"])i!=="class-name"&&(a[i]=t.languages["web-idl"][i]);t.languages.webidl=t.languages["web-idl"]})(e)}Qq.displayName="wgsl";Qq.aliases=[];function Qq(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}Zq.displayName="wiki";Zq.aliases=[];function Zq(e){e.register(qi),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}Jq.displayName="wolfram";Jq.aliases=["mathematica","nb","wl"];function Jq(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}eY.displayName="wren";eY.aliases=[];function eY(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}tY.displayName="xeora";tY.aliases=["xeoracube"];function tY(e){e.register(qi),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}nY.displayName="xml-doc";nY.aliases=[];function nY(e){e.register(qi),function(t){function n(o,l){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":l})}var r=t.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",a),n("fsharp",a),n("vbnet",i)}(e)}rY.displayName="xojo";rY.aliases=[];function rY(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}aY.displayName="xquery";aY.aliases=[];function aY(e){e.register(qi),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(n).join("")},r=function(a){for(var i=[],o=0;o0&&i[i.length-1].tagName===n(l.content[0].content[1])&&i.pop():l.content[l.content.length-1].content==="/>"||i.push({tagName:n(l.content[0].content[1]),openedBraces:0}):i.length>0&&l.type==="punctuation"&&l.content==="{"&&(!a[o+1]||a[o+1].type!=="punctuation"||a[o+1].content!=="{")&&(!a[o-1]||a[o-1].type!=="plain-text"||a[o-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?i[i.length-1].openedBraces--:l.type!=="comment"&&(s=!0)),(s||typeof l=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var u=n(l);o0&&(typeof a[o-1]=="string"||a[o-1].type==="plain-text")&&(u=n(a[o-1])+u,a.splice(o-1,1),o--),/^\s+$/.test(u)?a[o]=u:a[o]=new t.Token("plain-text",u,null,u)}l.content&&typeof l.content!="string"&&r(l.content)}};t.hooks.add("after-tokenize",function(a){a.language==="xquery"&&r(a.tokens)})}(e)}iY.displayName="yang";iY.aliases=[];function iY(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}oY.displayName="zig";oY.aliases=[];function oY(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,a="\\b(?!"+r.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(i)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(a)),s="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+l+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(s)).replace(//g,n(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(s)).replace(//g,n(i))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}le.register(qi);le.register(Zp);le.register(Qn);le.register(P_);le.register(ho);le.register(CU);le.register(wU);le.register(TU);le.register(AU);le.register(IU);le.register(OU);le.register(kU);le.register(RU);le.register(gb);le.register(_U);le.register(NU);le.register(DU);le.register(MU);le.register(ec);le.register(dm);le.register(D_);le.register($U);le.register(LU);le.register(BC);le.register(HC);le.register(H_);le.register(PU);le.register(FU);le.register(fm);le.register(BU);le.register(zU);le.register(HU);le.register(jU);le.register(UU);le.register(VU);le.register(WU);le.register(GU);le.register(UC);le.register(qU);le.register(YU);le.register(KU);le.register(XU);le.register(QU);le.register(ZU);le.register(JU);le.register(eV);le.register(tV);le.register(nV);le.register(rV);le.register(aV);le.register(iV);le.register(oV);le.register(lV);le.register(sV);le.register(uV);le.register(cV);le.register(dV);le.register(fV);le.register(pV);le.register(hV);le.register(gV);le.register(mV);le.register(vV);le.register(gm);le.register(yV);le.register(bV);le.register(xV);le.register(EV);le.register(SV);le.register(CV);le.register(wV);le.register(TV);le.register(AV);le.register(IV);le.register(M_);le.register(go);le.register(OV);le.register(kV);le.register(RV);le.register(_V);le.register(NV);le.register(DV);le.register(MV);le.register($V);le.register(LV);le.register(PV);le.register(zC);le.register(FV);le.register(BV);le.register(zV);le.register(HV);le.register(jV);le.register(UV);le.register(VV);le.register(WV);le.register(GV);le.register(qV);le.register(YV);le.register(KV);le.register(XV);le.register(QV);le.register(ZV);le.register(JV);le.register(eW);le.register(tW);le.register(nW);le.register(rW);le.register(aW);le.register(iW);le.register($_);le.register(oW);le.register(lW);le.register(sW);le.register(uW);le.register(B_);le.register(q_);le.register(cW);le.register(dW);le.register(fW);le.register(GC);le.register(pW);le.register(hW);le.register(gW);le.register(mW);le.register(vW);le.register(yW);le.register(hb);le.register(bW);le.register(xW);le.register(EW);le.register(SW);le.register(CW);le.register(wW);le.register(TW);le.register(AW);le.register(L_);le.register(IW);le.register(OW);le.register(pm);le.register(hm);le.register(bb);le.register(kW);le.register(RW);le.register(_W);le.register(NW);le.register(DW);le.register(MW);le.register($W);le.register(mb);le.register(LW);le.register(PW);le.register(FW);le.register(BW);le.register(zW);le.register(HW);le.register(jW);le.register(UW);le.register(VW);le.register(F_);le.register(WW);le.register(GW);le.register(qW);le.register(YW);le.register(qC);le.register(KW);le.register(XW);le.register(QW);le.register(ZW);le.register(JW);le.register(eG);le.register(tG);le.register(nG);le.register(z_);le.register(K_);le.register(rG);le.register(aG);le.register(iG);le.register(oG);le.register(lG);le.register(sG);le.register(uG);le.register(cG);le.register(dG);le.register(fG);le.register(pG);le.register(hG);le.register(gG);le.register(mG);le.register(vG);le.register(yG);le.register(bG);le.register(xG);le.register(EG);le.register(j_);le.register(SG);le.register(CG);le.register(wG);le.register(TG);le.register(AG);le.register(IG);le.register(OG);le.register(kG);le.register(RG);le.register(_G);le.register(NG);le.register(DG);le.register(U_);le.register(MG);le.register($G);le.register(LG);le.register(PG);le.register(FG);le.register(BG);le.register(zG);le.register(HG);le.register(jG);le.register(UG);le.register(VG);le.register(WG);le.register(GG);le.register(qG);le.register(YG);le.register(KG);le.register(XG);le.register(QG);le.register(jC);le.register(ZG);le.register(JG);le.register(eq);le.register(tq);le.register(V_);le.register(nq);le.register(rq);le.register(X_);le.register(aq);le.register(iq);le.register(oq);le.register(lq);le.register(sq);le.register(uq);le.register(cq);le.register(dq);le.register(fq);le.register(W_);le.register(pq);le.register(G_);le.register(hq);le.register(gq);le.register(mq);le.register(vq);le.register(yq);le.register(bq);le.register(xq);le.register(Eq);le.register(Q_);le.register(Sq);le.register(Cq);le.register(wq);le.register(Tq);le.register(Aq);le.register(Iq);le.register(Oq);le.register(kq);le.register(Y_);le.register(Rq);le.register(YC);le.register(_q);le.register(VC);le.register(Nq);le.register(Dq);le.register(Mq);le.register($q);le.register(Lq);le.register(Pq);le.register(Fq);le.register(Bq);le.register(zq);le.register(Hq);le.register(jq);le.register(Uq);le.register(Vq);le.register(Wq);le.register(Gq);le.register(qq);le.register(Yq);le.register(Kq);le.register(Xq);le.register(Qq);le.register(Zq);le.register(Jq);le.register(eY);le.register(tY);le.register(nY);le.register(rY);le.register(aY);le.register(iY);le.register(oY);function W8(){W8=function(a,i){return new n(a,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function n(a,i,o){var l=new RegExp(a,i);return t.set(l,o||t.get(a)),kO(l,n.prototype)}function r(a,i){var o=t.get(i);return Object.keys(o).reduce(function(l,s){var u=o[s];if(typeof u=="number")l[s]=a[u];else{for(var c=0;a[u[c]]===void 0&&c+1]+)>/g,function(s,u){var c=o[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof i=="function"){var l=this;return e[Symbol.replace].call(this,a,function(){var s=arguments;return typeof s[s.length-1]!="object"&&(s=[].slice.call(s)).push(r(s,l)),i.apply(this,s)})}return e[Symbol.replace].call(this,a,i)},W8.apply(this,arguments)}function kO(e,t){return kO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kO(e,t)}function Ese(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jdn=function(e){return function(t){return t===void 0&&(t={}),function(r,a){if(a&&!r.registered(a))throw new Error('The default language "'+a+'" is not registered with refractor.')}(e,t.defaultLanguage),function(r){Ycn(r,"element",n)};function n(r,a,i){var o,l;if(i&&i.tagName==="pre"&&r.tagName==="code"){var s=(r==null||(o=r.data)==null?void 0:o.meta)||(r==null||(l=r.properties)==null?void 0:l.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,c,d=function(S){for(var C,w=S$(S.properties.className);!(C=w()).done;){var I=C.value;if(I.slice(0,9)==="language-")return I.slice(9).toLowerCase()}return null}(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var f,p;p=(f=d)!=null&&f.includes("diff-")?d.split("-")[1]:d,u=e.highlight(Dv(r),p),i.properties.className=(i.properties.className||[]).concat("language-"+p)}catch(S){if(!t.ignoreMissing||!/Unknown language/.test(S.message))throw S;u=r}else u=r;u.children=(c=1,function S(C){return C.reduce(function(w,I){if(I.type==="text"){var T=I.value,A=(T.match(/\n/g)||"").length;if(A===0)I.position={start:{line:c,column:1},end:{line:c,column:1}},w.push(I);else for(var O,R=T.split(` +`),N=S$(R.entries());!(O=N()).done;){var _=O.value,L=_[0],$=_[1];w.push({type:"text",value:L===R.length-1?$:$+` +`,position:{start:{line:c+L,column:1},end:{line:c+L,column:1}}})}return c+=A,w}if(Object.prototype.hasOwnProperty.call(I,"children")){var k=c;return I.children=S(I.children),w.push(I),I.position={start:{line:k,column:1},end:{line:c,column:1}},w}return w.push(I),w},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var h,m=function(S){var C=/{([\d,-]+)}/,w=S.split(",").map(function(A){return A.trim()}).join();if(C.test(w)){var I=C.exec(w)[1],T=idn(I);return function(A){return T.includes(A+1)}}return function(){return!1}}(s),v=function(S){var C=W8(/showLineNumbers=(\d+)/i,{lines:1});if(C.test(S)){var w=C.exec(S);return Number(w.groups.lines)}return 1}(s),y=function(S){for(var C=new Array(S),w=0;w=I+1});T.children=A.children,!s.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||b.some(function(O){return s.toLowerCase().includes(O)})||(T.properties.line=[(I+v).toString()],T.properties.className.push("line-number")),m(I)&&T.properties.className.push("highlight-line"),(d==="diff"||(S=d)!=null&&S.includes("diff-"))&&Dv(T).substring(0,1)==="-"?T.properties.className.push("deleted"):(d==="diff"||(C=d)!=null&&C.includes("diff-"))&&Dv(T).substring(0,1)==="+"&&T.properties.className.push("inserted")},E=S$(y.entries());!(h=E()).done;)x();y.length>0&&Dv(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},PRe=jdn(le);const FRe=function(e){if(e==null)return Gdn;if(typeof e=="function")return Z_(e);if(typeof e=="object")return Array.isArray(e)?Udn(e):Vdn(e);if(typeof e=="string")return Wdn(e);throw new Error("Expected function, string, or object as test")};function Udn(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=BRe,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=Qdn(n(s,c)),p[0]===Sse))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==Kdn)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m4&&n.slice(0,4)==="data"&&nfn.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Tse,ofn);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Tse.test(i)){let o=i.replace(rfn,ifn);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=lY}return new a(r,t)}function ifn(e){return"-"+e.toLowerCase()}function ofn(e){return e.charAt(1).toUpperCase()}const lfn=zRe([URe,jRe,GRe,qRe,efn],"html"),YRe=zRe([URe,jRe,GRe,qRe,tfn],"svg");var TA={},Y8={};function sfn(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),X8=XC(XRe,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),Q8=XC(X8,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),mfn=XC(Q8,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),_se={css1:KRe,css2:XRe,css3:X8,"selectors-3":X8,"selectors-4":Q8,latest:Q8,progressive:mfn};function g1(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function Nse(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function m1(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var vfn={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},yfn={'"':!0,"'":!0},T$={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},bfn=6,A$="css-selector-parser parse error: ";function xfn(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,i=a===void 0?!0:a,o=typeof n=="object"?n:_se[n];o.baseSyntax&&(o=XC(_se[o.baseSyntax],o));var l=o.tag?[!0,!!pfn(o.tag).wildcard]:[!1,!1],s=l[0],u=l[1],c=!!o.ids,d=!!o.classNames,f=!!o.namespace,p=o.namespace&&(o.namespace===!0||o.namespace.wildcard===!0);if(f&&!s)throw new Error("".concat(A$,"Namespaces cannot be enabled while tags are disabled."));var h=!!r,m=o.combinators?Ase(o.combinators):TA,v=o.attributes?[!0,o.attributes.operators?Ase(o.attributes.operators):TA,o.attributes.caseSensitivityModifiers?ufn(o.attributes.caseSensitivityModifiers):Y8,o.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,TA,Y8,!1],y=v[0],b=v[1],x=v[2],E=v[3],S=E||Object.keys(x).length>0,C=o.pseudoClasses?[!0,o.pseudoClasses.definitions?Ose(o.pseudoClasses.definitions):hT,o.pseudoClasses.unknown==="accept"]:[!1,hT,!1],w=C[0],I=C[1],T=C[2],A=o.pseudoElements?[!0,o.pseudoElements.notation==="singleColon"||o.pseudoElements.notation==="both",!o.pseudoElements.notation||o.pseudoElements.notation==="doubleColon"||o.pseudoElements.notation==="both",o.pseudoElements.definitions?Ose(Array.isArray(o.pseudoElements.definitions)?{NoArgument:o.pseudoElements.definitions}:o.pseudoElements.definitions):hT,o.pseudoElements.unknown==="accept"]:[!1,!1,!1,hT,!1],O=A[0],R=A[1],N=A[2],_=A[3],L=A[4],$="",k=$.length,P=0,B="",F=function(Ee){return B===Ee},D=function(){return F("*")||g1(B)},j=function(Ee){P=Ee,B=$.charAt(P)},z=function(){P++,B=$.charAt(P)},V=function(){var Ee=B;return P++,B=$.charAt(P),Ee};function G(Ee){var we=Math.min(k-1,P),ue=new Error("".concat(A$).concat(Ee," Pos: ").concat(we,"."));throw ue.position=we,ue.name="ParserError",ue}function W(Ee,we){if(!Ee)return G(we)}var Y=function(){W(P=k},Z=function(Ee){W(P=2&&G("Identifiers cannot start with two hyphens with strict mode on."),T$[B]&&G("Identifiers cannot start with hyphens followed by digits.");P":""))+")"})}return f;function f(){let p=e3e,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=Dfn(n(s,c)),p[0]===Z8))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==t3e)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m0)return(t.commaSeparated?Pfn:Bfn)(e)}else return String(e)}const jfn=[];function Ufn(e,t){return(t.properties.className||jfn).includes(e.name)}function Vfn(e,t){return t.properties.id===e.name}function Wfn(e,t){return e.name===t.tagName}function Gfn(e,t){return function(n,r){let a=Mse(n,"tag");const i=Mse(r??"*","range"),o=[];let l=-1;for(;++l=$se&&e.charCodeAt(t)<=Xfn;)u=u*10+(e.charCodeAt(t)-$se),t++;return t===s?null:u}function l(){for(;ti<=n;if(t===0)return i=>i===n;if(t===1)return n<0?Lse.trueFunc:i=>i>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?i=>i>=n&&i%r===a:i=>i<=n&&i%r===a}function Pse(e){return Jfn(Qfn(e))}const Fse={}.hasOwnProperty;function epn(e,t){const n=t||{};function r(a,...i){let o=r.invalid;const l=r.handlers;if(a&&Fse.call(a,e)){const s=String(a[e]);o=Fse.call(l,s)?l[s]:r.unknown}if(o)return o.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const tpn=Pse.default||Pse,npn=epn("name",{handlers:{"any-link":rpn,blank:apn,checked:ipn,dir:opn,disabled:n3e,empty:lpn,enabled:spn,"first-child":upn,"first-of-type":cpn,has:dpn,is:r3e,lang:ppn,"last-child":hpn,"last-of-type":gpn,not:mpn,"nth-child":vpn,"nth-last-child":ypn,"nth-last-of-type":bpn,"nth-of-type":xpn,"only-child":Epn,"only-of-type":Spn,optional:Cpn,"read-only":wpn,"read-write":a3e,required:i3e,root:Tpn,scope:Apn},invalid:fpn,unknown:Ipn});function rpn(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Mg(t,"href")}function Qc(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function apn(e,t){return!o3e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!kC(r)}}function ipn(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Mg(t,"checked")):t.tagName==="option"?Mg(t,"selected"):!1}function opn(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function n3e(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&Mg(t,"disabled")}function lpn(e,t){return!o3e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function spn(e,t){return!n3e(e,t)}function upn(e,t,n,r,a){return Qc(a,e),a.elementIndex===0}function cpn(e,t,n,r,a){return Qc(a,e),a.typeIndex===0}function eN(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=tpn(n.a+"n+"+n.b),e._cachedFn=t}return t}function dpn(e,t,n,r,a){e.argument,e.argument.type;const i={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return sY(i,{type:"root",children:t.children}),i.results.length>0}function fpn(){}function r3e(e,t,n,r,a){e.argument,e.argument.type;const i={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return sY(i,t),i.results[0]===t}function ppn(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&qfn(a.language,Lfn(e.argument.value)).length>0}function hpn(e,t,n,r,a){return Qc(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function gpn(e,t,n,r,a){return Qc(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function mpn(e,t,n,r,a){return!r3e(e,t,n,r,a)}function vpn(e,t,n,r,a){const i=eN(e);return Qc(a,e),typeof a.elementIndex=="number"&&i(a.elementIndex)}function ypn(e,t,n,r,a){const i=eN(e);return Qc(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&i(a.elementCount-a.elementIndex-1))}function bpn(e,t,n,r,a){const i=eN(e);return Qc(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&i(a.typeCount-1-a.typeIndex)}function xpn(e,t,n,r,a){const i=eN(e);return Qc(a,e),typeof a.typeIndex=="number"&&i(a.typeIndex)}function Epn(e,t,n,r,a){return Qc(a,e),a.elementCount===1}function Spn(e,t,n,r,a){return Qc(a,e),a.typeCount===1}function Cpn(e,t){return!i3e(e,t)}function wpn(e,t,n,r,a){return!a3e(e,t,n,r,a)}function a3e(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!Mg(t,"readOnly")&&!Mg(t,"disabled"):!!a.editableOrEditingHost}function i3e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Mg(t,"required")}function Tpn(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function Apn(e,t,n,r,a){return a.scopeElements.includes(t)}function o3e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";O$(i,u,s)}else e.found=!0,e.results.includes(n)||e.results.push(n)}l.combinator===void 0?O$(i,"descendant",l):l.combinator==="~"&&O$(i,"generalSibling",l)}return i}function AA(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:kpn}function Bse(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function l3e(e,t,n,r,a,i){let o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const l=$fn(e,n);if(n.type==="element"){let s=e.rootQuery.rules;a&&a!==i&&(s=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&a===i)),o=_pn(e,AA(t,s),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Rpn(e,o,n,i),l(),o}function Npn(e,t,n){const r=Dpn(e,t,n);return sY(r,t||void 0),r.results}function Dpn(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Sfn(e),schema:n==="svg"?YRe:lfn,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const s3e=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=s3e(n.children))}),t),Mpn=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=Npn(t,r);a&&a.length>0&&Cse(r,a,(i,o,l)=>{n(i,o,l)});return}Cse(r,(a,i,o)=>{n(a,i,o)})}}},$pn=Mpn,u3e=function(e){if(e==null)return Bpn;if(typeof e=="function")return tN(e);if(typeof e=="object")return Array.isArray(e)?Lpn(e):Ppn(e);if(typeof e=="string")return Fpn(e);throw new Error("Expected function, string, or object as test")};function Lpn(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=c3e,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=Vpn(n(s,c)),p[0]===zse))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==jpn)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),qpn=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},d3e=(e=[],t,n,r)=>{let a=t;for(;a/,"$2")||"")?void 0:r?d3e(e,a,"pre",r)?void 0:(i.value=(i.value||"").replace(/^(\n|\s)+/,""),i):(i.value=(i.value||"").replace(/^(\n|\s)+/,""),i)}},Hse=({value:e=""})=>{const t=Gpn(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},jse=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Ypn=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Wpn(r,"element",(a,i,o)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const l=a.children[0];if(l&&l.tagName==="code"&&typeof i=="number"){const s=qpn(o.children,i);if(s){const u=Hse(s);Object.keys(u).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},l.properties=jse(l.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(a.tagName)&&o&&Array.isArray(o.children)&&typeof i=="number"){const l=d3e(o.children,i,"",n);if(l){const s=Hse(l);Object.keys(s).length>0&&(a.properties=jse(a.properties,s,t))}}})}},Kpn=Ypn;var Xpn=function(t){return n=>{NC(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=ir({},r.properties,{"data-meta":String(r.data.meta)}))})}},Qpn=function(t){return n=>{NC(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const Zpn=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Jpn=Object.hasOwnProperty;class ehn{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=thn(t,n===!0);const i=a;for(;Jpn.call(r.occurrences,a);)r.occurrences[i]++,a=i+"-"+r.occurrences[i];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}}function thn(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Zpn,"").replace(/ /g,"-"))}function f3e(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const p3e=function(e){if(e==null)return ihn;if(typeof e=="function")return nN(e);if(typeof e=="object")return Array.isArray(e)?nhn(e):rhn(e);if(typeof e=="string")return ahn(e);throw new Error("Expected function, string, or object as test")};function nhn(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=h3e,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=chn(n(s,c)),p[0]===Use))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==shn)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m":""))+")"})}return f;function f(){let p=v3e,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=Thn(n(s,c)),p[0]===Wse))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==IA)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m":""))+")"})}return f;function f(){let p=x3e,h,m,v;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=Phn(n(s,c)),p[0]===Yse))return p;if("children"in s&&s.children){const y=s;if(y.children&&p[0]!==$hn)for(m=(r?y.children.length:-1)+o,v=c.concat(y);m>-1&&m{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Fhn(r,(a,i,o)=>{if(a.type==="element"||a.type==="root"){let l=!1;a.children=a.children.filter(s=>{if(s.type==="raw"||s.type==="comment"){let u=(s.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return l=!0,!1;if(u===n)return l=!1,!1}return!l})}})}},zhn=Bhn;var Hhn={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function jhn(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var Uhn=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var i=n.children&&n.children[0];i&&i.properties&&i.properties.ariaHidden==="true"&&(i.properties=ir({class:"anchor"},i.properties),i.children=[Hhn])}if(n.type==="element"&&n.tagName==="pre"&&!e){var o=s3e(n.children);n.children.push(jhn(o))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},Vhn=[phn,Ohn,zhn];const E3e=M.forwardRef((e,t)=>{var n,r=[Xpn,bRe,Qpn,...Vhn,[$pn,{rewrite:Uhn((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Kpn,{properties:"attr"}],...e.rehypePlugins||[],[PRe,{ignoreMissing:!0}]];return q.jsx(Fcn,ir({},e,{rehypePlugins:r,ref:t}))});function Whn(e,t){return ir({},e,t)}var ym=M.createContext({markdown:""});function S3e(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=ir({},t,S3e(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function C3e(e,t,n,r,a){t===void 0&&(t=[]);var i=S3e(t||[]),o=[];if(e.altKey&&o.push("alt"),e.shiftKey&&o.push("shift"),e.metaKey&&o.push("cmd"),e.ctrlKey&&o.push("ctrl"),o.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&o.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&o.push("escape"),!(o.length<1)){var l=!!i[o.join("+")],s=l?i[o.join("+")]:void 0;if(Object.keys(i).forEach(u=>{var c=u.split("+").every(d=>/ctrlcmd/.test(d)?o.includes("ctrl")||o.includes("cmd"):o.includes(d));c&&(s=i[u])}),s&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(s,r,a,o);return}}}function Ghn(e,t){return t||(t=e.slice(0)),e.raw=t,e}function qhn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kse(e.position):"start"in e||"end"in e?Kse(e):"line"in e||"column"in e?J8(e):""}function J8(e){return Xse(e&&e.line)+":"+Xse(e&&e.column)}function Kse(e){return J8(e&&e.start)+"-"+J8(e&&e.end)}function Xse(e){return e&&typeof e=="number"?e:1}let Yo=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=qhn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};Yo.prototype.file="";Yo.prototype.name="";Yo.prototype.reason="";Yo.prototype.message="";Yo.prototype.stack="";Yo.prototype.column=void 0;Yo.prototype.line=void 0;Yo.prototype.ancestors=void 0;Yo.prototype.cause=void 0;Yo.prototype.fatal=void 0;Yo.prototype.place=void 0;Yo.prototype.ruleId=void 0;Yo.prototype.source=void 0;const dc={basename:Yhn,dirname:Khn,extname:Xhn,join:Qhn,sep:"/"};function Yhn(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');QC(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Khn(e){if(QC(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Xhn(e){QC(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Qhn(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Jhn(e,t){let n="",r=0,a=-1,i=0,o=-1,l,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return n}function QC(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const egn={cwd:tgn};function tgn(){return"/"}function e5(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ngn(e){if(typeof e=="string")e=new URL(e);else if(!e5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return rgn(e)}function rgn(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `` in ``",description:"Unexpected text character `%c`. Only use text in `