diff --git a/docs/demo/assets/css/chunk-vendors.css b/docs/demo/assets/css/chunk-vendors.css index 13691e4..bf0a550 100644 --- a/docs/demo/assets/css/chunk-vendors.css +++ b/docs/demo/assets/css/chunk-vendors.css @@ -1,13 +1,13 @@ .CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-moz-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none} /*! - * css of showdowns v0.6.1 + * css of showdowns v0.6.3 * Copyright (c) 2019-present, Jhuix (Hui Jin) * Released under the MIT License. */.showdowns blockquote,.showdowns dd,.showdowns div,.showdowns dl,.showdowns dt,.showdowns form,.showdowns h1,.showdowns h2,.showdowns h3,.showdowns h4,.showdowns h5,.showdowns h6,.showdowns li,.showdowns ol,.showdowns p,.showdowns pre,.showdowns td,.showdowns th,.showdowns ul{margin:0;padding:0}.showdowns div.paragraph.align-right,.showdowns h1.align-right,.showdowns h2.align-right,.showdowns h3.align-right,.showdowns h4.align-right,.showdowns h5.align-right,.showdowns h6.align-right,.showdowns li.align-right,.showdowns p.align-right{text-align:right}.showdowns div.paragraph.align-center,.showdowns h1.align-center,.showdowns h2.align-center,.showdowns h3.align-center,.showdowns h4.align-center,.showdowns h5.align-center,.showdowns h6.align-center,.showdowns li.align-center,.showdowns p.align-center{text-align:center}.showdowns a{color:#0366d6;line-height:inherit;text-decoration:none}.showdowns a img{border:none}.showdowns a:hover{cursor:pointer;text-decoration:underline}.showdowns img{-ms-interpolation-mode:bicubic;display:inherit;height:auto;margin:0 auto;max-width:100%}.showdowns p{font-family:inherit;font-size:1em;font-weight:400;line-height:1.5;margin-bottom:1.25em;text-rendering:optimizeLegibility}.showdowns p.lead{font-size:1.21875em;line-height:1.5}.showdowns p aside{font-size:.875em;font-style:italic;line-height:1.5}.showdowns h1,.showdowns h2,.showdowns h3,.showdowns h4,.showdowns h5,.showdowns h6{font-style:normal;font-weight:600;line-height:1.25;margin-bottom:1rem;margin-top:1.5rem;text-rendering:optimizeLegibility}.showdowns h1 small,.showdowns h2 small,.showdowns h3 small,.showdowns h4 small,.showdowns h5 small,.showdowns h6 small{font-size:60%;line-height:0}.showdowns h1,.showdowns h2{border-bottom:1px solid #d6d6d6;padding-bottom:.3em}.showdowns h1{font-size:2em}.showdowns h2{font-size:1.5em}.showdowns h3{font-size:1.25em}.showdowns h4{font-size:1em}.showdowns h5{font-size:.875em}.showdowns h6{color:#6a737d;font-size:.85em}.showdowns .subheader{color:#6f6f6f;font-weight:400;line-height:1.4;margin-bottom:.5em;margin-top:.2em}.showdowns hr{border:solid #ddd;border-width:1px 0 0;clear:both;height:0;margin:1.25em 0 1.1875em}.showdowns em,.showdowns i{font-style:italic;line-height:inherit}.showdowns b,.showdowns strong{font-weight:600;line-height:inherit}.showdowns small{font-size:60%;line-height:inherit}.showdowns code{border-style:solid;border-width:1px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-weight:400;padding:.125em .3125em .0625em}.showdowns dl,.showdowns ol,.showdowns ul{font-family:inherit;font-size:1em;line-height:1.5;list-style-position:outside;margin-bottom:1.25em}.showdowns ul{margin-left:1.1em}.showdowns ul.no-bullet{margin-left:0}.showdowns ul.no-bullet li ol,.showdowns ul.no-bullet li ul{list-style:none;margin-bottom:0;margin-left:1.25em}.showdowns ul li ol,.showdowns ul li ul{margin-bottom:0;margin-left:1.25em}.showdowns ul.circle li ul,.showdowns ul.disc li ul,.showdowns ul.square li ul{list-style:inherit}.showdowns ul.square{list-style-type:square;margin-left:1.1em}.showdowns ul.circle{list-style-type:circle;margin-left:1.1em}.showdowns ul.disc{list-style-type:disc;margin-left:1.1em}.showdowns ul.no-bullet{list-style:none}.showdowns ol{margin-left:1.4em}.showdowns ol li ol,.showdowns ol li ul{margin-bottom:0;margin-left:1.25em}.showdowns dl dt{font-weight:600;margin-bottom:.3em}.showdowns dl dd{margin-bottom:.75em}.showdowns abbr,.showdowns acronym{color:#222;cursor:help;font-size:90%;text-transform:uppercase}.showdowns abbr{text-transform:none}.showdowns abbr[title]{border-bottom:1px dotted #5c5c5c}.showdowns blockquote{border-left:4px solid #d6d6d6;color:#5c5c5c;line-height:1.5;margin:0 0 16px;padding:0 15px}.showdowns blockquote cite{color:#555;display:block;font-size:.8125em}.showdowns blockquote cite:before{content:"\2014 \0020"}.showdowns blockquote cite a,.showdowns blockquote cite a:visited{color:#555}.showdowns pre{word-wrap:break-word;border:1px solid #dfdfdf;margin-bottom:1.5em;margin-top:1.5em;padding:.125em .3125em .0625em;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap}.showdowns pre code{background-color:transparent;border:0;padding:0}.showdowns table{background:#fff;border-collapse:collapse;border-spacing:0;margin-bottom:1.25em;overflow:auto;table-layout:auto}.showdowns table caption{background:transparent;color:#222;font-weight:600}.showdowns table thead{background:#f5f5f5}.showdowns table thead tr td,.showdowns table thead tr th{border:1px solid #d6d6d6;color:#222;font-weight:600;line-height:1.125em;padding:.5em .625em .625em}.showdowns table tfoot{background:#f5f5f5}.showdowns table tfoot tr td,.showdowns table tfoot tr th{border:1px solid #d6d6d6;color:#222;font-weight:600;line-height:1.125em;padding:.5em .625em .625em}.showdowns table tr td,.showdowns table tr th{border:1px solid #d6d6d6;color:#222;line-height:1.125em;padding:.5625em .625em}.showdowns table tr.alt,.showdowns table tr.even,.showdowns table tr:nth-of-type(2n){background:#f9f9f9}.showdowns table tbody tr td,.showdowns table tbody tr th{border:1px solid #d6d6d6;line-height:1.125em}.showdowns .flow,.showdowns .flowchart,.showdowns .mermaid,.showdowns .plantuml,.showdowns .sequence,.showdowns .wavedrom{background-color:#f9f9f9}.showdowns .diagram-center:not(.asciimath):not(.latex):not(.mermaid){display:table;margin:auto}.showdowns .diagram-right:not(.asciimath):not(.latex):not(.mermaid){display:table;margin:auto 0 auto auto}.showdowns .diagram-center.mermaid{text-align:center}.showdowns .diagram-right.mermaid{text-align:right}.showdowns .asciimath:not(.diagram-center):not(.diagram-right) .katex,.showdowns .asciimath:not(.diagram-center):not(.diagram-right) .katex-display,.showdowns .latex:not(.diagram-center):not(.diagram-right) .katex,.showdowns .latex:not(.diagram-center):not(.diagram-right) .katex-display{text-align:unset}.showdowns .asciimath.diagram-center .katex,.showdowns .asciimath.diagram-center .katex-display,.showdowns .latex.diagram-center .katex,.showdowns .latex.diagram-center .katex-display{text-align:center}.showdowns .asciimath.diagram-right .katex,.showdowns .asciimath.diagram-right .katex-display,.showdowns .latex.diagram-right .katex,.showdowns .latex.diagram-right .katex-display{text-align:right} /*! - * css of showdowns v0.6.1 + * css of showdowns v0.6.3 * Copyright (c) 2019-present, Jhuix (Hui Jin) * Released under the MIT License. */.showdowns .showdown-container{border:1px solid #eee;border-radius:.25rem;margin-bottom:1rem;padding:.75rem 1.25rem;position:relative}.showdowns .showdown-container.container{border-left-width:.25rem;border-right-width:.25rem}.showdowns .showdown-container.container.tip{border-left-color:#5bc0de;border-right-color:#5bc0de}.showdowns .showdown-container.container.info{border-left-color:#cce5ff;border-right-color:#cce5ff}.showdowns .showdown-container.container.warning{border-left-color:#f0ad4e;border-right-color:#f0ad4e}.showdowns .showdown-container.container.error{border-left-color:#d9534f;border-right-color:#d9534f}.showdowns .showdown-container.container.success{border-left-color:#67c23a;border-right-color:#67c23a}.showdowns .showdown-container.alert{border:1px solid transparent;-webkit-transition:opacity .2s;transition:opacity .2s}.showdowns .showdown-container.alert.alert-tip{background-color:#5bc0de}.showdowns .showdown-container.alert.alert-info{background-color:#cce5ff}.showdowns .showdown-container.alert.alert-warning{background-color:#f0ad4e}.showdowns .showdown-container.alert.alert-error{background-color:#d9534f}.showdowns .showdown-container.alert.alert-success{background-color:#67c23a}.showdowns .showdown-container .container-title{font-size:1.25rem;font-weight:700;line-height:1.2}.cm-s-lesser-dark{line-height:1.3em}.cm-s-lesser-dark.CodeMirror{background:#262626;color:#ebefe7;text-shadow:0 -1px 1px #262626}.cm-s-lesser-dark div.CodeMirror-selected{background:#45443b}.cm-s-lesser-dark .CodeMirror-line::selection,.cm-s-lesser-dark .CodeMirror-line>span::selection,.cm-s-lesser-dark .CodeMirror-line>span>span::selection{background:rgba(69,68,59,.99)}.cm-s-lesser-dark .CodeMirror-line::-moz-selection,.cm-s-lesser-dark .CodeMirror-line>span::-moz-selection,.cm-s-lesser-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(69,68,59,.99)}.cm-s-lesser-dark .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-lesser-dark pre{padding:0 8px}.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket{color:#7efc7e}.cm-s-lesser-dark .CodeMirror-gutters{background:#262626;border-right:1px solid #aaa}.cm-s-lesser-dark .CodeMirror-guttermarker{color:#599eff}.cm-s-lesser-dark .CodeMirror-guttermarker-subtle,.cm-s-lesser-dark .CodeMirror-linenumber{color:#777}.cm-s-lesser-dark span.cm-header{color:#a0a}.cm-s-lesser-dark span.cm-quote{color:#090}.cm-s-lesser-dark span.cm-keyword{color:#599eff}.cm-s-lesser-dark span.cm-atom{color:#c2b470}.cm-s-lesser-dark span.cm-number{color:#b35e4d}.cm-s-lesser-dark span.cm-def{color:#fff}.cm-s-lesser-dark span.cm-variable{color:#d9bf8c}.cm-s-lesser-dark span.cm-variable-2{color:#669199}.cm-s-lesser-dark span.cm-type,.cm-s-lesser-dark span.cm-variable-3{color:#fff}.cm-s-lesser-dark span.cm-operator,.cm-s-lesser-dark span.cm-property{color:#92a75c}.cm-s-lesser-dark span.cm-comment{color:#666}.cm-s-lesser-dark span.cm-string{color:#bcd279}.cm-s-lesser-dark span.cm-string-2{color:#f50}.cm-s-lesser-dark span.cm-meta{color:#738c73}.cm-s-lesser-dark span.cm-qualifier{color:#555}.cm-s-lesser-dark span.cm-builtin{color:#ff9e59}.cm-s-lesser-dark span.cm-bracket{color:#ebefe7}.cm-s-lesser-dark span.cm-tag{color:#669199}.cm-s-lesser-dark span.cm-attribute{color:#81a4d5}.cm-s-lesser-dark span.cm-hr{color:#999}.cm-s-lesser-dark span.cm-link{color:#7070e6}.cm-s-lesser-dark span.cm-error{color:#9d1e15}.cm-s-lesser-dark .CodeMirror-activeline-background{background:#3c3a3a}.cm-s-lesser-dark .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}.cm-s-mdn-like.CodeMirror{color:#999;background-color:#fff}.cm-s-mdn-like div.CodeMirror-selected{background:#cfc}.cm-s-mdn-like .CodeMirror-line::selection,.cm-s-mdn-like .CodeMirror-line>span::selection,.cm-s-mdn-like .CodeMirror-line>span>span::selection{background:#cfc}.cm-s-mdn-like .CodeMirror-line::-moz-selection,.cm-s-mdn-like .CodeMirror-line>span::-moz-selection,.cm-s-mdn-like .CodeMirror-line>span>span::-moz-selection{background:#cfc}.cm-s-mdn-like .CodeMirror-gutters{background:#f8f8f8;border-left:6px solid rgba(0,83,159,.65);color:#333}.cm-s-mdn-like .CodeMirror-linenumber{color:#aaa;padding-left:8px}.cm-s-mdn-like .CodeMirror-cursor{border-left:2px solid #222}.cm-s-mdn-like .cm-keyword{color:#6262ff}.cm-s-mdn-like .cm-atom{color:#f90}.cm-s-mdn-like .cm-number{color:#ca7841}.cm-s-mdn-like .cm-def{color:#8da6ce}.cm-s-mdn-like span.cm-tag,.cm-s-mdn-like span.cm-variable-2{color:#690}.cm-s-mdn-like .cm-variable,.cm-s-mdn-like span.cm-def,.cm-s-mdn-like span.cm-type,.cm-s-mdn-like span.cm-variable-3{color:#07a}.cm-s-mdn-like .cm-property{color:#905}.cm-s-mdn-like .cm-qualifier{color:#690}.cm-s-mdn-like .cm-operator{color:#cda869}.cm-s-mdn-like .cm-comment{color:#777;font-weight:400}.cm-s-mdn-like .cm-string{color:#07a;font-style:italic}.cm-s-mdn-like .cm-string-2{color:#bd6b18}.cm-s-mdn-like .cm-meta{color:#000}.cm-s-mdn-like .cm-builtin{color:#9b7536}.cm-s-mdn-like .cm-tag{color:#997643}.cm-s-mdn-like .cm-attribute{color:#d6bb6d}.cm-s-mdn-like .cm-header{color:#ff6400}.cm-s-mdn-like .cm-hr{color:#aeaeae}.cm-s-mdn-like .cm-link{color:#ad9361;font-style:italic;text-decoration:none}.cm-s-mdn-like .cm-error{border-bottom:1px solid red}div.cm-s-mdn-like .CodeMirror-activeline-background{background:#efefff}div.cm-s-mdn-like span.CodeMirror-matchingbracket{outline:1px solid grey;color:inherit}.cm-s-mdn-like.CodeMirror{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyCAYAAAAp8UeFAAAHvklEQVR42s2b63bcNgyEQZCSHCdt2vd/0tWF7I+Q6XgMXiTtuvU5Pl57ZQKkKHzEAOtF5KeIJBGJ8uvL599FRFREZhFx8DeXv8trn68RuGaC8TRfo3SNp9dlDDHedyLyTUTeRWStXKPZrjtpZxaRw5hPqozRs1N8/enzIiQRWcCgy4MUA0f+XWliDhyL8Lfyvx7ei/Ae3iQFHyw7U/59pQVIMEEPEz0G7XiwdRjzSfC3UTtz9vchIntxvry5iMgfIhJoEflOz2CQr3F5h/HfeFe+GTdLaKcu9L8LTeQb/R/7GgbsfKedyNdoHsN31uRPWrfZ5wsj/NzzRQHuToIdU3ahwnsKPxXCjJITuOsi7XLc7SG/v5GdALs7wf8JjTFiB5+QvTEfRyGOfX3Lrx8wxyQi3sNq46O7QahQiCsRFgqddjBouVEHOKDgXAQHD9gJCr5sMKkEdjwsarG/ww3BMHBU7OBjXnzdyY7SfCxf5/z6ATccrwlKuwC/jhznnPF4CgVzhhVf4xp2EixcBActO75iZ8/fM9zAs2OMzKdslgXWJ9XG8PQoOAMA5fGcsvORgv0doBXyHrCwfLJAOwo71QLNkb8n2Pl6EWiR7OCibtkPaz4Kc/0NNAze2gju3zOwekALDaCFPI5vjPFmgGY5AZqyGEvH1x7QfIb8YtxMnA/b+QQ0aQDAwc6JMFg8CbQZ4qoYEEHbRwNojuK3EHwd7VALSgq+MNDKzfT58T8qdpADrgW0GmgcAS1lhzztJmkAzcPNOQbsWEALBDSlMKUG0Eq4CLAQWvEVQ9WU57gZJwZtgPO3r9oBTQ9WO8TjqXINx8R0EYpiZEUWOF3FxkbJkgU9B2f41YBrIj5ZfsQa0M5kTgiAAqM3ShXLgu8XMqcrQBvJ0CL5pnTsfMB13oB8athpAq2XOQmcGmoACCLydx7nToa23ATaSIY2ichfOdPTGxlasXMLaL0MLZAOwAKIM+y8CmicobGdCcbbK9DzN+yYGVoNNI5iUKTMyYOjPse4A8SM1MmcXgU0toOq1yO/v8FOxlASyc7TgeYaAMBJHcY1CcCwGI/TK4AmDbDyKYBBtFUkRwto8gygiQEaByFgJ00BH2M8JWwQS1nafDXQCidWyOI8AcjDCSjCLk8ngObuAm3JAHAdubAmOaK06V8MNEsKPJOhobSprwQa6gD7DclRQdqcwL4zxqgBrQcabUiBLclRDKAlWp+etPkBaNMA0AKlrHwTdEByZAA4GM+SNluSY6wAzcMNewxmgig5Ks0nkrSpBvSaQHMdKTBAnLojOdYyGpQ254602ZILPdTD1hdlggdIm74jbTp8vDwF5ZYUeLWGJpWsh6XNyXgcYwVoJQTEhhTYkxzZjiU5npU2TaB979TQehlaAVq4kaGpiPwwwLkYUuBbQwocyQTv1tA0+1UFWoJF3iv1oq+qoSk8EQdJmwHkziIF7oOZk14EGitibAdjLYYK78H5vZOhtWpoI0ATGHs0Q8OMb4Ey+2bU2UYztCtA0wFAs7TplGLRVQCcqaFdGSPCeTI1QNIC52iWNzof6Uib7xjEp07mNNoUYmVosVItHrHzRlLgBn9LFyRHaQCtVUMbtTNhoXWiTOO9k/V8BdAc1Oq0ArSQs6/5SU0hckNy9NnXqQY0PGYo5dWJ7nINaN6o958FWin27aBaWRka1r5myvLOAm0j30eBJqCxHLReVclxhxOEN2JfDWjxBtAC7MIH1fVaGdoOp4qJYDgKtKPSFNID2gSnGldrCqkFZ+5UeQXQBIRrSwocbdZYQT/2LwRahBPBXoHrB8nxaGROST62DKUbQOMMzZIC9abkuELfQzQALWTnDNAm8KHWFOJgJ5+SHIvTPcmx1xQyZRhNL5Qci689aXMEaN/uNIWkEwDAvFpOZmgsBaaGnbs1NPa1Jm32gBZAIh1pCtG7TSH4aE0y1uVY4uqoFPisGlpP2rSA5qTecWn5agK6BzSpgAyD+wFaqhnYoSZ1Vwr8CmlTQbrcO3ZaX0NAEyMbYaAlyquFoLKK3SPby9CeVUPThrSJmkCAE0CrKUQadi4DrdSlWhmah0YL9z9vClH59YGbHx1J8VZTyAjQepJjmXwAKTDQI3omc3p1U4gDUf6RfcdYfrUp5ClAi2J3Ba6UOXGo+K+bQrjjssitG2SJzshaLwMtXgRagUNpYYoVkMSBLM+9GGiJZMvduG6DRZ4qc04DMPtQQxOjEtACmhO7K1AbNbQDEggZyJwscFpAGwENhoBeUwh3bWolhe8BTYVKxQEWrSUn/uhcM5KhvUu/+eQu0Lzhi+VrK0PrZZNDQKs9cpYUuFYgMVpD4/NxenJTiMCNqdUEUf1qZWjppLT5qSkkUZbCwkbZMSuVnu80hfSkzRbQeqCZSAh6huR4VtoM2gHAlLf72smuWgE+VV7XpE25Ab2WFDgyhnSuKbs4GuGzCjR+tIoUuMFg3kgcWKLTwRqanJQ2W00hAsenfaApRC42hbCvK1SlE0HtE9BGgneJO+ELamitD1YjjOYnNYVcraGhtKkW0EqVVeDx733I2NH581k1NNxNLG0i0IJ8/NjVaOZ0tYZ2Vtr0Xv7tPV3hkWp9EFkgS/J0vosngTaSoaG06WHi+xObQkaAdlbanP8B2+2l0f90LmUAAAAASUVORK5CYII=)}.cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:700;color:#00f}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin{line-height:1em;font-weight:700;color:#077}.cm-s-neat span.cm-special{line-height:1em;font-weight:700;color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-atom,.cm-s-neat span.cm-number{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-neat .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}.cm-s-rubyblue.CodeMirror{background:#112435;color:#fff}.cm-s-rubyblue div.CodeMirror-selected{background:#38566f}.cm-s-rubyblue .CodeMirror-line::selection,.cm-s-rubyblue .CodeMirror-line>span::selection,.cm-s-rubyblue .CodeMirror-line>span>span::selection{background:rgba(56,86,111,.99)}.cm-s-rubyblue .CodeMirror-line::-moz-selection,.cm-s-rubyblue .CodeMirror-line>span::-moz-selection,.cm-s-rubyblue .CodeMirror-line>span>span::-moz-selection{background:rgba(56,86,111,.99)}.cm-s-rubyblue .CodeMirror-gutters{background:#1f4661;border-right:7px solid #3e7087}.cm-s-rubyblue .CodeMirror-guttermarker{color:#fff}.cm-s-rubyblue .CodeMirror-guttermarker-subtle{color:#3e7087}.cm-s-rubyblue .CodeMirror-linenumber{color:#fff}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-rubyblue span.cm-comment{color:#999;font-style:italic;line-height:1em}.cm-s-rubyblue span.cm-atom{color:#f4c20b}.cm-s-rubyblue span.cm-attribute,.cm-s-rubyblue span.cm-number{color:#82c6e0}.cm-s-rubyblue span.cm-keyword{color:#f0f}.cm-s-rubyblue span.cm-string{color:#f08047}.cm-s-rubyblue span.cm-meta{color:#f0f}.cm-s-rubyblue span.cm-tag,.cm-s-rubyblue span.cm-variable-2{color:#7bd827}.cm-s-rubyblue span.cm-def,.cm-s-rubyblue span.cm-type,.cm-s-rubyblue span.cm-variable-3{color:#fff}.cm-s-rubyblue span.cm-bracket{color:#f0f}.cm-s-rubyblue span.cm-link{color:#f4c20b}.cm-s-rubyblue span.CodeMirror-matchingbracket{color:#f0f!important}.cm-s-rubyblue span.cm-builtin,.cm-s-rubyblue span.cm-special{color:#ff9d00}.cm-s-rubyblue span.cm-error{color:#af2018}.cm-s-rubyblue .CodeMirror-activeline-background{background:#173047}.cm-s-seti.CodeMirror{background-color:#151718!important;color:#cfd2d1!important;border:none}.cm-s-seti .CodeMirror-gutters{color:#404b53;background-color:#0e1112;border:none}.cm-s-seti .CodeMirror-cursor{border-left:thin solid #f8f8f0}.cm-s-seti .CodeMirror-linenumber{color:#6d8a88}.cm-s-seti.CodeMirror-focused div.CodeMirror-selected{background:hsla(0,0%,100%,.1)}.cm-s-seti .CodeMirror-line::selection,.cm-s-seti .CodeMirror-line>span::selection,.cm-s-seti .CodeMirror-line>span>span::selection{background:hsla(0,0%,100%,.1)}.cm-s-seti .CodeMirror-line::-moz-selection,.cm-s-seti .CodeMirror-line>span::-moz-selection,.cm-s-seti .CodeMirror-line>span>span::-moz-selection{background:hsla(0,0%,100%,.1)}.cm-s-seti span.cm-comment{color:#41535b}.cm-s-seti span.cm-string,.cm-s-seti span.cm-string-2{color:#55b5db}.cm-s-seti span.cm-number{color:#cd3f45}.cm-s-seti span.cm-variable{color:#55b5db}.cm-s-seti span.cm-variable-2{color:#a074c4}.cm-s-seti span.cm-def{color:#55b5db}.cm-s-seti span.cm-keyword{color:#ff79c6}.cm-s-seti span.cm-operator{color:#9fca56}.cm-s-seti span.cm-keyword{color:#e6cd69}.cm-s-seti span.cm-atom{color:#cd3f45}.cm-s-seti span.cm-meta,.cm-s-seti span.cm-tag{color:#55b5db}.cm-s-seti span.cm-attribute,.cm-s-seti span.cm-qualifier{color:#9fca56}.cm-s-seti span.cm-property{color:#a074c4}.cm-s-seti span.cm-builtin,.cm-s-seti span.cm-type,.cm-s-seti span.cm-variable-3{color:#9fca56}.cm-s-seti .CodeMirror-activeline-background{background:#101213}.cm-s-seti .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.cm-s-darcula{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}.cm-s-darcula.CodeMirror{background:#2b2b2b;color:#a9b7c6}.cm-s-darcula span.cm-meta{color:#bbb529}.cm-s-darcula span.cm-number{color:#6897bb}.cm-s-darcula span.cm-keyword{color:#cc7832;line-height:1em;font-weight:700}.cm-s-darcula span.cm-def{color:#a9b7c6;font-style:italic}.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2{color:#a9b7c6}.cm-s-darcula span.cm-variable-3{color:#9876aa}.cm-s-darcula span.cm-type{color:#abc;font-weight:700}.cm-s-darcula span.cm-property{color:#ffc66d}.cm-s-darcula span.cm-operator{color:#a9b7c6}.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2{color:#6a8759}.cm-s-darcula span.cm-comment{color:#61a151;font-style:italic}.cm-s-darcula span.cm-atom,.cm-s-darcula span.cm-link{color:#cc7832}.cm-s-darcula span.cm-error{color:#bc3f3c}.cm-s-darcula span.cm-tag{color:#629755;font-weight:700;font-style:italic;text-decoration:underline}.cm-s-darcula span.cm-attribute{color:#6897bb}.cm-s-darcula span.cm-qualifier{color:#6a8759}.cm-s-darcula span.cm-bracket{color:#a9b7c6}.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special{color:#ff9e59}.cm-s-darcula span.cm-matchhighlight{color:#fff;background-color:rgba(50,89,48,.7);font-weight:400}.cm-s-darcula span.cm-searching{color:#fff;background-color:rgba(61,115,59,.7);font-weight:400}.cm-s-darcula .CodeMirror-cursor{border-left:1px solid #a9b7c6}.cm-s-darcula .CodeMirror-activeline-background{background:#323232}.cm-s-darcula .CodeMirror-gutters{background:#313335;border-right:1px solid #313335}.cm-s-darcula .CodeMirror-guttermarker{color:#ffee80}.cm-s-darcula .CodeMirror-guttermarker-subtle{color:#d0d0d0}.cm-s-darcula .CodeMirrir-linenumber{color:#606366}.cm-s-darcula .CodeMirror-matchingbracket{background-color:#3b514d;color:#ffef28!important;font-weight:700}.cm-s-darcula div.CodeMirror-selected{background:#214283}.CodeMirror-hints.darcula{font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#9c9e9e;background-color:#3b3e3f!important}.CodeMirror-hints.darcula .CodeMirror-hint-active{background-color:#494d4e!important;color:#9c9e9e!important}.cm-s-idea span.cm-meta{color:olive}.cm-s-idea span.cm-number{color:#00f}.cm-s-idea span.cm-keyword{line-height:1em;font-weight:700;color:navy}.cm-s-idea span.cm-atom{font-weight:700;color:navy}.cm-s-idea span.cm-def,.cm-s-idea span.cm-operator,.cm-s-idea span.cm-property,.cm-s-idea span.cm-type,.cm-s-idea span.cm-variable,.cm-s-idea span.cm-variable-2,.cm-s-idea span.cm-variable-3{color:#000}.cm-s-idea span.cm-comment{color:grey}.cm-s-idea span.cm-string,.cm-s-idea span.cm-string-2{color:green}.cm-s-idea span.cm-qualifier{color:#555}.cm-s-idea span.cm-error{color:red}.cm-s-idea span.cm-attribute{color:#00f}.cm-s-idea span.cm-tag{color:navy}.cm-s-idea span.cm-link{color:#00f}.cm-s-idea .CodeMirror-activeline-background{background:#fffae3}.cm-s-idea span.cm-builtin{color:#30a}.cm-s-idea span.cm-bracket{color:#cc7}.cm-s-idea{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}.cm-s-idea .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}.CodeMirror-hints.idea{font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#616569;background-color:#ebf3fd!important}.CodeMirror-hints.idea .CodeMirror-hint-active{background-color:#a2b8c9!important;color:#5c6065!important}.cm-s-the-matrix.CodeMirror{background:#000;color:#0f0}.cm-s-the-matrix div.CodeMirror-selected{background:#2d2d2d}.cm-s-the-matrix .CodeMirror-line::selection,.cm-s-the-matrix .CodeMirror-line>span::selection,.cm-s-the-matrix .CodeMirror-line>span>span::selection{background:rgba(45,45,45,.99)}.cm-s-the-matrix .CodeMirror-line::-moz-selection,.cm-s-the-matrix .CodeMirror-line>span::-moz-selection,.cm-s-the-matrix .CodeMirror-line>span>span::-moz-selection{background:rgba(45,45,45,.99)}.cm-s-the-matrix .CodeMirror-gutters{background:#060;border-right:2px solid #0f0}.cm-s-the-matrix .CodeMirror-guttermarker{color:#0f0}.cm-s-the-matrix .CodeMirror-guttermarker-subtle,.cm-s-the-matrix .CodeMirror-linenumber{color:#fff}.cm-s-the-matrix .CodeMirror-cursor{border-left:1px solid #0f0}.cm-s-the-matrix span.cm-keyword{color:#008803;font-weight:700}.cm-s-the-matrix span.cm-atom{color:#3ff}.cm-s-the-matrix span.cm-number{color:#ffb94f}.cm-s-the-matrix span.cm-def{color:#99c}.cm-s-the-matrix span.cm-variable{color:#f6c}.cm-s-the-matrix span.cm-variable-2{color:#c6f}.cm-s-the-matrix span.cm-type,.cm-s-the-matrix span.cm-variable-3{color:#96f}.cm-s-the-matrix span.cm-property{color:#62ffa0}.cm-s-the-matrix span.cm-operator{color:#999}.cm-s-the-matrix span.cm-comment{color:#ccc}.cm-s-the-matrix span.cm-string{color:#39c}.cm-s-the-matrix span.cm-meta{color:#c9f}.cm-s-the-matrix span.cm-qualifier{color:#fff700}.cm-s-the-matrix span.cm-builtin{color:#30a}.cm-s-the-matrix span.cm-bracket{color:#cc7}.cm-s-the-matrix span.cm-tag{color:#ffbd40}.cm-s-the-matrix span.cm-attribute{color:#fff700}.cm-s-the-matrix span.cm-error{color:red}.cm-s-the-matrix .CodeMirror-activeline-background{background:#040}.solarized.base03{color:#002b36}.solarized.base02{color:#073642}.solarized.base01{color:#586e75}.solarized.base00{color:#657b83}.solarized.base0{color:#839496}.solarized.base1{color:#93a1a1}.solarized.base2{color:#eee8d5}.solarized.base3{color:#fdf6e3}.solarized.solar-yellow{color:#b58900}.solarized.solar-orange{color:#cb4b16}.solarized.solar-red{color:#dc322f}.solarized.solar-magenta{color:#d33682}.solarized.solar-violet{color:#6c71c4}.solarized.solar-blue{color:#268bd2}.solarized.solar-cyan{color:#2aa198}.solarized.solar-green{color:#859900}.cm-s-solarized{line-height:1.45em;color-profile:sRGB;rendering-intent:auto}.cm-s-solarized.cm-s-dark{color:#839496;background-color:#002b36}.cm-s-solarized.cm-s-light{background-color:#fdf6e3;color:#657b83}.cm-s-solarized .CodeMirror-widget{text-shadow:none}.cm-s-solarized .cm-header{color:#586e75}.cm-s-solarized .cm-quote{color:#93a1a1}.cm-s-solarized .cm-keyword{color:#cb4b16}.cm-s-solarized .cm-atom,.cm-s-solarized .cm-number{color:#d33682}.cm-s-solarized .cm-def{color:#2aa198}.cm-s-solarized .cm-variable{color:#839496}.cm-s-solarized .cm-variable-2{color:#b58900}.cm-s-solarized .cm-type,.cm-s-solarized .cm-variable-3{color:#6c71c4}.cm-s-solarized .cm-property{color:#2aa198}.cm-s-solarized .cm-operator{color:#6c71c4}.cm-s-solarized .cm-comment{color:#586e75;font-style:italic}.cm-s-solarized .cm-string{color:#859900}.cm-s-solarized .cm-string-2{color:#b58900}.cm-s-solarized .cm-meta{color:#859900}.cm-s-solarized .cm-qualifier{color:#b58900}.cm-s-solarized .cm-builtin{color:#d33682}.cm-s-solarized .cm-bracket{color:#cb4b16}.cm-s-solarized .CodeMirror-matchingbracket{color:#859900}.cm-s-solarized .CodeMirror-nonmatchingbracket{color:#dc322f}.cm-s-solarized .cm-tag{color:#93a1a1}.cm-s-solarized .cm-attribute{color:#2aa198}.cm-s-solarized .cm-hr{color:transparent;border-top:1px solid #586e75;display:block}.cm-s-solarized .cm-link{color:#93a1a1;cursor:pointer}.cm-s-solarized .cm-special{color:#6c71c4}.cm-s-solarized .cm-em{color:#999;text-decoration:underline;-webkit-text-decoration-style:dotted;-moz-text-decoration-style:dotted;text-decoration-style:dotted}.cm-s-solarized .cm-error,.cm-s-solarized .cm-invalidchar{color:#586e75;border-bottom:1px dotted #dc322f}.cm-s-solarized.cm-s-dark div.CodeMirror-selected{background:#073642}.cm-s-solarized.cm-s-dark.CodeMirror ::-moz-selection{background:rgba(7,54,66,.99)}.cm-s-solarized.cm-s-dark.CodeMirror ::selection{background:rgba(7,54,66,.99)}.cm-s-dark .CodeMirror-line>span::-moz-selection,.cm-s-dark .CodeMirror-line>span>span::-moz-selection,.cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection{background:rgba(7,54,66,.99)}.cm-s-solarized.cm-s-light div.CodeMirror-selected{background:#eee8d5}.cm-s-light .CodeMirror-line>span::selection,.cm-s-light .CodeMirror-line>span>span::selection,.cm-s-solarized.cm-s-light .CodeMirror-line::selection{background:#eee8d5}.cm-s-light .CodeMirror-line>span::-moz-selection,.cm-s-light .CodeMirror-line>span>span::-moz-selection,.cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection{background:#eee8d5}.cm-s-solarized.CodeMirror{-webkit-box-shadow:inset 7px 0 12px -6px #000;box-shadow:inset 7px 0 12px -6px #000}.cm-s-solarized .CodeMirror-gutters{border-right:0}.cm-s-solarized.cm-s-dark .CodeMirror-gutters{background-color:#073642}.cm-s-solarized.cm-s-dark .CodeMirror-linenumber{color:#586e75}.cm-s-solarized.cm-s-light .CodeMirror-gutters{background-color:#eee8d5}.cm-s-solarized.cm-s-light .CodeMirror-linenumber{color:#839496}.cm-s-solarized .CodeMirror-linenumber{padding:0 5px}.cm-s-solarized .CodeMirror-guttermarker-subtle{color:#586e75}.cm-s-solarized.cm-s-dark .CodeMirror-guttermarker{color:#ddd}.cm-s-solarized.cm-s-light .CodeMirror-guttermarker{color:#cb4b16}.cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text{color:#586e75}.cm-s-solarized .CodeMirror-cursor{border-left:1px solid #819090}.cm-s-solarized.cm-s-light.cm-fat-cursor .CodeMirror-cursor{background:#7e7}.cm-s-solarized.cm-s-light .cm-animate-fat-cursor{background-color:#7e7}.cm-s-solarized.cm-s-dark.cm-fat-cursor .CodeMirror-cursor{background:#586e75}.cm-s-solarized.cm-s-dark .cm-animate-fat-cursor{background-color:#586e75}.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background{background:hsla(0,0%,100%,.06)}.cm-s-solarized.cm-s-light .CodeMirror-activeline-background{background:rgba(0,0,0,.06)} diff --git a/docs/demo/assets/css/chunk-vendors.css.map b/docs/demo/assets/css/chunk-vendors.css.map index 47b3a58..3267945 100644 --- a/docs/demo/assets/css/chunk-vendors.css.map +++ b/docs/demo/assets/css/chunk-vendors.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///node_modules/codemirror/addon/fold/foldgutter.css","webpack:///node_modules/codemirror/lib/codemirror.css","webpack:///node_modules/@jhuix/showdowns/dist/showdowns.min.css","webpack:///node_modules/codemirror/theme/lesser-dark.css","webpack:///node_modules/codemirror/theme/mdn-like.css","webpack:///node_modules/codemirror/theme/neat.css","webpack:///node_modules/codemirror/theme/rubyblue.css","webpack:///node_modules/codemirror/theme/seti.css","webpack:///node_modules/codemirror/theme/darcula.css","webpack:///node_modules/codemirror/theme/idea.css","webpack:///node_modules/codemirror/theme/the-matrix.css","webpack:///node_modules/codemirror/theme/solarized.css"],"names":[],"mappings":"AAAA,uBACE,UAAW,CACX,mFAAuF,CACvF,iBAAkB,CAClB,cAAe,CACf,cACF,CACA,uBACE,UACF,CACA,0DAEE,cACF,CACA,kCACE,eACF,CACA,oCACE,eACF,CCjBA,YAEE,qBAAsB,CACtB,YAAa,CACb,UAAY,CACZ,aACF,CAIA,kBACE,aACF,CACA,qEAEE,aACF,CAEA,uDACE,qBACF,CAIA,oBACE,2BAA4B,CAC5B,wBAAyB,CACzB,kBACF,CAEA,uBACE,mBAAoB,CACpB,cAAe,CACf,gBAAiB,CACjB,UAAW,CACX,kBACF,CAEA,yBAA2B,UAAc,CACzC,gCAAkC,UAAa,CAI/C,mBACE,0BAA4B,CAC5B,iBAAkB,CAClB,OACF,CAEA,2CACE,4BACF,CACA,kCACE,UAAW,CACX,kBAAoB,CACpB,eACF,CACA,sCACE,SACF,CACA,gJAE2D,sBAAyB,CACpF,+JAEgE,sBAAyB,CACzF,eAAiB,uBAA0B,CAM3C,yBAEE,IAAM,4BAA+B,CAEvC,CACA,iBAEE,IAAM,4BAA+B,CAEvC,CAKA,QAAU,oBAAqB,CAAE,uBAA0B,CAE3D,mBACE,iBAAkB,CAClB,MAAO,CAAE,OAAQ,CAAE,SAAU,CAAE,QAAS,CACxC,eACF,CACA,kBACE,0BAA2B,CAC3B,KAAM,CAAE,QAAS,CACjB,iBACF,CAIA,yBAA0B,UAAY,CACtC,wBAAyB,UAAY,CACrC,aAAc,UAAY,CAC1B,aAAc,UAAY,CAC1B,sBAAwB,eAAkB,CAC1C,OAAQ,iBAAmB,CAC3B,SAAU,yBAA2B,CACrC,kBAAmB,4BAA8B,CAEjD,0BAA2B,UAAY,CACvC,uBAAwB,UAAY,CACpC,yBAA0B,UAAY,CACtC,sBAAuB,UAAY,CAKnC,6BAA8B,UAAY,CAC1C,oDAAsD,UAAY,CAClE,0BAA2B,UAAY,CACvC,yBAA0B,UAAY,CACtC,2BAA4B,UAAY,CAExC,mDAA6B,UAAY,CACzC,0BAA2B,UAAY,CACvC,0BAA2B,UAAY,CACvC,sBAAuB,UAAY,CACnC,4BAA6B,UAAY,CACzC,qBAAsB,UAAY,CAClC,uBAAwB,UAAY,CAGpC,wCAAiB,SAAY,CAE7B,sBAAwB,uBAA0B,CAIlD,+CAAgD,UAAY,CAC5D,kDAAmD,UAAY,CAC/D,wBAA0B,6BAAmC,CAC7D,kCAAmC,kBAAoB,CAOvD,YACE,iBAAkB,CAClB,eAAgB,CAChB,eACF,CAEA,mBACE,yBAA2B,CAG3B,mBAAoB,CAAE,kBAAmB,CACzC,mBAAoB,CACpB,WAAY,CACZ,YAAa,CACb,iBAAkB,CAClB,SACF,CACA,kBACE,iBAAkB,CAClB,mCACF,CAKA,qGACE,iBAAkB,CAClB,SAAU,CACV,YAAa,CACb,YACF,CACA,uBACE,OAAQ,CAAE,KAAM,CAChB,iBAAkB,CAClB,iBACF,CACA,uBACE,QAAS,CAAE,MAAO,CAClB,iBAAkB,CAClB,iBACF,CACA,6BACE,OAAQ,CAAE,QACZ,CACA,0BACE,MAAO,CAAE,QACX,CAEA,oBACE,iBAAkB,CAAE,MAAO,CAAE,KAAM,CACnC,eAAgB,CAChB,SACF,CACA,mBACE,kBAAmB,CACnB,WAAY,CACZ,oBAAqB,CACrB,kBAAmB,CACnB,mBACF,CACA,2BACE,iBAAkB,CAClB,SAAU,CACV,yBAA2B,CAC3B,qBACF,CACA,8BACE,iBAAkB,CAClB,KAAM,CAAE,QAAS,CACjB,SACF,CACA,uBACE,iBAAkB,CAClB,cAAe,CACf,SACF,CACA,uCAAyC,4BAA8B,CACvE,4CAA8C,4BAA8B,CAE5E,kBACE,WAAY,CACZ,cACF,CACA,qEAGmD,eAAgB,CACjE,cAAe,CACf,sBAAuB,CACvB,mBAAoB,CACpB,iBAAkB,CAClB,QAAS,CACT,eAAgB,CAChB,gBAAiB,CACjB,mBAAoB,CACpB,aAAc,CACd,SAAU,CACV,iBAAkB,CAClB,gBAAiB,CACjB,uCAAwC,CACxC,yCAA0C,CAC1C,sCAAkC,CAAlC,iCACF,CACA,+EAEE,oBAAqB,CACrB,oBAAqB,CACrB,iBACF,CAEA,2BACE,iBAAkB,CAClB,MAAO,CAAE,OAAQ,CAAE,KAAM,CAAE,QAAS,CACpC,SACF,CAEA,uBACE,iBAAkB,CAClB,SAAU,CACV,YACF,CAIA,oBAAsB,aAAgB,CAEtC,iBACE,YACF,CAGA,mGAKE,2BAA4B,CAC5B,8BAAuB,CAAvB,sBACF,CAEA,oBACE,iBAAkB,CAClB,UAAW,CACX,QAAS,CACT,eAAgB,CAChB,iBACF,CAEA,mBACE,iBAAkB,CAClB,mBACF,CACA,wBAA0B,eAAkB,CAE5C,uBACE,iBAAkB,CAClB,iBAAkB,CAClB,SACF,CAKA,sEACE,kBACF,CAEA,qBAAuB,kBAAqB,CAC5C,yCAA2C,kBAAqB,CAChE,sBAAwB,gBAAmB,CAC3C,mGAA6G,kBAAqB,CAClI,kHAA4H,kBAAqB,CAEjJ,cACE,qBAAsB,CACtB,mCACF,CAGA,iBAAmB,kBAAqB,CAExC,aAEE,mCACE,iBACF,CACF,CAGA,wBAA0B,UAAa,CAGvC,6BAA+B,eAAkB;;ACvVjD;;;;EAIE,CAAC,qRAAqR,QAAQ,CAAC,SAAS,CAAC,oPAAoP,gBAAgB,CAAC,6PAA6P,iBAAiB,CAAC,aAAa,aAAa,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,iBAAiB,WAAW,CAAC,mBAAmB,cAAc,CAAC,yBAAyB,CAAC,eAAe,8BAA8B,CAAC,eAAe,CAAC,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,mBAAmB,CAAC,aAAa,CAAC,eAAe,CAAC,eAAe,CAAC,oBAAoB,CAAC,iCAAiC,CAAC,kBAAkB,mBAAmB,CAAC,eAAe,CAAC,mBAAmB,gBAAgB,CAAC,iBAAiB,CAAC,eAAe,CAAC,oFAAoF,iBAAiB,CAAC,eAAe,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,iCAAiC,CAAC,wHAAwH,aAAa,CAAC,aAAa,CAAC,4BAA4B,+BAA+B,CAAC,mBAAmB,CAAC,cAAc,aAAa,CAAC,cAAc,eAAe,CAAC,cAAc,gBAAgB,CAAC,cAAc,aAAa,CAAC,cAAc,gBAAgB,CAAC,cAAc,aAAa,CAAC,eAAe,CAAC,sBAAsB,aAAa,CAAC,eAAe,CAAC,eAAe,CAAC,kBAAkB,CAAC,eAAe,CAAC,cAAc,iBAAiB,CAAC,oBAAoB,CAAC,UAAU,CAAC,QAAQ,CAAC,wBAAwB,CAAC,2BAA2B,iBAAiB,CAAC,mBAAmB,CAAC,+BAA+B,eAAe,CAAC,mBAAmB,CAAC,iBAAiB,aAAa,CAAC,mBAAmB,CAAC,gBAAgB,kBAAkB,CAAC,gBAAgB,CAAC,2EAA2E,CAAC,eAAe,CAAC,8BAA8B,CAAC,0CAA0C,mBAAmB,CAAC,aAAa,CAAC,eAAe,CAAC,2BAA2B,CAAC,oBAAoB,CAAC,cAAc,iBAAiB,CAAC,wBAAwB,aAAa,CAAC,4DAA4D,eAAe,CAAC,eAAe,CAAC,kBAAkB,CAAC,wCAAwC,eAAe,CAAC,kBAAkB,CAAC,+EAA+E,kBAAkB,CAAC,qBAAqB,sBAAsB,CAAC,iBAAiB,CAAC,qBAAqB,sBAAsB,CAAC,iBAAiB,CAAC,mBAAmB,oBAAoB,CAAC,iBAAiB,CAAC,wBAAwB,eAAe,CAAC,cAAc,iBAAiB,CAAC,wCAAwC,eAAe,CAAC,kBAAkB,CAAC,iBAAiB,eAAe,CAAC,kBAAkB,CAAC,iBAAiB,mBAAmB,CAAC,mCAAmC,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC,wBAAwB,CAAC,gBAAgB,mBAAmB,CAAC,uBAAuB,gCAAgC,CAAC,sBAAsB,6BAA6B,CAAC,aAAa,CAAC,eAAe,CAAC,eAAe,CAAC,cAAc,CAAC,2BAA2B,UAAU,CAAC,aAAa,CAAC,iBAAiB,CAAC,kCAAkC,qBAAqB,CAAC,kEAAkE,UAAU,CAAC,eAAe,oBAAoB,CAAC,wBAAwB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,8BAA8B,CAAC,oBAAoB,CAAC,yBAAyB,CAAC,qBAAqB,CAAC,uBAAuB,CAAC,oBAAoB,4BAA4B,CAAC,QAAQ,CAAC,SAAS,CAAC,iBAAiB,eAAe,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,aAAa,CAAC,iBAAiB,CAAC,yBAAyB,sBAAsB,CAAC,UAAU,CAAC,eAAe,CAAC,uBAAuB,kBAAkB,CAAC,0DAA0D,wBAAwB,CAAC,UAAU,CAAC,eAAe,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,uBAAuB,kBAAkB,CAAC,0DAA0D,wBAAwB,CAAC,UAAU,CAAC,eAAe,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,8CAA8C,wBAAwB,CAAC,UAAU,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,qFAAqF,kBAAkB,CAAC,0DAA0D,wBAAwB,CAAC,mBAAmB,CAAC,0HAA0H,wBAAwB,CAAC,qEAAqE,aAAa,CAAC,WAAW,CAAC,oEAAoE,aAAa,CAAC,uBAAuB,CAAC,mCAAmC,iBAAiB,CAAC,kCAAkC,gBAAgB,CAAC,gSAAgS,gBAAgB,CAAC,wLAAwL,iBAAiB,CAAC,oLAAoL,gBAAgB;;AAE1rM;;;;EAIE,CAAC,+BAA+B,qBAAqB,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,yCAAyC,wBAAwB,CAAC,yBAAyB,CAAC,6CAA6C,yBAAyB,CAAC,0BAA0B,CAAC,8CAA8C,yBAAyB,CAAC,0BAA0B,CAAC,iDAAiD,yBAAyB,CAAC,0BAA0B,CAAC,+CAA+C,yBAAyB,CAAC,0BAA0B,CAAC,iDAAiD,yBAAyB,CAAC,0BAA0B,CAAC,qCAAqC,4BAA4B,CAAC,8BAAqB,CAArB,sBAAsB,CAAC,+CAA+C,wBAAwB,CAAC,gDAAgD,wBAAwB,CAAC,mDAAmD,wBAAwB,CAAC,iDAAiD,wBAAwB,CAAC,mDAAmD,wBAAwB,CAAC,gDAAgD,iBAAiB,CAAC,eAAe,CAAC,eAAe,CCNvwC,kBACE,iBACF,CACA,6BAA+B,kBAAmB,CAAE,aAAc,CAAE,8BAAiC,CACrG,0CAA4C,kBAAqB,CACjE,yJAAmK,6BAAmC,CACtM,wKAAkL,6BAAmC,CACrN,qCAAuC,0BAA8B,CACrE,sBAAwB,aAAgB,CAExC,6DAA+D,aAAgB,CAE/E,sCAAwC,kBAAmB,CAAE,2BAA6B,CAC1F,2CAA6C,aAAgB,CAE7D,2FAA2C,UAAa,CAExD,iCAAmC,UAAa,CAChD,gCAAkC,UAAa,CAC/C,kCAAoC,aAAgB,CACpD,+BAAiC,aAAgB,CACjD,iCAAmC,aAAgB,CACnD,8BAAgC,UAAc,CAC9C,mCAAqC,aAAe,CACpD,qCAAuC,aAAgB,CACvD,oEAAuE,UAAc,CAErF,sEAAqC,aAAgB,CACrD,kCAAoC,UAAa,CACjD,iCAAmC,aAAgB,CACnD,mCAAqC,UAAa,CAClD,+BAAiC,aAAgB,CACjD,oCAAsC,UAAa,CACnD,kCAAoC,aAAgB,CACpD,kCAAoC,aAAgB,CACpD,8BAAgC,aAAgB,CAChD,oCAAsC,aAAgB,CACtD,6BAA+B,UAAa,CAC5C,+BAAiC,aAAgB,CACjD,gCAAkC,aAAgB,CAElD,oDAAsD,kBAAqB,CAC3E,8CAAgD,sBAAsB,CAAE,oBAAwB,CCrChG,0BAA4B,UAAW,CAAE,qBAAwB,CACjE,uCAAyC,eAAkB,CAC3D,gJAA0J,eAAkB,CAC5K,+JAAyK,eAAkB,CAE3L,mCAAqC,kBAAmB,CAAE,wCAA0C,CAAE,UAAa,CACnH,sCAAwC,UAAW,CAAE,gBAAmB,CACxE,kCAAoC,0BAA6B,CAEjE,2BAA6B,aAAgB,CAC7C,wBAA0B,UAAa,CACvC,0BAA4B,aAAiB,CAC7C,uBAAyB,aAAgB,CACzC,6DAAgE,UAAa,CAG7E,qHAA8B,UAAa,CAC3C,4BAA8B,UAAa,CAC3C,6BAA+B,UAAa,CAE5C,4BAA8B,aAAgB,CAC9C,2BAA6B,UAAU,CAAE,eAAoB,CAC7D,0BAA4B,UAAU,CAAE,iBAAmB,CAC3D,4BAA8B,aAAe,CAC7C,wBAA0B,UAAa,CACvC,2BAA6B,aAAgB,CAC7C,uBAAyB,aAAgB,CACzC,6BAA+B,aAAgB,CAC/C,0BAA4B,aAAgB,CAC5C,sBAAwB,aAAgB,CACxC,wBAA0B,aAAa,CAAE,iBAAiB,CAAE,oBAAsB,CAClF,yBAA2B,2BAA8B,CAEzD,oDAAsD,kBAAqB,CAC3E,kDAAoD,sBAAsB,CAAE,aAAgB,CAE5F,0BAA4B,4sFAA+sF,CC7C3uF,2BAA6B,UAAa,CAC1C,2BAA6B,eAAgB,CAAE,eAAiB,CAAE,UAAa,CAC/E,0BAA4B,UAAa,CACzC,2BAA6B,eAAgB,CAAE,eAAiB,CAAE,UAAa,CAC/E,2BAA6B,eAAgB,CAAE,eAAiB,CAAE,UAAa,CAC/E,4BAA8B,UAAc,CAC5C,kDAAqD,UAAa,CAClE,wBAA0B,UAAa,CACvC,wBAA0B,UAAa,CAEvC,6CAA+C,kBAAqB,CACpE,uCAAyC,sBAAsB,CAAE,oBAAwB,CCXzF,0BAA4B,kBAAmB,CAAE,UAAc,CAC/D,uCAAyC,kBAAqB,CAC9D,gJAA0J,8BAAqC,CAC/L,+JAAyK,8BAAqC,CAC9M,mCAAqC,kBAAmB,CAAE,8BAAiC,CAC3F,wCAA0C,UAAc,CACxD,+CAAiD,aAAgB,CACjE,sCAAwC,UAAc,CACtD,kCAAoC,0BAA8B,CAElE,+BAAiC,UAAW,CAAE,iBAAiB,CAAE,eAAkB,CACnF,4BAA8B,aAAgB,CAC9C,+DAAkE,aAAgB,CAClF,+BAAiC,UAAa,CAC9C,8BAAgC,aAAgB,CAChD,4BAA8B,UAAa,CAC3C,6DAAgE,aAAgB,CAChF,yFAA6F,UAAc,CAC3G,+BAAiC,UAAa,CAC9C,4BAA8B,aAAgB,CAC9C,+CAAiD,oBAAuB,CACxE,8DAAiE,aAAgB,CACjF,6BAA+B,aAAgB,CAE/C,iDAAmD,kBAAqB,CCdxE,sBACE,kCAAoC,CACpC,uBAAyB,CACzB,WACF,CACA,+BACE,aAAc,CACd,wBAAyB,CACzB,WACF,CACA,8BAAgC,8BAAiC,CACjE,kCAAoC,aAAgB,CACpD,sDAAwD,6BAAuC,CAC/F,oIAA8I,6BAAuC,CACrL,mJAA6J,6BAAuC,CACpM,2BAA6B,aAAgB,CAC7C,sDAAyD,aAAgB,CACzE,0BAA4B,aAAgB,CAC5C,4BAA8B,aAAgB,CAC9C,8BAAgC,aAAgB,CAChD,uBAAyB,aAAgB,CACzC,2BAA6B,aAAgB,CAC7C,4BAA8B,aAAgB,CAC9C,2BAA6B,aAAgB,CAC7C,wBAA0B,aAAgB,CAE1C,+CAAyB,aAAgB,CAEzC,0DAA+B,aAAgB,CAC/C,4BAA8B,aAAgB,CAE9C,iFAA6B,aAAgB,CAC7C,6CAA+C,kBAAqB,CACpE,uCAAyC,yBAA0B,CAAE,oBAAyB,CCtC9F,cAAiB,sIAA2J,CAC5K,yBAA2B,kBAAmB,CAAE,aAAgB,CAEhE,2BAA6B,aAAgB,CAC7C,6BAA+B,aAAgB,CAC/C,8BAAgC,aAAc,CAAE,eAAgB,CAAE,eAAmB,CACrF,0BAA4B,aAAc,CAAE,iBAAoB,CAEhE,gEAAmC,aAAgB,CACnD,iCAAmC,aAAgB,CACnD,2BAA6B,UAAc,CAAE,eAAmB,CAChE,+BAAiC,aAAgB,CACjD,+BAAiC,aAAgB,CAEjD,4DAAiC,aAAgB,CACjD,8BAAgC,aAAc,CAAE,iBAAoB,CAEpE,sDAA6B,aAAgB,CAC7C,4BAA8B,aAAgB,CAC9C,0BAA4B,aAAc,CAAE,eAAiB,CAAE,iBAAkB,CAAE,yBAA4B,CAC/G,gCAAkC,aAAgB,CAClD,gCAAkC,aAAgB,CAClD,8BAAgC,aAAgB,CAEhD,4DAAgC,aAAgB,CAChD,qCAAuC,UAAc,CAAE,kCAAsC,CAAE,eAAoB,CACnH,gCAAkC,UAAc,CAAE,mCAAuC,CAAE,eAAoB,CAE/G,iCAAmC,6BAAgC,CACnE,gDAAkD,kBAAqB,CACvE,kCAAoC,kBAAmB,CAAE,8BAAiC,CAC1F,uCAAyC,aAAgB,CACzD,8CAAgD,aAAgB,CAChE,qCAAuC,aAAgB,CACvD,0CAA4C,wBAAyB,CAAE,uBAAyB,CAAE,eAAmB,CAErH,sCAAwC,kBAAqB,CAE7D,0BACE,uDAA8D,CAC9D,aAAc,CACd,kCACF,CAEA,kDACE,kCAAoC,CACpC,uBACF,CC/CA,wBAA0B,WAAgB,CAC1C,0BAA4B,UAAgB,CAC5C,2BAA6B,eAAgB,CAAE,eAAiB,CAAE,UAAgB,CAClF,wBAA0B,eAAiB,CAAE,UAAgB,CAM7D,+LAA8B,UAAc,CAC5C,2BAA6B,UAAgB,CAE7C,sDAA8B,WAAgB,CAC9C,6BAA+B,UAAa,CAC5C,yBAA2B,SAAgB,CAC3C,6BAA+B,UAAgB,CAC/C,uBAAyB,UAAgB,CACzC,wBAA0B,UAAgB,CAC1C,6CAA+C,kBAAqB,CAEpE,2BAA6B,UAAa,CAC1C,2BAA6B,UAAa,CAC1C,WAAc,sIAAiJ,CAG/J,uCAAyC,sBAAsB,CAAE,oBAAwB,CAEzF,uBACE,uDAA8D,CAC9D,aAAc,CACd,kCACF,CAEA,+CACE,kCAAoC,CACpC,uBACF,CCzCA,4BAA8B,eAAmB,CAAE,UAAgB,CACnE,yCAA2C,kBAAqB,CAChE,sJAAgK,6BAAoC,CACpM,qKAA+K,6BAAoC,CACnN,qCAAuC,eAAgB,CAAE,2BAAiC,CAC1F,0CAA4C,UAAa,CAEzD,yFAA0C,UAAgB,CAC1D,oCAAsC,0BAAgC,CAEtE,iCAAmC,aAAc,CAAE,eAAmB,CACtE,8BAAgC,UAAa,CAC7C,gCAAkC,aAAgB,CAClD,6BAA+B,UAAa,CAC5C,kCAAoC,UAAa,CACjD,oCAAsC,UAAa,CACnD,kEAAqE,UAAa,CAClF,kCAAoC,aAAgB,CACpD,kCAAoC,UAAa,CACjD,iCAAmC,UAAgB,CACnD,gCAAkC,UAAa,CAC/C,8BAAgC,UAAa,CAC7C,mCAAqC,aAAgB,CACrD,iCAAmC,UAAa,CAChD,iCAAmC,UAAa,CAChD,6BAA+B,aAAgB,CAC/C,mCAAqC,aAAgB,CACrD,+BAAiC,SAAgB,CAEjD,mDAAqD,eAAkB,CCnBvE,kBAAoB,aAAgB,CACpC,kBAAoB,aAAgB,CACpC,kBAAoB,aAAgB,CACpC,kBAAoB,aAAgB,CACpC,iBAAmB,aAAgB,CACnC,iBAAmB,aAAgB,CACnC,iBAAmB,aAAgB,CACnC,iBAAoB,aAAgB,CACpC,wBAA2B,aAAgB,CAC3C,wBAA2B,aAAgB,CAC3C,qBAAuB,aAAgB,CACvC,yBAA2B,aAAgB,CAC3C,wBAA2B,aAAgB,CAC3C,sBAAwB,aAAgB,CACxC,sBAAwB,aAAgB,CACxC,uBAAyB,aAAgB,CAIzC,gBACE,kBAAmB,CACnB,kBAAmB,CACnB,qBACF,CACA,0BACE,aAAc,CACd,wBACF,CACA,2BACE,wBAAyB,CACzB,aACF,CAEA,mCACE,gBACF,CAEA,2BAA6B,aAAgB,CAC7C,0BAA4B,aAAgB,CAE5C,4BAA8B,aAAgB,CAE9C,oDAA6B,aAAgB,CAC7C,wBAA0B,aAAgB,CAE1C,6BAA+B,aAAgB,CAC/C,+BAAiC,aAAgB,CACjD,wDAA2D,aAAgB,CAE3E,6BAA+B,aAAgB,CAC/C,6BAA+B,aAAgB,CAE/C,4BAA8B,aAAc,CAAE,iBAAmB,CAEjE,2BAA6B,aAAgB,CAC7C,6BAA+B,aAAgB,CAE/C,yBAA2B,aAAgB,CAC3C,8BAAgC,aAAgB,CAChD,4BAA8B,aAAgB,CAC9C,4BAA8B,aAAgB,CAC9C,4CAA8C,aAAgB,CAC9D,+CAAiD,aAAgB,CACjE,wBAA0B,aAAgB,CAC1C,8BAAgC,aAAgB,CAChD,uBACE,iBAAkB,CAClB,4BAA6B,CAC7B,aACF,CACA,yBAA2B,aAAc,CAAE,cAAiB,CAC5D,4BAA8B,aAAgB,CAC9C,uBACE,UAAW,CACX,yBAA0B,CAC1B,oCAA6B,CAA7B,iCAA6B,CAA7B,4BACF,CACA,0DAEE,aAAc,CACd,gCACF,CAEA,kDAAoD,kBAAqB,CACzE,sDAAmD,4BAAmC,CAAtF,iDAAmD,4BAAmC,CACtF,kKAA4K,4BAAmC,CAE/M,mDAAqD,kBAAqB,CAC1E,sJAAgK,kBAAqB,CACrL,qKAA+K,kBAAqB,CAOpM,2BAEE,6CAA8C,CAC9C,qCACF,CAGA,oCACE,cACF,CAKA,8CACE,wBACF,CAEA,iDACE,aACF,CAGA,+CACE,wBACF,CAEA,kDACE,aACF,CAGA,uCACE,aACF,CACA,gDAAkD,aAAgB,CAClE,mDAAqD,UAAa,CAClE,oDAAsD,aAAgB,CAEtE,2DACE,aACF,CAGA,mCAAqC,6BAAgC,CAGrE,4DAA8D,eAAqB,CACnF,kDAAoD,qBAA2B,CAC/E,2DAA6D,kBAAqB,CAClF,iDAAmD,wBAA2B,CAG9E,4DACE,8BACF,CACA,6DACE,0BACF","file":"chunk-vendors.css","sourcesContent":[".CodeMirror-foldmarker {\n color: blue;\n text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;\n font-family: arial;\n line-height: .3;\n cursor: pointer;\n}\n.CodeMirror-foldgutter {\n width: .7em;\n}\n.CodeMirror-foldgutter-open,\n.CodeMirror-foldgutter-folded {\n cursor: pointer;\n}\n.CodeMirror-foldgutter-open:after {\n content: \"\\25BE\";\n}\n.CodeMirror-foldgutter-folded:after {\n content: \"\\25B8\";\n}\n","/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n","/*!\n * css of showdowns v0.6.1\n * Copyright (c) 2019-present, Jhuix (Hui Jin) \n * Released under the MIT License.\n */.showdowns blockquote,.showdowns dd,.showdowns div,.showdowns dl,.showdowns dt,.showdowns form,.showdowns h1,.showdowns h2,.showdowns h3,.showdowns h4,.showdowns h5,.showdowns h6,.showdowns li,.showdowns ol,.showdowns p,.showdowns pre,.showdowns td,.showdowns th,.showdowns ul{margin:0;padding:0}.showdowns div.paragraph.align-right,.showdowns h1.align-right,.showdowns h2.align-right,.showdowns h3.align-right,.showdowns h4.align-right,.showdowns h5.align-right,.showdowns h6.align-right,.showdowns li.align-right,.showdowns p.align-right{text-align:right}.showdowns div.paragraph.align-center,.showdowns h1.align-center,.showdowns h2.align-center,.showdowns h3.align-center,.showdowns h4.align-center,.showdowns h5.align-center,.showdowns h6.align-center,.showdowns li.align-center,.showdowns p.align-center{text-align:center}.showdowns a{color:#0366d6;line-height:inherit;text-decoration:none}.showdowns a img{border:none}.showdowns a:hover{cursor:pointer;text-decoration:underline}.showdowns img{-ms-interpolation-mode:bicubic;display:inherit;height:auto;margin:0 auto;max-width:100%}.showdowns p{font-family:inherit;font-size:1em;font-weight:400;line-height:1.5;margin-bottom:1.25em;text-rendering:optimizeLegibility}.showdowns p.lead{font-size:1.21875em;line-height:1.5}.showdowns p aside{font-size:.875em;font-style:italic;line-height:1.5}.showdowns h1,.showdowns h2,.showdowns h3,.showdowns h4,.showdowns h5,.showdowns h6{font-style:normal;font-weight:600;line-height:1.25;margin-bottom:1rem;margin-top:1.5rem;text-rendering:optimizeLegibility}.showdowns h1 small,.showdowns h2 small,.showdowns h3 small,.showdowns h4 small,.showdowns h5 small,.showdowns h6 small{font-size:60%;line-height:0}.showdowns h1,.showdowns h2{border-bottom:1px solid #d6d6d6;padding-bottom:.3em}.showdowns h1{font-size:2em}.showdowns h2{font-size:1.5em}.showdowns h3{font-size:1.25em}.showdowns h4{font-size:1em}.showdowns h5{font-size:.875em}.showdowns h6{color:#6a737d;font-size:.85em}.showdowns .subheader{color:#6f6f6f;font-weight:400;line-height:1.4;margin-bottom:.5em;margin-top:.2em}.showdowns hr{border:solid #ddd;border-width:1px 0 0;clear:both;height:0;margin:1.25em 0 1.1875em}.showdowns em,.showdowns i{font-style:italic;line-height:inherit}.showdowns b,.showdowns strong{font-weight:600;line-height:inherit}.showdowns small{font-size:60%;line-height:inherit}.showdowns code{border-style:solid;border-width:1px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-weight:400;padding:.125em .3125em .0625em}.showdowns dl,.showdowns ol,.showdowns ul{font-family:inherit;font-size:1em;line-height:1.5;list-style-position:outside;margin-bottom:1.25em}.showdowns ul{margin-left:1.1em}.showdowns ul.no-bullet{margin-left:0}.showdowns ul.no-bullet li ol,.showdowns ul.no-bullet li ul{list-style:none;margin-bottom:0;margin-left:1.25em}.showdowns ul li ol,.showdowns ul li ul{margin-bottom:0;margin-left:1.25em}.showdowns ul.circle li ul,.showdowns ul.disc li ul,.showdowns ul.square li ul{list-style:inherit}.showdowns ul.square{list-style-type:square;margin-left:1.1em}.showdowns ul.circle{list-style-type:circle;margin-left:1.1em}.showdowns ul.disc{list-style-type:disc;margin-left:1.1em}.showdowns ul.no-bullet{list-style:none}.showdowns ol{margin-left:1.4em}.showdowns ol li ol,.showdowns ol li ul{margin-bottom:0;margin-left:1.25em}.showdowns dl dt{font-weight:600;margin-bottom:.3em}.showdowns dl dd{margin-bottom:.75em}.showdowns abbr,.showdowns acronym{color:#222;cursor:help;font-size:90%;text-transform:uppercase}.showdowns abbr{text-transform:none}.showdowns abbr[title]{border-bottom:1px dotted #5c5c5c}.showdowns blockquote{border-left:4px solid #d6d6d6;color:#5c5c5c;line-height:1.5;margin:0 0 16px;padding:0 15px}.showdowns blockquote cite{color:#555;display:block;font-size:.8125em}.showdowns blockquote cite:before{content:\"\\2014 \\0020\"}.showdowns blockquote cite a,.showdowns blockquote cite a:visited{color:#555}.showdowns pre{word-wrap:break-word;border:1px solid #dfdfdf;margin-bottom:1.5em;margin-top:1.5em;padding:.125em .3125em .0625em;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap}.showdowns pre code{background-color:transparent;border:0;padding:0}.showdowns table{background:#fff;border-collapse:collapse;border-spacing:0;margin-bottom:1.25em;overflow:auto;table-layout:auto}.showdowns table caption{background:transparent;color:#222;font-weight:600}.showdowns table thead{background:#f5f5f5}.showdowns table thead tr td,.showdowns table thead tr th{border:1px solid #d6d6d6;color:#222;font-weight:600;line-height:1.125em;padding:.5em .625em .625em}.showdowns table tfoot{background:#f5f5f5}.showdowns table tfoot tr td,.showdowns table tfoot tr th{border:1px solid #d6d6d6;color:#222;font-weight:600;line-height:1.125em;padding:.5em .625em .625em}.showdowns table tr td,.showdowns table tr th{border:1px solid #d6d6d6;color:#222;line-height:1.125em;padding:.5625em .625em}.showdowns table tr.alt,.showdowns table tr.even,.showdowns table tr:nth-of-type(2n){background:#f9f9f9}.showdowns table tbody tr td,.showdowns table tbody tr th{border:1px solid #d6d6d6;line-height:1.125em}.showdowns .flow,.showdowns .flowchart,.showdowns .mermaid,.showdowns .plantuml,.showdowns .sequence,.showdowns .wavedrom{background-color:#f9f9f9}.showdowns .diagram-center:not(.asciimath):not(.latex):not(.mermaid){display:table;margin:auto}.showdowns .diagram-right:not(.asciimath):not(.latex):not(.mermaid){display:table;margin:auto 0 auto auto}.showdowns .diagram-center.mermaid{text-align:center}.showdowns .diagram-right.mermaid{text-align:right}.showdowns .asciimath:not(.diagram-center):not(.diagram-right) .katex,.showdowns .asciimath:not(.diagram-center):not(.diagram-right) .katex-display,.showdowns .latex:not(.diagram-center):not(.diagram-right) .katex,.showdowns .latex:not(.diagram-center):not(.diagram-right) .katex-display{text-align:unset}.showdowns .asciimath.diagram-center .katex,.showdowns .asciimath.diagram-center .katex-display,.showdowns .latex.diagram-center .katex,.showdowns .latex.diagram-center .katex-display{text-align:center}.showdowns .asciimath.diagram-right .katex,.showdowns .asciimath.diagram-right .katex-display,.showdowns .latex.diagram-right .katex,.showdowns .latex.diagram-right .katex-display{text-align:right}\n\n/*!\n * css of showdowns v0.6.1\n * Copyright (c) 2019-present, Jhuix (Hui Jin) \n * Released under the MIT License.\n */.showdowns .showdown-container{border:1px solid #eee;border-radius:.25rem;margin-bottom:1rem;padding:.75rem 1.25rem;position:relative}.showdowns .showdown-container.container{border-left-width:.25rem;border-right-width:.25rem}.showdowns .showdown-container.container.tip{border-left-color:#5bc0de;border-right-color:#5bc0de}.showdowns .showdown-container.container.info{border-left-color:#cce5ff;border-right-color:#cce5ff}.showdowns .showdown-container.container.warning{border-left-color:#f0ad4e;border-right-color:#f0ad4e}.showdowns .showdown-container.container.error{border-left-color:#d9534f;border-right-color:#d9534f}.showdowns .showdown-container.container.success{border-left-color:#67c23a;border-right-color:#67c23a}.showdowns .showdown-container.alert{border:1px solid transparent;transition:opacity .2s}.showdowns .showdown-container.alert.alert-tip{background-color:#5bc0de}.showdowns .showdown-container.alert.alert-info{background-color:#cce5ff}.showdowns .showdown-container.alert.alert-warning{background-color:#f0ad4e}.showdowns .showdown-container.alert.alert-error{background-color:#d9534f}.showdowns .showdown-container.alert.alert-success{background-color:#67c23a}.showdowns .showdown-container .container-title{font-size:1.25rem;font-weight:700;line-height:1.2}","/*\nhttp://lesscss.org/ dark theme\nPorted to CodeMirror by Peter Kroon\n*/\n.cm-s-lesser-dark {\n line-height: 1.3em;\n}\n.cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }\n.cm-s-lesser-dark div.CodeMirror-selected { background: #45443B; } /* 33322B*/\n.cm-s-lesser-dark .CodeMirror-line::selection, .cm-s-lesser-dark .CodeMirror-line > span::selection, .cm-s-lesser-dark .CodeMirror-line > span > span::selection { background: rgba(69, 68, 59, .99); }\n.cm-s-lesser-dark .CodeMirror-line::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(69, 68, 59, .99); }\n.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white; }\n.cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/\n\n.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/\n\n.cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; }\n.cm-s-lesser-dark .CodeMirror-guttermarker { color: #599eff; }\n.cm-s-lesser-dark .CodeMirror-guttermarker-subtle { color: #777; }\n.cm-s-lesser-dark .CodeMirror-linenumber { color: #777; }\n\n.cm-s-lesser-dark span.cm-header { color: #a0a; }\n.cm-s-lesser-dark span.cm-quote { color: #090; }\n.cm-s-lesser-dark span.cm-keyword { color: #599eff; }\n.cm-s-lesser-dark span.cm-atom { color: #C2B470; }\n.cm-s-lesser-dark span.cm-number { color: #B35E4D; }\n.cm-s-lesser-dark span.cm-def { color: white; }\n.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }\n.cm-s-lesser-dark span.cm-variable-2 { color: #669199; }\n.cm-s-lesser-dark span.cm-variable-3, .cm-s-lesser-dark span.cm-type { color: white; }\n.cm-s-lesser-dark span.cm-property { color: #92A75C; }\n.cm-s-lesser-dark span.cm-operator { color: #92A75C; }\n.cm-s-lesser-dark span.cm-comment { color: #666; }\n.cm-s-lesser-dark span.cm-string { color: #BCD279; }\n.cm-s-lesser-dark span.cm-string-2 { color: #f50; }\n.cm-s-lesser-dark span.cm-meta { color: #738C73; }\n.cm-s-lesser-dark span.cm-qualifier { color: #555; }\n.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }\n.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }\n.cm-s-lesser-dark span.cm-tag { color: #669199; }\n.cm-s-lesser-dark span.cm-attribute { color: #81a4d5; }\n.cm-s-lesser-dark span.cm-hr { color: #999; }\n.cm-s-lesser-dark span.cm-link { color: #7070E6; }\n.cm-s-lesser-dark span.cm-error { color: #9d1e15; }\n\n.cm-s-lesser-dark .CodeMirror-activeline-background { background: #3C3A3A; }\n.cm-s-lesser-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }\n","/*\n MDN-LIKE Theme - Mozilla\n Ported to CodeMirror by Peter Kroon \n Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues\n GitHub: @peterkroon\n\n The mdn-like theme is inspired on the displayed code examples at: https://developer.mozilla.org/en-US/docs/Web/CSS/animation\n\n*/\n.cm-s-mdn-like.CodeMirror { color: #999; background-color: #fff; }\n.cm-s-mdn-like div.CodeMirror-selected { background: #cfc; }\n.cm-s-mdn-like .CodeMirror-line::selection, .cm-s-mdn-like .CodeMirror-line > span::selection, .cm-s-mdn-like .CodeMirror-line > span > span::selection { background: #cfc; }\n.cm-s-mdn-like .CodeMirror-line::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span > span::-moz-selection { background: #cfc; }\n\n.cm-s-mdn-like .CodeMirror-gutters { background: #f8f8f8; border-left: 6px solid rgba(0,83,159,0.65); color: #333; }\n.cm-s-mdn-like .CodeMirror-linenumber { color: #aaa; padding-left: 8px; }\n.cm-s-mdn-like .CodeMirror-cursor { border-left: 2px solid #222; }\n\n.cm-s-mdn-like .cm-keyword { color: #6262FF; }\n.cm-s-mdn-like .cm-atom { color: #F90; }\n.cm-s-mdn-like .cm-number { color: #ca7841; }\n.cm-s-mdn-like .cm-def { color: #8DA6CE; }\n.cm-s-mdn-like span.cm-variable-2, .cm-s-mdn-like span.cm-tag { color: #690; }\n.cm-s-mdn-like span.cm-variable-3, .cm-s-mdn-like span.cm-def, .cm-s-mdn-like span.cm-type { color: #07a; }\n\n.cm-s-mdn-like .cm-variable { color: #07a; }\n.cm-s-mdn-like .cm-property { color: #905; }\n.cm-s-mdn-like .cm-qualifier { color: #690; }\n\n.cm-s-mdn-like .cm-operator { color: #cda869; }\n.cm-s-mdn-like .cm-comment { color:#777; font-weight:normal; }\n.cm-s-mdn-like .cm-string { color:#07a; font-style:italic; }\n.cm-s-mdn-like .cm-string-2 { color:#bd6b18; } /*?*/\n.cm-s-mdn-like .cm-meta { color: #000; } /*?*/\n.cm-s-mdn-like .cm-builtin { color: #9B7536; } /*?*/\n.cm-s-mdn-like .cm-tag { color: #997643; }\n.cm-s-mdn-like .cm-attribute { color: #d6bb6d; } /*?*/\n.cm-s-mdn-like .cm-header { color: #FF6400; }\n.cm-s-mdn-like .cm-hr { color: #AEAEAE; }\n.cm-s-mdn-like .cm-link { color:#ad9361; font-style:italic; text-decoration:none; }\n.cm-s-mdn-like .cm-error { border-bottom: 1px solid red; }\n\ndiv.cm-s-mdn-like .CodeMirror-activeline-background { background: #efefff; }\ndiv.cm-s-mdn-like span.CodeMirror-matchingbracket { outline:1px solid grey; color: inherit; }\n\n.cm-s-mdn-like.CodeMirror { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyCAYAAAAp8UeFAAAHvklEQVR42s2b63bcNgyEQZCSHCdt2vd/0tWF7I+Q6XgMXiTtuvU5Pl57ZQKkKHzEAOtF5KeIJBGJ8uvL599FRFREZhFx8DeXv8trn68RuGaC8TRfo3SNp9dlDDHedyLyTUTeRWStXKPZrjtpZxaRw5hPqozRs1N8/enzIiQRWcCgy4MUA0f+XWliDhyL8Lfyvx7ei/Ae3iQFHyw7U/59pQVIMEEPEz0G7XiwdRjzSfC3UTtz9vchIntxvry5iMgfIhJoEflOz2CQr3F5h/HfeFe+GTdLaKcu9L8LTeQb/R/7GgbsfKedyNdoHsN31uRPWrfZ5wsj/NzzRQHuToIdU3ahwnsKPxXCjJITuOsi7XLc7SG/v5GdALs7wf8JjTFiB5+QvTEfRyGOfX3Lrx8wxyQi3sNq46O7QahQiCsRFgqddjBouVEHOKDgXAQHD9gJCr5sMKkEdjwsarG/ww3BMHBU7OBjXnzdyY7SfCxf5/z6ATccrwlKuwC/jhznnPF4CgVzhhVf4xp2EixcBActO75iZ8/fM9zAs2OMzKdslgXWJ9XG8PQoOAMA5fGcsvORgv0doBXyHrCwfLJAOwo71QLNkb8n2Pl6EWiR7OCibtkPaz4Kc/0NNAze2gju3zOwekALDaCFPI5vjPFmgGY5AZqyGEvH1x7QfIb8YtxMnA/b+QQ0aQDAwc6JMFg8CbQZ4qoYEEHbRwNojuK3EHwd7VALSgq+MNDKzfT58T8qdpADrgW0GmgcAS1lhzztJmkAzcPNOQbsWEALBDSlMKUG0Eq4CLAQWvEVQ9WU57gZJwZtgPO3r9oBTQ9WO8TjqXINx8R0EYpiZEUWOF3FxkbJkgU9B2f41YBrIj5ZfsQa0M5kTgiAAqM3ShXLgu8XMqcrQBvJ0CL5pnTsfMB13oB8athpAq2XOQmcGmoACCLydx7nToa23ATaSIY2ichfOdPTGxlasXMLaL0MLZAOwAKIM+y8CmicobGdCcbbK9DzN+yYGVoNNI5iUKTMyYOjPse4A8SM1MmcXgU0toOq1yO/v8FOxlASyc7TgeYaAMBJHcY1CcCwGI/TK4AmDbDyKYBBtFUkRwto8gygiQEaByFgJ00BH2M8JWwQS1nafDXQCidWyOI8AcjDCSjCLk8ngObuAm3JAHAdubAmOaK06V8MNEsKPJOhobSprwQa6gD7DclRQdqcwL4zxqgBrQcabUiBLclRDKAlWp+etPkBaNMA0AKlrHwTdEByZAA4GM+SNluSY6wAzcMNewxmgig5Ks0nkrSpBvSaQHMdKTBAnLojOdYyGpQ254602ZILPdTD1hdlggdIm74jbTp8vDwF5ZYUeLWGJpWsh6XNyXgcYwVoJQTEhhTYkxzZjiU5npU2TaB979TQehlaAVq4kaGpiPwwwLkYUuBbQwocyQTv1tA0+1UFWoJF3iv1oq+qoSk8EQdJmwHkziIF7oOZk14EGitibAdjLYYK78H5vZOhtWpoI0ATGHs0Q8OMb4Ey+2bU2UYztCtA0wFAs7TplGLRVQCcqaFdGSPCeTI1QNIC52iWNzof6Uib7xjEp07mNNoUYmVosVItHrHzRlLgBn9LFyRHaQCtVUMbtTNhoXWiTOO9k/V8BdAc1Oq0ArSQs6/5SU0hckNy9NnXqQY0PGYo5dWJ7nINaN6o958FWin27aBaWRka1r5myvLOAm0j30eBJqCxHLReVclxhxOEN2JfDWjxBtAC7MIH1fVaGdoOp4qJYDgKtKPSFNID2gSnGldrCqkFZ+5UeQXQBIRrSwocbdZYQT/2LwRahBPBXoHrB8nxaGROST62DKUbQOMMzZIC9abkuELfQzQALWTnDNAm8KHWFOJgJ5+SHIvTPcmx1xQyZRhNL5Qci689aXMEaN/uNIWkEwDAvFpOZmgsBaaGnbs1NPa1Jm32gBZAIh1pCtG7TSH4aE0y1uVY4uqoFPisGlpP2rSA5qTecWn5agK6BzSpgAyD+wFaqhnYoSZ1Vwr8CmlTQbrcO3ZaX0NAEyMbYaAlyquFoLKK3SPby9CeVUPThrSJmkCAE0CrKUQadi4DrdSlWhmah0YL9z9vClH59YGbHx1J8VZTyAjQepJjmXwAKTDQI3omc3p1U4gDUf6RfcdYfrUp5ClAi2J3Ba6UOXGo+K+bQrjjssitG2SJzshaLwMtXgRagUNpYYoVkMSBLM+9GGiJZMvduG6DRZ4qc04DMPtQQxOjEtACmhO7K1AbNbQDEggZyJwscFpAGwENhoBeUwh3bWolhe8BTYVKxQEWrSUn/uhcM5KhvUu/+eQu0Lzhi+VrK0PrZZNDQKs9cpYUuFYgMVpD4/NxenJTiMCNqdUEUf1qZWjppLT5qSkkUZbCwkbZMSuVnu80hfSkzRbQeqCZSAh6huR4VtoM2gHAlLf72smuWgE+VV7XpE25Ab2WFDgyhnSuKbs4GuGzCjR+tIoUuMFg3kgcWKLTwRqanJQ2W00hAsenfaApRC42hbCvK1SlE0HtE9BGgneJO+ELamitD1YjjOYnNYVcraGhtKkW0EqVVeDx733I2NH581k1NNxNLG0i0IJ8/NjVaOZ0tYZ2Vtr0Xv7tPV3hkWp9EFkgS/J0vosngTaSoaG06WHi+xObQkaAdlbanP8B2+2l0f90LmUAAAAASUVORK5CYII=); }\n",".cm-s-neat span.cm-comment { color: #a86; }\n.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }\n.cm-s-neat span.cm-string { color: #a22; }\n.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }\n.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }\n.cm-s-neat span.cm-variable { color: black; }\n.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }\n.cm-s-neat span.cm-meta { color: #555; }\n.cm-s-neat span.cm-link { color: #3a3; }\n\n.cm-s-neat .CodeMirror-activeline-background { background: #e8f2ff; }\n.cm-s-neat .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }\n",".cm-s-rubyblue.CodeMirror { background: #112435; color: white; }\n.cm-s-rubyblue div.CodeMirror-selected { background: #38566F; }\n.cm-s-rubyblue .CodeMirror-line::selection, .cm-s-rubyblue .CodeMirror-line > span::selection, .cm-s-rubyblue .CodeMirror-line > span > span::selection { background: rgba(56, 86, 111, 0.99); }\n.cm-s-rubyblue .CodeMirror-line::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 86, 111, 0.99); }\n.cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }\n.cm-s-rubyblue .CodeMirror-guttermarker { color: white; }\n.cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; }\n.cm-s-rubyblue .CodeMirror-linenumber { color: white; }\n.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white; }\n\n.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }\n.cm-s-rubyblue span.cm-atom { color: #F4C20B; }\n.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }\n.cm-s-rubyblue span.cm-keyword { color: #F0F; }\n.cm-s-rubyblue span.cm-string { color: #F08047; }\n.cm-s-rubyblue span.cm-meta { color: #F0F; }\n.cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }\n.cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def, .cm-s-rubyblue span.cm-type { color: white; }\n.cm-s-rubyblue span.cm-bracket { color: #F0F; }\n.cm-s-rubyblue span.cm-link { color: #F4C20B; }\n.cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }\n.cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }\n.cm-s-rubyblue span.cm-error { color: #AF2018; }\n\n.cm-s-rubyblue .CodeMirror-activeline-background { background: #173047; }\n","/*\n\n Name: seti\n Author: Michael Kaminsky (http://github.com/mkaminsky11)\n\n Original seti color scheme by Jesse Weed (https://github.com/jesseweed/seti-syntax)\n\n*/\n\n\n.cm-s-seti.CodeMirror {\n background-color: #151718 !important;\n color: #CFD2D1 !important;\n border: none;\n}\n.cm-s-seti .CodeMirror-gutters {\n color: #404b53;\n background-color: #0E1112;\n border: none;\n}\n.cm-s-seti .CodeMirror-cursor { border-left: solid thin #f8f8f0; }\n.cm-s-seti .CodeMirror-linenumber { color: #6D8A88; }\n.cm-s-seti.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }\n.cm-s-seti .CodeMirror-line::selection, .cm-s-seti .CodeMirror-line > span::selection, .cm-s-seti .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }\n.cm-s-seti .CodeMirror-line::-moz-selection, .cm-s-seti .CodeMirror-line > span::-moz-selection, .cm-s-seti .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }\n.cm-s-seti span.cm-comment { color: #41535b; }\n.cm-s-seti span.cm-string, .cm-s-seti span.cm-string-2 { color: #55b5db; }\n.cm-s-seti span.cm-number { color: #cd3f45; }\n.cm-s-seti span.cm-variable { color: #55b5db; }\n.cm-s-seti span.cm-variable-2 { color: #a074c4; }\n.cm-s-seti span.cm-def { color: #55b5db; }\n.cm-s-seti span.cm-keyword { color: #ff79c6; }\n.cm-s-seti span.cm-operator { color: #9fca56; }\n.cm-s-seti span.cm-keyword { color: #e6cd69; }\n.cm-s-seti span.cm-atom { color: #cd3f45; }\n.cm-s-seti span.cm-meta { color: #55b5db; }\n.cm-s-seti span.cm-tag { color: #55b5db; }\n.cm-s-seti span.cm-attribute { color: #9fca56; }\n.cm-s-seti span.cm-qualifier { color: #9fca56; }\n.cm-s-seti span.cm-property { color: #a074c4; }\n.cm-s-seti span.cm-variable-3, .cm-s-seti span.cm-type { color: #9fca56; }\n.cm-s-seti span.cm-builtin { color: #9fca56; }\n.cm-s-seti .CodeMirror-activeline-background { background: #101213; }\n.cm-s-seti .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }\n","/**\n Name: IntelliJ IDEA darcula theme\n From IntelliJ IDEA by JetBrains\n */\n\n.cm-s-darcula { font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;}\n.cm-s-darcula.CodeMirror { background: #2B2B2B; color: #A9B7C6; }\n\n.cm-s-darcula span.cm-meta { color: #BBB529; }\n.cm-s-darcula span.cm-number { color: #6897BB; }\n.cm-s-darcula span.cm-keyword { color: #CC7832; line-height: 1em; font-weight: bold; }\n.cm-s-darcula span.cm-def { color: #A9B7C6; font-style: italic; }\n.cm-s-darcula span.cm-variable { color: #A9B7C6; }\n.cm-s-darcula span.cm-variable-2 { color: #A9B7C6; }\n.cm-s-darcula span.cm-variable-3 { color: #9876AA; }\n.cm-s-darcula span.cm-type { color: #AABBCC; font-weight: bold; }\n.cm-s-darcula span.cm-property { color: #FFC66D; }\n.cm-s-darcula span.cm-operator { color: #A9B7C6; }\n.cm-s-darcula span.cm-string { color: #6A8759; }\n.cm-s-darcula span.cm-string-2 { color: #6A8759; }\n.cm-s-darcula span.cm-comment { color: #61A151; font-style: italic; }\n.cm-s-darcula span.cm-link { color: #CC7832; }\n.cm-s-darcula span.cm-atom { color: #CC7832; }\n.cm-s-darcula span.cm-error { color: #BC3F3C; }\n.cm-s-darcula span.cm-tag { color: #629755; font-weight: bold; font-style: italic; text-decoration: underline; }\n.cm-s-darcula span.cm-attribute { color: #6897bb; }\n.cm-s-darcula span.cm-qualifier { color: #6A8759; }\n.cm-s-darcula span.cm-bracket { color: #A9B7C6; }\n.cm-s-darcula span.cm-builtin { color: #FF9E59; }\n.cm-s-darcula span.cm-special { color: #FF9E59; }\n.cm-s-darcula span.cm-matchhighlight { color: #FFFFFF; background-color: rgba(50, 89, 48, .7); font-weight: normal;}\n.cm-s-darcula span.cm-searching { color: #FFFFFF; background-color: rgba(61, 115, 59, .7); font-weight: normal;}\n\n.cm-s-darcula .CodeMirror-cursor { border-left: 1px solid #A9B7C6; }\n.cm-s-darcula .CodeMirror-activeline-background { background: #323232; }\n.cm-s-darcula .CodeMirror-gutters { background: #313335; border-right: 1px solid #313335; }\n.cm-s-darcula .CodeMirror-guttermarker { color: #FFEE80; }\n.cm-s-darcula .CodeMirror-guttermarker-subtle { color: #D0D0D0; }\n.cm-s-darcula .CodeMirrir-linenumber { color: #606366; }\n.cm-s-darcula .CodeMirror-matchingbracket { background-color: #3B514D; color: #FFEF28 !important; font-weight: bold; }\n\n.cm-s-darcula div.CodeMirror-selected { background: #214283; }\n\n.CodeMirror-hints.darcula {\n font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;\n color: #9C9E9E;\n background-color: #3B3E3F !important;\n}\n\n.CodeMirror-hints.darcula .CodeMirror-hint-active {\n background-color: #494D4E !important;\n color: #9C9E9E !important;\n}\n","/**\n Name: IDEA default theme\n From IntelliJ IDEA by JetBrains\n */\n\n.cm-s-idea span.cm-meta { color: #808000; }\n.cm-s-idea span.cm-number { color: #0000FF; }\n.cm-s-idea span.cm-keyword { line-height: 1em; font-weight: bold; color: #000080; }\n.cm-s-idea span.cm-atom { font-weight: bold; color: #000080; }\n.cm-s-idea span.cm-def { color: #000000; }\n.cm-s-idea span.cm-variable { color: black; }\n.cm-s-idea span.cm-variable-2 { color: black; }\n.cm-s-idea span.cm-variable-3, .cm-s-idea span.cm-type { color: black; }\n.cm-s-idea span.cm-property { color: black; }\n.cm-s-idea span.cm-operator { color: black; }\n.cm-s-idea span.cm-comment { color: #808080; }\n.cm-s-idea span.cm-string { color: #008000; }\n.cm-s-idea span.cm-string-2 { color: #008000; }\n.cm-s-idea span.cm-qualifier { color: #555; }\n.cm-s-idea span.cm-error { color: #FF0000; }\n.cm-s-idea span.cm-attribute { color: #0000FF; }\n.cm-s-idea span.cm-tag { color: #000080; }\n.cm-s-idea span.cm-link { color: #0000FF; }\n.cm-s-idea .CodeMirror-activeline-background { background: #FFFAE3; }\n\n.cm-s-idea span.cm-builtin { color: #30a; }\n.cm-s-idea span.cm-bracket { color: #cc7; }\n.cm-s-idea { font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;}\n\n\n.cm-s-idea .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }\n\n.CodeMirror-hints.idea {\n font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;\n color: #616569;\n background-color: #ebf3fd !important;\n}\n\n.CodeMirror-hints.idea .CodeMirror-hint-active {\n background-color: #a2b8c9 !important;\n color: #5c6065 !important;\n}",".cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; }\n.cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D; }\n.cm-s-the-matrix .CodeMirror-line::selection, .cm-s-the-matrix .CodeMirror-line > span::selection, .cm-s-the-matrix .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); }\n.cm-s-the-matrix .CodeMirror-line::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); }\n.cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; }\n.cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; }\n.cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; }\n.cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; }\n.cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00; }\n\n.cm-s-the-matrix span.cm-keyword { color: #008803; font-weight: bold; }\n.cm-s-the-matrix span.cm-atom { color: #3FF; }\n.cm-s-the-matrix span.cm-number { color: #FFB94F; }\n.cm-s-the-matrix span.cm-def { color: #99C; }\n.cm-s-the-matrix span.cm-variable { color: #F6C; }\n.cm-s-the-matrix span.cm-variable-2 { color: #C6F; }\n.cm-s-the-matrix span.cm-variable-3, .cm-s-the-matrix span.cm-type { color: #96F; }\n.cm-s-the-matrix span.cm-property { color: #62FFA0; }\n.cm-s-the-matrix span.cm-operator { color: #999; }\n.cm-s-the-matrix span.cm-comment { color: #CCCCCC; }\n.cm-s-the-matrix span.cm-string { color: #39C; }\n.cm-s-the-matrix span.cm-meta { color: #C9F; }\n.cm-s-the-matrix span.cm-qualifier { color: #FFF700; }\n.cm-s-the-matrix span.cm-builtin { color: #30a; }\n.cm-s-the-matrix span.cm-bracket { color: #cc7; }\n.cm-s-the-matrix span.cm-tag { color: #FFBD40; }\n.cm-s-the-matrix span.cm-attribute { color: #FFF700; }\n.cm-s-the-matrix span.cm-error { color: #FF0000; }\n\n.cm-s-the-matrix .CodeMirror-activeline-background { background: #040; }\n","/*\nSolarized theme for code-mirror\nhttp://ethanschoonover.com/solarized\n*/\n\n/*\nSolarized color palette\nhttp://ethanschoonover.com/solarized/img/solarized-palette.png\n*/\n\n.solarized.base03 { color: #002b36; }\n.solarized.base02 { color: #073642; }\n.solarized.base01 { color: #586e75; }\n.solarized.base00 { color: #657b83; }\n.solarized.base0 { color: #839496; }\n.solarized.base1 { color: #93a1a1; }\n.solarized.base2 { color: #eee8d5; }\n.solarized.base3 { color: #fdf6e3; }\n.solarized.solar-yellow { color: #b58900; }\n.solarized.solar-orange { color: #cb4b16; }\n.solarized.solar-red { color: #dc322f; }\n.solarized.solar-magenta { color: #d33682; }\n.solarized.solar-violet { color: #6c71c4; }\n.solarized.solar-blue { color: #268bd2; }\n.solarized.solar-cyan { color: #2aa198; }\n.solarized.solar-green { color: #859900; }\n\n/* Color scheme for code-mirror */\n\n.cm-s-solarized {\n line-height: 1.45em;\n color-profile: sRGB;\n rendering-intent: auto;\n}\n.cm-s-solarized.cm-s-dark {\n color: #839496;\n background-color: #002b36;\n}\n.cm-s-solarized.cm-s-light {\n background-color: #fdf6e3;\n color: #657b83;\n}\n\n.cm-s-solarized .CodeMirror-widget {\n text-shadow: none;\n}\n\n.cm-s-solarized .cm-header { color: #586e75; }\n.cm-s-solarized .cm-quote { color: #93a1a1; }\n\n.cm-s-solarized .cm-keyword { color: #cb4b16; }\n.cm-s-solarized .cm-atom { color: #d33682; }\n.cm-s-solarized .cm-number { color: #d33682; }\n.cm-s-solarized .cm-def { color: #2aa198; }\n\n.cm-s-solarized .cm-variable { color: #839496; }\n.cm-s-solarized .cm-variable-2 { color: #b58900; }\n.cm-s-solarized .cm-variable-3, .cm-s-solarized .cm-type { color: #6c71c4; }\n\n.cm-s-solarized .cm-property { color: #2aa198; }\n.cm-s-solarized .cm-operator { color: #6c71c4; }\n\n.cm-s-solarized .cm-comment { color: #586e75; font-style:italic; }\n\n.cm-s-solarized .cm-string { color: #859900; }\n.cm-s-solarized .cm-string-2 { color: #b58900; }\n\n.cm-s-solarized .cm-meta { color: #859900; }\n.cm-s-solarized .cm-qualifier { color: #b58900; }\n.cm-s-solarized .cm-builtin { color: #d33682; }\n.cm-s-solarized .cm-bracket { color: #cb4b16; }\n.cm-s-solarized .CodeMirror-matchingbracket { color: #859900; }\n.cm-s-solarized .CodeMirror-nonmatchingbracket { color: #dc322f; }\n.cm-s-solarized .cm-tag { color: #93a1a1; }\n.cm-s-solarized .cm-attribute { color: #2aa198; }\n.cm-s-solarized .cm-hr {\n color: transparent;\n border-top: 1px solid #586e75;\n display: block;\n}\n.cm-s-solarized .cm-link { color: #93a1a1; cursor: pointer; }\n.cm-s-solarized .cm-special { color: #6c71c4; }\n.cm-s-solarized .cm-em {\n color: #999;\n text-decoration: underline;\n text-decoration-style: dotted;\n}\n.cm-s-solarized .cm-error,\n.cm-s-solarized .cm-invalidchar {\n color: #586e75;\n border-bottom: 1px dotted #dc322f;\n}\n\n.cm-s-solarized.cm-s-dark div.CodeMirror-selected { background: #073642; }\n.cm-s-solarized.cm-s-dark.CodeMirror ::selection { background: rgba(7, 54, 66, 0.99); }\n.cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection, .cm-s-dark .CodeMirror-line > span::-moz-selection, .cm-s-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(7, 54, 66, 0.99); }\n\n.cm-s-solarized.cm-s-light div.CodeMirror-selected { background: #eee8d5; }\n.cm-s-solarized.cm-s-light .CodeMirror-line::selection, .cm-s-light .CodeMirror-line > span::selection, .cm-s-light .CodeMirror-line > span > span::selection { background: #eee8d5; }\n.cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection, .cm-s-light .CodeMirror-line > span::-moz-selection, .cm-s-light .CodeMirror-line > span > span::-moz-selection { background: #eee8d5; }\n\n/* Editor styling */\n\n\n\n/* Little shadow on the view-port of the buffer view */\n.cm-s-solarized.CodeMirror {\n -moz-box-shadow: inset 7px 0 12px -6px #000;\n -webkit-box-shadow: inset 7px 0 12px -6px #000;\n box-shadow: inset 7px 0 12px -6px #000;\n}\n\n/* Remove gutter border */\n.cm-s-solarized .CodeMirror-gutters {\n border-right: 0;\n}\n\n/* Gutter colors and line number styling based of color scheme (dark / light) */\n\n/* Dark */\n.cm-s-solarized.cm-s-dark .CodeMirror-gutters {\n background-color: #073642;\n}\n\n.cm-s-solarized.cm-s-dark .CodeMirror-linenumber {\n color: #586e75;\n}\n\n/* Light */\n.cm-s-solarized.cm-s-light .CodeMirror-gutters {\n background-color: #eee8d5;\n}\n\n.cm-s-solarized.cm-s-light .CodeMirror-linenumber {\n color: #839496;\n}\n\n/* Common */\n.cm-s-solarized .CodeMirror-linenumber {\n padding: 0 5px;\n}\n.cm-s-solarized .CodeMirror-guttermarker-subtle { color: #586e75; }\n.cm-s-solarized.cm-s-dark .CodeMirror-guttermarker { color: #ddd; }\n.cm-s-solarized.cm-s-light .CodeMirror-guttermarker { color: #cb4b16; }\n\n.cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text {\n color: #586e75;\n}\n\n/* Cursor */\n.cm-s-solarized .CodeMirror-cursor { border-left: 1px solid #819090; }\n\n/* Fat cursor */\n.cm-s-solarized.cm-s-light.cm-fat-cursor .CodeMirror-cursor { background: #77ee77; }\n.cm-s-solarized.cm-s-light .cm-animate-fat-cursor { background-color: #77ee77; }\n.cm-s-solarized.cm-s-dark.cm-fat-cursor .CodeMirror-cursor { background: #586e75; }\n.cm-s-solarized.cm-s-dark .cm-animate-fat-cursor { background-color: #586e75; }\n\n/* Active line */\n.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background {\n background: rgba(255, 255, 255, 0.06);\n}\n.cm-s-solarized.cm-s-light .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.06);\n}\n"]} \ No newline at end of file +{"version":3,"sources":["webpack:///node_modules/codemirror/addon/fold/foldgutter.css","webpack:///node_modules/codemirror/lib/codemirror.css","webpack:///node_modules/@jhuix/showdowns/dist/showdowns.min.css","webpack:///node_modules/codemirror/theme/lesser-dark.css","webpack:///node_modules/codemirror/theme/mdn-like.css","webpack:///node_modules/codemirror/theme/neat.css","webpack:///node_modules/codemirror/theme/rubyblue.css","webpack:///node_modules/codemirror/theme/seti.css","webpack:///node_modules/codemirror/theme/darcula.css","webpack:///node_modules/codemirror/theme/idea.css","webpack:///node_modules/codemirror/theme/the-matrix.css","webpack:///node_modules/codemirror/theme/solarized.css"],"names":[],"mappings":"AAAA,uBACE,UAAW,CACX,mFAAuF,CACvF,iBAAkB,CAClB,cAAe,CACf,cACF,CACA,uBACE,UACF,CACA,0DAEE,cACF,CACA,kCACE,eACF,CACA,oCACE,eACF,CCjBA,YAEE,qBAAsB,CACtB,YAAa,CACb,UAAY,CACZ,aACF,CAIA,kBACE,aACF,CACA,qEAEE,aACF,CAEA,uDACE,qBACF,CAIA,oBACE,2BAA4B,CAC5B,wBAAyB,CACzB,kBACF,CAEA,uBACE,mBAAoB,CACpB,cAAe,CACf,gBAAiB,CACjB,UAAW,CACX,kBACF,CAEA,yBAA2B,UAAc,CACzC,gCAAkC,UAAa,CAI/C,mBACE,0BAA4B,CAC5B,iBAAkB,CAClB,OACF,CAEA,2CACE,4BACF,CACA,kCACE,UAAW,CACX,kBAAoB,CACpB,eACF,CACA,sCACE,SACF,CACA,gJAE2D,sBAAyB,CACpF,+JAEgE,sBAAyB,CACzF,eAAiB,uBAA0B,CAM3C,yBAEE,IAAM,4BAA+B,CAEvC,CACA,iBAEE,IAAM,4BAA+B,CAEvC,CAKA,QAAU,oBAAqB,CAAE,uBAA0B,CAE3D,mBACE,iBAAkB,CAClB,MAAO,CAAE,OAAQ,CAAE,SAAU,CAAE,QAAS,CACxC,eACF,CACA,kBACE,0BAA2B,CAC3B,KAAM,CAAE,QAAS,CACjB,iBACF,CAIA,yBAA0B,UAAY,CACtC,wBAAyB,UAAY,CACrC,aAAc,UAAY,CAC1B,aAAc,UAAY,CAC1B,sBAAwB,eAAkB,CAC1C,OAAQ,iBAAmB,CAC3B,SAAU,yBAA2B,CACrC,kBAAmB,4BAA8B,CAEjD,0BAA2B,UAAY,CACvC,uBAAwB,UAAY,CACpC,yBAA0B,UAAY,CACtC,sBAAuB,UAAY,CAKnC,6BAA8B,UAAY,CAC1C,oDAAsD,UAAY,CAClE,0BAA2B,UAAY,CACvC,yBAA0B,UAAY,CACtC,2BAA4B,UAAY,CAExC,mDAA6B,UAAY,CACzC,0BAA2B,UAAY,CACvC,0BAA2B,UAAY,CACvC,sBAAuB,UAAY,CACnC,4BAA6B,UAAY,CACzC,qBAAsB,UAAY,CAClC,uBAAwB,UAAY,CAGpC,wCAAiB,SAAY,CAE7B,sBAAwB,uBAA0B,CAIlD,+CAAgD,UAAY,CAC5D,kDAAmD,UAAY,CAC/D,wBAA0B,6BAAmC,CAC7D,kCAAmC,kBAAoB,CAOvD,YACE,iBAAkB,CAClB,eAAgB,CAChB,eACF,CAEA,mBACE,yBAA2B,CAG3B,mBAAoB,CAAE,kBAAmB,CACzC,mBAAoB,CACpB,WAAY,CACZ,YAAa,CACb,iBAAkB,CAClB,SACF,CACA,kBACE,iBAAkB,CAClB,mCACF,CAKA,qGACE,iBAAkB,CAClB,SAAU,CACV,YAAa,CACb,YACF,CACA,uBACE,OAAQ,CAAE,KAAM,CAChB,iBAAkB,CAClB,iBACF,CACA,uBACE,QAAS,CAAE,MAAO,CAClB,iBAAkB,CAClB,iBACF,CACA,6BACE,OAAQ,CAAE,QACZ,CACA,0BACE,MAAO,CAAE,QACX,CAEA,oBACE,iBAAkB,CAAE,MAAO,CAAE,KAAM,CACnC,eAAgB,CAChB,SACF,CACA,mBACE,kBAAmB,CACnB,WAAY,CACZ,oBAAqB,CACrB,kBAAmB,CACnB,mBACF,CACA,2BACE,iBAAkB,CAClB,SAAU,CACV,yBAA2B,CAC3B,qBACF,CACA,8BACE,iBAAkB,CAClB,KAAM,CAAE,QAAS,CACjB,SACF,CACA,uBACE,iBAAkB,CAClB,cAAe,CACf,SACF,CACA,uCAAyC,4BAA8B,CACvE,4CAA8C,4BAA8B,CAE5E,kBACE,WAAY,CACZ,cACF,CACA,qEAGmD,eAAgB,CACjE,cAAe,CACf,sBAAuB,CACvB,mBAAoB,CACpB,iBAAkB,CAClB,QAAS,CACT,eAAgB,CAChB,gBAAiB,CACjB,mBAAoB,CACpB,aAAc,CACd,SAAU,CACV,iBAAkB,CAClB,gBAAiB,CACjB,uCAAwC,CACxC,yCAA0C,CAC1C,sCAAkC,CAAlC,iCACF,CACA,+EAEE,oBAAqB,CACrB,oBAAqB,CACrB,iBACF,CAEA,2BACE,iBAAkB,CAClB,MAAO,CAAE,OAAQ,CAAE,KAAM,CAAE,QAAS,CACpC,SACF,CAEA,uBACE,iBAAkB,CAClB,SAAU,CACV,YACF,CAIA,oBAAsB,aAAgB,CAEtC,iBACE,YACF,CAGA,mGAKE,2BAA4B,CAC5B,8BAAuB,CAAvB,sBACF,CAEA,oBACE,iBAAkB,CAClB,UAAW,CACX,QAAS,CACT,eAAgB,CAChB,iBACF,CAEA,mBACE,iBAAkB,CAClB,mBACF,CACA,wBAA0B,eAAkB,CAE5C,uBACE,iBAAkB,CAClB,iBAAkB,CAClB,SACF,CAKA,sEACE,kBACF,CAEA,qBAAuB,kBAAqB,CAC5C,yCAA2C,kBAAqB,CAChE,sBAAwB,gBAAmB,CAC3C,mGAA6G,kBAAqB,CAClI,kHAA4H,kBAAqB,CAEjJ,cACE,qBAAsB,CACtB,mCACF,CAGA,iBAAmB,kBAAqB,CAExC,aAEE,mCACE,iBACF,CACF,CAGA,wBAA0B,UAAa,CAGvC,6BAA+B,eAAkB;;ACvVjD;;;;EAIE,CAAC,qRAAqR,QAAQ,CAAC,SAAS,CAAC,oPAAoP,gBAAgB,CAAC,6PAA6P,iBAAiB,CAAC,aAAa,aAAa,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,iBAAiB,WAAW,CAAC,mBAAmB,cAAc,CAAC,yBAAyB,CAAC,eAAe,8BAA8B,CAAC,eAAe,CAAC,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,mBAAmB,CAAC,aAAa,CAAC,eAAe,CAAC,eAAe,CAAC,oBAAoB,CAAC,iCAAiC,CAAC,kBAAkB,mBAAmB,CAAC,eAAe,CAAC,mBAAmB,gBAAgB,CAAC,iBAAiB,CAAC,eAAe,CAAC,oFAAoF,iBAAiB,CAAC,eAAe,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,iCAAiC,CAAC,wHAAwH,aAAa,CAAC,aAAa,CAAC,4BAA4B,+BAA+B,CAAC,mBAAmB,CAAC,cAAc,aAAa,CAAC,cAAc,eAAe,CAAC,cAAc,gBAAgB,CAAC,cAAc,aAAa,CAAC,cAAc,gBAAgB,CAAC,cAAc,aAAa,CAAC,eAAe,CAAC,sBAAsB,aAAa,CAAC,eAAe,CAAC,eAAe,CAAC,kBAAkB,CAAC,eAAe,CAAC,cAAc,iBAAiB,CAAC,oBAAoB,CAAC,UAAU,CAAC,QAAQ,CAAC,wBAAwB,CAAC,2BAA2B,iBAAiB,CAAC,mBAAmB,CAAC,+BAA+B,eAAe,CAAC,mBAAmB,CAAC,iBAAiB,aAAa,CAAC,mBAAmB,CAAC,gBAAgB,kBAAkB,CAAC,gBAAgB,CAAC,2EAA2E,CAAC,eAAe,CAAC,8BAA8B,CAAC,0CAA0C,mBAAmB,CAAC,aAAa,CAAC,eAAe,CAAC,2BAA2B,CAAC,oBAAoB,CAAC,cAAc,iBAAiB,CAAC,wBAAwB,aAAa,CAAC,4DAA4D,eAAe,CAAC,eAAe,CAAC,kBAAkB,CAAC,wCAAwC,eAAe,CAAC,kBAAkB,CAAC,+EAA+E,kBAAkB,CAAC,qBAAqB,sBAAsB,CAAC,iBAAiB,CAAC,qBAAqB,sBAAsB,CAAC,iBAAiB,CAAC,mBAAmB,oBAAoB,CAAC,iBAAiB,CAAC,wBAAwB,eAAe,CAAC,cAAc,iBAAiB,CAAC,wCAAwC,eAAe,CAAC,kBAAkB,CAAC,iBAAiB,eAAe,CAAC,kBAAkB,CAAC,iBAAiB,mBAAmB,CAAC,mCAAmC,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC,wBAAwB,CAAC,gBAAgB,mBAAmB,CAAC,uBAAuB,gCAAgC,CAAC,sBAAsB,6BAA6B,CAAC,aAAa,CAAC,eAAe,CAAC,eAAe,CAAC,cAAc,CAAC,2BAA2B,UAAU,CAAC,aAAa,CAAC,iBAAiB,CAAC,kCAAkC,qBAAqB,CAAC,kEAAkE,UAAU,CAAC,eAAe,oBAAoB,CAAC,wBAAwB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,8BAA8B,CAAC,oBAAoB,CAAC,yBAAyB,CAAC,qBAAqB,CAAC,uBAAuB,CAAC,oBAAoB,4BAA4B,CAAC,QAAQ,CAAC,SAAS,CAAC,iBAAiB,eAAe,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,aAAa,CAAC,iBAAiB,CAAC,yBAAyB,sBAAsB,CAAC,UAAU,CAAC,eAAe,CAAC,uBAAuB,kBAAkB,CAAC,0DAA0D,wBAAwB,CAAC,UAAU,CAAC,eAAe,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,uBAAuB,kBAAkB,CAAC,0DAA0D,wBAAwB,CAAC,UAAU,CAAC,eAAe,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,8CAA8C,wBAAwB,CAAC,UAAU,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,qFAAqF,kBAAkB,CAAC,0DAA0D,wBAAwB,CAAC,mBAAmB,CAAC,0HAA0H,wBAAwB,CAAC,qEAAqE,aAAa,CAAC,WAAW,CAAC,oEAAoE,aAAa,CAAC,uBAAuB,CAAC,mCAAmC,iBAAiB,CAAC,kCAAkC,gBAAgB,CAAC,gSAAgS,gBAAgB,CAAC,wLAAwL,iBAAiB,CAAC,oLAAoL,gBAAgB;;AAE1rM;;;;EAIE,CAAC,+BAA+B,qBAAqB,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,yCAAyC,wBAAwB,CAAC,yBAAyB,CAAC,6CAA6C,yBAAyB,CAAC,0BAA0B,CAAC,8CAA8C,yBAAyB,CAAC,0BAA0B,CAAC,iDAAiD,yBAAyB,CAAC,0BAA0B,CAAC,+CAA+C,yBAAyB,CAAC,0BAA0B,CAAC,iDAAiD,yBAAyB,CAAC,0BAA0B,CAAC,qCAAqC,4BAA4B,CAAC,8BAAqB,CAArB,sBAAsB,CAAC,+CAA+C,wBAAwB,CAAC,gDAAgD,wBAAwB,CAAC,mDAAmD,wBAAwB,CAAC,iDAAiD,wBAAwB,CAAC,mDAAmD,wBAAwB,CAAC,gDAAgD,iBAAiB,CAAC,eAAe,CAAC,eAAe,CCNvwC,kBACE,iBACF,CACA,6BAA+B,kBAAmB,CAAE,aAAc,CAAE,8BAAiC,CACrG,0CAA4C,kBAAqB,CACjE,yJAAmK,6BAAmC,CACtM,wKAAkL,6BAAmC,CACrN,qCAAuC,0BAA8B,CACrE,sBAAwB,aAAgB,CAExC,6DAA+D,aAAgB,CAE/E,sCAAwC,kBAAmB,CAAE,2BAA6B,CAC1F,2CAA6C,aAAgB,CAE7D,2FAA2C,UAAa,CAExD,iCAAmC,UAAa,CAChD,gCAAkC,UAAa,CAC/C,kCAAoC,aAAgB,CACpD,+BAAiC,aAAgB,CACjD,iCAAmC,aAAgB,CACnD,8BAAgC,UAAc,CAC9C,mCAAqC,aAAe,CACpD,qCAAuC,aAAgB,CACvD,oEAAuE,UAAc,CAErF,sEAAqC,aAAgB,CACrD,kCAAoC,UAAa,CACjD,iCAAmC,aAAgB,CACnD,mCAAqC,UAAa,CAClD,+BAAiC,aAAgB,CACjD,oCAAsC,UAAa,CACnD,kCAAoC,aAAgB,CACpD,kCAAoC,aAAgB,CACpD,8BAAgC,aAAgB,CAChD,oCAAsC,aAAgB,CACtD,6BAA+B,UAAa,CAC5C,+BAAiC,aAAgB,CACjD,gCAAkC,aAAgB,CAElD,oDAAsD,kBAAqB,CAC3E,8CAAgD,sBAAsB,CAAE,oBAAwB,CCrChG,0BAA4B,UAAW,CAAE,qBAAwB,CACjE,uCAAyC,eAAkB,CAC3D,gJAA0J,eAAkB,CAC5K,+JAAyK,eAAkB,CAE3L,mCAAqC,kBAAmB,CAAE,wCAA0C,CAAE,UAAa,CACnH,sCAAwC,UAAW,CAAE,gBAAmB,CACxE,kCAAoC,0BAA6B,CAEjE,2BAA6B,aAAgB,CAC7C,wBAA0B,UAAa,CACvC,0BAA4B,aAAiB,CAC7C,uBAAyB,aAAgB,CACzC,6DAAgE,UAAa,CAG7E,qHAA8B,UAAa,CAC3C,4BAA8B,UAAa,CAC3C,6BAA+B,UAAa,CAE5C,4BAA8B,aAAgB,CAC9C,2BAA6B,UAAU,CAAE,eAAoB,CAC7D,0BAA4B,UAAU,CAAE,iBAAmB,CAC3D,4BAA8B,aAAe,CAC7C,wBAA0B,UAAa,CACvC,2BAA6B,aAAgB,CAC7C,uBAAyB,aAAgB,CACzC,6BAA+B,aAAgB,CAC/C,0BAA4B,aAAgB,CAC5C,sBAAwB,aAAgB,CACxC,wBAA0B,aAAa,CAAE,iBAAiB,CAAE,oBAAsB,CAClF,yBAA2B,2BAA8B,CAEzD,oDAAsD,kBAAqB,CAC3E,kDAAoD,sBAAsB,CAAE,aAAgB,CAE5F,0BAA4B,4sFAA+sF,CC7C3uF,2BAA6B,UAAa,CAC1C,2BAA6B,eAAgB,CAAE,eAAiB,CAAE,UAAa,CAC/E,0BAA4B,UAAa,CACzC,2BAA6B,eAAgB,CAAE,eAAiB,CAAE,UAAa,CAC/E,2BAA6B,eAAgB,CAAE,eAAiB,CAAE,UAAa,CAC/E,4BAA8B,UAAc,CAC5C,kDAAqD,UAAa,CAClE,wBAA0B,UAAa,CACvC,wBAA0B,UAAa,CAEvC,6CAA+C,kBAAqB,CACpE,uCAAyC,sBAAsB,CAAE,oBAAwB,CCXzF,0BAA4B,kBAAmB,CAAE,UAAc,CAC/D,uCAAyC,kBAAqB,CAC9D,gJAA0J,8BAAqC,CAC/L,+JAAyK,8BAAqC,CAC9M,mCAAqC,kBAAmB,CAAE,8BAAiC,CAC3F,wCAA0C,UAAc,CACxD,+CAAiD,aAAgB,CACjE,sCAAwC,UAAc,CACtD,kCAAoC,0BAA8B,CAElE,+BAAiC,UAAW,CAAE,iBAAiB,CAAE,eAAkB,CACnF,4BAA8B,aAAgB,CAC9C,+DAAkE,aAAgB,CAClF,+BAAiC,UAAa,CAC9C,8BAAgC,aAAgB,CAChD,4BAA8B,UAAa,CAC3C,6DAAgE,aAAgB,CAChF,yFAA6F,UAAc,CAC3G,+BAAiC,UAAa,CAC9C,4BAA8B,aAAgB,CAC9C,+CAAiD,oBAAuB,CACxE,8DAAiE,aAAgB,CACjF,6BAA+B,aAAgB,CAE/C,iDAAmD,kBAAqB,CCdxE,sBACE,kCAAoC,CACpC,uBAAyB,CACzB,WACF,CACA,+BACE,aAAc,CACd,wBAAyB,CACzB,WACF,CACA,8BAAgC,8BAAiC,CACjE,kCAAoC,aAAgB,CACpD,sDAAwD,6BAAuC,CAC/F,oIAA8I,6BAAuC,CACrL,mJAA6J,6BAAuC,CACpM,2BAA6B,aAAgB,CAC7C,sDAAyD,aAAgB,CACzE,0BAA4B,aAAgB,CAC5C,4BAA8B,aAAgB,CAC9C,8BAAgC,aAAgB,CAChD,uBAAyB,aAAgB,CACzC,2BAA6B,aAAgB,CAC7C,4BAA8B,aAAgB,CAC9C,2BAA6B,aAAgB,CAC7C,wBAA0B,aAAgB,CAE1C,+CAAyB,aAAgB,CAEzC,0DAA+B,aAAgB,CAC/C,4BAA8B,aAAgB,CAE9C,iFAA6B,aAAgB,CAC7C,6CAA+C,kBAAqB,CACpE,uCAAyC,yBAA0B,CAAE,oBAAyB,CCtC9F,cAAiB,sIAA2J,CAC5K,yBAA2B,kBAAmB,CAAE,aAAgB,CAEhE,2BAA6B,aAAgB,CAC7C,6BAA+B,aAAgB,CAC/C,8BAAgC,aAAc,CAAE,eAAgB,CAAE,eAAmB,CACrF,0BAA4B,aAAc,CAAE,iBAAoB,CAEhE,gEAAmC,aAAgB,CACnD,iCAAmC,aAAgB,CACnD,2BAA6B,UAAc,CAAE,eAAmB,CAChE,+BAAiC,aAAgB,CACjD,+BAAiC,aAAgB,CAEjD,4DAAiC,aAAgB,CACjD,8BAAgC,aAAc,CAAE,iBAAoB,CAEpE,sDAA6B,aAAgB,CAC7C,4BAA8B,aAAgB,CAC9C,0BAA4B,aAAc,CAAE,eAAiB,CAAE,iBAAkB,CAAE,yBAA4B,CAC/G,gCAAkC,aAAgB,CAClD,gCAAkC,aAAgB,CAClD,8BAAgC,aAAgB,CAEhD,4DAAgC,aAAgB,CAChD,qCAAuC,UAAc,CAAE,kCAAsC,CAAE,eAAoB,CACnH,gCAAkC,UAAc,CAAE,mCAAuC,CAAE,eAAoB,CAE/G,iCAAmC,6BAAgC,CACnE,gDAAkD,kBAAqB,CACvE,kCAAoC,kBAAmB,CAAE,8BAAiC,CAC1F,uCAAyC,aAAgB,CACzD,8CAAgD,aAAgB,CAChE,qCAAuC,aAAgB,CACvD,0CAA4C,wBAAyB,CAAE,uBAAyB,CAAE,eAAmB,CAErH,sCAAwC,kBAAqB,CAE7D,0BACE,uDAA8D,CAC9D,aAAc,CACd,kCACF,CAEA,kDACE,kCAAoC,CACpC,uBACF,CC/CA,wBAA0B,WAAgB,CAC1C,0BAA4B,UAAgB,CAC5C,2BAA6B,eAAgB,CAAE,eAAiB,CAAE,UAAgB,CAClF,wBAA0B,eAAiB,CAAE,UAAgB,CAM7D,+LAA8B,UAAc,CAC5C,2BAA6B,UAAgB,CAE7C,sDAA8B,WAAgB,CAC9C,6BAA+B,UAAa,CAC5C,yBAA2B,SAAgB,CAC3C,6BAA+B,UAAgB,CAC/C,uBAAyB,UAAgB,CACzC,wBAA0B,UAAgB,CAC1C,6CAA+C,kBAAqB,CAEpE,2BAA6B,UAAa,CAC1C,2BAA6B,UAAa,CAC1C,WAAc,sIAAiJ,CAG/J,uCAAyC,sBAAsB,CAAE,oBAAwB,CAEzF,uBACE,uDAA8D,CAC9D,aAAc,CACd,kCACF,CAEA,+CACE,kCAAoC,CACpC,uBACF,CCzCA,4BAA8B,eAAmB,CAAE,UAAgB,CACnE,yCAA2C,kBAAqB,CAChE,sJAAgK,6BAAoC,CACpM,qKAA+K,6BAAoC,CACnN,qCAAuC,eAAgB,CAAE,2BAAiC,CAC1F,0CAA4C,UAAa,CAEzD,yFAA0C,UAAgB,CAC1D,oCAAsC,0BAAgC,CAEtE,iCAAmC,aAAc,CAAE,eAAmB,CACtE,8BAAgC,UAAa,CAC7C,gCAAkC,aAAgB,CAClD,6BAA+B,UAAa,CAC5C,kCAAoC,UAAa,CACjD,oCAAsC,UAAa,CACnD,kEAAqE,UAAa,CAClF,kCAAoC,aAAgB,CACpD,kCAAoC,UAAa,CACjD,iCAAmC,UAAgB,CACnD,gCAAkC,UAAa,CAC/C,8BAAgC,UAAa,CAC7C,mCAAqC,aAAgB,CACrD,iCAAmC,UAAa,CAChD,iCAAmC,UAAa,CAChD,6BAA+B,aAAgB,CAC/C,mCAAqC,aAAgB,CACrD,+BAAiC,SAAgB,CAEjD,mDAAqD,eAAkB,CCnBvE,kBAAoB,aAAgB,CACpC,kBAAoB,aAAgB,CACpC,kBAAoB,aAAgB,CACpC,kBAAoB,aAAgB,CACpC,iBAAmB,aAAgB,CACnC,iBAAmB,aAAgB,CACnC,iBAAmB,aAAgB,CACnC,iBAAoB,aAAgB,CACpC,wBAA2B,aAAgB,CAC3C,wBAA2B,aAAgB,CAC3C,qBAAuB,aAAgB,CACvC,yBAA2B,aAAgB,CAC3C,wBAA2B,aAAgB,CAC3C,sBAAwB,aAAgB,CACxC,sBAAwB,aAAgB,CACxC,uBAAyB,aAAgB,CAIzC,gBACE,kBAAmB,CACnB,kBAAmB,CACnB,qBACF,CACA,0BACE,aAAc,CACd,wBACF,CACA,2BACE,wBAAyB,CACzB,aACF,CAEA,mCACE,gBACF,CAEA,2BAA6B,aAAgB,CAC7C,0BAA4B,aAAgB,CAE5C,4BAA8B,aAAgB,CAE9C,oDAA6B,aAAgB,CAC7C,wBAA0B,aAAgB,CAE1C,6BAA+B,aAAgB,CAC/C,+BAAiC,aAAgB,CACjD,wDAA2D,aAAgB,CAE3E,6BAA+B,aAAgB,CAC/C,6BAA+B,aAAgB,CAE/C,4BAA8B,aAAc,CAAE,iBAAmB,CAEjE,2BAA6B,aAAgB,CAC7C,6BAA+B,aAAgB,CAE/C,yBAA2B,aAAgB,CAC3C,8BAAgC,aAAgB,CAChD,4BAA8B,aAAgB,CAC9C,4BAA8B,aAAgB,CAC9C,4CAA8C,aAAgB,CAC9D,+CAAiD,aAAgB,CACjE,wBAA0B,aAAgB,CAC1C,8BAAgC,aAAgB,CAChD,uBACE,iBAAkB,CAClB,4BAA6B,CAC7B,aACF,CACA,yBAA2B,aAAc,CAAE,cAAiB,CAC5D,4BAA8B,aAAgB,CAC9C,uBACE,UAAW,CACX,yBAA0B,CAC1B,oCAA6B,CAA7B,iCAA6B,CAA7B,4BACF,CACA,0DAEE,aAAc,CACd,gCACF,CAEA,kDAAoD,kBAAqB,CACzE,sDAAmD,4BAAmC,CAAtF,iDAAmD,4BAAmC,CACtF,kKAA4K,4BAAmC,CAE/M,mDAAqD,kBAAqB,CAC1E,sJAAgK,kBAAqB,CACrL,qKAA+K,kBAAqB,CAOpM,2BAEE,6CAA8C,CAC9C,qCACF,CAGA,oCACE,cACF,CAKA,8CACE,wBACF,CAEA,iDACE,aACF,CAGA,+CACE,wBACF,CAEA,kDACE,aACF,CAGA,uCACE,aACF,CACA,gDAAkD,aAAgB,CAClE,mDAAqD,UAAa,CAClE,oDAAsD,aAAgB,CAEtE,2DACE,aACF,CAGA,mCAAqC,6BAAgC,CAGrE,4DAA8D,eAAqB,CACnF,kDAAoD,qBAA2B,CAC/E,2DAA6D,kBAAqB,CAClF,iDAAmD,wBAA2B,CAG9E,4DACE,8BACF,CACA,6DACE,0BACF","file":"chunk-vendors.css","sourcesContent":[".CodeMirror-foldmarker {\n color: blue;\n text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;\n font-family: arial;\n line-height: .3;\n cursor: pointer;\n}\n.CodeMirror-foldgutter {\n width: .7em;\n}\n.CodeMirror-foldgutter-open,\n.CodeMirror-foldgutter-folded {\n cursor: pointer;\n}\n.CodeMirror-foldgutter-open:after {\n content: \"\\25BE\";\n}\n.CodeMirror-foldgutter-folded:after {\n content: \"\\25B8\";\n}\n","/* BASICS */\n\n.CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n.cm-fat-cursor .CodeMirror-line::selection,\n.cm-fat-cursor .CodeMirror-line > span::selection, \n.cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }\n.cm-fat-cursor .CodeMirror-line::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span::-moz-selection,\n.cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }\n.cm-fat-cursor { caret-color: transparent; }\n@-moz-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@-webkit-keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: 0;\n overflow: hidden;\n}\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 50px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -50px; margin-right: -50px;\n padding-bottom: 50px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n z-index: 0;\n}\n.CodeMirror-sizer {\n position: relative;\n border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n outline: none;\n}\n.CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n","/*!\n * css of showdowns v0.6.3\n * Copyright (c) 2019-present, Jhuix (Hui Jin) \n * Released under the MIT License.\n */.showdowns blockquote,.showdowns dd,.showdowns div,.showdowns dl,.showdowns dt,.showdowns form,.showdowns h1,.showdowns h2,.showdowns h3,.showdowns h4,.showdowns h5,.showdowns h6,.showdowns li,.showdowns ol,.showdowns p,.showdowns pre,.showdowns td,.showdowns th,.showdowns ul{margin:0;padding:0}.showdowns div.paragraph.align-right,.showdowns h1.align-right,.showdowns h2.align-right,.showdowns h3.align-right,.showdowns h4.align-right,.showdowns h5.align-right,.showdowns h6.align-right,.showdowns li.align-right,.showdowns p.align-right{text-align:right}.showdowns div.paragraph.align-center,.showdowns h1.align-center,.showdowns h2.align-center,.showdowns h3.align-center,.showdowns h4.align-center,.showdowns h5.align-center,.showdowns h6.align-center,.showdowns li.align-center,.showdowns p.align-center{text-align:center}.showdowns a{color:#0366d6;line-height:inherit;text-decoration:none}.showdowns a img{border:none}.showdowns a:hover{cursor:pointer;text-decoration:underline}.showdowns img{-ms-interpolation-mode:bicubic;display:inherit;height:auto;margin:0 auto;max-width:100%}.showdowns p{font-family:inherit;font-size:1em;font-weight:400;line-height:1.5;margin-bottom:1.25em;text-rendering:optimizeLegibility}.showdowns p.lead{font-size:1.21875em;line-height:1.5}.showdowns p aside{font-size:.875em;font-style:italic;line-height:1.5}.showdowns h1,.showdowns h2,.showdowns h3,.showdowns h4,.showdowns h5,.showdowns h6{font-style:normal;font-weight:600;line-height:1.25;margin-bottom:1rem;margin-top:1.5rem;text-rendering:optimizeLegibility}.showdowns h1 small,.showdowns h2 small,.showdowns h3 small,.showdowns h4 small,.showdowns h5 small,.showdowns h6 small{font-size:60%;line-height:0}.showdowns h1,.showdowns h2{border-bottom:1px solid #d6d6d6;padding-bottom:.3em}.showdowns h1{font-size:2em}.showdowns h2{font-size:1.5em}.showdowns h3{font-size:1.25em}.showdowns h4{font-size:1em}.showdowns h5{font-size:.875em}.showdowns h6{color:#6a737d;font-size:.85em}.showdowns .subheader{color:#6f6f6f;font-weight:400;line-height:1.4;margin-bottom:.5em;margin-top:.2em}.showdowns hr{border:solid #ddd;border-width:1px 0 0;clear:both;height:0;margin:1.25em 0 1.1875em}.showdowns em,.showdowns i{font-style:italic;line-height:inherit}.showdowns b,.showdowns strong{font-weight:600;line-height:inherit}.showdowns small{font-size:60%;line-height:inherit}.showdowns code{border-style:solid;border-width:1px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-weight:400;padding:.125em .3125em .0625em}.showdowns dl,.showdowns ol,.showdowns ul{font-family:inherit;font-size:1em;line-height:1.5;list-style-position:outside;margin-bottom:1.25em}.showdowns ul{margin-left:1.1em}.showdowns ul.no-bullet{margin-left:0}.showdowns ul.no-bullet li ol,.showdowns ul.no-bullet li ul{list-style:none;margin-bottom:0;margin-left:1.25em}.showdowns ul li ol,.showdowns ul li ul{margin-bottom:0;margin-left:1.25em}.showdowns ul.circle li ul,.showdowns ul.disc li ul,.showdowns ul.square li ul{list-style:inherit}.showdowns ul.square{list-style-type:square;margin-left:1.1em}.showdowns ul.circle{list-style-type:circle;margin-left:1.1em}.showdowns ul.disc{list-style-type:disc;margin-left:1.1em}.showdowns ul.no-bullet{list-style:none}.showdowns ol{margin-left:1.4em}.showdowns ol li ol,.showdowns ol li ul{margin-bottom:0;margin-left:1.25em}.showdowns dl dt{font-weight:600;margin-bottom:.3em}.showdowns dl dd{margin-bottom:.75em}.showdowns abbr,.showdowns acronym{color:#222;cursor:help;font-size:90%;text-transform:uppercase}.showdowns abbr{text-transform:none}.showdowns abbr[title]{border-bottom:1px dotted #5c5c5c}.showdowns blockquote{border-left:4px solid #d6d6d6;color:#5c5c5c;line-height:1.5;margin:0 0 16px;padding:0 15px}.showdowns blockquote cite{color:#555;display:block;font-size:.8125em}.showdowns blockquote cite:before{content:\"\\2014 \\0020\"}.showdowns blockquote cite a,.showdowns blockquote cite a:visited{color:#555}.showdowns pre{word-wrap:break-word;border:1px solid #dfdfdf;margin-bottom:1.5em;margin-top:1.5em;padding:.125em .3125em .0625em;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap}.showdowns pre code{background-color:transparent;border:0;padding:0}.showdowns table{background:#fff;border-collapse:collapse;border-spacing:0;margin-bottom:1.25em;overflow:auto;table-layout:auto}.showdowns table caption{background:transparent;color:#222;font-weight:600}.showdowns table thead{background:#f5f5f5}.showdowns table thead tr td,.showdowns table thead tr th{border:1px solid #d6d6d6;color:#222;font-weight:600;line-height:1.125em;padding:.5em .625em .625em}.showdowns table tfoot{background:#f5f5f5}.showdowns table tfoot tr td,.showdowns table tfoot tr th{border:1px solid #d6d6d6;color:#222;font-weight:600;line-height:1.125em;padding:.5em .625em .625em}.showdowns table tr td,.showdowns table tr th{border:1px solid #d6d6d6;color:#222;line-height:1.125em;padding:.5625em .625em}.showdowns table tr.alt,.showdowns table tr.even,.showdowns table tr:nth-of-type(2n){background:#f9f9f9}.showdowns table tbody tr td,.showdowns table tbody tr th{border:1px solid #d6d6d6;line-height:1.125em}.showdowns .flow,.showdowns .flowchart,.showdowns .mermaid,.showdowns .plantuml,.showdowns .sequence,.showdowns .wavedrom{background-color:#f9f9f9}.showdowns .diagram-center:not(.asciimath):not(.latex):not(.mermaid){display:table;margin:auto}.showdowns .diagram-right:not(.asciimath):not(.latex):not(.mermaid){display:table;margin:auto 0 auto auto}.showdowns .diagram-center.mermaid{text-align:center}.showdowns .diagram-right.mermaid{text-align:right}.showdowns .asciimath:not(.diagram-center):not(.diagram-right) .katex,.showdowns .asciimath:not(.diagram-center):not(.diagram-right) .katex-display,.showdowns .latex:not(.diagram-center):not(.diagram-right) .katex,.showdowns .latex:not(.diagram-center):not(.diagram-right) .katex-display{text-align:unset}.showdowns .asciimath.diagram-center .katex,.showdowns .asciimath.diagram-center .katex-display,.showdowns .latex.diagram-center .katex,.showdowns .latex.diagram-center .katex-display{text-align:center}.showdowns .asciimath.diagram-right .katex,.showdowns .asciimath.diagram-right .katex-display,.showdowns .latex.diagram-right .katex,.showdowns .latex.diagram-right .katex-display{text-align:right}\n\n/*!\n * css of showdowns v0.6.3\n * Copyright (c) 2019-present, Jhuix (Hui Jin) \n * Released under the MIT License.\n */.showdowns .showdown-container{border:1px solid #eee;border-radius:.25rem;margin-bottom:1rem;padding:.75rem 1.25rem;position:relative}.showdowns .showdown-container.container{border-left-width:.25rem;border-right-width:.25rem}.showdowns .showdown-container.container.tip{border-left-color:#5bc0de;border-right-color:#5bc0de}.showdowns .showdown-container.container.info{border-left-color:#cce5ff;border-right-color:#cce5ff}.showdowns .showdown-container.container.warning{border-left-color:#f0ad4e;border-right-color:#f0ad4e}.showdowns .showdown-container.container.error{border-left-color:#d9534f;border-right-color:#d9534f}.showdowns .showdown-container.container.success{border-left-color:#67c23a;border-right-color:#67c23a}.showdowns .showdown-container.alert{border:1px solid transparent;transition:opacity .2s}.showdowns .showdown-container.alert.alert-tip{background-color:#5bc0de}.showdowns .showdown-container.alert.alert-info{background-color:#cce5ff}.showdowns .showdown-container.alert.alert-warning{background-color:#f0ad4e}.showdowns .showdown-container.alert.alert-error{background-color:#d9534f}.showdowns .showdown-container.alert.alert-success{background-color:#67c23a}.showdowns .showdown-container .container-title{font-size:1.25rem;font-weight:700;line-height:1.2}","/*\nhttp://lesscss.org/ dark theme\nPorted to CodeMirror by Peter Kroon\n*/\n.cm-s-lesser-dark {\n line-height: 1.3em;\n}\n.cm-s-lesser-dark.CodeMirror { background: #262626; color: #EBEFE7; text-shadow: 0 -1px 1px #262626; }\n.cm-s-lesser-dark div.CodeMirror-selected { background: #45443B; } /* 33322B*/\n.cm-s-lesser-dark .CodeMirror-line::selection, .cm-s-lesser-dark .CodeMirror-line > span::selection, .cm-s-lesser-dark .CodeMirror-line > span > span::selection { background: rgba(69, 68, 59, .99); }\n.cm-s-lesser-dark .CodeMirror-line::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span::-moz-selection, .cm-s-lesser-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(69, 68, 59, .99); }\n.cm-s-lesser-dark .CodeMirror-cursor { border-left: 1px solid white; }\n.cm-s-lesser-dark pre { padding: 0 8px; }/*editable code holder*/\n\n.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket { color: #7EFC7E; }/*65FC65*/\n\n.cm-s-lesser-dark .CodeMirror-gutters { background: #262626; border-right:1px solid #aaa; }\n.cm-s-lesser-dark .CodeMirror-guttermarker { color: #599eff; }\n.cm-s-lesser-dark .CodeMirror-guttermarker-subtle { color: #777; }\n.cm-s-lesser-dark .CodeMirror-linenumber { color: #777; }\n\n.cm-s-lesser-dark span.cm-header { color: #a0a; }\n.cm-s-lesser-dark span.cm-quote { color: #090; }\n.cm-s-lesser-dark span.cm-keyword { color: #599eff; }\n.cm-s-lesser-dark span.cm-atom { color: #C2B470; }\n.cm-s-lesser-dark span.cm-number { color: #B35E4D; }\n.cm-s-lesser-dark span.cm-def { color: white; }\n.cm-s-lesser-dark span.cm-variable { color:#D9BF8C; }\n.cm-s-lesser-dark span.cm-variable-2 { color: #669199; }\n.cm-s-lesser-dark span.cm-variable-3, .cm-s-lesser-dark span.cm-type { color: white; }\n.cm-s-lesser-dark span.cm-property { color: #92A75C; }\n.cm-s-lesser-dark span.cm-operator { color: #92A75C; }\n.cm-s-lesser-dark span.cm-comment { color: #666; }\n.cm-s-lesser-dark span.cm-string { color: #BCD279; }\n.cm-s-lesser-dark span.cm-string-2 { color: #f50; }\n.cm-s-lesser-dark span.cm-meta { color: #738C73; }\n.cm-s-lesser-dark span.cm-qualifier { color: #555; }\n.cm-s-lesser-dark span.cm-builtin { color: #ff9e59; }\n.cm-s-lesser-dark span.cm-bracket { color: #EBEFE7; }\n.cm-s-lesser-dark span.cm-tag { color: #669199; }\n.cm-s-lesser-dark span.cm-attribute { color: #81a4d5; }\n.cm-s-lesser-dark span.cm-hr { color: #999; }\n.cm-s-lesser-dark span.cm-link { color: #7070E6; }\n.cm-s-lesser-dark span.cm-error { color: #9d1e15; }\n\n.cm-s-lesser-dark .CodeMirror-activeline-background { background: #3C3A3A; }\n.cm-s-lesser-dark .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }\n","/*\n MDN-LIKE Theme - Mozilla\n Ported to CodeMirror by Peter Kroon \n Report bugs/issues here: https://github.com/codemirror/CodeMirror/issues\n GitHub: @peterkroon\n\n The mdn-like theme is inspired on the displayed code examples at: https://developer.mozilla.org/en-US/docs/Web/CSS/animation\n\n*/\n.cm-s-mdn-like.CodeMirror { color: #999; background-color: #fff; }\n.cm-s-mdn-like div.CodeMirror-selected { background: #cfc; }\n.cm-s-mdn-like .CodeMirror-line::selection, .cm-s-mdn-like .CodeMirror-line > span::selection, .cm-s-mdn-like .CodeMirror-line > span > span::selection { background: #cfc; }\n.cm-s-mdn-like .CodeMirror-line::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span::-moz-selection, .cm-s-mdn-like .CodeMirror-line > span > span::-moz-selection { background: #cfc; }\n\n.cm-s-mdn-like .CodeMirror-gutters { background: #f8f8f8; border-left: 6px solid rgba(0,83,159,0.65); color: #333; }\n.cm-s-mdn-like .CodeMirror-linenumber { color: #aaa; padding-left: 8px; }\n.cm-s-mdn-like .CodeMirror-cursor { border-left: 2px solid #222; }\n\n.cm-s-mdn-like .cm-keyword { color: #6262FF; }\n.cm-s-mdn-like .cm-atom { color: #F90; }\n.cm-s-mdn-like .cm-number { color: #ca7841; }\n.cm-s-mdn-like .cm-def { color: #8DA6CE; }\n.cm-s-mdn-like span.cm-variable-2, .cm-s-mdn-like span.cm-tag { color: #690; }\n.cm-s-mdn-like span.cm-variable-3, .cm-s-mdn-like span.cm-def, .cm-s-mdn-like span.cm-type { color: #07a; }\n\n.cm-s-mdn-like .cm-variable { color: #07a; }\n.cm-s-mdn-like .cm-property { color: #905; }\n.cm-s-mdn-like .cm-qualifier { color: #690; }\n\n.cm-s-mdn-like .cm-operator { color: #cda869; }\n.cm-s-mdn-like .cm-comment { color:#777; font-weight:normal; }\n.cm-s-mdn-like .cm-string { color:#07a; font-style:italic; }\n.cm-s-mdn-like .cm-string-2 { color:#bd6b18; } /*?*/\n.cm-s-mdn-like .cm-meta { color: #000; } /*?*/\n.cm-s-mdn-like .cm-builtin { color: #9B7536; } /*?*/\n.cm-s-mdn-like .cm-tag { color: #997643; }\n.cm-s-mdn-like .cm-attribute { color: #d6bb6d; } /*?*/\n.cm-s-mdn-like .cm-header { color: #FF6400; }\n.cm-s-mdn-like .cm-hr { color: #AEAEAE; }\n.cm-s-mdn-like .cm-link { color:#ad9361; font-style:italic; text-decoration:none; }\n.cm-s-mdn-like .cm-error { border-bottom: 1px solid red; }\n\ndiv.cm-s-mdn-like .CodeMirror-activeline-background { background: #efefff; }\ndiv.cm-s-mdn-like span.CodeMirror-matchingbracket { outline:1px solid grey; color: inherit; }\n\n.cm-s-mdn-like.CodeMirror { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFcAAAAyCAYAAAAp8UeFAAAHvklEQVR42s2b63bcNgyEQZCSHCdt2vd/0tWF7I+Q6XgMXiTtuvU5Pl57ZQKkKHzEAOtF5KeIJBGJ8uvL599FRFREZhFx8DeXv8trn68RuGaC8TRfo3SNp9dlDDHedyLyTUTeRWStXKPZrjtpZxaRw5hPqozRs1N8/enzIiQRWcCgy4MUA0f+XWliDhyL8Lfyvx7ei/Ae3iQFHyw7U/59pQVIMEEPEz0G7XiwdRjzSfC3UTtz9vchIntxvry5iMgfIhJoEflOz2CQr3F5h/HfeFe+GTdLaKcu9L8LTeQb/R/7GgbsfKedyNdoHsN31uRPWrfZ5wsj/NzzRQHuToIdU3ahwnsKPxXCjJITuOsi7XLc7SG/v5GdALs7wf8JjTFiB5+QvTEfRyGOfX3Lrx8wxyQi3sNq46O7QahQiCsRFgqddjBouVEHOKDgXAQHD9gJCr5sMKkEdjwsarG/ww3BMHBU7OBjXnzdyY7SfCxf5/z6ATccrwlKuwC/jhznnPF4CgVzhhVf4xp2EixcBActO75iZ8/fM9zAs2OMzKdslgXWJ9XG8PQoOAMA5fGcsvORgv0doBXyHrCwfLJAOwo71QLNkb8n2Pl6EWiR7OCibtkPaz4Kc/0NNAze2gju3zOwekALDaCFPI5vjPFmgGY5AZqyGEvH1x7QfIb8YtxMnA/b+QQ0aQDAwc6JMFg8CbQZ4qoYEEHbRwNojuK3EHwd7VALSgq+MNDKzfT58T8qdpADrgW0GmgcAS1lhzztJmkAzcPNOQbsWEALBDSlMKUG0Eq4CLAQWvEVQ9WU57gZJwZtgPO3r9oBTQ9WO8TjqXINx8R0EYpiZEUWOF3FxkbJkgU9B2f41YBrIj5ZfsQa0M5kTgiAAqM3ShXLgu8XMqcrQBvJ0CL5pnTsfMB13oB8athpAq2XOQmcGmoACCLydx7nToa23ATaSIY2ichfOdPTGxlasXMLaL0MLZAOwAKIM+y8CmicobGdCcbbK9DzN+yYGVoNNI5iUKTMyYOjPse4A8SM1MmcXgU0toOq1yO/v8FOxlASyc7TgeYaAMBJHcY1CcCwGI/TK4AmDbDyKYBBtFUkRwto8gygiQEaByFgJ00BH2M8JWwQS1nafDXQCidWyOI8AcjDCSjCLk8ngObuAm3JAHAdubAmOaK06V8MNEsKPJOhobSprwQa6gD7DclRQdqcwL4zxqgBrQcabUiBLclRDKAlWp+etPkBaNMA0AKlrHwTdEByZAA4GM+SNluSY6wAzcMNewxmgig5Ks0nkrSpBvSaQHMdKTBAnLojOdYyGpQ254602ZILPdTD1hdlggdIm74jbTp8vDwF5ZYUeLWGJpWsh6XNyXgcYwVoJQTEhhTYkxzZjiU5npU2TaB979TQehlaAVq4kaGpiPwwwLkYUuBbQwocyQTv1tA0+1UFWoJF3iv1oq+qoSk8EQdJmwHkziIF7oOZk14EGitibAdjLYYK78H5vZOhtWpoI0ATGHs0Q8OMb4Ey+2bU2UYztCtA0wFAs7TplGLRVQCcqaFdGSPCeTI1QNIC52iWNzof6Uib7xjEp07mNNoUYmVosVItHrHzRlLgBn9LFyRHaQCtVUMbtTNhoXWiTOO9k/V8BdAc1Oq0ArSQs6/5SU0hckNy9NnXqQY0PGYo5dWJ7nINaN6o958FWin27aBaWRka1r5myvLOAm0j30eBJqCxHLReVclxhxOEN2JfDWjxBtAC7MIH1fVaGdoOp4qJYDgKtKPSFNID2gSnGldrCqkFZ+5UeQXQBIRrSwocbdZYQT/2LwRahBPBXoHrB8nxaGROST62DKUbQOMMzZIC9abkuELfQzQALWTnDNAm8KHWFOJgJ5+SHIvTPcmx1xQyZRhNL5Qci689aXMEaN/uNIWkEwDAvFpOZmgsBaaGnbs1NPa1Jm32gBZAIh1pCtG7TSH4aE0y1uVY4uqoFPisGlpP2rSA5qTecWn5agK6BzSpgAyD+wFaqhnYoSZ1Vwr8CmlTQbrcO3ZaX0NAEyMbYaAlyquFoLKK3SPby9CeVUPThrSJmkCAE0CrKUQadi4DrdSlWhmah0YL9z9vClH59YGbHx1J8VZTyAjQepJjmXwAKTDQI3omc3p1U4gDUf6RfcdYfrUp5ClAi2J3Ba6UOXGo+K+bQrjjssitG2SJzshaLwMtXgRagUNpYYoVkMSBLM+9GGiJZMvduG6DRZ4qc04DMPtQQxOjEtACmhO7K1AbNbQDEggZyJwscFpAGwENhoBeUwh3bWolhe8BTYVKxQEWrSUn/uhcM5KhvUu/+eQu0Lzhi+VrK0PrZZNDQKs9cpYUuFYgMVpD4/NxenJTiMCNqdUEUf1qZWjppLT5qSkkUZbCwkbZMSuVnu80hfSkzRbQeqCZSAh6huR4VtoM2gHAlLf72smuWgE+VV7XpE25Ab2WFDgyhnSuKbs4GuGzCjR+tIoUuMFg3kgcWKLTwRqanJQ2W00hAsenfaApRC42hbCvK1SlE0HtE9BGgneJO+ELamitD1YjjOYnNYVcraGhtKkW0EqVVeDx733I2NH581k1NNxNLG0i0IJ8/NjVaOZ0tYZ2Vtr0Xv7tPV3hkWp9EFkgS/J0vosngTaSoaG06WHi+xObQkaAdlbanP8B2+2l0f90LmUAAAAASUVORK5CYII=); }\n",".cm-s-neat span.cm-comment { color: #a86; }\n.cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }\n.cm-s-neat span.cm-string { color: #a22; }\n.cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }\n.cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }\n.cm-s-neat span.cm-variable { color: black; }\n.cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }\n.cm-s-neat span.cm-meta { color: #555; }\n.cm-s-neat span.cm-link { color: #3a3; }\n\n.cm-s-neat .CodeMirror-activeline-background { background: #e8f2ff; }\n.cm-s-neat .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }\n",".cm-s-rubyblue.CodeMirror { background: #112435; color: white; }\n.cm-s-rubyblue div.CodeMirror-selected { background: #38566F; }\n.cm-s-rubyblue .CodeMirror-line::selection, .cm-s-rubyblue .CodeMirror-line > span::selection, .cm-s-rubyblue .CodeMirror-line > span > span::selection { background: rgba(56, 86, 111, 0.99); }\n.cm-s-rubyblue .CodeMirror-line::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 86, 111, 0.99); }\n.cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }\n.cm-s-rubyblue .CodeMirror-guttermarker { color: white; }\n.cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; }\n.cm-s-rubyblue .CodeMirror-linenumber { color: white; }\n.cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white; }\n\n.cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }\n.cm-s-rubyblue span.cm-atom { color: #F4C20B; }\n.cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }\n.cm-s-rubyblue span.cm-keyword { color: #F0F; }\n.cm-s-rubyblue span.cm-string { color: #F08047; }\n.cm-s-rubyblue span.cm-meta { color: #F0F; }\n.cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }\n.cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def, .cm-s-rubyblue span.cm-type { color: white; }\n.cm-s-rubyblue span.cm-bracket { color: #F0F; }\n.cm-s-rubyblue span.cm-link { color: #F4C20B; }\n.cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }\n.cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }\n.cm-s-rubyblue span.cm-error { color: #AF2018; }\n\n.cm-s-rubyblue .CodeMirror-activeline-background { background: #173047; }\n","/*\n\n Name: seti\n Author: Michael Kaminsky (http://github.com/mkaminsky11)\n\n Original seti color scheme by Jesse Weed (https://github.com/jesseweed/seti-syntax)\n\n*/\n\n\n.cm-s-seti.CodeMirror {\n background-color: #151718 !important;\n color: #CFD2D1 !important;\n border: none;\n}\n.cm-s-seti .CodeMirror-gutters {\n color: #404b53;\n background-color: #0E1112;\n border: none;\n}\n.cm-s-seti .CodeMirror-cursor { border-left: solid thin #f8f8f0; }\n.cm-s-seti .CodeMirror-linenumber { color: #6D8A88; }\n.cm-s-seti.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }\n.cm-s-seti .CodeMirror-line::selection, .cm-s-seti .CodeMirror-line > span::selection, .cm-s-seti .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }\n.cm-s-seti .CodeMirror-line::-moz-selection, .cm-s-seti .CodeMirror-line > span::-moz-selection, .cm-s-seti .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }\n.cm-s-seti span.cm-comment { color: #41535b; }\n.cm-s-seti span.cm-string, .cm-s-seti span.cm-string-2 { color: #55b5db; }\n.cm-s-seti span.cm-number { color: #cd3f45; }\n.cm-s-seti span.cm-variable { color: #55b5db; }\n.cm-s-seti span.cm-variable-2 { color: #a074c4; }\n.cm-s-seti span.cm-def { color: #55b5db; }\n.cm-s-seti span.cm-keyword { color: #ff79c6; }\n.cm-s-seti span.cm-operator { color: #9fca56; }\n.cm-s-seti span.cm-keyword { color: #e6cd69; }\n.cm-s-seti span.cm-atom { color: #cd3f45; }\n.cm-s-seti span.cm-meta { color: #55b5db; }\n.cm-s-seti span.cm-tag { color: #55b5db; }\n.cm-s-seti span.cm-attribute { color: #9fca56; }\n.cm-s-seti span.cm-qualifier { color: #9fca56; }\n.cm-s-seti span.cm-property { color: #a074c4; }\n.cm-s-seti span.cm-variable-3, .cm-s-seti span.cm-type { color: #9fca56; }\n.cm-s-seti span.cm-builtin { color: #9fca56; }\n.cm-s-seti .CodeMirror-activeline-background { background: #101213; }\n.cm-s-seti .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }\n","/**\n Name: IntelliJ IDEA darcula theme\n From IntelliJ IDEA by JetBrains\n */\n\n.cm-s-darcula { font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;}\n.cm-s-darcula.CodeMirror { background: #2B2B2B; color: #A9B7C6; }\n\n.cm-s-darcula span.cm-meta { color: #BBB529; }\n.cm-s-darcula span.cm-number { color: #6897BB; }\n.cm-s-darcula span.cm-keyword { color: #CC7832; line-height: 1em; font-weight: bold; }\n.cm-s-darcula span.cm-def { color: #A9B7C6; font-style: italic; }\n.cm-s-darcula span.cm-variable { color: #A9B7C6; }\n.cm-s-darcula span.cm-variable-2 { color: #A9B7C6; }\n.cm-s-darcula span.cm-variable-3 { color: #9876AA; }\n.cm-s-darcula span.cm-type { color: #AABBCC; font-weight: bold; }\n.cm-s-darcula span.cm-property { color: #FFC66D; }\n.cm-s-darcula span.cm-operator { color: #A9B7C6; }\n.cm-s-darcula span.cm-string { color: #6A8759; }\n.cm-s-darcula span.cm-string-2 { color: #6A8759; }\n.cm-s-darcula span.cm-comment { color: #61A151; font-style: italic; }\n.cm-s-darcula span.cm-link { color: #CC7832; }\n.cm-s-darcula span.cm-atom { color: #CC7832; }\n.cm-s-darcula span.cm-error { color: #BC3F3C; }\n.cm-s-darcula span.cm-tag { color: #629755; font-weight: bold; font-style: italic; text-decoration: underline; }\n.cm-s-darcula span.cm-attribute { color: #6897bb; }\n.cm-s-darcula span.cm-qualifier { color: #6A8759; }\n.cm-s-darcula span.cm-bracket { color: #A9B7C6; }\n.cm-s-darcula span.cm-builtin { color: #FF9E59; }\n.cm-s-darcula span.cm-special { color: #FF9E59; }\n.cm-s-darcula span.cm-matchhighlight { color: #FFFFFF; background-color: rgba(50, 89, 48, .7); font-weight: normal;}\n.cm-s-darcula span.cm-searching { color: #FFFFFF; background-color: rgba(61, 115, 59, .7); font-weight: normal;}\n\n.cm-s-darcula .CodeMirror-cursor { border-left: 1px solid #A9B7C6; }\n.cm-s-darcula .CodeMirror-activeline-background { background: #323232; }\n.cm-s-darcula .CodeMirror-gutters { background: #313335; border-right: 1px solid #313335; }\n.cm-s-darcula .CodeMirror-guttermarker { color: #FFEE80; }\n.cm-s-darcula .CodeMirror-guttermarker-subtle { color: #D0D0D0; }\n.cm-s-darcula .CodeMirrir-linenumber { color: #606366; }\n.cm-s-darcula .CodeMirror-matchingbracket { background-color: #3B514D; color: #FFEF28 !important; font-weight: bold; }\n\n.cm-s-darcula div.CodeMirror-selected { background: #214283; }\n\n.CodeMirror-hints.darcula {\n font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;\n color: #9C9E9E;\n background-color: #3B3E3F !important;\n}\n\n.CodeMirror-hints.darcula .CodeMirror-hint-active {\n background-color: #494D4E !important;\n color: #9C9E9E !important;\n}\n","/**\n Name: IDEA default theme\n From IntelliJ IDEA by JetBrains\n */\n\n.cm-s-idea span.cm-meta { color: #808000; }\n.cm-s-idea span.cm-number { color: #0000FF; }\n.cm-s-idea span.cm-keyword { line-height: 1em; font-weight: bold; color: #000080; }\n.cm-s-idea span.cm-atom { font-weight: bold; color: #000080; }\n.cm-s-idea span.cm-def { color: #000000; }\n.cm-s-idea span.cm-variable { color: black; }\n.cm-s-idea span.cm-variable-2 { color: black; }\n.cm-s-idea span.cm-variable-3, .cm-s-idea span.cm-type { color: black; }\n.cm-s-idea span.cm-property { color: black; }\n.cm-s-idea span.cm-operator { color: black; }\n.cm-s-idea span.cm-comment { color: #808080; }\n.cm-s-idea span.cm-string { color: #008000; }\n.cm-s-idea span.cm-string-2 { color: #008000; }\n.cm-s-idea span.cm-qualifier { color: #555; }\n.cm-s-idea span.cm-error { color: #FF0000; }\n.cm-s-idea span.cm-attribute { color: #0000FF; }\n.cm-s-idea span.cm-tag { color: #000080; }\n.cm-s-idea span.cm-link { color: #0000FF; }\n.cm-s-idea .CodeMirror-activeline-background { background: #FFFAE3; }\n\n.cm-s-idea span.cm-builtin { color: #30a; }\n.cm-s-idea span.cm-bracket { color: #cc7; }\n.cm-s-idea { font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;}\n\n\n.cm-s-idea .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }\n\n.CodeMirror-hints.idea {\n font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;\n color: #616569;\n background-color: #ebf3fd !important;\n}\n\n.CodeMirror-hints.idea .CodeMirror-hint-active {\n background-color: #a2b8c9 !important;\n color: #5c6065 !important;\n}",".cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; }\n.cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D; }\n.cm-s-the-matrix .CodeMirror-line::selection, .cm-s-the-matrix .CodeMirror-line > span::selection, .cm-s-the-matrix .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); }\n.cm-s-the-matrix .CodeMirror-line::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); }\n.cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; }\n.cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; }\n.cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; }\n.cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; }\n.cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00; }\n\n.cm-s-the-matrix span.cm-keyword { color: #008803; font-weight: bold; }\n.cm-s-the-matrix span.cm-atom { color: #3FF; }\n.cm-s-the-matrix span.cm-number { color: #FFB94F; }\n.cm-s-the-matrix span.cm-def { color: #99C; }\n.cm-s-the-matrix span.cm-variable { color: #F6C; }\n.cm-s-the-matrix span.cm-variable-2 { color: #C6F; }\n.cm-s-the-matrix span.cm-variable-3, .cm-s-the-matrix span.cm-type { color: #96F; }\n.cm-s-the-matrix span.cm-property { color: #62FFA0; }\n.cm-s-the-matrix span.cm-operator { color: #999; }\n.cm-s-the-matrix span.cm-comment { color: #CCCCCC; }\n.cm-s-the-matrix span.cm-string { color: #39C; }\n.cm-s-the-matrix span.cm-meta { color: #C9F; }\n.cm-s-the-matrix span.cm-qualifier { color: #FFF700; }\n.cm-s-the-matrix span.cm-builtin { color: #30a; }\n.cm-s-the-matrix span.cm-bracket { color: #cc7; }\n.cm-s-the-matrix span.cm-tag { color: #FFBD40; }\n.cm-s-the-matrix span.cm-attribute { color: #FFF700; }\n.cm-s-the-matrix span.cm-error { color: #FF0000; }\n\n.cm-s-the-matrix .CodeMirror-activeline-background { background: #040; }\n","/*\nSolarized theme for code-mirror\nhttp://ethanschoonover.com/solarized\n*/\n\n/*\nSolarized color palette\nhttp://ethanschoonover.com/solarized/img/solarized-palette.png\n*/\n\n.solarized.base03 { color: #002b36; }\n.solarized.base02 { color: #073642; }\n.solarized.base01 { color: #586e75; }\n.solarized.base00 { color: #657b83; }\n.solarized.base0 { color: #839496; }\n.solarized.base1 { color: #93a1a1; }\n.solarized.base2 { color: #eee8d5; }\n.solarized.base3 { color: #fdf6e3; }\n.solarized.solar-yellow { color: #b58900; }\n.solarized.solar-orange { color: #cb4b16; }\n.solarized.solar-red { color: #dc322f; }\n.solarized.solar-magenta { color: #d33682; }\n.solarized.solar-violet { color: #6c71c4; }\n.solarized.solar-blue { color: #268bd2; }\n.solarized.solar-cyan { color: #2aa198; }\n.solarized.solar-green { color: #859900; }\n\n/* Color scheme for code-mirror */\n\n.cm-s-solarized {\n line-height: 1.45em;\n color-profile: sRGB;\n rendering-intent: auto;\n}\n.cm-s-solarized.cm-s-dark {\n color: #839496;\n background-color: #002b36;\n}\n.cm-s-solarized.cm-s-light {\n background-color: #fdf6e3;\n color: #657b83;\n}\n\n.cm-s-solarized .CodeMirror-widget {\n text-shadow: none;\n}\n\n.cm-s-solarized .cm-header { color: #586e75; }\n.cm-s-solarized .cm-quote { color: #93a1a1; }\n\n.cm-s-solarized .cm-keyword { color: #cb4b16; }\n.cm-s-solarized .cm-atom { color: #d33682; }\n.cm-s-solarized .cm-number { color: #d33682; }\n.cm-s-solarized .cm-def { color: #2aa198; }\n\n.cm-s-solarized .cm-variable { color: #839496; }\n.cm-s-solarized .cm-variable-2 { color: #b58900; }\n.cm-s-solarized .cm-variable-3, .cm-s-solarized .cm-type { color: #6c71c4; }\n\n.cm-s-solarized .cm-property { color: #2aa198; }\n.cm-s-solarized .cm-operator { color: #6c71c4; }\n\n.cm-s-solarized .cm-comment { color: #586e75; font-style:italic; }\n\n.cm-s-solarized .cm-string { color: #859900; }\n.cm-s-solarized .cm-string-2 { color: #b58900; }\n\n.cm-s-solarized .cm-meta { color: #859900; }\n.cm-s-solarized .cm-qualifier { color: #b58900; }\n.cm-s-solarized .cm-builtin { color: #d33682; }\n.cm-s-solarized .cm-bracket { color: #cb4b16; }\n.cm-s-solarized .CodeMirror-matchingbracket { color: #859900; }\n.cm-s-solarized .CodeMirror-nonmatchingbracket { color: #dc322f; }\n.cm-s-solarized .cm-tag { color: #93a1a1; }\n.cm-s-solarized .cm-attribute { color: #2aa198; }\n.cm-s-solarized .cm-hr {\n color: transparent;\n border-top: 1px solid #586e75;\n display: block;\n}\n.cm-s-solarized .cm-link { color: #93a1a1; cursor: pointer; }\n.cm-s-solarized .cm-special { color: #6c71c4; }\n.cm-s-solarized .cm-em {\n color: #999;\n text-decoration: underline;\n text-decoration-style: dotted;\n}\n.cm-s-solarized .cm-error,\n.cm-s-solarized .cm-invalidchar {\n color: #586e75;\n border-bottom: 1px dotted #dc322f;\n}\n\n.cm-s-solarized.cm-s-dark div.CodeMirror-selected { background: #073642; }\n.cm-s-solarized.cm-s-dark.CodeMirror ::selection { background: rgba(7, 54, 66, 0.99); }\n.cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection, .cm-s-dark .CodeMirror-line > span::-moz-selection, .cm-s-dark .CodeMirror-line > span > span::-moz-selection { background: rgba(7, 54, 66, 0.99); }\n\n.cm-s-solarized.cm-s-light div.CodeMirror-selected { background: #eee8d5; }\n.cm-s-solarized.cm-s-light .CodeMirror-line::selection, .cm-s-light .CodeMirror-line > span::selection, .cm-s-light .CodeMirror-line > span > span::selection { background: #eee8d5; }\n.cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection, .cm-s-light .CodeMirror-line > span::-moz-selection, .cm-s-light .CodeMirror-line > span > span::-moz-selection { background: #eee8d5; }\n\n/* Editor styling */\n\n\n\n/* Little shadow on the view-port of the buffer view */\n.cm-s-solarized.CodeMirror {\n -moz-box-shadow: inset 7px 0 12px -6px #000;\n -webkit-box-shadow: inset 7px 0 12px -6px #000;\n box-shadow: inset 7px 0 12px -6px #000;\n}\n\n/* Remove gutter border */\n.cm-s-solarized .CodeMirror-gutters {\n border-right: 0;\n}\n\n/* Gutter colors and line number styling based of color scheme (dark / light) */\n\n/* Dark */\n.cm-s-solarized.cm-s-dark .CodeMirror-gutters {\n background-color: #073642;\n}\n\n.cm-s-solarized.cm-s-dark .CodeMirror-linenumber {\n color: #586e75;\n}\n\n/* Light */\n.cm-s-solarized.cm-s-light .CodeMirror-gutters {\n background-color: #eee8d5;\n}\n\n.cm-s-solarized.cm-s-light .CodeMirror-linenumber {\n color: #839496;\n}\n\n/* Common */\n.cm-s-solarized .CodeMirror-linenumber {\n padding: 0 5px;\n}\n.cm-s-solarized .CodeMirror-guttermarker-subtle { color: #586e75; }\n.cm-s-solarized.cm-s-dark .CodeMirror-guttermarker { color: #ddd; }\n.cm-s-solarized.cm-s-light .CodeMirror-guttermarker { color: #cb4b16; }\n\n.cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text {\n color: #586e75;\n}\n\n/* Cursor */\n.cm-s-solarized .CodeMirror-cursor { border-left: 1px solid #819090; }\n\n/* Fat cursor */\n.cm-s-solarized.cm-s-light.cm-fat-cursor .CodeMirror-cursor { background: #77ee77; }\n.cm-s-solarized.cm-s-light .cm-animate-fat-cursor { background-color: #77ee77; }\n.cm-s-solarized.cm-s-dark.cm-fat-cursor .CodeMirror-cursor { background: #586e75; }\n.cm-s-solarized.cm-s-dark .cm-animate-fat-cursor { background-color: #586e75; }\n\n/* Active line */\n.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background {\n background: rgba(255, 255, 255, 0.06);\n}\n.cm-s-solarized.cm-s-light .CodeMirror-activeline-background {\n background: rgba(0, 0, 0, 0.06);\n}\n"]} \ No newline at end of file diff --git a/docs/demo/assets/js/chunk-vendors.js b/docs/demo/assets/js/chunk-vendors.js index e07bd0f..97b7ff2 100644 --- a/docs/demo/assets/js/chunk-vendors.js +++ b/docs/demo/assets/js/chunk-vendors.js @@ -1,35 +1,35 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ce":function(e,t,n){"use strict";var r,i=n("a645"),o=n("417f"),a=n("dc99"),s=n("1409"),l=n("67ee"),u=n("0d25"),c=n("67d9"),f=Function,h=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(D){d=null}var p=function(){throw new u},g=d?function(){try{return p}catch(e){try{return d(arguments,"callee").get}catch(t){return p}}}():p,m=n("5156")(),v=n("0a36")(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,_={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":m&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&m&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&m&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&y?y(""[Symbol.iterator]()):r,"%Symbol%":m?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(D){var x=y(y(D));_["%Error.prototype%"]=x}var k=function e(t){var n;if("%AsyncFunction%"===t)n=h("async function () {}");else if("%GeneratorFunction%"===t)n=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=h("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&y&&(n=y(i.prototype))}return _[t]=n,n},S={__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"]},E=n("0f7c"),C=n("9671"),A=E.call(Function.call,Array.prototype.concat),O=E.call(Function.apply,Array.prototype.splice),L=E.call(Function.call,String.prototype.replace),T=E.call(Function.call,String.prototype.slice),M=E.call(Function.call,RegExp.prototype.exec),j=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,R=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return L(e,j,(function(e,t,n,i){r[r.length]=n?L(i,P,"$1"):t||e})),r},N=function(e,t){var n,r=e;if(C(S,r)&&(n=S[r],r="%"+n[0]+"%"),C(_,r)){var i=_[r];if(i===b&&(i=k(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=R(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],O(n,A([0,1],c)));for(var f=1,h=!0;f=n.length){var v=d(a,p);h=!!v,a=h&&"get"in v&&!("originalValue"in v.get)?v.get:a[p]}else h=C(a,p),a=a[p];h&&!s&&(_[o]=a)}}return a}},"00ee":function(e,t,n){"use strict";var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"00fd":function(e,t,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},"01b4":function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=r},"0366":function(e,t,n){"use strict";var r=n("4625"),i=n("59ed"),o=n("40d5"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"04f8":function(e,t,n){"use strict";var r=n("2d00"),i=n("d039"),o=n("da84"),a=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"057f":function(e,t,n){"use strict";var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("f36a"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return a(s)}};e.exports.f=function(e){return s&&"Window"===r(e)?l(e):o(i(e))}},"05dd":function(e,t,n){(function(e){e(n("56b3"),n("a2c1"))})((function(e){e.defineOption("autoCloseTags",!1,(function(t,n,i){if(i!=e.Init&&i&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return o(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return r(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return e.Pass;for(var i=r.listSelections(),o=[],l=r.getOption("autoCloseTags"),u=0;uc.ch&&(g=g.slice(0,g.length-f.end+c.ch));var b=g.toLowerCase();if(!g||"string"==f.type&&(f.end!=c.ch||!/[\"\']/.test(f.string.charAt(f.string.length-1))||1==f.string.length)||"tag"==f.type&&p.close||f.string.indexOf("/")==c.ch-f.start-1||v&&a(v,b)>-1||s(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(d)||[],g,c,!0))return e.Pass;var w="object"==typeof l&&l.emptyTags;if(w&&a(w,g)>-1)o[u]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var _=y&&a(y,b)>-1;o[u]={indent:_,text:">"+(_?"\n\n":"")+"",newPos:_?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var x="object"==typeof l&&l.dontIndentOnAutoClose;for(u=i.length-1;u>=0;u--){var k=o[u];r.replaceRange(k.text,i[u].head,i[u].anchor,"+insert");var S=r.listSelections().slice(0);S[u]={head:k.newPos,anchor:k.newPos},r.setSelections(S),!x&&k.indent&&(r.indentLine(k.newPos.line,null,!0),r.indentLine(k.newPos.line+1,null,!0))}}function i(t,n){for(var r=t.listSelections(),i=[],o=n?"/":""!=t.getLine(c.line).charAt(f.end)&&(p+=">"),i[u]=p}if(t.replaceSelections(i),r=t.listSelections(),!l)for(u=0;u=0;u--){if(n[u]!=r)break;++l}i=s.to;for(u=1;u=0)e[t]=0}var u=0,c=1,f=2,h=3,d=258,p=29,g=256,m=g+1+p,v=30,y=19,b=2*m+1,w=15,_=16,x=7,k=256,S=16,E=17,C=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],O=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=512,j=new Array(2*(m+2));l(j);var P=new Array(2*v);l(P);var R=new Array(M);l(R);var N=new Array(d-h+1);l(N);var D=new Array(p);l(D);var F,I,z,B=new Array(v);function U(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function H(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function $(e){return e<256?R[e]:R[256+(e>>>7)]}function W(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function q(e,t,n){e.bi_valid>_-n?(e.bi_buf|=t<>_-e.bi_valid,e.bi_valid+=n-_):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function V(e){16===e.bi_valid?(W(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function Y(e,t){var n,r,i,o,a,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;o<=w;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;np&&(o=p,g++),l[2*r+1]=o,r>u||(e.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=l[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==g){do{o=p-1;while(0===e.bl_count[o])o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--){r=e.bl_count[o];while(0!==r)i=e.heap[--n],i>u||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}}function K(e,t,n){var r,i,o=new Array(w+1),a=0;for(r=1;r<=w;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=G(o[s]++,s))}}function X(){var e,t,n,r,i,o=new Array(w+1);for(n=0,r=0;r>=7;r8?W(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ee(e,t,n,i){Q(e),i&&(W(e,n),W(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function te(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)ne(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ne(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,ne(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Y(e,t),K(o,u,e.bl_count)}function oe(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s=3;t--)if(0!==e.bl_tree[2*T[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function le(e,t,n,r){var i;for(q(e,t-257,5),q(e,n-1,5),q(e,r-4,4),i=0;i>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t0?(e.strm.data_type===s&&(e.strm.data_type=ue(e)),ie(e,e.l_desc),ie(e,e.d_desc),l=se(e),o=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=o&&(o=a)):o=a=n+5,n+4<=o&&-1!==t?he(e,t,n,r):e.strategy===i||a===o?(q(e,(c<<1)+(r?1:0),3),re(e,j,P)):(q(e,(f<<1)+(r?1:0),3),le(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),re(e,e.dyn_ltree,e.dyn_dtree)),J(e),r&&Q(e)}function ge(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(N[n]+g+1)]++,e.dyn_dtree[2*$(t)]++),e.last_lit===e.lit_bufsize-1}t._tr_init=fe,t._tr_stored_block=he,t._tr_flush_block=pe,t._tr_tally=ge,t._tr_align=de},"07fa":function(e,t,n){"use strict";var r=n("50c4");e.exports=function(e){return r(e.length)}},"0960":function(e,t,n){e.exports=n("b19a")},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},"0a36":function(e,t,n){"use strict";var r={__proto__:null,foo:{}},i=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof i)}},"0b42":function(e,t,n){"use strict";var r=n("e8b5"),i=n("68ee"),o=n("861d"),a=n("b622"),s=a("species"),l=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,i(t)&&(t===l||r(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?l:t}},"0b43":function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"0cb2":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,h){var d=n+e.length,p=r.length,g=c;return void 0!==f&&(f=i(f),g=u),s(h,g,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,d);case"<":u=f[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>p){var h=o(c/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},"0cfb":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d25":function(e,t,n){"use strict";e.exports=TypeError},"0d26":function(e,t,n){"use strict";var r=n("e330"),i=Error,o=r("".replace),a=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"0d51":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},"107c":function(e,t,n){"use strict";var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"10b2":function(e,t,n){(function(e){e(n("56b3"))})((function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:l,Enter:u};function o(e){for(var t=0;t=0;l--){var c=a[l].head;t.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function u(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function f(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function h(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),l=a.indexOf(i);if(-1==l)return e.Pass;for(var u,h=r(o,"closeBefore"),d=r(o,"triples"),g=a.charAt(l+1)==i,m=t.listSelections(),v=l%2==0,y=0;y1&&d.indexOf(i)>=0&&t.getRange(n(_.line,_.ch-2),_)==i+i){if(_.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(_.line,_.ch-2))))return e.Pass;b="addFour"}else if(g){var k=0==_.ch?" ":t.getRange(n(_.line,_.ch-1),_);if(e.isWordChar(x)||k==i||e.isWordChar(k))return e.Pass;b="both"}else{if(!v||!(0===x.length||/\s/.test(x)||h.indexOf(x)>-1))return e.Pass;b="both"}else b=g&&p(t,_)?"both":d.indexOf(i)>=0&&t.getRange(_,n(_.line,_.ch+3))==i+i+i?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var S=l%2?a.charAt(l-1):i,E=l%2?i:a.charAt(l+1);t.operation((function(){if("skip"==u)c(t,1);else if("skipThree"==u)c(t,3);else if("surround"==u){for(var e=t.getSelections(),n=0;n1||"".split(/.?/).length;o("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=l(this),a=s(t)?void 0:d(t,e);return a?r(a,t,o,n):r(i,h(o),t,n)},function(e,r){var o=a(this),s=h(e);if(!k){var l=n(i,o,s,r,i!==t);if(l.done)return l.value}var d=u(o,RegExp),g=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"g":"y"),x=new d(v?"^(?:"+o.source+")":o,m),S=void 0===r?y:r>>>0;if(0===S)return[];if(0===s.length)return null===p(x,s)?[s]:[];var E=0,C=0,A=[];while(C1?arguments[1]:void 0)}},"19aa":function(e,t,n){"use strict";var r=n("3a9b"),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},"1a2d":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1be4":function(e,t,n){"use strict";var r=n("d066");e.exports=r("document","documentElement")},"1c7e":function(e,t,n){"use strict";var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(l){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},"1cdc":function(e,t,n){"use strict";var r=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1ef7":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,o=0,a=t.exec(e.getLine(r)),s=a[1];do{i+=1;var l=r+i,u=e.getLine(l),c=t.exec(u);if(c){var f=c[1],h=parseInt(a[3],10)+i-o,d=parseInt(c[3],10),p=d;if(s!==f||isNaN(d)){if(s.length>f.length)return;if(s.lengthd&&(p=h+1),e.replaceRange(u.replace(t,f+p+c[4]+c[5]),{line:l,ch:0},{line:l,ch:u.length})}}while(c)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),s=[],l=0;l\s*$/.test(p),y=!/>\s*$/.test(p);(v||y)&&o.replaceRange("",{line:u.line,ch:0},{line:u.line,ch:u.ch+1}),s[l]="\n"}else{var b=g[1],w=g[5],_=!(r.test(g[2])||g[2].indexOf(">")>=0),x=_?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[l]="\n"+b+x+w,_&&i(o,u)}}o.replaceSelections(s)}}))},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(f(e,a,s)),c=0,h=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2266:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("825a"),a=n("0d51"),s=n("e95a"),l=n("07fa"),u=n("3a9b"),c=n("9a1f"),f=n("35a1"),h=n("2a62"),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,y,b,w,_,x,k=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),O=r(t,k),L=function(e){return m&&h(m,"normal",e),new p(!0,e)},T=function(e){return S?(o(e),A?O(e[0],e[1],L):O(e[0],e[1])):A?O(e,L):O(e)};if(E)m=e.iterator;else if(C)m=e;else{if(v=f(e),!v)throw new d(a(e)+" is not iterable");if(s(v)){for(y=0,b=l(e);b>y;y++)if(w=T(e[y]),w&&u(g,w))return w;return new p(!1)}m=c(e,v)}_=E?e.next:m.next;while(!(x=i(_,m)).done){try{w=T(x.value)}catch(M){h(m,"throw",M)}if("object"==typeof w&&w&&u(g,w))return w}return new p(!1)}},"23cb":function(e,t,n){"use strict";var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){"use strict";var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,f,h,d,p,g=e.target,m=e.global,v=e.stat;if(c=m?r:v?r[g]||s(g,{}):r[g]&&r[g].prototype,c)for(f in t){if(d=t[f],e.dontCallGetSet?(p=i(c,f),h=p&&p.value):h=c[f],n=u(m?f:g+(v?".":"#")+f,e.forced),!n&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),a(c,f,d,e)}}},"241c":function(e,t,n){"use strict";var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l}).call(this,n("4362"))},"25f0":function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),o=n("825a"),a=n("577e"),s=n("d039"),l=n("90d8"),u="toString",c=RegExp.prototype,f=c[u],h=s((function(){return"/a/b"!==f.call({source:"a",flags:"b"})})),d=r&&f.name!==u;(h||d)&&i(c,u,(function(){var e=o(this),t=a(e.source),n=a(l(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("edd0"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},"27bf":function(e,t,n){"use strict";e.exports=a;var r=n("b19a"),i=Object.create(n("3a7c"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length - * Released under the MIT License. - */ -(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}function n(){var e=t(!0),n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}var r={},i={},o={},a=t(!0),s="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:n()};function u(e,t){var n=t?"Error in "+t+" extension->":"Error in unnamed extension",i={valid:!0,error:""};r.helper.isArray(e)||(e=[e]);for(var o=0;o").replace(/&/g,"&")};var f=function(e,t,n,r){var i,o,a,s,l,u=r||"",c=u.indexOf("g")>-1,f=new RegExp(t+"|"+n,"g"+u.replace(/g/g,"")),h=new RegExp(t,u.replace(/g/g,"")),d=[];do{i=0;while(a=f.exec(e))if(h.test(a[0]))i++||(o=f.lastIndex,s=o-a[0].length);else if(i&&!--i){l=a.index+a[0].length;var p={left:{start:s,end:o},match:{start:o,end:a.index},right:{start:a.index,end:l},wholeMatch:{start:s,end:l}};if(d.push(p),!c)return d}}while(i&&(f.lastIndex=o));return d};r.helper.matchRecursiveRegExp=function(e,t,n,r){for(var i=f(e,t,n,r),o=[],a=0;a0){var c=[];0!==s[0].wholeMatch.start&&c.push(e.slice(0,s[0].wholeMatch.start));for(var h=0;h=0?i+(n||0):i},r.helper.splitAtIndex=function(e,t){if(!r.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},r.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e})),e},r.helper.padEnd=function(e,t,n){return t>>=0,n=String(n||" "),e.length>t?String(e):(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"===typeof console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),r.helper.regexes={asteriskDashAndColon:/([*_:~])/g},r.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},r.Converter=function(e){var t={},n=[],i=[],c={},f=s,h={parsed:{},raw:"",format:""};function d(){for(var n in e=e||{},a)a.hasOwnProperty(n)&&(t[n]=a[n]);if("object"!==typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.extensions&&r.helper.forEach(t.extensions,p)}function p(e,t){if(t=t||null,r.helper.isString(e)){if(e=r.helper.stdExtName(e),t=e,r.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void g(r.extensions[e],e);if(r.helper.isUndefined(o[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=o[e]}"function"===typeof e&&(e=e()),r.helper.isArray(e)||(e=[e]);var a=u(e,t);if(!a.valid)throw Error(a.error);for(var s=0;s[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var n=t.createElement("div");n.innerHTML=e;var i={preList:u(n)};l(n);for(var o=n.childNodes,a="",s=0;s'}else n.push(t[i].innerHTML),t[i].innerHTML="",t[i].setAttribute("prenum",i.toString());return n}return a},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){t=t||null,p(e,t)},this.useExtension=function(e){p(e)},this.setFlavor=function(e){if(!l.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=l[e];for(var r in f=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return f},this.removeExtension=function(e){r.helper.isArray(e)||(e=[e]);for(var t=0;t? ?(['"].*['"])?\)$/m)>-1)a="";else if(!a){if(o||(o=i.toLowerCase().replace(/ ?\n/g," ")),a="#"+o,r.helper.isUndefined(n.gUrls[o]))return e;a=n.gUrls[o],r.helper.isUndefined(n.gTitles[o])||(u=n.gTitles[o])}a=a.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var c='
",c};return e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,i),e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i),e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i),e=e.replace(/\[([^\[\]]+)]()()()()()/g,i),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,n,i,o,a){if("\\"===i)return n+o;if(!r.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,a),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),n+'"+o+""}))),e=n.converter._dispatch("anchors.after",e,t,n),e}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,d=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,p=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,g=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,m=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){return function(t,n,i,o,a,s,l){i=i.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var u=i,c="",f="",h=n||"",d=l||"";return/^www\./i.test(i)&&(i=i.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(c=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),h+'"+u+""+c+d}},y=function(e,t){return function(n,i,o){var a="mailto:";return i=i||"",o=r.subParser("unescapeSpecialChars")(o,e,t),e.encodeEmails?(a=r.helper.encodeEmailAddress(a+o),o=r.helper.encodeEmailAddress(o)):a+=o,i+''+o+""}};r.subParser("autoLinks",(function(e,t,n){return e=n.converter._dispatch("autoLinks.before",e,t,n),e=e.replace(p,v(t)),e=e.replace(m,y(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n),e})),r.subParser("simplifiedAutoLinks",(function(e,t,n){return t.simplifiedAutoLink?(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n),e=t.excludeTrailingPunctuationFromURLs?e.replace(d,v(t)):e.replace(h,v(t)),e=e.replace(g,y(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n),e):e})),r.subParser("blockGamut",(function(e,t,n){return e=n.converter._dispatch("blockGamut.before",e,t,n),e=r.subParser("blockQuotes")(e,t,n),e=r.subParser("headers")(e,t,n),e=r.subParser("horizontalRule")(e,t,n),e=r.subParser("lists")(e,t,n),e=r.subParser("codeBlocks")(e,t,n),e=r.subParser("tables")(e,t,n),e=r.subParser("hashHTMLBlocks")(e,t,n),e=r.subParser("paragraphs")(e,t,n),e=n.converter._dispatch("blockGamut.after",e,t,n),e})),r.subParser("blockQuotes",(function(e,t,n){e=n.converter._dispatch("blockQuotes.before",e,t,n),e+="\n\n";var i=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(i=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(i,(function(e){return e=e.replace(/^[ \t]*>[ \t]?/gm,""),e=e.replace(/¨0/g,""),e=e.replace(/^[ \t]+$/gm,""),e=r.subParser("githubCodeBlocks")(e,t,n),e=r.subParser("blockGamut")(e,t,n),e=e.replace(/(^|\n)/g,"$1 "),e=e.replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;return n=n.replace(/^  /gm,"¨0"),n=n.replace(/¨0/g,""),n})),r.subParser("hashBlock")("
\n"+e+"\n
",t,n)})),e=n.converter._dispatch("blockQuotes.after",e,t,n),e})),r.subParser("codeBlocks",(function(e,t,n){e=n.converter._dispatch("codeBlocks.before",e,t,n),e+="¨0";var i=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return e=e.replace(i,(function(e,i,o){var a=i,s=o,l="\n";return a=r.subParser("outdent")(a,t,n),a=r.subParser("encodeCode")(a,t,n),a=r.subParser("detab")(a,t,n),a=a.replace(/^\n+/g,""),a=a.replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),a="
"+a+l+"
",r.subParser("hashBlock")(a,t,n)+s})),e=e.replace(/¨0/,""),e=n.converter._dispatch("codeBlocks.after",e,t,n),e})),r.subParser("codeSpans",(function(e,t,n){return e=n.converter._dispatch("codeSpans.before",e,t,n),"undefined"===typeof e&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,i,o,a){var s=a;return s=s.replace(/^([ \t]*)/g,""),s=s.replace(/[ \t]*$/g,""),s=r.subParser("encodeCode")(s,t,n),s=i+""+s+"",s=r.subParser("hashHTMLSpans")(s,t,n),s})),e=n.converter._dispatch("codeSpans.after",e,t,n),e})),r.subParser("completeHTMLDocument",(function(e,t,n){if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",i="\n",o="",a='\n',s="",l="";for(var u in"undefined"!==typeof n.metadata.parsed.doctype&&(i="\n",r=n.metadata.parsed.doctype.toString().toLowerCase(),"html"!==r&&"html5"!==r||(a='')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o=""+n.metadata.parsed.title+"\n";break;case"charset":a="html"===r||"html5"===r?'\n':'\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[u]+'"',l+='\n';break;default:l+='\n'}return e=i+"\n\n"+o+a+l+"\n\n"+e.trim()+"\n\n",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n),e})),r.subParser("detab",(function(e,t,n){return e=n.converter._dispatch("detab.before",e,t,n),e=e.replace(/\t(?=\t)/g," "),e=e.replace(/\t/g,"¨A¨B"),e=e.replace(/¨B(.+?)¨A/g,(function(e,t){for(var n=t,r=4-n.length%4,i=0;i/g,">"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n),e})),r.subParser("encodeBackslashEscapes",(function(e,t,n){return e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n),e=e.replace(/\\(\\)/g,r.helper.escapeCharactersCallback),e=e.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,r.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeBackslashEscapes.after",e,t,n),e})),r.subParser("encodeCode",(function(e,t,n){return e=n.converter._dispatch("encodeCode.before",e,t,n),e=e.replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,r.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeCode.after",e,t,n),e})),r.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,n){e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n);var i=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,o=/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return e=e.replace(i,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)})),e=e.replace(o,(function(e){return e.replace(/([\\`*_~=|])/g,r.helper.escapeCharactersCallback)})),e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n),e})),r.subParser("githubCodeBlocks",(function(e,t,n){return t.ghCodeBlocks?(e=n.converter._dispatch("githubCodeBlocks.before",e,t,n),e+="¨0",e=e.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,i,o,a){var s=t.omitExtraWLInCodeBlocks?"":"\n";return a=r.subParser("encodeCode")(a,t,n),a=r.subParser("detab")(a,t,n),a=a.replace(/^\n+/g,""),a=a.replace(/\n+$/g,""),a="
"+a+s+"
",a=r.subParser("hashBlock")(a,t,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"})),e=e.replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e})),r.subParser("hashBlock",(function(e,t,n){return e=n.converter._dispatch("hashBlock.before",e,t,n),e=e.replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n),e})),r.subParser("hashCodeTags",(function(e,t,n){e=n.converter._dispatch("hashCodeTags.before",e,t,n);var i=function(e,i,o,a){var s=o+r.subParser("encodeCode")(i,t,n)+a;return"¨C"+(n.gHtmlSpans.push(s)-1)+"C"};return e=r.helper.replaceRecursiveRegExp(e,i,"]*>","","gim"),e=n.converter._dispatch("hashCodeTags.after",e,t,n),e})),r.subParser("hashElement",(function(e,t,n){return function(e,t){var r=t;return r=r.replace(/\n\n/g,"\n"),r=r.replace(/^\n/,""),r=r.replace(/\n+$/g,""),r="\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n",r}})),r.subParser("hashHTMLBlocks",(function(e,t,n){e=n.converter._dispatch("hashHTMLBlocks.before",e,t,n);var i=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],o=function(e,t,r,i){var o=e;return-1!==r.search(/\bmarkdown\b/)&&(o=r+n.converter.makeHtml(t)+i),"\n\n¨K"+(n.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var a=0;a]*>)","im"),u="<"+i[a]+"\\b[^>]*>",c="";while(-1!==(s=r.helper.regexIndexOf(e,l))){var f=r.helper.splitAtIndex(e,s),h=r.helper.replaceRecursiveRegExp(f[1],o,u,c,"im");if(h===f[1])break;e=f[0].concat(h)}}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(e,t,n)),e=r.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm"),e=e.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,r.subParser("hashElement")(e,t,n)),e=n.converter._dispatch("hashHTMLBlocks.after",e,t,n),e})),r.subParser("hashHTMLSpans",(function(e,t,n){function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=n.converter._dispatch("hashHTMLSpans.before",e,t,n),e=e.replace(/<[^>]+?\/>/gi,(function(e){return r(e)})),e=e.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return r(e)})),e=e.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return r(e)})),e=e.replace(/<[^>]+?>/gi,(function(e){return r(e)})),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n),e})),r.subParser("unhashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;r]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=n.converter._dispatch("hashPreCodeTags.after",e,t,n),e})),r.subParser("headers",(function(e,t,n){e=n.converter._dispatch("headers.before",e,t,n);var i=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),o=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,a=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=e.replace(o,(function(e,o){var a=r.subParser("spanGamut")(o,t,n),s=t.noHeaderId?"":' id="'+l(o)+'"',u=i,c=""+a+"";return r.subParser("hashBlock")(c,t,n)})),e=e.replace(a,(function(e,o){var a=r.subParser("spanGamut")(o,t,n),s=t.noHeaderId?"":' id="'+l(o)+'"',u=i+1,c=""+a+"";return r.subParser("hashBlock")(c,t,n)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function l(e){var i,o;if(t.customizedHeaderId){var a=e.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(e=a[1])}return i=e,o=r.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(i=o+i),i=t.ghCompatibleHeaderId?i.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?i.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():i.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(i=o+i),n.hashLinkCounts[i]?i=i+"-"+n.hashLinkCounts[i]++:n.hashLinkCounts[i]=1,i}return e=e.replace(s,(function(e,o,a){var s=a;t.customizedHeaderId&&(s=a.replace(/\s?\{([^{]+?)}\s*$/,""));var u=r.subParser("spanGamut")(s,t,n),c=t.noHeaderId?"":' id="'+l(a)+'"',f=i-1+o.length,h=""+u+"";return r.subParser("hashBlock")(h,t,n)})),e=n.converter._dispatch("headers.after",e,t,n),e})),r.subParser("horizontalRule",(function(e,t,n){e=n.converter._dispatch("horizontalRule.before",e,t,n);var i=r.subParser("hashBlock")("
",t,n);return e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,i),e=e.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,i),e=e.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,i),e=n.converter._dispatch("horizontalRule.after",e,t,n),e})),r.subParser("images",(function(e,t,n){e=n.converter._dispatch("images.before",e,t,n);var i=/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,o=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,a=/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,s=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,l=/!\[([^\[\]]+)]()()()()()/g;function u(e,t,n,r,i,o,a,s){return r=r.replace(/\s/g,""),c(e,t,n,r,i,o,a,s)}function c(e,t,i,o,a,s,l,u){var c=n.gUrls,f=n.gTitles,h=n.gDimensions;if(i=i.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)o="";else if(""===o||null===o){if(""!==i&&null!==i||(i=t.toLowerCase().replace(/ ?\n/g," ")),o="#"+i,r.helper.isUndefined(c[i]))return e;o=c[i],r.helper.isUndefined(f[i])||(u=f[i]),r.helper.isUndefined(h[i])||(a=h[i].width,s=h[i].height)}t=t.replace(/"/g,""").replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback),o=o.replace(r.helper.regexes.asteriskDashAndColon,r.helper.escapeCharactersCallback);var d=''+t+'","
")})),e=e.replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return r(t,"","")})),e=e.replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return r(t,"","")}))):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e})),e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e})),e=e.replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))),t.literalMidWordAsterisks?(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")})),e=e.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")})),e=e.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")}))):(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e})),e=e.replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e})),e=e.replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))),e=n.converter._dispatch("italicsAndBold.after",e,t,n),e})),r.subParser("lists",(function(e,t,n){function i(e,i){n.gListLevel++,e=e.replace(/\n{2,}$/,"\n"),e+="¨0";var o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,a=/\n[ \t]*\n(?!¨0)/.test(e);return t.disableForced4SpacesIndentedSublists&&(o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=e.replace(o,(function(e,i,o,s,l,u,c){c=c&&""!==c.trim();var f=r.subParser("outdent")(l,t,n),h="";return u&&t.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(f=r.subParser("githubCodeBlocks")(f,t,n),f=r.subParser("blockGamut")(f,t,n)):(f=r.subParser("lists")(f,t,n),f=f.replace(/\n$/,""),f=r.subParser("hashHTMLBlocks")(f,t,n),f=f.replace(/\n\n+/g,"\n\n"),f=a?r.subParser("paragraphs")(f,t,n):r.subParser("spanGamut")(f,t,n)),f=f.replace("¨A",""),f=""+f+"\n",f})),e=e.replace(/¨0/g,""),n.gListLevel--,i&&(e=e.replace(/\s+$/,"")),e}function o(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function a(e,n,r){var a=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?a:s,u="";if(-1!==e.search(l))(function t(c){var f=c.search(l),h=o(e,n);-1!==f?(u+="\n\n<"+n+h+">\n"+i(c.slice(0,f),!!r)+"\n",n="ul"===n?"ol":"ul",l="ul"===n?a:s,t(c.slice(f))):u+="\n\n<"+n+h+">\n"+i(c,!!r)+"\n"})(e);else{var c=o(e,n);u="\n\n<"+n+c+">\n"+i(e,!!r)+"\n"}return u}return e=n.converter._dispatch("lists.before",e,t,n),e+="¨0",e=n.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){var r=n.search(/[*+-]/g)>-1?"ul":"ol";return a(t,r,!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,r){var i=r.search(/[*+-]/g)>-1?"ul":"ol";return a(n,i,!1)})),e=e.replace(/¨0/,""),e=n.converter._dispatch("lists.after",e,t,n),e})),r.subParser("metadata",(function(e,t,n){if(!t.metadata)return e;function r(e){n.metadata.raw=e,e=e.replace(/&/g,"&").replace(/"/g,"""),e=e.replace(/\n {4}/g," "),e.replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,r){return n.metadata.parsed[t]=r,""}))}return e=n.converter._dispatch("metadata.before",e,t,n),e=e.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){return r(n),"¨M"})),e=e.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,i){return t&&(n.metadata.format=t),r(i),"¨M"})),e=e.replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n),e})),r.subParser("outdent",(function(e,t,n){return e=n.converter._dispatch("outdent.before",e,t,n),e=e.replace(/^(\t|[ ]{1,4})/gm,"¨0"),e=e.replace(/¨0/g,""),e=n.converter._dispatch("outdent.after",e,t,n),e})),r.subParser("paragraphs",(function(e,t,n){e=n.converter._dispatch("paragraphs.before",e,t,n),e=e.replace(/^\n+/g,""),e=e.replace(/\n+$/g,"");for(var i=e.split(/\n{2,}/g),o=[],a=i.length,s=0;s=0?o.push(l):l.search(/\S/)>=0&&(l=r.subParser("spanGamut")(l,t,n),l=l.replace(/^([ \t]*)/g,"

"),l+="

",o.push(l))}for(a=o.length,s=0;s]*>\s*]*>/.test(c)&&(f=!0)}o[s]=c}return e=o.join("\n"),e=e.replace(/^\n+/g,""),e=e.replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",e,t,n)})),r.subParser("runExtension",(function(e,t,n,r){if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var i=e.regex;i instanceof RegExp||(i=new RegExp(i,"g")),t=t.replace(i,e.replace)}return t})),r.subParser("spanGamut",(function(e,t,n){return e=n.converter._dispatch("spanGamut.before",e,t,n),e=r.subParser("codeSpans")(e,t,n),e=r.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n),e=r.subParser("encodeBackslashEscapes")(e,t,n),e=r.subParser("images")(e,t,n),e=r.subParser("anchors")(e,t,n),e=r.subParser("autoLinks")(e,t,n),e=r.subParser("simplifiedAutoLinks")(e,t,n),e=r.subParser("emoji")(e,t,n),e=r.subParser("underline")(e,t,n),e=r.subParser("italicsAndBold")(e,t,n),e=r.subParser("strikethrough")(e,t,n),e=r.subParser("ellipsis")(e,t,n),e=r.subParser("hashHTMLSpans")(e,t,n),e=r.subParser("encodeAmpsAndAngles")(e,t,n),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=n.converter._dispatch("spanGamut.after",e,t,n),e})),r.subParser("strikethrough",(function(e,t,n){function i(e){return t.simplifiedAutoLink&&(e=r.subParser("simplifiedAutoLinks")(e,t,n)),""+e+""}return t.strikethrough&&(e=n.converter._dispatch("strikethrough.before",e,t,n),e=e.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,t){return i(t)})),e=n.converter._dispatch("strikethrough.after",e,t,n)),e})),r.subParser("stripLinkDefinitions",(function(e,t,n){var i=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,o=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;e+="¨0";var a=function(i,o,a,s,l,u,c){return o=o.toLowerCase(),e.toLowerCase().split(o).length-1<2?i:(a.match(/^data:.+?\/.+?;base64,/)?n.gUrls[o]=a.replace(/\s/g,""):n.gUrls[o]=r.subParser("encodeAmpsAndAngles")(a,t,n),u?u+c:(c&&(n.gTitles[o]=c.replace(/"|'/g,""")),t.parseImgDimensions&&s&&l&&(n.gDimensions[o]={width:s,height:l}),""))};return e=e.replace(o,a),e=e.replace(i,a),e=e.replace(/¨0/,""),e})),r.subParser("tables",(function(e,t,n){if(!t.tables)return e;var i=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function a(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function s(e,i){var o="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(o=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),e=r.subParser("spanGamut")(e,t,n),""+e+"\n"}function l(e,i){var o=r.subParser("spanGamut")(e,t,n);return""+o+"\n"}function u(e,t){for(var n="\n\n\n",r=e.length,i=0;i\n\n\n",i=0;i\n";for(var o=0;o\n"}return n+="\n
\n",n}function c(e){var i,o=e.split("\n");for(i=0;i"+t+""})),e=e.replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""}))):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e})),e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))),e=e.replace(/(_)/g,r.helper.escapeCharactersCallback),e=n.converter._dispatch("underline.after",e,t,n),e):e})),r.subParser("unescapeSpecialChars",(function(e,t,n){return e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n),e=e.replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)})),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n),e})),r.subParser("makeMarkdown.blockquote",(function(e,t){var n="";if(e.hasChildNodes())for(var i=e.childNodes,o=i.length,a=0;a "+n.split("\n").join("\n> "),n})),r.subParser("makeMarkdown.codeBlock",(function(e,t){var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"})),r.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"})),r.subParser("makeMarkdown.emphasis",(function(e,t){var n="";if(e.hasChildNodes()){n+="*";for(var i=e.childNodes,o=i.length,a=0;a",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),r.subParser("makeMarkdown.links",(function(e,t){var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){var i=e.childNodes,o=i.length;n="[";for(var a=0;a",e.hasAttribute("title")&&(n+=' "'+e.getAttribute("title")+'"'),n+=")"}return n})),r.subParser("makeMarkdown.list",(function(e,t,n){var i="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,a=o.length,s=e.getAttribute("start")||1,l=0;l"+t.preList[n]+""})),r.subParser("makeMarkdown.strikethrough",(function(e,t){var n="";if(e.hasChildNodes()){n+="~~";for(var i=e.childNodes,o=i.length,a=0;atr>th"),l=e.querySelectorAll("tbody>tr");for(n=0;ng&&(g=m)}for(n=0;n/g,"\\$1>"),t=t.replace(/^#/gm,"\\#"),t=t.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),t=t.replace(/^( {0,3}\d+)\./gm,"$1\\."),t=t.replace(/^( {0,3})([+-])/gm,"$1\\$2"),t=t.replace(/]([\s]*)\(/g,"\\]$1\\("),t=t.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),t}));var b=this;e.exports?e.exports=r:b.showdown=r}).call(d)})(g);var m=g.exports,v=p(m);v.ConverterExtObj=function(e,t){var n=[],r=e;function i(){t&&v.helper.forEach(t,o)}function o(e,t){if(t=t||null,v.helper.isString(e)&&(t=v.helper.stdExtName(e),e=v.asyncExtension(t),v.helper.isUndefined(e)))throw Error('Extension "'+t+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"===typeof e&&(e=e()),v.helper.isArray(e)||(e=[e]),v.validateExtension(e))for(var r=0;r"+a+s+"",a=v.subParser("hashBlock")(a,t,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"})),e=e.replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e})),v.subParser("tables",(function(e,t,n){if(!t.tables)return e;var r=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,i=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o=/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a=/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function s(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function l(e,r){var i="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(i=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),e=v.subParser("spanGamut")(e,t,n),""+e+"\n"}function u(e,n,r,i){if(i){if(!t.tablesRowspan||"^^"!==i||!n)return;for(var o=n-1;o>=0;--o)if(e[o][r]){if("^^"!==e[o][r])return e[o][r]=e[o][r].replace(/rowspan="[0-9]*"/g,"").replace(/^(\n\r]*?)(>.*<\/td>\n)/,(function(e,t,r){return t+' rowspan="'+(n-o+1)+'"'+r})),i;if(0===o)return e[o][r]='\n',i}else for(var a=r-1;a>=0;-a){if(e[o+1][a]&&"^^"!==e[o+1][a])return;if(e[o][a]){if(!e[o+1][a])return;return e[o][a]=e[o][a].replace(/rowspan="[0-9]*"/g,"").replace(/^(\n\r]*?)(>.*<\/td>\n)/,(function(e,t,r){return t+' rowspan="'+(n-o+1)+'"'+r})),i}}}else if(r)for(a=r-1;a>=0;--a)if(e[n][a]){if("^^"!==e[n][a])return e[n][a]=e[n][a].replace(/colspan="[0-9]*"/g,"").replace(/^(\n\r]*?)(>.*<\/td>\n)/,(function(e,t,n){return t+' colspan="'+(r-a+1)+'"'+n})),i;for(o=n-1;o>=0;--o){if(e[o][a+1])return;if("^^"!==e[o][a])return e[o][a]=e[o][a].replace(/colspan="[0-9]*"/g,"").replace(/^(\n\r]*?)(>.*<\/td>\n)/,(function(e,t,n){return t+' colspan="'+(r-a+1)+'"'+n})),i}}else if(0===a)return e[n][a]='\n',i}function c(e,r,i,o,a){if(t.tablesMerge){var s=u(e,r,i,o);if(!v.helper.isUndefined(s))return s}o=o.trim();var l=v.subParser("spanGamut")(o,t,n);return""+l+"\n"}function f(e,n,r){var i="\n",o=n.length;if(e.length){i+="\n\n";for(var a=0;a\n\n"}for(i+="\n",a=0;a\n";for(var s=0;s\n"}return i+="\n
\n",i}function h(e,r){var i,o=e.split("\n");for(i=0;i0?e:t})));for(i=0;i0?t.classList[0]:"")+(t.className&&o?" ":"")+o,l=e+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return t.id=l,{id:l,className:s,data:a,element:t}}var W={interopDefault:B,loadStyle:I,loadScript:z,renderCacheElement:U,renderElement:H,createElementMeta:$},q="abc",Z="ABCJSCSS";if("undefined"===typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if("undefined"===typeof G)var G=window.ABCJS||void 0;function V(){return!!G}var Y=!1;function K(){var e=V();if("undefined"!==typeof window){if(Y)return e;e||(Y=!0,F.loadStyleSheet(Z),W.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),F.loadScript("ABCJS").then((function(e){G=W.interopDefault(window[e])})))}return e}var X,J={add_classes:!0,responsive:"resize"};function Q(e){var t=this;t.onReady=function(){},t.onStart=function(){var t=document.querySelector("#".concat(e," svg")),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),t.appendChild(n)},t.beatSubdivisions=2,t.onBeat=function(e,t,n){},t.onEvent=function(t){if(!t.measureStart||null!==t.left){for(var n=document.querySelectorAll("#".concat(e," svg .highlight")),r=0;r'):'
');l+='
'),n.element.parentNode.outerHTML=l;var u={id:r,code:"(function() {\n if (typeof window !== 'undefined' && window.dispatchEvent) {\n window.dispatchEvent(new CustomEvent('abcjs',{\n detail: {\n audio: '".concat(s,"',\n render: '").concat(r,"',\n data: '").concat(o,"'\n }\n }));\n }\n })();")};return t.push(u),e(!0)}setTimeout((function(){ne(e,t,n)}),10)}function re(e,t){return new Promise((function(n){var r=W.createElementMeta(q,e);if(!r)return n(!1);r.cssLink=F.getSrc(Z),ne(n,t,r)}))}function ie(e,t){return K(),new Promise((function(n){var r=[];e.forEach((function(e){r.push(re(e,t))})),Promise.all(r).then((function(){n(!0)}))}))}function oe(){var e=!1;return[{type:"output",filter:function(t){var n=t.wrapper;if(!n)return!1;var r=n.querySelectorAll("code.".concat(q,".language-").concat(q));return!!r.length&&(e||"undefined"!==typeof window&&window.dispatchEvent&&(e=!0,window.addEventListener("abcjs",(function(e){e.detail&&ee(e.detail.audio,e.detail.render,atob(e.detail.data))}))),this.config={cssLink:F.getSrc(Z)},console.log(k("Begin render ".concat(q," elements."))),ie(r,t.scripts).then((function(){return console.log(k("End render ".concat(q," elements."))),t})))}}]}function ae(e,t,n,r){try{r&&(n=n.appendChild(e.ownerDocument.createElement("ul")));var i=n.appendChild(e.ownerDocument.createElement("li")).appendChild(e.ownerDocument.createElement("a"));t&&(i.appendChild(e.ownerDocument.createTextNode(t.textContent)),i.href="#"+t.id)}catch(o){console.warn(k("append child error:"),e)}return n}function se(e,t,n,r){if(r<=n.headingLevel){var i=null;while(n){if(r>n.headingLevel)break;i=n,n=i.parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null}return n&&se(e,t,n,r),n}if(r>n.preLevel){n.preLevel++;while(r>n.preLevel)n.toc=ae(e,null,n.toc,!0),n.preLevel++;n.toc=ae(e,t,n.toc,!0)}else{while(rr.headingLevel)l.parentNode=r;else{var u=r;while(n').concat(a,""),e(!0)}))}else setTimeout((function(){ge(e,t)}),10)}function me(e){return new Promise((function(t){var n=W.createElementMeta("viz",e);if(!n)return t(!1);ge(t,n)}))}function ve(e){return pe(),new Promise((function(t){var n=[];e.forEach((function(e){n.push(me(e))})),Promise.all(n).then((function(){t(!0)}))}))}function ye(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.dot.language-dot");return!!n.length&&(console.log(k("Begin render dot elements.")),ve(n).then((function(){return console.log(k("End render dot elements.")),e})))}}]}var be="vega";if("undefined"===typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if("undefined"===typeof we)var we=window.vegaEmbed||void 0;function _e(){return!("undefined"===typeof we||!we)}var xe=!1;function ke(){var e=_e();if("undefined"!==typeof window){if(xe)return e;e||(xe=!0,F.loadScript(be).then((function(){return F.loadScript("vegaLite")})).then((function(){return F.loadScript("vegaEmbed")})).then((function(e){we=W.interopDefault(window[e])})))}return e}function Se(e,t,n,r){var i=W.createElementMeta(be,e);if(!i)return Promise.resolve(!1);var o=JSON.stringify(t),a=JSON.stringify(JSON.parse(i.data)),s=i.id,l={id:s,code:"(function() {\n let el = document.getElementById('".concat(s,"');\n if (el){\n vegaEmbed(el, JSON.parse('").concat(a,"'), JSON.parse('").concat(o,"'));\n }\n })();")};return n.push(l),new Promise((function(e){Ae(e,i)}))}function Ee(e,t,n,r){return ke(),new Promise((function(i){var o=[];e.forEach((function(e){o.push(Se(e,r,n))})),t.forEach((function(e){o.push(Se(e,r,n))})),Promise.all(o).then((function(){i(!0)}))}))}var Ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg"},e)};function Ae(e,t){if(_e()){var n=t.id,r=t.className,i=t.element.parentNode;return i.outerHTML='
'),e(!0)}setTimeout((function(){Ae(e,t)}),10)}function Oe(e){var t=Ce(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.vega.language-vega"),r=t.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!r.length)&&(console.log(k("Begin render vega elements.")),Ee(n,r,e.scripts,this.config).then((function(){return console.log(k("End render vega elements.")),e})))}}]}function Le(e){for(var t=null,n=null,r=!1,i=e.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph"),o=0;o<",tag:"mo",output:"⋉",tex:"ltimes",ttype:je},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:je},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:je},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:je},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:Be},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:je},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:je},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:je},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:je},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:ze},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:ze},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:je},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:ze},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:je},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:ze},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:je},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:ze},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:je},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:ze},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:Re},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:Re},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:je},{input:":=",tag:"mo",output:":=",tex:null,ttype:je},{input:"lt",tag:"mo",output:"<",tex:null,ttype:je},{input:"gt",tag:"mo",output:">",tex:null,ttype:je},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:je},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:je},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:je},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:je},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:je},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:je},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:je},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:je},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:je},{input:"in",tag:"mo",output:"∈",tex:null,ttype:je},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:je},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:je},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:je},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:je},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:je},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:je},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:je},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:Be},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:je},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:je},{input:"and",tag:"mtext",output:"and",tex:null,ttype:Ie},{input:"or",tag:"mtext",output:"or",tex:null,ttype:Ie},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:je},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:je},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:Be},{input:"if",tag:"mo",output:"if",tex:null,ttype:Ie},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:je},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:Be},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:je},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:je},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:je},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:je},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:je},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:je},{input:"(",tag:"mo",output:"(",tex:null,ttype:De,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:Fe,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:De,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:Fe,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:De,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:Fe,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:De,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:Fe,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:De},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:Fe},{input:"|",tag:"mo",output:"|",tex:null,ttype:Ue,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:De,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:Fe,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:je,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:De},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:Fe},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:De},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:Fe},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:De,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:Fe,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:je},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:Be},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:Be},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:Be},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:Be},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:je},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:je},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:je},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:je},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:je},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:je},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:je},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:je},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:je},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:je},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:je},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:je},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:je,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:je},{input:"%",tag:"mo",output:"%",tex:"%",ttype:je,notexcopy:!0},{input:"quad",tag:"mo",output:"  ",tex:null,ttype:je},{input:"qquad",tag:"mo",output:"    ",tex:null,ttype:je},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:je},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:je},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:je},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:je},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:je},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:je},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:je},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:je},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:Be},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:je},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:Be},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:je,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:je,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:je,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:je,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:je,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:Pe,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:Pe,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:ze},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:ze},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:Pe,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:Pe,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:Pe,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:Pe,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:Pe,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:Pe,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:Pe,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:Pe,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:Pe,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:Pe,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:Pe,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:Pe,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:Pe,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:Pe,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:Pe,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:Pe,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:Pe,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:Pe,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:Pe,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:Pe,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:Pe,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:Pe,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:Pe,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:Pe,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:Pe,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:Pe,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:Pe,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:Pe,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:Pe,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:Pe,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:Pe,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:Pe,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:Pe,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:Pe,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:Pe,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:Pe,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:Pe,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:Pe,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:je},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:je,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:Pe,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:Pe,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:je},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:je},{input:"min",tag:"mo",output:"min",tex:null,ttype:ze},{input:"max",tag:"mo",output:"max",tex:null,ttype:ze},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:je},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:je},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:je},{input:"->",tag:"mo",output:"→",tex:"to",ttype:je},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:je},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:je},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:je},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:je},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:je},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:je},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:je},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:je},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:je},$e,We,qe,Ze,Ge,Ve,Ye,{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:Pe},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:Pe},{input:"hat",tag:"mover",output:"^",tex:null,ttype:Pe,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:Pe,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:Pe,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:Pe,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:Pe,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:Pe,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:Pe,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:Pe,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:Pe,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:Pe,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:Pe,acc:!0},Ke,Xe,Je,{input:"color",tag:"mstyle",ttype:Re},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:Pe,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:Pe},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:Pe,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:Pe},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:Pe,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:Pe},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:Pe,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:Pe},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:Pe,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:Pe},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:Pe,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:Pe}];function et(e,t){return e.input>t.input?1:-1}var tt,nt,rt,it=[];function ot(){var e,t=Qe.length;for(e=0;e>1,e[i]=it[i];if(nt=rt,""!=a)return rt=Qe[t].ttype,Qe[t];rt=je,i=1,n=e.slice(0,1);var u=!0;while("0"<=n&&n<="9"&&i<=e.length)n=e.slice(i,i+1),i++;if(n==Me.decimalsign&&(n=e.slice(i,i+1),"0"<=n&&n<="9")){u=!1,i++;while("0"<=n&&n<="9"&&i<=e.length)n=e.slice(i,i+1),i++}return u&&i>1||i>2?(n=e.slice(0,i-1),r="mn"):(i=2,n=e.slice(0,1),r=("A">n||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&nt==Ne?(rt=Ne,{input:n,tag:r,output:n,ttype:Pe,func:!0,val:!0}):{input:n,tag:r,output:n,ttype:je,val:!0}}function ct(e){var t;if("{"==e.charAt(0)&&"}"==e.charAt(e.length-1)){var n=0;t=e.substr(1,5),"\\left"==t?(t=e.charAt(6),"("==t||"["==t||"{"==t?n=7:(t=e.substr(6,7),"\\lbrace"==t&&(n=13))):(t=e.charAt(1),"("!=t&&"["!=t||(n=2)),n>0&&(t=e.substr(e.length-8),"\\right)}"==t||"\\right]}"==t||"\\right.}"==t?(e="{"+e.substr(n),e=e.substr(0,e.length-8)+"}"):"\\rbrace}"==t&&(e="{"+e.substr(n),e=e.substr(0,e.length-14)+"}"))}return e}function ft(e){var t;return t="boolean"==typeof e.val&&e.val?"":"\\",null==e.tex?t+e.input:t+e.tex}function ht(e){var t,n,r,i,o="";if(e=st(e,0),t=ut(e),null==t||t.ttype==Fe&&tt>0)return[null,e];switch(t.ttype==Be&&(e=t.output+st(e,t.input.length),t=ut(e)),t.ttype){case ze:case je:e=st(e,t.input.length);var a=ft(t);return"\\"==a.charAt(0)||"mo"==t.tag?[a,e]:["{"+a+"}",e];case De:tt++,e=st(e,t.input.length),r=pt(e,!0),tt--;var s=0;return"\\right"==r[0].substr(0,6)&&(u=r[0].charAt(6),")"==u||"]"==u||"}"==u?s=6:"."==u?s=7:(u=r[0].substr(6,7),"\\rbrace"==u&&(s=13))),s>0?(r[0]=r[0].substr(s),n="boolean"==typeof t.invisible&&t.invisible?"{"+r[0]+"}":"{"+ft(t)+r[0]+"}"):n="boolean"==typeof t.invisible&&t.invisible?"{\\left."+r[0]+"}":"{\\left"+ft(t)+r[0]+"}",[n,r[1]];case He:return t!=Je&&(e=st(e,t.input.length)),i="{"==e.charAt(0)?e.indexOf("}"):"("==e.charAt(0)?e.indexOf(")"):"["==e.charAt(0)?e.indexOf("]"):t==Je?e.slice(1).indexOf('"')+1:0,-1==i&&(i=e.length),u=e.slice(1,i)," "==u.charAt(0)&&(o="\\ "),o+="\\text{"+u+"}"," "==u.charAt(u.length-1)&&(o+="\\ "),e=st(e,i+1),[o,e];case Pe:return e=st(e,t.input.length),r=ht(e),null==r[0]?["{"+ft(t)+"}",e]:"boolean"==typeof t.func&&t.func?(u=e.charAt(0),"^"==u||"_"==u||"/"==u||"|"==u||","==u||1==t.input.length&&t.input.match(/\w/)&&"("!=u?["{"+ft(t)+"}",e]:(n="{"+ft(t)+"{"+r[0]+"}}",[n,r[1]])):(r[0]=ct(r[0]),"sqrt"==t.input?["\\sqrt{"+r[0]+"}",r[1]]:"cancel"==t.input?["\\cancel{"+r[0]+"}",r[1]]:"undefined"!=typeof t.rewriteleftright?["{\\left"+t.rewriteleftright[0]+r[0]+"\\right"+t.rewriteleftright[1]+"}",r[1]]:"boolean"==typeof t.acc&&t.acc?[ft(t)+"{"+r[0]+"}",r[1]]:["{"+ft(t)+"{"+r[0]+"}}",r[1]]);case Re:if(e=st(e,t.input.length),r=ht(e),null==r[0])return["{"+ft(t)+"}",e];r[0]=ct(r[0]);var l=ht(r[1]);return null==l[0]?["{"+ft(t)+"}",e]:(l[0]=ct(l[0]),o="color"==t.input?"{\\color{"+r[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==t.input?"{\\sqrt["+r[0]+"]{"+l[0]+"}}":"{"+ft(t)+"{"+r[0]+"}{"+l[0]+"}}",[o,l[1]]);case Ne:return e=st(e,t.input.length),[t.output,e];case Ie:return e=st(e,t.input.length),["{\\quad\\text{"+t.input+"}\\quad}",e];case Ue:tt++,e=st(e,t.input.length),r=pt(e,!1),tt--;var u="";return u=r[0].charAt(r[0].length-1),"|"==u&&","!==e.charAt(0)?(n="{\\left|"+r[0]+"}",[n,r[1]]):(n="{\\mid}",[n,e]);default:return e=st(e,t.input.length),["{"+ft(t)+"}",e]}}function dt(e){var t,n,r,i,o;if(e=st(e,0),n=ut(e),o=ht(e),i=o[0],e=o[1],t=ut(e),t.ttype==Ne&&"/"!=t.input){if(e=st(e,t.input.length),o=ht(e),null==o[0]?o[0]="{}":o[0]=ct(o[0]),e=o[1],"_"==t.input)if(r=ut(e),"^"==r.input){e=st(e,r.input.length);var a=ht(e);a[0]=ct(a[0]),e=a[1],i="{"+i,i+="_{"+o[0]+"}",i+="^{"+a[0]+"}",i+="}"}else i+="_{"+o[0]+"}";else i=i+"^{"+o[0]+"}";"undefined"!=typeof n.func&&n.func&&(r=ut(e),r.ttype!=Ne&&r.ttype!=Fe&&(n.input.length>1||r.ttype==De)&&(o=dt(e),i="{"+i+o[0]+"}",e=o[1]))}return[i,e]}function pt(e,t){var n,r,i,o,a="",s=!1;do{e=st(e,0),i=dt(e),r=i[0],e=i[1],n=ut(e),n.ttype==Ne&&"/"==n.input?(e=st(e,n.input.length),i=dt(e),null==i[0]?i[0]="{}":i[0]=ct(i[0]),e=i[1],r=ct(r),r="\\frac{"+r+"}",r+="{"+i[0]+"}",a+=r,n=ut(e)):void 0!=r&&(a+=r)}while((n.ttype!=Fe&&(n.ttype!=Ue||t)||0==tt)&&null!=n&&""!=n.output);if(n.ttype==Fe||n.ttype==Ue){var l=a.length;if(l>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var u=a.charAt(l-2);if(")"==u||"]"==u){var c=a.charAt(6);if("("==c&&")"==u&&"}"!=n.output||"["==c&&"]"==u){var f="",h=new Array;h.push(0);var d=!0,p=0,g=[];g[0]=[0];var m=0,v=0,y="";for(o=1;o0&&d)for(o=0;o0&&(f+="\\\\"),0==o)if(1==g[h[o]].length)var w=[a.substr(h[o]+7,h[o+1]-h[o]-15)];else{w=[a.substring(h[o]+7,g[h[o]][1])];for(var _=2;_=0;_--)"{\\mid}"==w[_]?(0==o&&(y="|"+y),w.splice(_,1)):0==o&&(y="c"+y);b>0&&w.length!=b?d=!1:-1==b&&(b=w.length),f+=w.join("&")}f="\\begin{array}{"+y+"} "+f+"\\end{array}",d&&(a=f)}}}e=st(e,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",s=!0):(r="\\right"+ft(n),a+=r,s=!0)}return tt>0&&!s&&(a+="\\right."),[a,e]}function gt(e){return tt=0,e=e.replace(/( |\u00a0| )/g,""),e=e.replace(/>/g,">"),e=e.replace(/</g,"<"),null==e.match(/\S/)?"":pt(e.replace(/^\s+/g,""),!1)[0]}if(ot(),"undefined"===typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if("undefined"===typeof mt)var mt=window.katex||void 0;if("undefined"===typeof renderMathInElement)var vt=window.renderMathInElement||void 0;var yt=0;function bt(){return!("undefined"===typeof vt||!vt||"undefined"===typeof mt||!mt)}var wt=!1,_t="katexCSS";function xt(e){var t=bt();if("undefined"!==typeof window){if(wt)return t;if(!t)return wt=!0,F.loadStyleSheet(_t),F.loadScript("katex").then((function(e){return mt=W.interopDefault(window[e]),F.loadScript("renderMathInElement")})).then((function(t){vt=W.interopDefault(window[t]),"function"===typeof e&&e&&e(vt)}))["catch"]((function(e){console.log("load script error: "+e)})),t}return"function"===typeof e&&e&&e(vt),t}function kt(e,t){if(bt()){t.id;var n=t.className,r=t.input,i=t.data,o=t.cssLink,a=t.options,s=t.element.ownerDocument,l="";if(i instanceof Array)i.forEach((function(e){if(""===e)l+="
";else{var t=mt.renderToString(e,a);l+=o?'
').concat(t,"
"):'
').concat(t,"
")}}));else{var u=mt.renderToString(i,a);l=o?'
').concat(u,"
"):'
').concat(u,"
")}t.element.parentNode.outerHTML=l,--yt,yt||vt(s.body,a),e(!0)}else setTimeout((function(){kt(e,t)}),10)}function St(e,t,n){return new Promise((function(r){var i,o=W.createElementMeta("katex",e,(function(e){var t;i=e;var r=e.split(/\n[ \f\r\t\v]*\n/);return r.length>1?(t=new Array,r.forEach((function(e){e=e.trim(),""!==e&&(e=n?gt(e):e),t.push(e)}))):t=n?gt(i):i,t}));if(!o)return r(!1);o.cssLink=F.getSrc(_t),o.input=i,o.options=t,kt(r,o)}))}function Et(e,t,n){return yt=e.length+t.length,xt(),new Promise((function(r){var i=[];e.forEach((function(e){i.push(St(e,n,!1))})),t.forEach((function(e){i.push(St(e,n,!0))})),Promise.all(i).then((function(){r(!0)}))}))}function Ct(e){return e.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}var At=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s({displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null},e);function n(e){return!(!Array.isArray(e)||!e.length)}function r(e,t){return!(!e||"object"!==f(e)||!e.hasOwnProperty(t))}function i(e,t,i){return!!(r(e,t)&&r(e[t],i)&&n(e[t][i]))&&(e[t][i].forEach((function(e){e.display="inline"!==i,"asciimath"===t&&(e.asciimath=!0)})),e[t][i])}return Array.isArray(t.delimiters)?t.delimiters.length||(t.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"@ ",right:" @",display:!1,asciimath:!0},{left:"\\~",right:"\\~",display:!1,asciimath:!0}]):t.delimiters=[].concat(i(t.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0}]).concat(i(t.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(i(t.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(i(t.delimiters,"asciimath","inline")||[{left:"@ ",right:" @",display:!1,asciimath:!0},{left:"\\~",right:"\\~",display:!1,asciimath:!0}]),t};function Ot(e){var t=0,n=At(e),r=n.delimiters.map((function(e){var n=e.left,r=e.right,i=e.display,o=e.asciimath,a=new RegExp("".concat(Ct(n),"(.+?)").concat(Ct(r)),"g"),s=function(e,n){return++t,o&&(n=gt(n)),i?"\\[".concat(n,"\\]"):"\\(".concat(n,"\\)")};return{test:a,replacer:s}}));return[{type:"output",config:n,filter:function(e){t=0;var i=e.wrapper;if(!i)return!1;r.length&&i.querySelectorAll(":not(code):not(pre)").forEach((function(e){var t=l(e.childNodes).filter((function(e){return"#text"===e.nodeName&&e.nodeValue.trim()}));t.forEach((function(e){var t=r.reduce((function(e,t){var n=t.test,r=t.replacer;return e.replace(n,r)}),e.nodeValue);e.nodeValue=t}))}));var o=i.querySelectorAll("code.latex.language-latex"),a=i.querySelectorAll("code.asciimath.language-asciimath");if(!o.length&&!a.length){if(t>0){var s=function e(t,n){bt()?(n(i.ownerDocument.body,u.config),t(!0)):setTimeout((function(){e(t,n)}),10)};this.config.cssLink=F.getSrc(_t);var u=this;return console.log(k("Begin render inline katex elements.")),new Promise((function(e){xt((function(t){s(e,t)}))})).then((function(){return console.log(k("End render inline katex elements.")),e}))}return!1}return n.cssLink=F.getSrc(_t),console.log(k("Begin render katex elements.")),Et(o,a,this.config).then((function(){return console.log(k("End render katex elements.")),e}))}}]}var Lt="echarts";if("undefined"===typeof window)throw Error("The showdown ".concat(Lt," extension can only be used in browser environment!"));if("undefined"===typeof Tt)var Tt=window.echarts||void 0;function Mt(){return!!Tt}var jt=!1;function Pt(){var e=Mt();if("undefined"!==typeof window){if(jt)return e;e||(jt=!0,F.loadScript(Lt).then((function(e){Tt=W.interopDefault(window[e])})))}return e}function Rt(e,t){if(Mt()){var n=t.id,r=t.className,i=t.element.parentNode;return i.outerHTML='
'),e(!0)}setTimeout((function(){Rt(e,t)}),20)}function Nt(e,t,n){var r=W.createElementMeta(Lt,e);if(!r)return Promise.resolve(!1);n=JSON.stringify(s(s({},n),{},{ssr:!1}));var i=JSON.stringify(JSON.parse(r.data)),o={id:r.id,code:"(function() {\n let el = document.getElementById('".concat(r.id,"');\n if (el){\n let config = JSON.parse('").concat(n,"');\n let chart = echarts.init(el, null, config);\n let option = JSON.parse('").concat(i,"');\n chart.setOption(option);\n }\n })();")};return t.push(o),new Promise((function(e){Rt(e,r)}))}function Dt(e,t,n){return Pt(),new Promise((function(r){var i=[];e.forEach((function(e){i.push(Nt(e,t,n))})),Promise.all(i).then((function(){r(!0)}))}))}var Ft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({renderer:"svg",ssr:!1,width:400,height:300,tooltip:{show:!0},animation:!0},e)};function It(e){var t=Ft(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.".concat(Lt,".language-").concat(Lt));return!!n.length&&(console.log(k("Begin render ".concat(Lt," elements."))),Dt(n,e.scripts,this.config).then((function(){return console.log(k("End render ".concat(Lt," elements."))),e})))}}]}var zt="mermaid";if("undefined"===typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if("undefined"===typeof Bt)var Bt=window.mermaid||void 0;function Ut(){return!("undefined"===typeof Bt||!Bt)}var Ht=!1;function $t(e){var t=Ut();if("undefined"!==typeof window){if(Ht)return t;if(!t)return Ht=!0,F.loadScript(zt).then((function(t){Bt=W.interopDefault(window[t]),Bt.initialize(e)})),t}return Bt.initialize(e),t}function Wt(e,t){if(Ut()){var n=t.id,r=t.className,i=t.data,o=t.element.parentNode;Bt.render(n,i).then((function(t){o.outerHTML='
').concat(t.svg,"
"),e(!0)}))}else setTimeout((function(){Wt(e,t)}),10)}function qt(e){return new Promise((function(t){var n=W.createElementMeta(zt,e);if(!n)return t(!1);Wt(t,n)}))}function Zt(e,t){return $t(t),new Promise((function(t){var n=[];e.forEach((function(e){n.push(qt(e))})),Promise.all(n).then((function(){t(!0)}))}))}var Gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50}},e)};function Vt(e){var t=Gt(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&(console.log(k("Begin render mermaid elements.")),Zt(n,this.config).then((function(){return console.log(k("End render mermaid elements.")),e})))}}]}var Yt="undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},Kt=[],Xt=[],Jt="undefined"!==typeof Uint8Array?Uint8Array:Array,Qt=!1;function en(){Qt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Jt(3*s/4-o),r=o>0?s-4:s;var l=0;for(t=0,n=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=Xt[e.charCodeAt(t)]<<2|Xt[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=Xt[e.charCodeAt(t)]<<10|Xt[e.charCodeAt(t+1)]<<4|Xt[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function nn(e){return Kt[e>>18&63]+Kt[e>>12&63]+Kt[e>>6&63]+Kt[63&e]}function rn(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===r?(t=e[n-1],i+=Kt[t>>2],i+=Kt[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Kt[t>>10],i+=Kt[t>>4&63],i+=Kt[t<<2&63],i+="="),o.push(i),o.join("")}function an(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)}function sn(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?h/l:h*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,u-=8);e[n+d-p]|=128*g}var ln={}.toString,un=Array.isArray||function(e){return"[object Array]"==ln.call(e)},cn=50;function fn(){return dn.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function hn(e,t){if(fn()=fn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fn().toString(16)+" bytes");return 0|e}function kn(e){return!(null==e||!e._isBuffer)}function Sn(e,t){if(kn(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return er(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return rr(e).length;default:if(r)return er(e).length;t=(""+t).toLowerCase(),r=!0}}function En(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return Un(this,t,n);case"utf8":case"utf-8":return Dn(this,t,n);case"ascii":return zn(this,t,n);case"latin1":case"binary":return Bn(this,t,n);case"base64":return Nn(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hn(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Cn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function An(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=dn.from(t,r)),kn(t))return 0===t.length?-1:On(e,t,n,r,i);if("number"===typeof t)return t&=255,dn.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):On(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function On(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return In(r)}dn.TYPED_ARRAY_SUPPORT=void 0===Yt.TYPED_ARRAY_SUPPORT||Yt.TYPED_ARRAY_SUPPORT,fn(),dn.poolSize=8192,dn._augment=function(e){return e.__proto__=dn.prototype,e},dn.from=function(e,t,n){return pn(null,e,t,n)},dn.TYPED_ARRAY_SUPPORT&&(dn.prototype.__proto__=Uint8Array.prototype,dn.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&dn[Symbol.species]),dn.alloc=function(e,t,n){return mn(null,e,t,n)},dn.allocUnsafe=function(e){return vn(null,e)},dn.allocUnsafeSlow=function(e){return vn(null,e)},dn.isBuffer=ar,dn.compare=function(e,t){if(!kn(e)||!kn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},dn.prototype.compare=function(e,t,n,r,i){if(!kn(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Ln(this,e,t,n);case"utf8":case"utf-8":return Tn(this,e,t,n);case"ascii":return Mn(this,e,t,n);case"latin1":case"binary":return jn(this,e,t,n);case"base64":return Pn(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rn(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},dn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Fn=4096;function In(e){var t=e.length;if(t<=Fn)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function Wn(e,t,n,r,i,o){if(!kn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function qn(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function Zn(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function Gn(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Vn(e,t,n,r,i){return i||Gn(e,t,n,4),sn(e,t,n,r,23,4),n+4}function Yn(e,t,n,r,i){return i||Gn(e,t,n,8),sn(e,t,n,r,52,8),n+8}dn.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},dn.prototype.readUInt8=function(e,t){return t||$n(e,1,this.length),this[e]},dn.prototype.readUInt16LE=function(e,t){return t||$n(e,2,this.length),this[e]|this[e+1]<<8},dn.prototype.readUInt16BE=function(e,t){return t||$n(e,2,this.length),this[e]<<8|this[e+1]},dn.prototype.readUInt32LE=function(e,t){return t||$n(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},dn.prototype.readUInt32BE=function(e,t){return t||$n(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},dn.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||$n(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},dn.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||$n(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},dn.prototype.readInt8=function(e,t){return t||$n(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},dn.prototype.readInt16LE=function(e,t){t||$n(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},dn.prototype.readInt16BE=function(e,t){t||$n(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},dn.prototype.readInt32LE=function(e,t){return t||$n(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},dn.prototype.readInt32BE=function(e,t){return t||$n(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},dn.prototype.readFloatLE=function(e,t){return t||$n(e,4,this.length),an(this,e,!0,23,4)},dn.prototype.readFloatBE=function(e,t){return t||$n(e,4,this.length),an(this,e,!1,23,4)},dn.prototype.readDoubleLE=function(e,t){return t||$n(e,8,this.length),an(this,e,!0,52,8)},dn.prototype.readDoubleBE=function(e,t){return t||$n(e,8,this.length),an(this,e,!1,52,8)},dn.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;Wn(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},dn.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,1,255,0),dn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},dn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,2,65535,0),dn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qn(this,e,t,!0),t+2},dn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,2,65535,0),dn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qn(this,e,t,!1),t+2},dn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,4,4294967295,0),dn.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Zn(this,e,t,!0),t+4},dn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,4,4294967295,0),dn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Zn(this,e,t,!1),t+4},dn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Wn(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},dn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Wn(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},dn.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,1,127,-128),dn.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},dn.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,2,32767,-32768),dn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):qn(this,e,t,!0),t+2},dn.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,2,32767,-32768),dn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):qn(this,e,t,!1),t+2},dn.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,4,2147483647,-2147483648),dn.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Zn(this,e,t,!0),t+4},dn.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Wn(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),dn.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Zn(this,e,t,!1),t+4},dn.prototype.writeFloatLE=function(e,t,n){return Vn(this,e,t,!0,n)},dn.prototype.writeFloatBE=function(e,t,n){return Vn(this,e,t,!1,n)},dn.prototype.writeDoubleLE=function(e,t,n){return Yn(this,e,t,!0,n)},dn.prototype.writeDoubleBE=function(e,t,n){return Yn(this,e,t,!1,n)},dn.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!dn.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function tr(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function rr(e){return tn(Xn(e))}function ir(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function or(e){return e!==e}function ar(e){return null!=e&&(!!e._isBuffer||sr(e)||lr(e))}function sr(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function lr(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&sr(e.slice(0,0))}function ur(){throw new Error("setTimeout has not been defined")}function cr(){throw new Error("clearTimeout has not been defined")}var fr=ur,hr=cr;function dr(e){if(fr===setTimeout)return setTimeout(e,0);if((fr===ur||!fr)&&setTimeout)return fr=setTimeout,setTimeout(e,0);try{return fr(e,0)}catch(t){try{return fr.call(null,e,0)}catch(t){return fr.call(this,e,0)}}}function pr(e){if(hr===clearTimeout)return clearTimeout(e);if((hr===cr||!hr)&&clearTimeout)return hr=clearTimeout,clearTimeout(e);try{return hr(e)}catch(t){try{return hr.call(null,e)}catch(t){return hr.call(this,e)}}}"function"===typeof Yt.setTimeout&&(fr=setTimeout),"function"===typeof Yt.clearTimeout&&(hr=clearTimeout);var gr,mr=[],vr=!1,yr=-1;function br(){vr&&gr&&(vr=!1,gr.length?mr=gr.concat(mr):yr=-1,mr.length&&wr())}function wr(){if(!vr){var e=dr(br);vr=!0;var t=mr.length;while(t){gr=mr,mr=[];while(++yr1)for(var n=1;n0&&a.length>i)){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,si(s)}}else a=o[t]=n,++e._eventsCount;return e}function si(e){"function"===typeof console.warn?console.warn(e):console.log(e)}function li(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function ui(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function ci(e,t){for(var n=t,r=n+1,i=e.length;r0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new Jr,this;delete r[e]}else ci(n,i);r.removeListener&&this.emit("removeListener",e,a||t)}return this},Qr.prototype.removeAllListeners=function(e){var t,n;if(n=this._events,!n)return this;if(!n.removeListener)return 0===arguments.length?(this._events=new Jr,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new Jr:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),o=0;o0?Reflect.ownKeys(this._events):[]},Kr="function"===typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};var di=Kr,pi=/%[sdj%]/g;function gi(e){if(!Ri(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),a=r[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Mi(t)?n.showHidden=t:t&&Hi(n,t),Ni(n.showHidden)&&(n.showHidden=!1),Ni(n.depth)&&(n.depth=2),Ni(n.colors)&&(n.colors=!1),Ni(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=_i),Si(n,e,n.depth)}function _i(e,t){var n=wi.styles[t];return n?"["+wi.colors[n][0]+"m"+e+"["+wi.colors[n][1]+"m":e}function xi(e,t){return e}function ki(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function Si(e,t,n){if(e.customInspect&&t&&Bi(t.inspect)&&t.inspect!==wi&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Ri(r)||(r=Si(e,r,n)),r}var i=Ei(e,t);if(i)return i;var o=Object.keys(t),a=ki(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),zi(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Ci(t);if(0===o.length){if(Bi(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Di(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Ii(t))return e.stylize(Date.prototype.toString.call(t),"date");if(zi(t))return Ci(t)}var l,u="",c=!1,f=["{","}"];if(Ti(t)&&(c=!0,f=["[","]"]),Bi(t)){var h=t.name?": "+t.name:"";u=" [Function"+h+"]"}return Di(t)&&(u=" "+RegExp.prototype.toString.call(t)),Ii(t)&&(u=" "+Date.prototype.toUTCString.call(t)),zi(t)&&(u=" "+Ci(t)),0!==o.length||c&&0!=t.length?n<0?Di(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=c?Ai(e,t,n,a,o):o.map((function(r){return Oi(e,t,n,a,r,c)})),e.seen.pop(),Li(l,u,f)):f[0]+u+f[1]}function Ei(e,t){if(Ni(t))return e.stylize("undefined","undefined");if(Ri(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return Pi(t)?e.stylize(""+t,"number"):Mi(t)?e.stylize(""+t,"boolean"):ji(t)?e.stylize("null","null"):void 0}function Ci(e){return"["+Error.prototype.toString.call(e)+"]"}function Ai(e,t,n,r,i){for(var o=[],a=0,s=t.length;a-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),Ni(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Li(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function Ti(e){return Array.isArray(e)}function Mi(e){return"boolean"===typeof e}function ji(e){return null===e}function Pi(e){return"number"===typeof e}function Ri(e){return"string"===typeof e}function Ni(e){return void 0===e}function Di(e){return Fi(e)&&"[object RegExp]"===Ui(e)}function Fi(e){return"object"===typeof e&&null!==e}function Ii(e){return Fi(e)&&"[object Date]"===Ui(e)}function zi(e){return Fi(e)&&("[object Error]"===Ui(e)||e instanceof Error)}function Bi(e){return"function"===typeof e}function Ui(e){return Object.prototype.toString.call(e)}function Hi(e,t){if(!t||!Fi(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e}function $i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Wi(){this.head=null,this.tail=null,this.length=0}wi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},wi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Wi.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Wi.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Wi.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},Wi.prototype.clear=function(){this.head=this.tail=null,this.length=0},Wi.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},Wi.prototype.concat=function(e){if(0===this.length)return dn.alloc(0);if(1===this.length)return this.head.data;var t=dn.allocUnsafe(e>>>0),n=this.head,r=0;while(n)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var qi=dn.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Zi(e){if(e&&!qi(e))throw new Error("Unknown encoding: "+e)}function Gi(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),Zi(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Yi;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ki;break;default:return void(this.write=Vi)}this.charBuffer=new dn(6),this.charReceived=0,this.charLength=0}function Vi(e){return e.toString(this.encoding)}function Yi(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Ki(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}Gi.prototype.write=function(e){var t="";while(this.charLength){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);i=t.length-1,r=t.charCodeAt(i);if(r>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},Gi.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},Gi.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t},to.ReadableState=eo;var Xi=bi("stream");function Ji(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function Qi(e,t){return e.listeners(t).length}function eo(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Ko&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new Wi,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new Gi(e.encoding),this.encoding=e.encoding)}function to(e){if(!(this instanceof to))return new to(e);this._readableState=new eo(e,this),this.readable=!0,e&&"function"===typeof e.read&&(this._read=e.read),Qr.call(this)}function no(e,t,n,r,i){var o=so(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,lo(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var l;!t.decoder||i||r||(n=t.decoder.write(n),l=!t.objectMode&&0===n.length),i||(t.reading=!1),l||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&uo(e))),fo(e,t)}else i||(t.reading=!1);return ro(t)}function ro(e){return!e.ended&&(e.needReadable||e.length=io?e=io:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function ao(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=oo(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function so(e,t){var n=null;return ar(t)||"string"===typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function lo(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,uo(e)}}function uo(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Xi("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?_r(co,e):co(e))}function co(e){Xi("emit readable"),e.emit("readable"),yo(e)}function fo(e,t){t.readingMore||(t.readingMore=!0,_r(ho,e,t))}function ho(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=wo(e,t.buffer,t.decoder),n);var n}function wo(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function xo(e,t){var n=dn.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),e-=a,0===e){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function ko(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,_r(So,t,e))}function So(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Eo(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return Xi("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ko(this):uo(this),null;if(e=ao(e,t),0===e&&t.ended)return 0===t.length&&ko(this),null;var r,i=t.needReadable;return Xi("need readable",i),(0===t.length||t.length-e0?bo(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&ko(this)),null!==r&&this.emit("data",r),r},to.prototype._read=function(e){this.emit("error",new Error("not implemented"))},to.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,Xi("pipe count=%d opts=%j",r.pipesCount,t);var i=!t||!1!==t.end,o=i?s:c;function a(e){Xi("onunpipe"),e===n&&c()}function s(){Xi("onend"),e.end()}r.endEmitted?_r(o):n.once("end",o),e.on("unpipe",a);var l=po(n);e.on("drain",l);var u=!1;function c(){Xi("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",a),n.removeListener("end",s),n.removeListener("end",c),n.removeListener("data",h),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}var f=!1;function h(t){Xi("ondata"),f=!1;var i=e.write(t);!1!==i||f||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Co(r.pipes,e))&&!u&&(Xi("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function d(t){Xi("onerror",t),m(),e.removeListener("error",d),0===Qi(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",g),m()}function g(){Xi("onfinish"),e.removeListener("close",p),m()}function m(){Xi("unpipe"),n.unpipe(e)}return n.on("data",h),Ji(e,"error",d),e.once("close",p),e.once("finish",g),e.emit("pipe",n),r.flowing||(Xi("pipe resume"),n.resume()),e},to.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},To.prototype._write=function(e,t,n){n(new Error("not implemented"))},To.prototype._writev=null,To.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||qo(this,r,n)},di(Ko,to);for(var Go=Object.keys(To.prototype),Vo=0;Vo=0)e[t]=0}var ma=0,va=1,ya=2,ba=3,wa=258,_a=29,xa=256,ka=xa+1+_a,Sa=30,Ea=19,Ca=2*ka+1,Aa=15,Oa=16,La=7,Ta=256,Ma=16,ja=17,Pa=18,Ra=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Na=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Da=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ia=512,za=new Array(2*(ka+2));ga(za);var Ba=new Array(2*Sa);ga(Ba);var Ua=new Array(Ia);ga(Ua);var Ha=new Array(wa-ba+1);ga(Ha);var $a=new Array(_a);ga($a);var Wa,qa,Za,Ga=new Array(Sa);function Va(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function Ya(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Ka(e){return e<256?Ua[e]:Ua[256+(e>>>7)]}function Xa(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Ja(e,t,n){e.bi_valid>Oa-n?(e.bi_buf|=t<>Oa-e.bi_valid,e.bi_valid+=n-Oa):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function ts(e){16===e.bi_valid?(Xa(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function ns(e,t){var n,r,i,o,a,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;o<=Aa;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;np&&(o=p,g++),l[2*r+1]=o,r>u||(e.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=l[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==g){do{o=p-1;while(0===e.bl_count[o])o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--){r=e.bl_count[o];while(0!==r)i=e.heap[--n],i>u||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}}function rs(e,t,n){var r,i,o=new Array(Aa+1),a=0;for(r=1;r<=Aa;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=es(o[s]++,s))}}function is(){var e,t,n,r,i,o=new Array(Aa+1);for(n=0,r=0;r<_a-1;r++)for($a[r]=n,e=0;e<1<>=7;r8?Xa(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ss(e,t,n,r){as(e),Xa(e,n),Xa(e,~n),sa(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function ls(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)us(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],us(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,us(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ns(e,t),rs(o,u,e.bl_count)}function hs(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s=3;t--)if(0!==e.bl_tree[2*Fa[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function gs(e,t,n,r){var i;for(Ja(e,t-257,5),Ja(e,n-1,5),Ja(e,r-4,4),i=0;i>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return ha;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return da;for(t=32;t0?(e.strm.data_type===pa&&(e.strm.data_type=ms(e)),fs(e,e.l_desc),fs(e,e.d_desc),a=ps(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?bs(e,t,n,r):e.strategy===fa||o===i?(Ja(e,(va<<1)+(r?1:0),3),cs(e,za,Ba)):(Ja(e,(ya<<1)+(r?1:0),3),gs(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),cs(e,e.dyn_ltree,e.dyn_dtree)),os(e),r&&as(e)}function xs(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Ha[n]+xa+1)]++,e.dyn_dtree[2*Ka(t)]++),e.last_lit===e.lit_bufsize-1}function ks(e,t,n,r){var i=65535&e|0,o=e>>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}function Ss(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}var Es=Ss();function Cs(e,t,n,r){var i=Es,o=r+n;e^=-1;for(var a=r;a>>8^i[255&(e^t[a])];return-1^e}var As,Os=0,Ls=1,Ts=3,Ms=4,js=5,Ps=0,Rs=1,Ns=-2,Ds=-3,Fs=-5,Is=-1,zs=1,Bs=2,Us=3,Hs=4,$s=2,Ws=8,qs=9,Zs=29,Gs=256,Vs=Gs+1+Zs,Ys=30,Ks=19,Xs=2*Vs+1,Js=15,Qs=3,el=258,tl=el+Qs+1,nl=32,rl=42,il=69,ol=73,al=91,sl=103,ll=113,ul=666,cl=1,fl=2,hl=3,dl=4,pl=3;function gl(e,t){return e.msg=oa[t],t}function ml(e){return(e<<1)-(e>4?9:0)}function vl(e){var t=e.length;while(--t>=0)e[t]=0}function yl(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(sa(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function bl(e,t){_s(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,yl(e.strm)}function wl(e,t){e.pending_buf[e.pending++]=t}function _l(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function xl(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,sa(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=ks(e.adler,t,i,n):2===e.state.wrap&&(e.adler=Cs(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function kl(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-tl?e.strstart-(e.w_size-tl):0,u=e.window,c=e.w_mask,f=e.prev,h=e.strstart+el,d=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,u[n+a]===p&&u[n+a-1]===d&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;d=u[o+a-1],p=u[o+a]}}}while((t=f[t&c])>l&&0!==--i);return a<=e.lookahead?a:e.lookahead}function Sl(e){var t,n,r,i,o,a=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-tl)){sa(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=a?r-a:0}while(--n);n=a,t=n;do{r=e.prev[--t],e.prev[t]=r>=a?r-a:0}while(--n);i+=a}if(0===e.strm.avail_in)break;if(n=xl(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=Qs){o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Sl(e),0===e.lookahead&&t===Os)return cl;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,bl(e,!1),0===e.strm.avail_out))return cl;if(e.strstart-e.block_start>=e.w_size-tl&&(bl(e,!1),0===e.strm.avail_out))return cl}return e.insert=0,t===Ms?(bl(e,!0),0===e.strm.avail_out?hl:dl):(e.strstart>e.block_start&&(bl(e,!1),e.strm.avail_out),cl)}function Cl(e,t){for(var n,r;;){if(e.lookahead=Qs&&(e.ins_h=(e.ins_h<=Qs)if(r=xs(e,e.strstart-e.match_start,e.match_length-Qs),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Qs){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=Qs&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=Qs-1)),e.prev_length>=Qs&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Qs,r=xs(e,e.strstart-1-e.prev_match,e.prev_length-Qs),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<=Qs&&e.strstart>0&&(i=e.strstart-1,r=a[i],r===a[++i]&&r===a[++i]&&r===a[++i])){o=e.strstart+el;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Qs?(n=xs(e,1,e.match_length-Qs),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=xs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(bl(e,!1),0===e.strm.avail_out))return cl}return e.insert=0,t===Ms?(bl(e,!0),0===e.strm.avail_out?hl:dl):e.last_lit&&(bl(e,!1),0===e.strm.avail_out)?cl:fl}function Ll(e,t){for(var n;;){if(0===e.lookahead&&(Sl(e),0===e.lookahead)){if(t===Os)return cl;break}if(e.match_length=0,n=xs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(bl(e,!1),0===e.strm.avail_out))return cl}return e.insert=0,t===Ms?(bl(e,!0),0===e.strm.avail_out?hl:dl):e.last_lit&&(bl(e,!1),0===e.strm.avail_out)?cl:fl}function Tl(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function Ml(e){e.window_size=2*e.w_size,vl(e.head),e.max_lazy_match=As[e.level].max_lazy,e.good_match=As[e.level].good_length,e.nice_match=As[e.level].nice_length,e.max_chain_length=As[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Qs-1,e.match_available=0,e.ins_h=0}function jl(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ws,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ua(2*Xs),this.dyn_dtree=new ua(2*(2*Ys+1)),this.bl_tree=new ua(2*(2*Ks+1)),vl(this.dyn_ltree),vl(this.dyn_dtree),vl(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ua(Js+1),this.heap=new ua(2*Vs+1),vl(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ua(2*Vs+1),vl(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Pl(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=$s,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?rl:ll,e.adler=2===t.wrap?0:1,t.last_flush=Os,ys(t),Ps):gl(e,Ns)}function Rl(e){var t=Pl(e);return t===Ps&&Ml(e.state),t}function Nl(e,t,n,r,i,o){if(!e)return Ns;var a=1;if(t===Is&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>qs||n!==Ws||r<8||r>15||t<0||t>9||o<0||o>Hs)return gl(e,Ns);8===r&&(r=9);var s=new jl;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<js||t<0)return e?gl(e,Ns):Ns;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===ul&&t!==Ms)return gl(e,0===e.avail_out?Fs:Ns);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===rl)if(2===r.wrap)e.adler=0,wl(r,31),wl(r,139),wl(r,8),r.gzhead?(wl(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),wl(r,255&r.gzhead.time),wl(r,r.gzhead.time>>8&255),wl(r,r.gzhead.time>>16&255),wl(r,r.gzhead.time>>24&255),wl(r,9===r.level?2:r.strategy>=Bs||r.level<2?4:0),wl(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(wl(r,255&r.gzhead.extra.length),wl(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Cs(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=il):(wl(r,0),wl(r,0),wl(r,0),wl(r,0),wl(r,0),wl(r,9===r.level?2:r.strategy>=Bs||r.level<2?4:0),wl(r,pl),r.status=ll);else{var a=Ws+(r.w_bits-8<<4)<<8,s=-1;s=r.strategy>=Bs||r.level<2?0:r.level<6?1:6===r.level?2:3,a|=s<<6,0!==r.strstart&&(a|=nl),a+=31-a%31,r.status=ll,_l(r,a),0!==r.strstart&&(_l(r,e.adler>>>16),_l(r,65535&e.adler)),e.adler=1}if(r.status===il)if(r.gzhead.extra){i=r.pending;while(r.gzindex<(65535&r.gzhead.extra.length)){if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Cs(e.adler,r.pending_buf,r.pending-i,i)),yl(e),i=r.pending,r.pending===r.pending_buf_size))break;wl(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++}r.gzhead.hcrc&&r.pending>i&&(e.adler=Cs(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=ol)}else r.status=ol;if(r.status===ol)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Cs(e.adler,r.pending_buf,r.pending-i,i)),yl(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindexi&&(e.adler=Cs(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=al)}else r.status=al;if(r.status===al)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Cs(e.adler,r.pending_buf,r.pending-i,i)),yl(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindexi&&(e.adler=Cs(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=sl)}else r.status=sl;if(r.status===sl&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&yl(e),r.pending+2<=r.pending_buf_size&&(wl(r,255&e.adler),wl(r,e.adler>>8&255),e.adler=0,r.status=ll)):r.status=ll),0!==r.pending){if(yl(e),0===e.avail_out)return r.last_flush=-1,Ps}else if(0===e.avail_in&&ml(t)<=ml(n)&&t!==Ms)return gl(e,Fs);if(r.status===ul&&0!==e.avail_in)return gl(e,Fs);if(0!==e.avail_in||0!==r.lookahead||t!==Os&&r.status!==ul){var l=r.strategy===Bs?Ll(r,t):r.strategy===Us?Ol(r,t):As[r.level].func(r,t);if(l!==hl&&l!==dl||(r.status=ul),l===cl||l===hl)return 0===e.avail_out&&(r.last_flush=-1),Ps;if(l===fl&&(t===Ls?ws(r):t!==js&&(bs(r,0,0,!1),t===Ts&&(vl(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),yl(e),0===e.avail_out))return r.last_flush=-1,Ps}return t!==Ms?Ps:r.wrap<=0?Rs:(2===r.wrap?(wl(r,255&e.adler),wl(r,e.adler>>8&255),wl(r,e.adler>>16&255),wl(r,e.adler>>24&255),wl(r,255&e.total_in),wl(r,e.total_in>>8&255),wl(r,e.total_in>>16&255),wl(r,e.total_in>>24&255)):(_l(r,e.adler>>>16),_l(r,65535&e.adler)),yl(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?Ps:Rs)}function Fl(e){var t;return e&&e.state?(t=e.state.status,t!==rl&&t!==il&&t!==ol&&t!==al&&t!==sl&&t!==ll&&t!==ul?gl(e,Ns):(e.state=null,t===ll?gl(e,Ds):Ps)):Ns}As=[new Tl(0,0,0,0,El),new Tl(4,4,8,4,Cl),new Tl(4,5,16,8,Cl),new Tl(4,6,32,32,Cl),new Tl(4,4,16,16,Al),new Tl(8,16,32,32,Al),new Tl(8,16,128,128,Al),new Tl(8,32,128,256,Al),new Tl(32,128,258,1024,Al),new Tl(32,258,258,4096,Al)];var Il=30,zl=12;function Bl(e,t){var n,r,i,o,a,s,l,u,c,f,h,d,p,g,m,v,y,b,w,_,x,k,S,E,C;n=e.state,r=e.next_in,E=e.input,i=r+(e.avail_in-5),o=e.next_out,C=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,f=n.wnext,h=n.window,d=n.hold,p=n.bits,g=n.lencode,m=n.distcode,v=(1<>>24,d>>>=w,p-=w,w=b>>>16&255,0===w)C[o++]=65535&b;else{if(!(16&w)){if(0===(64&w)){b=g[(65535&b)+(d&(1<>>=w,p-=w),p<15&&(d+=E[r++]<>>24,d>>>=w,p-=w,w=b>>>16&255,!(16&w)){if(0===(64&w)){b=m[(65535&b)+(d&(1<l){e.msg="invalid distance too far back",n.mode=Il;break e}if(d>>>=w,p-=w,w=o-a,x>w){if(w=x-w,w>c&&n.sane){e.msg="invalid distance too far back",n.mode=Il;break e}if(k=0,S=h,0===f){if(k+=u-w,w<_){_-=w;do{C[o++]=h[k++]}while(--w);k=o-x,S=C}}else if(f2)C[o++]=S[k++],C[o++]=S[k++],C[o++]=S[k++],_-=3;_&&(C[o++]=S[k++],_>1&&(C[o++]=S[k++]))}else{k=o-x;do{C[o++]=C[k++],C[o++]=C[k++],C[o++]=C[k++],_-=3}while(_>2);_&&(C[o++]=C[k++],_>1&&(C[o++]=C[k++]))}break}}break}}while(r>3,r-=_,p-=_<<3,d&=(1<=1;_--)if(0!==T[_])break;if(x>_&&(x=_),0===_)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;w<_;w++)if(0!==T[w])break;for(x0&&(e===Wl||1!==_))return-1;for(M[1]=0,y=1;yHl||e===Zl&&C>$l)return 1;for(;;){p=y-S,a[b]d?(g=j[P+a[b]],m=O[L+a[b]]):(g=96,m=0),l=1<>S)+u]=p<<24|g<<16|m|0}while(0!==u);l=1<>=1;if(0!==l?(A&=l-1,A+=l):A=0,b++,0===--T[y]){if(y===_)break;y=t[n+a[b]]}if(y>x&&(A&f)!==c){0===S&&(S=x),h+=w,k=y-S,E=1<Hl||e===Zl&&C>$l)return 1;c=A&f,i[c]=x<<24|k<<16|h-o|0}}return 0!==A&&(i[h+A]=y-S<<24|64<<16|0),s.bits=x,0}var Jl=0,Ql=1,eu=2,tu=4,nu=5,ru=6,iu=0,ou=1,au=2,su=-2,lu=-3,uu=-4,cu=-5,fu=8,hu=1,du=2,pu=3,gu=4,mu=5,vu=6,yu=7,bu=8,wu=9,_u=10,xu=11,ku=12,Su=13,Eu=14,Cu=15,Au=16,Ou=17,Lu=18,Tu=19,Mu=20,ju=21,Pu=22,Ru=23,Nu=24,Du=25,Fu=26,Iu=27,zu=28,Bu=29,Uu=30,Hu=31,$u=32,Wu=852,qu=592;function Zu(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Gu(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ua(320),this.work=new ua(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Vu(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=hu,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new ca(Wu),t.distcode=t.distdyn=new ca(qu),t.sane=1,t.back=-1,iu):su}function Yu(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Vu(e)):su}function Ku(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?su:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Yu(e))):su}function Xu(e,t){var n,r;return e?(r=new Gu,e.state=r,r.window=null,n=Ku(e,t),n!==iu&&(e.state=null),n):su}var Ju,Qu,ec=!0;function tc(e){if(ec){var t;Ju=new ca(512),Qu=new ca(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;Xl(Ql,e.lens,0,288,Ju,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;Xl(eu,e.lens,0,32,Qu,0,e.work,{bits:5}),ec=!1}e.lencode=Ju,e.lenbits=9,e.distcode=Qu,e.distbits=5}function nc(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(sa(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),sa(o.window,t,n-r,i,o.wnext),r-=i,r?(sa(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=Cs(n.check,A,2,0),u=0,c=0,n.mode=du;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Uu;break}if((15&u)!==fu){e.msg="unknown compression method",n.mode=Uu;break}if(u>>>=4,c-=4,x=8+(15&u),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=Uu;break}n.dmax=1<>8&1),512&n.flags&&(A[0]=255&u,A[1]=u>>>8&255,n.check=Cs(n.check,A,2,0)),u=0,c=0,n.mode=pu;case pu:while(c<32){if(0===s)break e;s--,u+=r[o++]<>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,n.check=Cs(n.check,A,4,0)),u=0,c=0,n.mode=gu;case gu:while(c<16){if(0===s)break e;s--,u+=r[o++]<>8),512&n.flags&&(A[0]=255&u,A[1]=u>>>8&255,n.check=Cs(n.check,A,2,0)),u=0,c=0,n.mode=mu;case mu:if(1024&n.flags){while(c<16){if(0===s)break e;s--,u+=r[o++]<>>8&255,n.check=Cs(n.check,A,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=vu;case vu:if(1024&n.flags&&(d=n.length,d>s&&(d=s),d&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),sa(n.head.extra,r,o,d,x)),512&n.flags&&(n.check=Cs(n.check,r,d,o)),s-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=yu;case yu:if(2048&n.flags){if(0===s)break e;d=0;do{x=r[o+d++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&d>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ku;break;case _u:while(c<32){if(0===s)break e;s--,u+=r[o++]<>>=7&c,c-=7&c,n.mode=Iu;break}while(c<3){if(0===s)break e;s--,u+=r[o++]<>>=1,c-=1,3&u){case 0:n.mode=Eu;break;case 1:if(tc(n),n.mode=Mu,t===ru){u>>>=2,c-=2;break e}break;case 2:n.mode=Ou;break;case 3:e.msg="invalid block type",n.mode=Uu}u>>>=2,c-=2;break;case Eu:u>>>=7&c,c-=7&c;while(c<32){if(0===s)break e;s--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=Uu;break}if(n.length=65535&u,u=0,c=0,n.mode=Cu,t===ru)break e;case Cu:n.mode=Au;case Au:if(d=n.length,d){if(d>s&&(d=s),d>l&&(d=l),0===d)break e;sa(i,r,o,d,a),s-=d,o+=d,l-=d,a+=d,n.length-=d;break}n.mode=ku;break;case Ou:while(c<14){if(0===s)break e;s--,u+=r[o++]<>>=5,c-=5,n.ndist=1+(31&u),u>>>=5,c-=5,n.ncode=4+(15&u),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Uu;break}n.have=0,n.mode=Lu;case Lu:while(n.have>>=3,c-=3}while(n.have<19)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},k=Xl(Jl,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,k){e.msg="invalid code lengths set",n.mode=Uu;break}n.have=0,n.mode=Tu;case Tu:while(n.have>>24,v=C>>>16&255,y=65535&C,m<=c)break;if(0===s)break e;s--,u+=r[o++]<>>=m,c-=m,n.lens[n.have++]=y;else{if(16===y){E=m+2;while(c>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=Uu;break}x=n.lens[n.have-1],d=3+(3&u),u>>>=2,c-=2}else if(17===y){E=m+3;while(c>>=m,c-=m,x=0,d=3+(7&u),u>>>=3,c-=3}else{E=m+7;while(c>>=m,c-=m,x=0,d=11+(127&u),u>>>=7,c-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Uu;break}while(d--)n.lens[n.have++]=x}}if(n.mode===Uu)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Uu;break}if(n.lenbits=9,S={bits:n.lenbits},k=Xl(Ql,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,k){e.msg="invalid literal/lengths set",n.mode=Uu;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},k=Xl(eu,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,k){e.msg="invalid distances set",n.mode=Uu;break}if(n.mode=Mu,t===ru)break e;case Mu:n.mode=ju;case ju:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=c,Bl(e,h),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,n.mode===ku&&(n.back=-1);break}for(n.back=0;;){if(C=n.lencode[u&(1<>>24,v=C>>>16&255,y=65535&C,m<=c)break;if(0===s)break e;s--,u+=r[o++]<>b)],m=C>>>24,v=C>>>16&255,y=65535&C,b+m<=c)break;if(0===s)break e;s--,u+=r[o++]<>>=b,c-=b,n.back+=b}if(u>>>=m,c-=m,n.back+=m,n.length=y,0===v){n.mode=Fu;break}if(32&v){n.back=-1,n.mode=ku;break}if(64&v){e.msg="invalid literal/length code",n.mode=Uu;break}n.extra=15&v,n.mode=Pu;case Pu:if(n.extra){E=n.extra;while(c>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Ru;case Ru:for(;;){if(C=n.distcode[u&(1<>>24,v=C>>>16&255,y=65535&C,m<=c)break;if(0===s)break e;s--,u+=r[o++]<>b)],m=C>>>24,v=C>>>16&255,y=65535&C,b+m<=c)break;if(0===s)break e;s--,u+=r[o++]<>>=b,c-=b,n.back+=b}if(u>>>=m,c-=m,n.back+=m,64&v){e.msg="invalid distance code",n.mode=Uu;break}n.offset=y,n.extra=15&v,n.mode=Nu;case Nu:if(n.extra){E=n.extra;while(c>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Uu;break}n.mode=Du;case Du:if(0===l)break e;if(d=h-l,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Uu;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),g=n.window}else g=i,p=a-n.offset,d=n.length;d>l&&(d=l),l-=d,n.length-=d;do{i[a++]=g[p++]}while(--d);0===n.length&&(n.mode=ju);break;case Fu:if(0===l)break e;i[a++]=n.length,l--,n.mode=ju;break;case Iu:if(n.wrap){while(c<32){if(0===s)break e;s--,u|=r[o++]<dc)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function Hc(e,t){for(var n=0;nqc.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitsqc.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelqc.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelqc.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=qc.Z_FILTERED&&e.strategy!=qc.Z_HUFFMAN_ONLY&&e.strategy!=qc.Z_RLE&&e.strategy!=qc.Z_FIXED&&e.strategy!=qc.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!ar(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new qc.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var r=new Error(e);r.errno=t,r.code=qc.codes[t],n.emit("error",r)};var r=qc.Z_DEFAULT_COMPRESSION;"number"===typeof e.level&&(r=e.level);var i=qc.Z_DEFAULT_STRATEGY;"number"===typeof e.strategy&&(i=e.strategy),this._binding.init(e.windowBits||qc.Z_DEFAULT_WINDOWBITS,r,e.memLevel||qc.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new dn(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=i,this.once("end",this.close)}Object.keys(Zc).forEach((function(e){Zc[Zc[e]]=e})),di(Sf,ta),Sf.prototype.params=function(e,t,n){if(eqc.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=qc.Z_FILTERED&&t!=qc.Z_HUFFMAN_ONLY&&t!=qc.Z_RLE&&t!=qc.Z_FIXED&&t!=qc.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var r=this;this.flush(qc.Z_SYNC_FLUSH,(function(){r._binding.params(e,t),r._hadError||(r._level=e,r._strategy=t,n&&n())}))}else _r(n)},Sf.prototype.reset=function(){return this._binding.reset()},Sf.prototype._flush=function(e){this._transform(new dn(0),"",e)},Sf.prototype.flush=function(e,t){var n=this._writableState;if(("function"===typeof e||void 0===e&&!t)&&(t=e,e=qc.Z_FULL_FLUSH),n.ended)t&&_r(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var r=this;this.once("drain",(function(){r.flush(t)}))}else this._flushFlag=e,this.write(new dn(0),"",t)},Sf.prototype.close=function(e){if(e&&_r(e),!this._closed){this._closed=!0,this._binding.close();var t=this;_r((function(){t.emit("close")}))}},Sf.prototype._transform=function(e,t,n){var r,i=this._writableState,o=i.ending||i.ended,a=o&&(!e||i.length===e.length);if(null===!e&&!ar(e))return n(new Error("invalid input"));a?r=qc.Z_FINISH:(r=this._flushFlag,e.length>=i.length&&(this._flushFlag=this._opts.flush||qc.Z_NO_FLUSH)),this._processChunk(e,r,n)},Sf.prototype._processChunk=function(e,t,n){var r=e&&e.length,i=this._chunkSize-this._offset,o=0,a=this,s="function"===typeof n;if(!s){var l,u=[],c=0;this.on("error",(function(e){l=e}));do{var f=this._binding.writeSync(t,e,o,r,this._buffer,this._offset,i)}while(!this._hadError&&p(f[0],f[1]));if(this._hadError)throw l;var h=dn.concat(u,c);return this.close(),h}var d=this._binding.write(t,e,o,r,this._buffer,this._offset,i);function p(l,f){if(!a._hadError){var h=i-f;if(Wc(h>=0,"have should not go down"),h>0){var d=a._buffer.slice(a._offset,a._offset+h);a._offset+=h,s?a.push(d):(u.push(d),c+=d.length)}if((0===f||a._offset>=a._chunkSize)&&(i=a._chunkSize,a._offset=0,a._buffer=new dn(a._chunkSize)),0===f){if(o+=r-l,r=l,!s)return!0;var g=a._binding.write(t,e,o,r,a._buffer,a._offset,a._chunkSize);return g.callback=p,void(g.buffer=e)}if(!s)return!1;n()}}d.buffer=e,d.callback=p},di(vf,Sf),di(yf,Sf),di(bf,Sf),di(wf,Sf),di(_f,Sf),di(xf,Sf),di(kf,Sf);var Ef={codes:Zc,createDeflate:Gc,createInflate:Vc,createDeflateRaw:Yc,createInflateRaw:Kc,createGzip:Xc,createGunzip:Jc,createUnzip:Qc,deflate:ef,deflateSync:tf,gzip:nf,gzipSync:rf,deflateRaw:of,deflateRawSync:af,unzip:sf,unzipSync:lf,inflate:uf,inflateSync:cf,gunzip:ff,gunzipSync:hf,inflateRaw:df,inflateRawSync:pf,Deflate:vf,Inflate:yf,Gzip:bf,Gunzip:wf,DeflateRaw:_f,InflateRaw:xf,Unzip:kf,Zlib:Sf};function Cf(e){for(var t="",n=0;n>2,i=(3&e)<<4|t>>4,o=(15&t)<<2|n>>6,a=63&n,s="";return s+=Of(63&r),s+=Of(63&i),s+=Of(63&o),s+=Of(63&a),s}function Of(e){return e<10?String.fromCharCode(48+e):(e-=10,e<26?String.fromCharCode(65+e):(e-=26,e<26?String.fromCharCode(97+e):(e-=26,0==e?"-":1==e?"_":"?")))}function Lf(e){var t=e.charCodeAt(0);return"_"===e?63:"-"===e?62:t>=97?t-61:t>=65?t-55:t>=48?t-48:"?"}function Tf(e){var t=Lf(e[0]),n=Lf(e[1]),r=Lf(e[2]),i=Lf(e[3]),o=t<<2|n>>4&63,a=n<<4&240|r>>2&15,s=r<<6&192|63&i;return[o,a,s]}function Mf(e){var t="",n=0;for(n=0;n0?e.classList[0]:"")+(e.className&&o?" ":"")+o,l=t.imageFormat;if("svg"!==l){var u=window&&window.location.protocol,c=("http:"===u||"https:"===u?"//":"https://")+t.umlWebSite,f=l!==Bf?".".concat(l):"",h=If.encodeuml(a),d="".concat(c,"/").concat(l,"/").concat(h).concat(f);return e.parentNode.outerHTML='
"),n(!0)}var p="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"===typeof t.svgRender&&t.svgRender)t.svgRender(p,s,a,Uf).then((function(t){e.parentNode.outerHTML='
').concat(t,"
"),n(!0)}));else if("undefined"!==typeof window&&window.fetch&&window.dispatchEvent){var g=window&&window.location.protocol,m=("http:"===g||"https:"===g?"//":"https://")+t.umlWebSite,v=l!==Bf?".".concat(l):"",y=If.encodeuml(a),b="".concat(m,"/").concat(l,"/").concat(y).concat(v);window.fetch(b).then((function(e){if(e.ok)return e.text()})).then((function(t){e.parentNode.outerHTML='
').concat(t,"
"),n(!0)}))}}))}function $f(e,t){return Uf=e.length,new Promise((function(n){var r=[];e.forEach((function(e){r.push(Hf(e,t))})),Promise.all(r).then((function(){n(!0)}))}))}var Wf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({umlWebSite:zf,imageFormat:Bf,svgRender:null},e)};function qf(e){var t=Wf(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&(console.log(k("Begin render plantuml elements.")),$f(n,this.config).then((function(){return console.log(k("End render plantuml elements.")),e})))}}]}var Zf="railroad",Gf="railroadCSS";if("undefined"===typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");var Vf=!1;function Yf(){return Vf}var Kf,Xf=!1;function Jf(){var e=Yf();if("undefined"!==typeof window){if(Xf)return e;e||(Xf=!0,F.loadStyleSheet(Gf),F.loadScript(Zf).then((function(){Vf=!0})))}return e}function Qf(e,t){if(Yf()){var n=t.id,r=t.className,i=t.data,o=t.cssLink,a=window.eval(i).format(),s=t.element.ownerDocument;return t.element.parentNode.outerHTML=o?'
'):'
'),a.addTo(s.getElementById(n)),e(!0)}setTimeout((function(){Qf(e,t)}),10)}function eh(e){return new Promise((function(t){var n=W.createElementMeta(Zf,e);if(!n)return t(!1);n.cssLink=F.getSrc(Gf),Qf(t,n)}))}function th(e){return Jf(),new Promise((function(t){var n=[];e.forEach((function(e){n.push(eh(e))})),Promise.all(n).then((function(){t(!0)}))}))}function nh(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:F.getSrc(Gf)},console.log(k("Begin render railroad elements.")),th(n).then((function(){return console.log(k("End render railroad elements.")),e})))}}]}if("undefined"===typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if("undefined"===typeof rh)var rh=window.Raphael||void 0;if("undefined"!==typeof window&&window.Diagram&&(Kf=window.Diagram,window.Diagram["Signal"]))var ih=window.Diagram;var oh=["simple","hand"];if("undefined"===typeof ih&&"undefined"!==typeof window)ih=window.SequenceJS;function ah(){return!!rh}function sh(){return ah()&&!!ih}var lh=!1,uh="sequenceCSS";function ch(){var e=sh();if("undefined"!==typeof window){if(lh)return e;e||(lh=!0,F.loadStyleSheet(uh),F.loadScript("WebFont").then((function(){return ah()?"Raphael":F.loadScript("Raphael")})).then((function(e){return rh=W.interopDefault(window[e]),F.loadScript("Snap")})).then((function(){return F.loadScript("underscore")})).then((function(){return!Kf&&window["Diagram"]&&(Kf=window["Diagram"]),F.loadScript("sequence")})).then((function(){ih=window["Diagram"],window.SequenceJS=ih,Kf&&(window["Diagram"]=Kf)})))}return e}function fh(e){var t=e.dataset.lang,n=t?JSON.parse(t):null,r="";if(n){if("boolean"===typeof n.codeblock&&n.codeblock||"string"===typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?r="diagram-center":"right"===n.align&&(r="diagram-right"))}var i=ch(),o=F.getSrc(uh),a=e.textContent.trim(),s="js-sequence"+(r?" ":"")+r,l="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());e.id=l,o&&(e.className=e.className+(e.className?" ":"")+"css-sequence",e.dataset.css=o),!i&&"undefined"!==typeof window&&window.dispatchEvent?Promise.resolve(l).then((function(e){window.dispatchEvent(new CustomEvent("sequence",{detail:{id:e,className:s,data:a,langattr:t,cssLink:o}}))})):"undefined"!==typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:l,className:s,data:a,langattr:t,cssLink:o}}))}function hh(e){return!!e.length&&(e.forEach((function(e){fh(e)})),!0)}function dh(e){if(sh()){var t=e.id,n=e.className,r=e.data,i=e.cssLink,o="hand",a=e.langattr;if(a){var s=JSON.parse(a);s&&s.theme&&-1!=oh.indexOf(s.theme)&&(o=s.theme)}var l=window.document.getElementById(t);if(l){l.parentNode.outerHTML=i?'
'):'
'),l=window.document.getElementById(t);var u=ih.parse(r),c={theme:o};return void u.drawSVG(l||t,c)}}setTimeout((function(){dh(e)}),10)}function ph(){var e=!1,t=new DOMParser;return[{type:"output",filter:function(n){var r=t.parseFromString(n,"text/html"),i="undefined"!==typeof r.body?r.body:r,o=i.querySelectorAll("code.sequence.language-sequence");return o.length&&(e||"undefined"!==typeof window&&window.dispatchEvent&&(e=!0,window.addEventListener("sequence",(function(e){e.detail&&dh(e.detail)}))),this.config={cssLink:F.getSrc(uh)}),hh(o)?i.innerHTML:n}}]}if("undefined"===typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if("undefined"===typeof gh)var gh=window.WaveDrom||void 0;var mh=0,vh=0;function yh(){return!!gh}var bh=!1;function wh(e){var t=yh();return bh||t||(bh=!0,"undefined"!==typeof window&&F.loadScript({WaveDromSkin:e}).then((function(){return F.loadScript("WaveDrom")})).then((function(e){gh=W.interopDefault(window[e])}))),t}function _h(e,t){if(yh()){var n=t.index,r=t.id,i=t.className,o=t.data,a=t.element,s=a.ownerDocument;return a.parentNode.outerHTML=W.renderCacheElement(s,r+n,i,(function(e){var t=window.eval("(".concat(o,")"));gh.RenderWaveForm(n,t,r);var i=document.getElementById("WaveDrom_Display_"+n);if(e!=i)while(i.childNodes.length)e.appendChild(i.removeChild(i.childNodes[0]))})),e(!0)}setTimeout((function(){_h(e,t)}),10)}function xh(e){return new Promise((function(t){var n=e.dataset.lang,r=n?JSON.parse(n):null,i="";if(r){if("boolean"===typeof r.codeblock&&r.codeblock||"string"===typeof r.codeblock&&"true"===r.codeblock.toLowerCase())return;r.align&&("center"===r.align?i="diagram-center":"right"===r.align&&(i="diagram-right"))}var o=e.textContent.trim(),a=(e.classList.length>0?e.classList[0]:"")+(e.className&&i?" ":"")+i,s=vh;++vh,--mh,mh||(vh=0);var l="WaveDrom_Display_";e.id=l+s;var u={element:e,index:s,id:l,className:a,data:o};_h(t,u)}))}function kh(e,t){return wh(t),new Promise((function(t){var n=[];mh=e.length,e.forEach((function(e){n.push(xh(e))})),Promise.all(n).then((function(){t(!0)}))}))}var Sh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({skin:"default"},e)};function Eh(e){var t=Sh(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(k("Begin render wavedrom elements."),kh(n,this.config.skin).then((function(){return k("End render wavedrom elements."),e})))}}]}function Ch(){return[{type:"lang",filter:function(e,t){return e.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,(function(e,n,r,i,o){var a=t.makeHtml(r.replace(new RegExp("^".concat(o),"gm"),""));return'
[').concat(n,"]:").concat(a,"
")}))}},{type:"lang",filter:function(e){return e.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,(function(e,t,n,r){return'[').concat(t,"]: ").concat(r,"")}))}},{type:"lang",filter:function(e){return e.replace(/\[\^([\d\w]+)\]/m,(function(e,t){return'[').concat(t,"]")}))}}]}function Ah(){return[{type:"lang",filter:function(e,t){return e.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,(function(e,n,r,i,o){if(r){var a=r.split("-");a.length>1?a.forEach((function(e,t,n){t>0&&(n[t]=n[t-1]+"-"+e)})):a.unshift("container"),r=a.join(" ")}return o&&(o=t.makeHtml(o)),i=i?'

'.concat(i,"

"):"",'
').concat(i).concat(o,"
")}))}}]}if("undefined"===typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if("undefined"===typeof Oh)var Oh=window.Raphael||void 0;if("undefined"===typeof Lh)var Lh=window.flowchart||void 0;function Th(){return!!Oh}function Mh(){return!("undefined"===typeof Oh||!Oh||"undefined"===typeof Lh||!Lh)}var jh=!1;function Ph(){var e=Mh();if("undefined"!==typeof window){if(jh)return e;if(!e){if(jh=!0,!Th())return F.loadScript("Raphael").then((function(e){return Oh=W.interopDefault(window[e]),F.loadScript("flowchart")})).then((function(e){Lh=W.interopDefault(window[e])})),e;F.loadScript("flowchart").then((function(e){Lh=W.interopDefault(window[e])}))}}return e}function Rh(e,t){if(Mh()){var n=t.id,r=t.className,i=t.data,o=t.options,a=t.element.ownerDocument;return t.element.parentNode.outerHTML=W.renderCacheElement(a,n,r,(function(e){Lh.parse(i).drawSVG(e,o)})),void e(!0)}setTimeout((function(){Rh(e,t)}),10)}function Nh(e,t){return new Promise((function(n){var r=W.createElementMeta("flowchart",e);if(!r)return n(!1);r.options=t,Rh(n,r)}))}function Dh(e,t,n){return Ph(),new Promise((function(r){var i=[];e.forEach((function(e){i.push(Nh(e,n))})),t.forEach((function(e){i.push(Nh(e,n))})),Promise.all(i).then((function(){r(!0)}))}))}var Fh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}}},e)};function Ih(e){var t=Fh(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.flowchart.language-flowchart"),r=t.querySelectorAll("code.flow.language-flow");return!(!n.length&&!r.length)&&(console.log(k("Begin render flowchart elements.")),Dh(n,r,this.config).then((function(){return console.log(k("End render flowchart elements.")),e})))}}]}var zh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({flavor:"github"},e)},Bh=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e&&e.mermaid||{},r=e&&e.plantuml||{},i=e&&e.katex||{},o=e&&e.vega||{},a=s({"showdown-plantuml":qf(r),"showdown-mermaid":Vt(n),"showdown-katex":Ot(i),"showdown-flowchart":Ih,"showdown-viz":ye,"showdown-vega":Oe(o),"showdown-wavedrom":Eh,"showdown-railroad":nh,"showdown-abc":oe,"showdown-echarts":It},t),l=[];for(var u in a)a.hasOwnProperty(u)&&(v.asyncExtension(u,a[u]),l.push(u));return l},Uh=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s({"showdown-toc":ue,"showdown-align":Te,"showdown-footnotes":Ch,"showdown-container":Ah,"showdown-sequence":ph},t),r=[];for(var i in n)n.hasOwnProperty(i)&&(v.extension(i,n[i]),r.push(i));return r},Hh=function(e,t,n){if(!t||"undefined"===typeof document)return!1;if(n||(n=document.getElementById(e)),n){var r=n.id,i="script-".concat(e),o=document.querySelector("#".concat(r," > #").concat(i));o?document.body.removeChild(o):(o=document.createElement("script"),o.id=i),o.type="text/javascript",o.text=t,n.appendChild(o)}return!0},$h=["github","ghost","vanilla","original","allon"],Wh=["default","forest","dark","neutral"],qh=["excel","ggplot2","quartz","vox","dark"],Zh=["canvas","svg"],Gh=["svg","png","jpg"],Vh={showdown:v,converter:null,defaultOptions:{showdown:zh(),plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},katex:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(e){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},plantuml:{},mermaid:{},katex:{},vega:{}})},setFlavor:function(e){this.showdown.setFlavor(e),this.converter&&this.converter.setFlavor(e)},addOptions:function(e){for(var t in e)"flavor"!==t&&(this.showdown.setOption(t,e[t]),this.converter&&this.converter.setOption(t,e[t]))},addExtension:function(e,t){if(this.removeExtension(e),"string"===typeof e)try{v.extension(e,t),this.converter&&this.converter.addExtension(e)}catch(gl){console.log(gl)}},removeExtension:function(e){if("string"===typeof e){if(this.converter){var t=null;try{t=v.extension(e)}catch(gl){console.log(gl)}if(!t)return;this.converter.removeExtension(t)}v.removeExtension(e)}},addAsyncExtension:function(e,t){if(this.removeAsyncExtension(e),"string"===typeof e)try{v.asyncExtension(e,t),this.converter&&this.converter.addAsyncExtension(e)}catch(gl){console.log(gl)}},removeAsyncExtension:function(e){if("string"===typeof e){if(this.converter){var t=null;try{t=v.asyncExtension(e)}catch(gl){console.log(gl)}if(!t)return;this.converter.removeAsyncExtension(t)}v.removeAsyncExtension(e)}},setCDN:function(e,t,n){"string"===typeof e&&e&&F.setCDN(e,t,n)},setShowdownFlavor:function(e){this.initDefaultOptions(),e&&(-1===$h.indexOf(e)&&(e="github"),this.defaultOptions.showdown.flavor=e,this.setFlavor(e))},setShowdownOptions:function(e){return this.initDefaultOptions(),"object"===f(e)&&e||(e={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},e),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setPlantumlOptions:function(e){this.initDefaultOptions(),"object"===f(e)&&e||(e={}),this.defaultOptions.plantuml=Object.assign(this.defaultOptions.plantuml||{},e);var t=this.defaultOptions.plantuml.imageFormat;return t&&-1===Gh.indexOf(t)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",qf(this.defaultOptions.plantuml)),this.defaultOptions.plantuml},setMermaidOptions:function(e){this.initDefaultOptions(),"object"===f(e)&&e||(e={}),this.defaultOptions.mermaid=Object.assign(this.defaultOptions.mermaid||{},e);var t=this.defaultOptions.mermaid.theme;return t&&-1===Wh.indexOf(t)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",Vt(this.defaultOptions.mermaid)),this.defaultOptions.mermaid},setKatexOptions:function(e){return this.initDefaultOptions(),"object"===f(e)&&e||(e={}),this.defaultOptions.katex=Object.assign(this.defaultOptions.katex||{},e),this.converter&&this.addAsyncExtension("showdown-katex",Ot(this.defaultOptions.katex)),this.defaultOptions.katex},setVegaOptions:function(e){this.initDefaultOptions(),"object"===f(e)&&e||(e={}),this.defaultOptions.vega=Object.assign(this.defaultOptions.vega||{},e);var t=this.defaultOptions.vega.theme;t&&-1===qh.indexOf(t)&&(this.defaultOptions.vega.theme="vox");var n=this.defaultOptions.vega.renderer;return n&&-1===Zh.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",Oe(this.defaultOptions.vega)),this.defaultOptions.vega},init:function(e){if(this.converter){var t={};if(t="boolean"===typeof e&&e?{option:!0,extension:!0}:e,"object"===f(t)){if(t.hasOwnProperty("option")&&t.option){var n=this.defaultOptions&&this.defaultOptions.showdown||{},r=zh(n);this.addOptions(r)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",qf(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",Vt(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",Oe(this.defaultOptions.vega)))}}else{var i=this.defaultOptions&&this.defaultOptions.showdown||{},o=zh(i),a=Uh(this.defaultOptions,this.defaultExtensions),s=Bh(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(o.flavor),this.converter=new v.Converter({extensions:a}).initConvertExtObj(o.flavor,s),this.addOptions(o)}return this},makeHtml:function(e,t){var n="";if("object"===f(e)){if("string"===typeof e.content)if("string"===typeof e.type)switch(e.type){case"zip":n=this.zDecode(e.content);break;default:n=this.markdownDecodeFilter(e)||e.content;break}else n=e.content}else n=e;if(this.converter&&n){var r=function(e,t,n){var r=e.querySelector(t),i="";if(r)i=r.dataset.css;else{var o;try{o=v.extension(n)}catch(s){}if(!o)try{o=v.asyncExtension(n)}catch(l){}if(o)if(Array.isArray(o)){for(var a=0;a"),{html:n,scripts:e.scripts}}))}return Promise.reject(n?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,t){return v.helper.isArray(e)||(e=[e]),new Promise((function(n,r){for(var i=0;i1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=R(e),r=n.length>0?n[0]:"",i=N("%"+r+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],O(n,A([0,1],c)));for(var f=1,h=!0;f=n.length){var v=d(a,p);h=!!v,a=h&&"get"in v&&!("originalValue"in v.get)?v.get:a[p]}else h=C(a,p),a=a[p];h&&!s&&(_[o]=a)}}return a}},"00ee":function(e,t,n){"use strict";var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"00fd":function(e,t,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},"01b4":function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=r},"0366":function(e,t,n){"use strict";var r=n("4625"),i=n("59ed"),o=n("40d5"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"04f8":function(e,t,n){"use strict";var r=n("2d00"),i=n("d039"),o=n("da84"),a=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"057f":function(e,t,n){"use strict";var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("f36a"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return a(s)}};e.exports.f=function(e){return s&&"Window"===r(e)?l(e):o(i(e))}},"05dd":function(e,t,n){(function(e){e(n("56b3"),n("a2c1"))})((function(e){e.defineOption("autoCloseTags",!1,(function(t,n,i){if(i!=e.Init&&i&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return o(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return r(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return e.Pass;for(var i=r.listSelections(),o=[],l=r.getOption("autoCloseTags"),u=0;uc.ch&&(m=m.slice(0,m.length-f.end+c.ch));var b=m.toLowerCase();if(!m||"string"==f.type&&(f.end!=c.ch||!/[\"\']/.test(f.string.charAt(f.string.length-1))||1==f.string.length)||"tag"==f.type&&p.close||f.string.indexOf("/")==c.ch-f.start-1||v&&a(v,b)>-1||s(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(d)||[],m,c,!0))return e.Pass;var w="object"==typeof l&&l.emptyTags;if(w&&a(w,m)>-1)o[u]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var _=y&&a(y,b)>-1;o[u]={indent:_,text:">"+(_?"\n\n":"")+"",newPos:_?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var x="object"==typeof l&&l.dontIndentOnAutoClose;for(u=i.length-1;u>=0;u--){var k=o[u];r.replaceRange(k.text,i[u].head,i[u].anchor,"+insert");var S=r.listSelections().slice(0);S[u]={head:k.newPos,anchor:k.newPos},r.setSelections(S),!x&&k.indent&&(r.indentLine(k.newPos.line,null,!0),r.indentLine(k.newPos.line+1,null,!0))}}function i(t,n){for(var r=t.listSelections(),i=[],o=n?"/":""!=t.getLine(c.line).charAt(f.end)&&(p+=">"),i[u]=p}if(t.replaceSelections(i),r=t.listSelections(),!l)for(u=0;u=0;u--){if(n[u]!=r)break;++l}i=s.to;for(u=1;u=0)e[t]=0}var u=0,c=1,f=2,h=3,d=258,p=29,m=256,g=m+1+p,v=30,y=19,b=2*g+1,w=15,_=16,x=7,k=256,S=16,E=17,C=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],O=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=512,j=new Array(2*(g+2));l(j);var P=new Array(2*v);l(P);var R=new Array(M);l(R);var N=new Array(d-h+1);l(N);var D=new Array(p);l(D);var F,I,z,B=new Array(v);function U(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function H(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function $(e){return e<256?R[e]:R[256+(e>>>7)]}function W(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function q(e,t,n){e.bi_valid>_-n?(e.bi_buf|=t<>_-e.bi_valid,e.bi_valid+=n-_):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function V(e){16===e.bi_valid?(W(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function Y(e,t){var n,r,i,o,a,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(o=0;o<=w;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;np&&(o=p,m++),l[2*r+1]=o,r>u||(e.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=l[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==m){do{o=p-1;while(0===e.bl_count[o])o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--){r=e.bl_count[o];while(0!==r)i=e.heap[--n],i>u||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}}function K(e,t,n){var r,i,o=new Array(w+1),a=0;for(r=1;r<=w;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=G(o[s]++,s))}}function X(){var e,t,n,r,i,o=new Array(w+1);for(n=0,r=0;r>=7;r8?W(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ee(e,t,n,i){Q(e),i&&(W(e,n),W(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function te(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)ne(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ne(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,ne(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Y(e,t),K(o,u,e.bl_count)}function oe(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s=3;t--)if(0!==e.bl_tree[2*T[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function le(e,t,n,r){var i;for(q(e,t-257,5),q(e,n-1,5),q(e,r-4,4),i=0;i>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t0?(e.strm.data_type===s&&(e.strm.data_type=ue(e)),ie(e,e.l_desc),ie(e,e.d_desc),l=se(e),o=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=o&&(o=a)):o=a=n+5,n+4<=o&&-1!==t?he(e,t,n,r):e.strategy===i||a===o?(q(e,(c<<1)+(r?1:0),3),re(e,j,P)):(q(e,(f<<1)+(r?1:0),3),le(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),re(e,e.dyn_ltree,e.dyn_dtree)),J(e),r&&Q(e)}function me(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(N[n]+m+1)]++,e.dyn_dtree[2*$(t)]++),e.last_lit===e.lit_bufsize-1}t._tr_init=fe,t._tr_stored_block=he,t._tr_flush_block=pe,t._tr_tally=me,t._tr_align=de},"07fa":function(e,t,n){"use strict";var r=n("50c4");e.exports=function(e){return r(e.length)}},"0960":function(e,t,n){e.exports=n("b19a")},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},"0a36":function(e,t,n){"use strict";var r={__proto__:null,foo:{}},i=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof i)}},"0b42":function(e,t,n){"use strict";var r=n("e8b5"),i=n("68ee"),o=n("861d"),a=n("b622"),s=a("species"),l=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,i(t)&&(t===l||r(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?l:t}},"0b43":function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"0cb2":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,h){var d=n+e.length,p=r.length,m=c;return void 0!==f&&(f=i(f),m=u),s(h,m,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,d);case"<":u=f[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>p){var h=o(c/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},"0cfb":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d25":function(e,t,n){"use strict";e.exports=TypeError},"0d26":function(e,t,n){"use strict";var r=n("e330"),i=Error,o=r("".replace),a=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"0d51":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},"107c":function(e,t,n){"use strict";var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"10b2":function(e,t,n){(function(e){e(n("56b3"))})((function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:l,Enter:u};function o(e){for(var t=0;t=0;l--){var c=a[l].head;t.replaceRange("",n(c.line,c.ch-1),n(c.line,c.ch+1),"+delete")}}function u(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function f(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function h(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),l=a.indexOf(i);if(-1==l)return e.Pass;for(var u,h=r(o,"closeBefore"),d=r(o,"triples"),m=a.charAt(l+1)==i,g=t.listSelections(),v=l%2==0,y=0;y1&&d.indexOf(i)>=0&&t.getRange(n(_.line,_.ch-2),_)==i+i){if(_.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(_.line,_.ch-2))))return e.Pass;b="addFour"}else if(m){var k=0==_.ch?" ":t.getRange(n(_.line,_.ch-1),_);if(e.isWordChar(x)||k==i||e.isWordChar(k))return e.Pass;b="both"}else{if(!v||!(0===x.length||/\s/.test(x)||h.indexOf(x)>-1))return e.Pass;b="both"}else b=m&&p(t,_)?"both":d.indexOf(i)>=0&&t.getRange(_,n(_.line,_.ch+3))==i+i+i?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var S=l%2?a.charAt(l-1):i,E=l%2?i:a.charAt(l+1);t.operation((function(){if("skip"==u)c(t,1);else if("skipThree"==u)c(t,3);else if("surround"==u){for(var e=t.getSelections(),n=0;n1||"".split(/.?/).length;o("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=l(this),a=s(t)?void 0:d(t,e);return a?r(a,t,o,n):r(i,h(o),t,n)},function(e,r){var o=a(this),s=h(e);if(!k){var l=n(i,o,s,r,i!==t);if(l.done)return l.value}var d=u(o,RegExp),m=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"g":"y"),x=new d(v?"^(?:"+o.source+")":o,g),S=void 0===r?y:r>>>0;if(0===S)return[];if(0===s.length)return null===p(x,s)?[s]:[];var E=0,C=0,A=[];while(C1?arguments[1]:void 0)}},"19aa":function(e,t,n){"use strict";var r=n("3a9b"),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},"1a2d":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1be4":function(e,t,n){"use strict";var r=n("d066");e.exports=r("document","documentElement")},"1c7e":function(e,t,n){"use strict";var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(l){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},"1cdc":function(e,t,n){"use strict";var r=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1ef7":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,o=0,a=t.exec(e.getLine(r)),s=a[1];do{i+=1;var l=r+i,u=e.getLine(l),c=t.exec(u);if(c){var f=c[1],h=parseInt(a[3],10)+i-o,d=parseInt(c[3],10),p=d;if(s!==f||isNaN(d)){if(s.length>f.length)return;if(s.lengthd&&(p=h+1),e.replaceRange(u.replace(t,f+p+c[4]+c[5]),{line:l,ch:0},{line:l,ch:u.length})}}while(c)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),s=[],l=0;l\s*$/.test(p),y=!/>\s*$/.test(p);(v||y)&&o.replaceRange("",{line:u.line,ch:0},{line:u.line,ch:u.ch+1}),s[l]="\n"}else{var b=m[1],w=m[5],_=!(r.test(m[2])||m[2].indexOf(">")>=0),x=_?parseInt(m[3],10)+1+m[4]:m[2].replace("x"," ");s[l]="\n"+b+x+w,_&&i(o,u)}}o.replaceSelections(s)}}))},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=m;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(f(e,a,s)),c=0,h=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2266:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("825a"),a=n("0d51"),s=n("e95a"),l=n("07fa"),u=n("3a9b"),c=n("9a1f"),f=n("35a1"),h=n("2a62"),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var g,v,y,b,w,_,x,k=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),O=r(t,k),L=function(e){return g&&h(g,"normal",e),new p(!0,e)},T=function(e){return S?(o(e),A?O(e[0],e[1],L):O(e[0],e[1])):A?O(e,L):O(e)};if(E)g=e.iterator;else if(C)g=e;else{if(v=f(e),!v)throw new d(a(e)+" is not iterable");if(s(v)){for(y=0,b=l(e);b>y;y++)if(w=T(e[y]),w&&u(m,w))return w;return new p(!1)}g=c(e,v)}_=E?e.next:g.next;while(!(x=i(_,g)).done){try{w=T(x.value)}catch(M){h(g,"throw",M)}if("object"==typeof w&&w&&u(m,w))return w}return new p(!1)}},"23cb":function(e,t,n){"use strict";var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){"use strict";var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,f,h,d,p,m=e.target,g=e.global,v=e.stat;if(c=g?r:v?r[m]||s(m,{}):r[m]&&r[m].prototype,c)for(f in t){if(d=t[f],e.dontCallGetSet?(p=i(c,f),h=p&&p.value):h=c[f],n=u(g?f:m+(v?".":"#")+f,e.forced),!n&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&o(d,"sham",!0),a(c,f,d,e)}}},"241c":function(e,t,n){"use strict";var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l}).call(this,n("4362"))},"25f0":function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),o=n("825a"),a=n("577e"),s=n("d039"),l=n("90d8"),u="toString",c=RegExp.prototype,f=c[u],h=s((function(){return"/a/b"!==f.call({source:"a",flags:"b"})})),d=r&&f.name!==u;(h||d)&&i(c,u,(function(){var e=o(this),t=a(e.source),n=a(l(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("edd0"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},"27bf":function(e,t,n){"use strict";e.exports=a;var r=n("b19a"),i=Object.create(n("3a7c"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===h?JSON.stringify(e,y,2):String(e)}function y(e,t){return t&&t.__v_isRef?t.value:t}function b(e){var t=parseFloat(e);return isNaN(t)?e:t}function w(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(r,1)}}var k=Object.prototype.hasOwnProperty;function S(e,t){return k.call(e,t)}function E(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var C=/-(\w)/g,A=E((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),O=E((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),L=/\B([A-Z])/g,T=E((function(e){return e.replace(L,"-$1").toLowerCase()}));function M(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function j(e,t){return e.bind(t)}var P=Function.prototype.bind?j:M;function R(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function N(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n0,ie=te&&te.indexOf("edge/")>0;te&&te.indexOf("android");var oe=te&&/iphone|ipad|ipod|ios/.test(te);te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te);var ae,se=te&&te.match(/firefox\/(\d+)/),le={}.watch,ue=!1;if(ee)try{var ce={};Object.defineProperty(ce,"passive",{get:function(){ue=!0}}),window.addEventListener("test-passive",null,ce)}catch(Qa){}var fe=function(){return void 0===ae&&(ae=!ee&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),ae},he=ee&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function de(e){return"function"===typeof e&&/native code/.test(e.toString())}var pe,ge="undefined"!==typeof Symbol&&de(Symbol)&&"undefined"!==typeof Reflect&&de(Reflect.ownKeys);pe="undefined"!==typeof Set&&de(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var me=null;function ve(e){void 0===e&&(e=null),e||me&&me._scope.off(),me=e,e&&e._scope.on()}var ye=function(){function e(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),be=function(e){void 0===e&&(e="");var t=new ye;return t.text=e,t.isComment=!0,t};function we(e){return new ye(void 0,void 0,void 0,String(e))}function _e(e){var t=new ye(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}"function"===typeof SuppressedError&&SuppressedError;var xe=0,ke=[],Se=function(){for(var e=0;e0&&(r=ut(r,"".concat(t||"","_").concat(n)),lt(r[0])&<(c)&&(f[l]=we(c.text+r[0].text),r.shift()),f.push.apply(f,r)):u(r)?lt(c)?f[l]=we(c.text+r):""!==r&&f.push(we(r)):lt(r)&<(c)?f[l]=we(c.text+r.text):(s(e._isVList)&&a(r.tag)&&o(r.key)&&a(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),f.push(r)));return f}function ct(e,t){var n,r,o,s,l=null;if(i(e)||"string"===typeof e)for(l=new Array(e.length),n=0,r=e.length;n0,s=t?!!t.$stable:!a,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==r&&l===i.$key&&!a&&!i.$hasNormal)return i;for(var u in o={},t)t[u]&&"$"!==u[0]&&(o[u]=Lt(e,n,u,t[u]))}else o={};for(var c in n)c in o||(o[c]=Tt(n,c));return t&&Object.isExtensible(t)&&(t._normalized=o),K(o,"$stable",s),K(o,"$key",l),K(o,"$hasNormal",a),o}function Lt(e,t,n,r){var o=function(){var t=me;ve(e);var n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"===typeof n&&!i(n)?[n]:st(n);var o=n&&n[0];return ve(t),n&&(!o||1===n.length&&o.isComment&&!At(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function Tt(e,t){return function(){return e[t]}}function Mt(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=jt(e);ve(e),Ae();var i=Xt(n,null,[e._props||$e({}),r],e,"setup");if(Oe(),ve(),c(i))t.render=i;else if(f(i))if(e._setupState=i,i.__sfc){var o=e._setupProxy={};for(var a in i)"__sfc"!==a&&Ge(o,i,a)}else for(var a in i)Y(a)||Ge(e,i,a);else 0}}function jt(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};K(t,"_v_attr_proxy",!0),Pt(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};Pt(t,e.$listeners,r,e,"$listeners")}return e._listenersProxy},get slots(){return Nt(e)},emit:P(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return Ge(e,t,n)}))}}}function Pt(e,t,n,r,i){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,Rt(e,a,r,i));for(var a in e)a in t||(o=!0,delete e[a]);return o}function Rt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function Nt(e){return e._slotsProxy||Dt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function Dt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function Ft(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=Et(t._renderChildren,i),e.$scopedSlots=n?Ot(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=function(t,n,r,i){return Zt(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Zt(e,t,n,r,i,!0)};var o=n&&n.data;ze(e,"$attrs",o&&o.attrs||r,null,!0),ze(e,"$listeners",t._parentListeners||r,null,!0)}var It=null;function zt(e){St(e.prototype),e.prototype.$nextTick=function(e){return cn(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t._parentVnode;r&&e._isMounted&&(e.$scopedSlots=Ot(e.$parent,r.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&Dt(e._slotsProxy,e.$scopedSlots)),e.$vnode=r;var o,a=me,s=It;try{ve(e),It=e,o=n.call(e._renderProxy,e.$createElement)}catch(Qa){Kt(Qa,e,"render"),o=e._vnode}finally{It=s,ve(a)}return i(o)&&1===o.length&&(o=o[0]),o instanceof ye||(o=be()),o.parent=r,o}}function Bt(e,t){return(e.__esModule||ge&&"Module"===e[Symbol.toStringTag])&&(e=e.default),f(e)?t.extend(e):e}function Ut(e,t,n,r,i){var o=be();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function Ht(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=It;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],i=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return x(r,n)}));var c=function(e){for(var t=0,n=r.length;t1?R(n):n;for(var r=R(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Wn=function(){return qn.now()})}var Zn=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Gn(){var e,t;for($n=Wn(),Bn=!0,Dn.sort(Zn),Un=0;UnUn&&Dn[n].id>e.id)n--;Dn.splice(n+1,0,e)}else Dn.push(e);zn||(zn=!0,cn(Gn))}}function Jn(e){var t=e.$options.provide;if(t){var n=c(t)?t.call(e):t;if(!f(n))return;for(var r=Qe(e),i=ge?Reflect.ownKeys(n):Object.keys(n),o=0;o-1)if(o&&!S(i,"default"))a=!1;else if(""===a||a===T(e)){var l=Mr(String,i.type);(l<0||s-1)return this;var n=R(arguments,1);return n.unshift(this),c(e.install)?e.install.apply(e,n):c(e)&&e.apply(null,n),t.push(e),this}}function ei(e){e.mixin=function(e){return this.options=Sr(this.options,e),this}}function ti(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=or(e)||or(n.options);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Sr(n.options,e),a["super"]=n,a.options.props&&ni(a),a.options.computed&&ri(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,q.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=N({},a.options),i[r]=a,a}}function ni(e){var t=e.options.props;for(var n in t)Pr(e.prototype,"_props",n)}function ri(e){var t=e.options.computed;for(var n in t)Br(e.prototype,n,t[n])}function ii(e){q.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&d(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&c(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function oi(e){return e&&(or(e.Ctor.options)||e.tag)}function ai(e,t){return i(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function si(e,t){var n=e.cache,r=e.keys,i=e._vnode,o=e.$vnode;for(var a in n){var s=n[a];if(s){var l=s.name;l&&!t(l)&&li(n,a,r,i)}}o.componentOptions.children=void 0}function li(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,x(n,t)}Vr(Jr),Zr(Jr),En(Jr),Ln(Jr),zt(Jr);var ui=[String,RegExp,Array],ci={name:"keep-alive",abstract:!0,props:{include:ui,exclude:ui,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:oi(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&li(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)li(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){si(e,(function(e){return ai(t,e)}))})),this.$watch("exclude",(function(t){si(e,(function(e){return!ai(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=$t(e),n=t&&t.componentOptions;if(n){var r=oi(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!ai(o,r))||a&&r&&ai(a,r))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,x(u,c),u.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},fi={KeepAlive:ci};function hi(e){var t={get:function(){return G}};Object.defineProperty(e,"config",t),e.util={warn:dr,extend:N,mergeOptions:Sr,defineReactive:ze},e.set=Be,e.delete=Ue,e.nextTick=cn,e.observable=function(e){return Ie(e),e},e.options=Object.create(null),q.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,N(e.options.components,fi),Qr(e),ei(e),ti(e),ii(e)}hi(Jr),Object.defineProperty(Jr.prototype,"$isServer",{get:fe}),Object.defineProperty(Jr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Jr,"FunctionalRenderContext",{value:tr}),Jr.version=dn;var di=w("style,class"),pi=w("input,textarea,option,select,progress"),gi=function(e,t,n){return"value"===n&&pi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},mi=w("contenteditable,draggable,spellcheck"),vi=w("events,caret,typing,plaintext-only"),yi=function(e,t){return ki(t)||"false"===t?"false":"contenteditable"===e&&vi(t)?t:"true"},bi=w("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),wi="http://www.w3.org/1999/xlink",_i=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xi=function(e){return _i(e)?e.slice(6,e.length):""},ki=function(e){return null==e||!1===e};function Si(e){var t=e.data,n=e,r=e;while(a(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Ei(r.data,t));while(a(n=n.parent))n&&n.data&&(t=Ei(t,n.data));return Ci(t.staticClass,t.class)}function Ei(e,t){return{staticClass:Ai(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Ci(e,t){return a(e)||a(t)?Ai(e,Oi(t)):""}function Ai(e,t){return e?t?e+" "+t:e:t||""}function Oi(e){return Array.isArray(e)?Li(e):f(e)?Ti(e):"string"===typeof e?e:""}function Li(e){for(var t,n="",r=0,i=e.length;r-1?Di[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Di[e]=/HTMLUnknownElement/.test(t.toString())}var Ii=w("text,number,password,search,email,tel,url");function zi(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Bi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Ui(e,t){return document.createElementNS(Mi[e],t)}function Hi(e){return document.createTextNode(e)}function $i(e){return document.createComment(e)}function Wi(e,t,n){e.insertBefore(t,n)}function qi(e,t){e.removeChild(t)}function Zi(e,t){e.appendChild(t)}function Gi(e){return e.parentNode}function Vi(e){return e.nextSibling}function Yi(e){return e.tagName}function Ki(e,t){e.textContent=t}function Xi(e,t){e.setAttribute(t,"")}var Ji=Object.freeze({__proto__:null,createElement:Bi,createElementNS:Ui,createTextNode:Hi,createComment:$i,insertBefore:Wi,removeChild:qi,appendChild:Zi,parentNode:Gi,nextSibling:Vi,tagName:Yi,setTextContent:Ki,setStyleScope:Xi}),Qi={create:function(e,t){eo(t)},update:function(e,t){e.data.ref!==t.data.ref&&(eo(e,!0),eo(t))},destroy:function(e){eo(e,!0)}};function eo(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,s=t?null:o,l=t?void 0:o;if(c(n))Xt(n,r,[s],r,"template ref function");else{var u=e.data.refInFor,f="string"===typeof n||"number"===typeof n,h=Ze(n),d=r.$refs;if(f||h)if(u){var p=f?d[n]:n.value;t?i(p)&&x(p,o):i(p)?p.includes(o)||p.push(o):f?(d[n]=[o],to(r,n,d[n])):n.value=[o]}else if(f){if(t&&d[n]!==o)return;d[n]=l,to(r,n,s)}else if(h){if(t&&n.value!==o)return;n.value=s}else 0}}}function to(e,t,n){var r=e._setupState;r&&S(r,t)&&(Ze(r[t])?r[t].value=n:r[t]=n)}var no=new ye("",{},[]),ro=["create","activate","update","remove","destroy"];function io(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&oo(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function oo(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||Ii(r)&&Ii(i)}function ao(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,a(i)&&(o[i]=r);return o}function so(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;tg?(f=o(n[y+1])?null:n[y+1].elm,S(e,f,n,d,y,r)):d>y&&C(t,h,g)}function L(e,t,n,r){for(var i=n;i-1?bo(e,t,n):bi(t)?ki(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):mi(t)?e.setAttribute(t,yi(t,n)):_i(t)?ki(n)?e.removeAttributeNS(wi,xi(t)):e.setAttributeNS(wi,t,n):bo(e,t,n)}function bo(e,t,n){if(ki(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var wo={create:vo,update:vo};function _o(e,t){var n=t.elm,r=t.data,i=e.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=Si(t),l=n._transitionClasses;a(l)&&(s=Ai(s,Oi(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var xo,ko={create:_o,update:_o},So="__r",Eo="__c";function Co(e){if(a(e[So])){var t=ne?"change":"input";e[t]=[].concat(e[So],e[t]||[]),delete e[So]}a(e[Eo])&&(e.change=[].concat(e[Eo],e.change||[]),delete e[Eo])}function Ao(e,t,n){var r=xo;return function i(){var o=t.apply(null,arguments);null!==o&&To(e,i,n,r)}}var Oo=tn&&!(se&&Number(se[1])<=53);function Lo(e,t,n,r){if(Oo){var i=$n,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}xo.addEventListener(e,t,ue?{capture:n,passive:r}:n)}function To(e,t,n,r){(r||xo).removeEventListener(e,t._wrapper||t,n)}function Mo(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},r=e.data.on||{};xo=t.elm||e.elm,Co(n),nt(n,r,Lo,To,Ao,t.context),xo=void 0}}var jo,Po={create:Mo,update:Mo,destroy:function(e){return Mo(e,no)}};function Ro(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,i=t.elm,l=e.data.domProps||{},u=t.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.domProps=N({},u)),l)n in u||(i[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var c=o(r)?"":String(r);No(i,c)&&(i.value=c)}else if("innerHTML"===n&&Pi(i.tagName)&&o(i.innerHTML)){jo=jo||document.createElement("div"),jo.innerHTML="".concat(r,"");var f=jo.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(f.firstChild)i.appendChild(f.firstChild)}else if(r!==l[n])try{i[n]=r}catch(Qa){}}}}function No(e,t){return!e.composing&&("OPTION"===e.tagName||Do(e,t)||Fo(e,t))}function Do(e,t){var n=!0;try{n=document.activeElement!==e}catch(Qa){}return n&&e.value!==t}function Fo(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return b(n)!==b(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var Io={create:Ro,update:Ro},zo=E((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Bo(e){var t=Uo(e.style);return e.staticStyle?N(e.staticStyle,t):t}function Uo(e){return Array.isArray(e)?D(e):"string"===typeof e?zo(e):e}function Ho(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=Bo(i.data))&&N(r,n)}(n=Bo(e.data))&&N(r,n);var o=e;while(o=o.parent)o.data&&(n=Bo(o.data))&&N(r,n);return r}var $o,Wo=/^--/,qo=/\s*!important$/,Zo=function(e,t,n){if(Wo.test(t))e.style.setProperty(t,n);else if(qo.test(n))e.style.setProperty(T(t),n.replace(qo,""),"important");else{var r=Vo(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(Xo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Qo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Xo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function ea(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&N(t,ta(e.name||"v")),N(t,e),t}return"string"===typeof e?ta(e):void 0}}var ta=E((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),na=ee&&!re,ra="transition",ia="animation",oa="transition",aa="transitionend",sa="animation",la="animationend";na&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(oa="WebkitTransition",aa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(sa="WebkitAnimation",la="webkitAnimationEnd"));var ua=ee?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ca(e){ua((function(){ua(e)}))}function fa(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Jo(e,t))}function ha(e,t){e._transitionClasses&&x(e._transitionClasses,t),Qo(e,t)}function da(e,t,n){var r=ga(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ra?aa:la,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(n=ra,c=a,f=o.length):t===ia?u>0&&(n=ia,c=u,f=l.length):(c=Math.max(a,u),n=c>0?a>u?ra:ia:null,f=n?n===ra?o.length:l.length:0);var h=n===ra&&pa.test(r[oa+"Property"]);return{type:n,timeout:c,propCount:f,hasTransform:h}}function ma(e,t){while(e.length1}function xa(e,t){!0!==t.data.show&&ya(t)}var ka=ee?{create:xa,activate:xa,remove:function(e,t){!0!==e.data.show?ba(e,t):t()}}:{},Sa=[wo,ko,Po,Io,Ko,ka],Ea=Sa.concat(mo),Ca=so({nodeOps:Ji,modules:Ea});re&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ra(e,"input")}));var Aa={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?rt(n,"postpatch",(function(){Aa.componentUpdated(e,t,n)})):Oa(e,t,n.context),e._vOptions=[].map.call(e.options,Ma)):("textarea"===n.tag||Ii(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ja),e.addEventListener("compositionend",Pa),e.addEventListener("change",Pa),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Oa(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ma);if(i.some((function(e,t){return!B(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return Ta(e,i)})):t.value!==t.oldValue&&Ta(t.value,i);o&&Ra(e,"change")}}}};function Oa(e,t,n){La(e,t,n),(ne||ie)&&setTimeout((function(){La(e,t,n)}),0)}function La(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(B(Ma(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ta(e,t){return t.every((function(t){return!B(t,e)}))}function Ma(e){return"_value"in e?e._value:e.value}function ja(e){e.target.composing=!0}function Pa(e){e.target.composing&&(e.target.composing=!1,Ra(e.target,"input"))}function Ra(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Na(e){return!e.componentInstance||e.data&&e.data.transition?e:Na(e.componentInstance._vnode)}var Da={bind:function(e,t,n){var r=t.value;n=Na(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ya(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=Na(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?ya(n,(function(){e.style.display=e.__vOriginalDisplay})):ba(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Fa={model:Aa,show:Da},Ia={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function za(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?za($t(t.children)):e}function Ba(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[A(r)]=i[r];return t}function Ua(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Ha(e){while(e=e.parent)if(e.data.transition)return!0}function $a(e,t){return t.key===e.key&&t.tag===e.tag}var Wa=function(e){return e.tag||At(e)},qa=function(e){return"show"===e.name},Za={name:"transition",props:Ia,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Wa),n.length)){0;var r=this.mode;0;var i=n[0];if(Ha(this.$vnode))return i;var o=za(i);if(!o)return i;if(this._leaving)return Ua(e,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:u(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Ba(this),l=this._vnode,c=za(l);if(o.data.directives&&o.data.directives.some(qa)&&(o.data.show=!0),c&&c.data&&!$a(o,c)&&!At(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=N({},s);if("out-in"===r)return this._leaving=!0,rt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ua(e,i);if("in-out"===r){if(At(o))return l;var h,d=function(){h()};rt(s,"afterEnter",d),rt(s,"enterCancelled",d),rt(f,"delayLeave",(function(e){h=e}))}}return i}}},Ga=N({tag:String,moveClass:String},Ia);delete Ga.mode;var Va={props:Ga,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=An(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ba(this),s=0;s1?arguments[1]:void 0,t.length)),r=s(e);return h(t,n,n+r.length)===r}})},"2ceb":function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},"2cf4":function(e,t,n){"use strict";var r,i,o,a,s=n("da84"),l=n("2ba4"),u=n("0366"),c=n("1626"),f=n("1a2d"),h=n("d039"),d=n("1be4"),p=n("f36a"),g=n("cc12"),m=n("d6d6"),v=n("1cdc"),y=n("605d"),b=s.setImmediate,w=s.clearImmediate,_=s.process,x=s.Dispatch,k=s.Function,S=s.MessageChannel,E=s.String,C=0,A={},O="onreadystatechange";h((function(){r=s.location}));var L=function(e){if(f(A,e)){var t=A[e];delete A[e],t()}},T=function(e){return function(){L(e)}},M=function(e){L(e.data)},j=function(e){s.postMessage(E(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){m(arguments.length,1);var t=c(e)?e:k(e),n=p(arguments,1);return A[++C]=function(){l(t,void 0,n)},i(C),C},w=function(e){delete A[e]},y?i=function(e){_.nextTick(T(e))}:x&&x.now?i=function(e){x.now(T(e))}:S&&!v?(o=new S,a=o.port2,o.port1.onmessage=M,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(j)?(i=j,s.addEventListener("message",M,!1)):i=O in g("script")?function(e){d.appendChild(g("script"))[O]=function(){d.removeChild(this),L(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},"2d00":function(e,t,n){"use strict";var r,i,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f62":function(e,t,n){"use strict";(function(e){ +var r=Object.freeze({}),i=Array.isArray;function o(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function s(e){return!0===e}function l(e){return!1===e}function u(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return"function"===typeof e}function f(e){return null!==e&&"object"===typeof e}var h=Object.prototype.toString;function d(e){return"[object Object]"===h.call(e)}function p(e){return"[object RegExp]"===h.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function g(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===h?JSON.stringify(e,y,2):String(e)}function y(e,t){return t&&t.__v_isRef?t.value:t}function b(e){var t=parseFloat(e);return isNaN(t)?e:t}function w(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(r,1)}}var k=Object.prototype.hasOwnProperty;function S(e,t){return k.call(e,t)}function E(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var C=/-(\w)/g,A=E((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),O=E((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),L=/\B([A-Z])/g,T=E((function(e){return e.replace(L,"-$1").toLowerCase()}));function M(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function j(e,t){return e.bind(t)}var P=Function.prototype.bind?j:M;function R(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function N(e,t){for(var n in t)e[n]=t[n];return e}function D(e){for(var t={},n=0;n0,ie=te&&te.indexOf("edge/")>0;te&&te.indexOf("android");var oe=te&&/iphone|ipad|ipod|ios/.test(te);te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te);var ae,se=te&&te.match(/firefox\/(\d+)/),le={}.watch,ue=!1;if(ee)try{var ce={};Object.defineProperty(ce,"passive",{get:function(){ue=!0}}),window.addEventListener("test-passive",null,ce)}catch(Qa){}var fe=function(){return void 0===ae&&(ae=!ee&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),ae},he=ee&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function de(e){return"function"===typeof e&&/native code/.test(e.toString())}var pe,me="undefined"!==typeof Symbol&&de(Symbol)&&"undefined"!==typeof Reflect&&de(Reflect.ownKeys);pe="undefined"!==typeof Set&&de(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge=null;function ve(e){void 0===e&&(e=null),e||ge&&ge._scope.off(),ge=e,e&&e._scope.on()}var ye=function(){function e(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),be=function(e){void 0===e&&(e="");var t=new ye;return t.text=e,t.isComment=!0,t};function we(e){return new ye(void 0,void 0,void 0,String(e))}function _e(e){var t=new ye(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}"function"===typeof SuppressedError&&SuppressedError;var xe=0,ke=[],Se=function(){for(var e=0;e0&&(r=ut(r,"".concat(t||"","_").concat(n)),lt(r[0])&<(c)&&(f[l]=we(c.text+r[0].text),r.shift()),f.push.apply(f,r)):u(r)?lt(c)?f[l]=we(c.text+r):""!==r&&f.push(we(r)):lt(r)&<(c)?f[l]=we(c.text+r.text):(s(e._isVList)&&a(r.tag)&&o(r.key)&&a(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),f.push(r)));return f}function ct(e,t){var n,r,o,s,l=null;if(i(e)||"string"===typeof e)for(l=new Array(e.length),n=0,r=e.length;n0,s=t?!!t.$stable:!a,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==r&&l===i.$key&&!a&&!i.$hasNormal)return i;for(var u in o={},t)t[u]&&"$"!==u[0]&&(o[u]=Lt(e,n,u,t[u]))}else o={};for(var c in n)c in o||(o[c]=Tt(n,c));return t&&Object.isExtensible(t)&&(t._normalized=o),K(o,"$stable",s),K(o,"$key",l),K(o,"$hasNormal",a),o}function Lt(e,t,n,r){var o=function(){var t=ge;ve(e);var n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"===typeof n&&!i(n)?[n]:st(n);var o=n&&n[0];return ve(t),n&&(!o||1===n.length&&o.isComment&&!At(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function Tt(e,t){return function(){return e[t]}}function Mt(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=jt(e);ve(e),Ae();var i=Xt(n,null,[e._props||$e({}),r],e,"setup");if(Oe(),ve(),c(i))t.render=i;else if(f(i))if(e._setupState=i,i.__sfc){var o=e._setupProxy={};for(var a in i)"__sfc"!==a&&Ge(o,i,a)}else for(var a in i)Y(a)||Ge(e,i,a);else 0}}function jt(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};K(t,"_v_attr_proxy",!0),Pt(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};Pt(t,e.$listeners,r,e,"$listeners")}return e._listenersProxy},get slots(){return Nt(e)},emit:P(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return Ge(e,t,n)}))}}}function Pt(e,t,n,r,i){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,Rt(e,a,r,i));for(var a in e)a in t||(o=!0,delete e[a]);return o}function Rt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function Nt(e){return e._slotsProxy||Dt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function Dt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function Ft(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=Et(t._renderChildren,i),e.$scopedSlots=n?Ot(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=function(t,n,r,i){return Zt(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Zt(e,t,n,r,i,!0)};var o=n&&n.data;ze(e,"$attrs",o&&o.attrs||r,null,!0),ze(e,"$listeners",t._parentListeners||r,null,!0)}var It=null;function zt(e){St(e.prototype),e.prototype.$nextTick=function(e){return cn(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t._parentVnode;r&&e._isMounted&&(e.$scopedSlots=Ot(e.$parent,r.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&Dt(e._slotsProxy,e.$scopedSlots)),e.$vnode=r;var o,a=ge,s=It;try{ve(e),It=e,o=n.call(e._renderProxy,e.$createElement)}catch(Qa){Kt(Qa,e,"render"),o=e._vnode}finally{It=s,ve(a)}return i(o)&&1===o.length&&(o=o[0]),o instanceof ye||(o=be()),o.parent=r,o}}function Bt(e,t){return(e.__esModule||me&&"Module"===e[Symbol.toStringTag])&&(e=e.default),f(e)?t.extend(e):e}function Ut(e,t,n,r,i){var o=be();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function Ht(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=It;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],i=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return x(r,n)}));var c=function(e){for(var t=0,n=r.length;t1?R(n):n;for(var r=R(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Wn=function(){return qn.now()})}var Zn=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Gn(){var e,t;for($n=Wn(),Bn=!0,Dn.sort(Zn),Un=0;UnUn&&Dn[n].id>e.id)n--;Dn.splice(n+1,0,e)}else Dn.push(e);zn||(zn=!0,cn(Gn))}}function Jn(e){var t=e.$options.provide;if(t){var n=c(t)?t.call(e):t;if(!f(n))return;for(var r=Qe(e),i=me?Reflect.ownKeys(n):Object.keys(n),o=0;o-1)if(o&&!S(i,"default"))a=!1;else if(""===a||a===T(e)){var l=Mr(String,i.type);(l<0||s-1)return this;var n=R(arguments,1);return n.unshift(this),c(e.install)?e.install.apply(e,n):c(e)&&e.apply(null,n),t.push(e),this}}function ei(e){e.mixin=function(e){return this.options=Sr(this.options,e),this}}function ti(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=or(e)||or(n.options);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Sr(n.options,e),a["super"]=n,a.options.props&&ni(a),a.options.computed&&ri(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,q.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=N({},a.options),i[r]=a,a}}function ni(e){var t=e.options.props;for(var n in t)Pr(e.prototype,"_props",n)}function ri(e){var t=e.options.computed;for(var n in t)Br(e.prototype,n,t[n])}function ii(e){q.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&d(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&c(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function oi(e){return e&&(or(e.Ctor.options)||e.tag)}function ai(e,t){return i(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function si(e,t){var n=e.cache,r=e.keys,i=e._vnode,o=e.$vnode;for(var a in n){var s=n[a];if(s){var l=s.name;l&&!t(l)&&li(n,a,r,i)}}o.componentOptions.children=void 0}function li(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,x(n,t)}Vr(Jr),Zr(Jr),En(Jr),Ln(Jr),zt(Jr);var ui=[String,RegExp,Array],ci={name:"keep-alive",abstract:!0,props:{include:ui,exclude:ui,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:oi(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&li(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)li(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){si(e,(function(e){return ai(t,e)}))})),this.$watch("exclude",(function(t){si(e,(function(e){return!ai(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=$t(e),n=t&&t.componentOptions;if(n){var r=oi(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!ai(o,r))||a&&r&&ai(a,r))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,x(u,c),u.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},fi={KeepAlive:ci};function hi(e){var t={get:function(){return G}};Object.defineProperty(e,"config",t),e.util={warn:dr,extend:N,mergeOptions:Sr,defineReactive:ze},e.set=Be,e.delete=Ue,e.nextTick=cn,e.observable=function(e){return Ie(e),e},e.options=Object.create(null),q.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,N(e.options.components,fi),Qr(e),ei(e),ti(e),ii(e)}hi(Jr),Object.defineProperty(Jr.prototype,"$isServer",{get:fe}),Object.defineProperty(Jr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Jr,"FunctionalRenderContext",{value:tr}),Jr.version=dn;var di=w("style,class"),pi=w("input,textarea,option,select,progress"),mi=function(e,t,n){return"value"===n&&pi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},gi=w("contenteditable,draggable,spellcheck"),vi=w("events,caret,typing,plaintext-only"),yi=function(e,t){return ki(t)||"false"===t?"false":"contenteditable"===e&&vi(t)?t:"true"},bi=w("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),wi="http://www.w3.org/1999/xlink",_i=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xi=function(e){return _i(e)?e.slice(6,e.length):""},ki=function(e){return null==e||!1===e};function Si(e){var t=e.data,n=e,r=e;while(a(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Ei(r.data,t));while(a(n=n.parent))n&&n.data&&(t=Ei(t,n.data));return Ci(t.staticClass,t.class)}function Ei(e,t){return{staticClass:Ai(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Ci(e,t){return a(e)||a(t)?Ai(e,Oi(t)):""}function Ai(e,t){return e?t?e+" "+t:e:t||""}function Oi(e){return Array.isArray(e)?Li(e):f(e)?Ti(e):"string"===typeof e?e:""}function Li(e){for(var t,n="",r=0,i=e.length;r-1?Di[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Di[e]=/HTMLUnknownElement/.test(t.toString())}var Ii=w("text,number,password,search,email,tel,url");function zi(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Bi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Ui(e,t){return document.createElementNS(Mi[e],t)}function Hi(e){return document.createTextNode(e)}function $i(e){return document.createComment(e)}function Wi(e,t,n){e.insertBefore(t,n)}function qi(e,t){e.removeChild(t)}function Zi(e,t){e.appendChild(t)}function Gi(e){return e.parentNode}function Vi(e){return e.nextSibling}function Yi(e){return e.tagName}function Ki(e,t){e.textContent=t}function Xi(e,t){e.setAttribute(t,"")}var Ji=Object.freeze({__proto__:null,createElement:Bi,createElementNS:Ui,createTextNode:Hi,createComment:$i,insertBefore:Wi,removeChild:qi,appendChild:Zi,parentNode:Gi,nextSibling:Vi,tagName:Yi,setTextContent:Ki,setStyleScope:Xi}),Qi={create:function(e,t){eo(t)},update:function(e,t){e.data.ref!==t.data.ref&&(eo(e,!0),eo(t))},destroy:function(e){eo(e,!0)}};function eo(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,s=t?null:o,l=t?void 0:o;if(c(n))Xt(n,r,[s],r,"template ref function");else{var u=e.data.refInFor,f="string"===typeof n||"number"===typeof n,h=Ze(n),d=r.$refs;if(f||h)if(u){var p=f?d[n]:n.value;t?i(p)&&x(p,o):i(p)?p.includes(o)||p.push(o):f?(d[n]=[o],to(r,n,d[n])):n.value=[o]}else if(f){if(t&&d[n]!==o)return;d[n]=l,to(r,n,s)}else if(h){if(t&&n.value!==o)return;n.value=s}else 0}}}function to(e,t,n){var r=e._setupState;r&&S(r,t)&&(Ze(r[t])?r[t].value=n:r[t]=n)}var no=new ye("",{},[]),ro=["create","activate","update","remove","destroy"];function io(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&oo(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function oo(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||Ii(r)&&Ii(i)}function ao(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,a(i)&&(o[i]=r);return o}function so(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;tm?(f=o(n[y+1])?null:n[y+1].elm,S(e,f,n,d,y,r)):d>y&&C(t,h,m)}function L(e,t,n,r){for(var i=n;i-1?bo(e,t,n):bi(t)?ki(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):gi(t)?e.setAttribute(t,yi(t,n)):_i(t)?ki(n)?e.removeAttributeNS(wi,xi(t)):e.setAttributeNS(wi,t,n):bo(e,t,n)}function bo(e,t,n){if(ki(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var wo={create:vo,update:vo};function _o(e,t){var n=t.elm,r=t.data,i=e.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=Si(t),l=n._transitionClasses;a(l)&&(s=Ai(s,Oi(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var xo,ko={create:_o,update:_o},So="__r",Eo="__c";function Co(e){if(a(e[So])){var t=ne?"change":"input";e[t]=[].concat(e[So],e[t]||[]),delete e[So]}a(e[Eo])&&(e.change=[].concat(e[Eo],e.change||[]),delete e[Eo])}function Ao(e,t,n){var r=xo;return function i(){var o=t.apply(null,arguments);null!==o&&To(e,i,n,r)}}var Oo=tn&&!(se&&Number(se[1])<=53);function Lo(e,t,n,r){if(Oo){var i=$n,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}xo.addEventListener(e,t,ue?{capture:n,passive:r}:n)}function To(e,t,n,r){(r||xo).removeEventListener(e,t._wrapper||t,n)}function Mo(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},r=e.data.on||{};xo=t.elm||e.elm,Co(n),nt(n,r,Lo,To,Ao,t.context),xo=void 0}}var jo,Po={create:Mo,update:Mo,destroy:function(e){return Mo(e,no)}};function Ro(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,i=t.elm,l=e.data.domProps||{},u=t.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.domProps=N({},u)),l)n in u||(i[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var c=o(r)?"":String(r);No(i,c)&&(i.value=c)}else if("innerHTML"===n&&Pi(i.tagName)&&o(i.innerHTML)){jo=jo||document.createElement("div"),jo.innerHTML="".concat(r,"");var f=jo.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(f.firstChild)i.appendChild(f.firstChild)}else if(r!==l[n])try{i[n]=r}catch(Qa){}}}}function No(e,t){return!e.composing&&("OPTION"===e.tagName||Do(e,t)||Fo(e,t))}function Do(e,t){var n=!0;try{n=document.activeElement!==e}catch(Qa){}return n&&e.value!==t}function Fo(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return b(n)!==b(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var Io={create:Ro,update:Ro},zo=E((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Bo(e){var t=Uo(e.style);return e.staticStyle?N(e.staticStyle,t):t}function Uo(e){return Array.isArray(e)?D(e):"string"===typeof e?zo(e):e}function Ho(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=Bo(i.data))&&N(r,n)}(n=Bo(e.data))&&N(r,n);var o=e;while(o=o.parent)o.data&&(n=Bo(o.data))&&N(r,n);return r}var $o,Wo=/^--/,qo=/\s*!important$/,Zo=function(e,t,n){if(Wo.test(t))e.style.setProperty(t,n);else if(qo.test(n))e.style.setProperty(T(t),n.replace(qo,""),"important");else{var r=Vo(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(Xo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Qo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Xo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function ea(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&N(t,ta(e.name||"v")),N(t,e),t}return"string"===typeof e?ta(e):void 0}}var ta=E((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),na=ee&&!re,ra="transition",ia="animation",oa="transition",aa="transitionend",sa="animation",la="animationend";na&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(oa="WebkitTransition",aa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(sa="WebkitAnimation",la="webkitAnimationEnd"));var ua=ee?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ca(e){ua((function(){ua(e)}))}function fa(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Jo(e,t))}function ha(e,t){e._transitionClasses&&x(e._transitionClasses,t),Qo(e,t)}function da(e,t,n){var r=ma(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ra?aa:la,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(n=ra,c=a,f=o.length):t===ia?u>0&&(n=ia,c=u,f=l.length):(c=Math.max(a,u),n=c>0?a>u?ra:ia:null,f=n?n===ra?o.length:l.length:0);var h=n===ra&&pa.test(r[oa+"Property"]);return{type:n,timeout:c,propCount:f,hasTransform:h}}function ga(e,t){while(e.length1}function xa(e,t){!0!==t.data.show&&ya(t)}var ka=ee?{create:xa,activate:xa,remove:function(e,t){!0!==e.data.show?ba(e,t):t()}}:{},Sa=[wo,ko,Po,Io,Ko,ka],Ea=Sa.concat(go),Ca=so({nodeOps:Ji,modules:Ea});re&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ra(e,"input")}));var Aa={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?rt(n,"postpatch",(function(){Aa.componentUpdated(e,t,n)})):Oa(e,t,n.context),e._vOptions=[].map.call(e.options,Ma)):("textarea"===n.tag||Ii(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ja),e.addEventListener("compositionend",Pa),e.addEventListener("change",Pa),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Oa(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ma);if(i.some((function(e,t){return!B(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return Ta(e,i)})):t.value!==t.oldValue&&Ta(t.value,i);o&&Ra(e,"change")}}}};function Oa(e,t,n){La(e,t,n),(ne||ie)&&setTimeout((function(){La(e,t,n)}),0)}function La(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(B(Ma(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ta(e,t){return t.every((function(t){return!B(t,e)}))}function Ma(e){return"_value"in e?e._value:e.value}function ja(e){e.target.composing=!0}function Pa(e){e.target.composing&&(e.target.composing=!1,Ra(e.target,"input"))}function Ra(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Na(e){return!e.componentInstance||e.data&&e.data.transition?e:Na(e.componentInstance._vnode)}var Da={bind:function(e,t,n){var r=t.value;n=Na(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ya(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=Na(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?ya(n,(function(){e.style.display=e.__vOriginalDisplay})):ba(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Fa={model:Aa,show:Da},Ia={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function za(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?za($t(t.children)):e}function Ba(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[A(r)]=i[r];return t}function Ua(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Ha(e){while(e=e.parent)if(e.data.transition)return!0}function $a(e,t){return t.key===e.key&&t.tag===e.tag}var Wa=function(e){return e.tag||At(e)},qa=function(e){return"show"===e.name},Za={name:"transition",props:Ia,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Wa),n.length)){0;var r=this.mode;0;var i=n[0];if(Ha(this.$vnode))return i;var o=za(i);if(!o)return i;if(this._leaving)return Ua(e,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:u(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Ba(this),l=this._vnode,c=za(l);if(o.data.directives&&o.data.directives.some(qa)&&(o.data.show=!0),c&&c.data&&!$a(o,c)&&!At(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=N({},s);if("out-in"===r)return this._leaving=!0,rt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ua(e,i);if("in-out"===r){if(At(o))return l;var h,d=function(){h()};rt(s,"afterEnter",d),rt(s,"enterCancelled",d),rt(f,"delayLeave",(function(e){h=e}))}}return i}}},Ga=N({tag:String,moveClass:String},Ia);delete Ga.mode;var Va={props:Ga,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=An(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ba(this),s=0;s1?arguments[1]:void 0,t.length)),r=s(e);return h(t,n,n+r.length)===r}})},"2ceb":function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},"2cf4":function(e,t,n){"use strict";var r,i,o,a,s=n("da84"),l=n("2ba4"),u=n("0366"),c=n("1626"),f=n("1a2d"),h=n("d039"),d=n("1be4"),p=n("f36a"),m=n("cc12"),g=n("d6d6"),v=n("1cdc"),y=n("605d"),b=s.setImmediate,w=s.clearImmediate,_=s.process,x=s.Dispatch,k=s.Function,S=s.MessageChannel,E=s.String,C=0,A={},O="onreadystatechange";h((function(){r=s.location}));var L=function(e){if(f(A,e)){var t=A[e];delete A[e],t()}},T=function(e){return function(){L(e)}},M=function(e){L(e.data)},j=function(e){s.postMessage(E(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){g(arguments.length,1);var t=c(e)?e:k(e),n=p(arguments,1);return A[++C]=function(){l(t,void 0,n)},i(C),C},w=function(e){delete A[e]},y?i=function(e){_.nextTick(T(e))}:x&&x.now?i=function(e){x.now(T(e))}:S&&!v?(o=new S,a=o.port2,o.port1.onmessage=M,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(j)?(i=j,s.addEventListener("message",M,!1)):i=O in m("script")?function(e){d.appendChild(m("script"))[O]=function(){d.removeChild(this),L(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},"2d00":function(e,t,n){"use strict";var r,i,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f62":function(e,t,n){"use strict";(function(e){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ -function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},i=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=s(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,d);var p=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;g(e.concat(r),t.getChild(r),n.modules[r])}}p.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},p.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},p.prototype.update=function(e){g([],this.root,e)},p.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&l(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},p.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},p.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var m;var v=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&M(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var i=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;x(this,u,[],this._modules.root),_(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:m.config.devtools;c&&o(this)},y={state:{configurable:!0}};function b(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;x(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};l(i,(function(t,n){o[n]=f(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:o}),m.config.silent=a,e.strict&&O(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function x(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=L(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){m.set(s,l,r.state)}))}var u=r.context=k(e,a,n);r.forEachMutation((function(t,n){var r=a+n;E(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;C(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;A(e,r,t,u)})),r.forEachChild((function(r,o){x(e,t,n.concat(o),r,i)}))}function k(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return S(e,t)}},state:{get:function(){return L(e.state,n)}}}),i}function S(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function E(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function C(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return c(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function A(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function O(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function L(e,t){return t.reduce((function(e,t){return e[t]}),e)}function T(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function M(e){m&&e===m||(m=e,n(m))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},v.prototype.commit=function(e,t,n){var r=this,i=T(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},v.prototype.dispatch=function(e,t){var n=this,r=T(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},v.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},v.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},v.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},v.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},v.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),x(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},v.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=L(t.state,e.slice(0,-1));m.delete(n,e[e.length-1])})),w(this)},v.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},v.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},v.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(v.prototype,y);var j=z((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=B(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),P=z((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=B(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=z((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||B(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),N=z((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=B(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),D=function(e){return{mapState:j.bind(null,e),mapGetters:R.bind(null,e),mapMutations:P.bind(null,e),mapActions:N.bind(null,e)}};function F(e){return I(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function I(e){return Array.isArray(e)||u(e)}function z(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function B(e,t,n){var r=e._modulesNamespaceMap[n];return r}function U(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var f=s(e.state);"undefined"!==typeof c&&(l&&e.subscribe((function(e,o){var a=s(o);if(n(e,f,a)){var l=W(),u=i(e),h="mutation "+e.type+l;H(c,h,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),$(c)}f=a})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var r=W(),i=a(e),s="action "+e.type+r;H(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),$(c)}})))}}function H(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function $(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+Z(e.getHours(),2)+":"+Z(e.getMinutes(),2)+":"+Z(e.getSeconds(),2)+"."+Z(e.getMilliseconds(),3)}function q(e,t){return new Array(t+1).join(e)}function Z(e,t){return q("0",t-e.toString().length)+e}var G={Store:v,install:M,version:"3.6.2",mapState:j,mapMutations:P,mapGetters:R,mapActions:N,createNamespacedHelpers:D,createLogger:U};t["a"]=G}).call(this,n("c8ba"))},3022:function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),l=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function c(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,n,r){if(e.customInspect&&n&&L(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return x(i)||(i=f(e,i,r)),i}var o=h(e,n);if(o)return o;var a=Object.keys(n),s=c(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),O(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(L(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(A(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return d(n)}var u,y="",b=!1,w=["{","}"];if(v(n)&&(b=!0,w=["[","]"]),L(n)){var _=n.name?": "+n.name:"";y=" [Function"+_+"]"}return E(n)&&(y=" "+RegExp.prototype.toString.call(n)),A(n)&&(y=" "+Date.prototype.toUTCString.call(n)),O(n)&&(y=" "+d(n)),0!==a.length||b&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=b?p(e,n,r,s,a):a.map((function(t){return g(e,n,r,s,t,b)})),e.seen.pop(),m(u,y,w)):w[0]+y+w[1]}function h(e,t){if(S(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return _(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],a=0,s=t.length;a-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),S(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function b(e){return null===e}function w(e){return null==e}function _(e){return"number"===typeof e}function x(e){return"string"===typeof e}function k(e){return"symbol"===typeof e}function S(e){return void 0===e}function E(e){return C(e)&&"[object RegExp]"===M(e)}function C(e){return"object"===typeof e&&null!==e}function A(e){return C(e)&&"[object Date]"===M(e)}function O(e){return C(e)&&("[object Error]"===M(e)||e instanceof Error)}function L(e){return"function"===typeof e}function T(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function M(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(o)&&(o=Object({NODE_ENV:"production",BASE_URL:""}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=y,t.isNull=b,t.isNullOrUndefined=w,t.isNumber=_,t.isString=x,t.isSymbol=k,t.isUndefined=S,t.isRegExp=E,t.isObject=C,t.isDate=A,t.isError=O,t.isFunction=L,t.isPrimitive=T,t.isBuffer=n("d60a");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",R(),t.format.apply(t,arguments))},t.inherits=n("28a0"),t._extend=function(e,t){if(!t||!C(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var D="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function F(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function I(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;ri)throw r("Maximum allowed index exceeded");return e}},3529:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),l=n("2266"),u=n("5eed");r({target:"Promise",stat:!0,forced:u},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=s((function(){var a=o(t.resolve);l(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},"35a1":function(e,t,n){"use strict";var r=n("f5df"),i=n("dc4a"),o=n("7234"),a=n("3f8c"),s=n("b622"),l=s("iterator");e.exports=function(e){if(!o(e))return i(e,l)||i(e,"@@iterator")||a[r(e)]}},3729:function(e,t,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}e.exports=u},"37e8":function(e,t,n){"use strict";var r=n("83ab"),i=n("aed9"),o=n("9bf2"),a=n("825a"),s=n("fc6a"),l=n("df75");t.f=r&&!i?Object.defineProperties:function(e,t){a(e);var n,r=s(t),i=l(t),u=i.length,c=0;while(u>c)o.f(e,n=i[c++],r[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3a34":function(e,t,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a7c":function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function l(e){return"string"===typeof e}function u(e){return"symbol"===typeof e}function c(e){return void 0===e}function f(e){return"[object RegExp]"===v(e)}function h(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function g(e){return"function"===typeof e}function m(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function v(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=a,t.isNumber=s,t.isString=l,t.isSymbol=u,t.isUndefined=c,t.isRegExp=f,t.isObject=h,t.isDate=d,t.isError=p,t.isFunction=g,t.isPrimitive=m,t.isBuffer=n("b639").Buffer.isBuffer},"3a9b":function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},"3bbe":function(e,t,n){"use strict";var r=n("1787"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),a=n("c6d2"),s=n("4754"),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",(function(e){u(this,{type:l,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},"3eb1":function(e,t,n){"use strict";var r=n("0f7c"),i=n("00ce"),o=n("d009"),a=n("0d25"),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,s),c=n("71c9"),f=i("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=u(r,l,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var h=function(){return u(r,s,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h},"3f8c":function(e,t,n){"use strict";e.exports={}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},"408a":function(e,t,n){"use strict";var r=n("e330");e.exports=r(1..valueOf)},"408c":function(e,t,n){var r=n("2b3e"),i=function(){return r.Date.now()};e.exports=i},"40d5":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"417f":function(e,t,n){"use strict";e.exports=EvalError},"428f":function(e,t,n){"use strict";var r=n("da84");e.exports=r},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44a0":function(e,t,n){(function(e){e(n("56b3"),n("959b"),n("9eb9"))})((function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",(function(n,r){var i=0;function o(e){return e.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in r)s[l]=r[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}))},"44ad":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("c6b6"),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},"44d2":function(e,t,n){"use strict";var r=n("b622"),i=n("7c73"),o=n("9bf2").f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},"44e7":function(e,t,n){"use strict";var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},4625:function(e,t,n){"use strict";var r=n("c6b6"),i=n("e330");e.exports=function(e){if("Function"===r(e))return i(e)}},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("7234"),s=n("50c4"),l=n("577e"),u=n("1d80"),c=n("dc4a"),f=n("8aa5"),h=n("14c3");i("match",(function(e,t,n){return[function(t){var n=u(this),i=a(t)?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=o(this),i=l(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return h(r,i);var u=r.unicode;r.lastIndex=0;var c,d=[],p=0;while(null!==(c=h(r,i))){var g=l(c[0]);d[p]=g,""===g&&(r.lastIndex=f(i,s(r.lastIndex),u)),p++}return 0===p?null:d}]}))},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},4681:function(e,t,n){"use strict";var r=n("966d");function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,e)):r.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(a,n,e)):r.nextTick(a,n,e):t&&t(e)})),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}e.exports={destroy:i,undestroy:o}},"470b":function(e,t,n){"use strict";(function(e){var r=n("b639").Buffer,i=n("d485").Transform,o=n("6b75"),a=n("3022"),s=n("f654").ok,l=n("b639").kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),f=0;f=l?a=new RangeError(u):t=r.concat(i,o),i=[],e.close(),n(a,t)}e.on("error",s),e.on("end",c),e.end(t),a()}function y(e,t){if("string"===typeof t&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function b(e){if(!(this instanceof b))return new b(e);A.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);A.call(this,e,o.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);A.call(this,e,o.GZIP)}function x(e){if(!(this instanceof x))return new x(e);A.call(this,e,o.GUNZIP)}function k(e){if(!(this instanceof k))return new k(e);A.call(this,e,o.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);A.call(this,e,o.INFLATERAW)}function E(e){if(!(this instanceof E))return new E(e);A.call(this,e,o.UNZIP)}function C(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function A(e,n){var a=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!C(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!C(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag="undefined"!==typeof e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSizet.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitst.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelt.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelt.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!r.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){O(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var l=t.Z_DEFAULT_COMPRESSION;"number"===typeof e.level&&(l=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"===typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,l,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function O(t,n){n&&e.nextTick(n),t._handle&&(t._handle.close(),t._handle=null)}function L(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(d),writable:!1}),t.Deflate=b,t.Inflate=w,t.Gzip=_,t.Gunzip=x,t.DeflateRaw=k,t.InflateRaw=S,t.Unzip=E,t.createDeflate=function(e){return new b(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new k(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new _(e)},t.createGunzip=function(e){return new x(e)},t.createUnzip=function(e){return new E(e)},t.deflate=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new b(t),e,n)},t.deflateSync=function(e,t){return y(new b(t),e)},t.gzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new _(t),e,n)},t.gzipSync=function(e,t){return y(new _(t),e)},t.deflateRaw=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new k(t),e,n)},t.deflateRawSync=function(e,t){return y(new k(t),e)},t.unzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new E(t),e,n)},t.unzipSync=function(e,t){return y(new E(t),e)},t.inflate=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new w(t),e,n)},t.inflateSync=function(e,t){return y(new w(t),e)},t.gunzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new x(t),e,n)},t.gunzipSync=function(e,t){return y(new x(t),e)},t.inflateRaw=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new S(t),e,n)},t.inflateRawSync=function(e,t){return y(new S(t),e)},a.inherits(A,i),A.prototype.params=function(n,r,i){if(nt.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+n);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==n||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,"zlib binding closed"),a._handle.params(n,r),a._hadError||(a._level=n,a._strategy=r,i&&i())}))}else e.nextTick(i)},A.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},A.prototype._flush=function(e){this._transform(r.alloc(0),"",e)},A.prototype.flush=function(t,n){var i=this,a=this._writableState;("function"===typeof t||void 0===t&&!n)&&(n=t,t=o.Z_FULL_FLUSH),a.ended?n&&e.nextTick(n):a.ending?n&&this.once("end",n):a.needDrain?n&&this.once("drain",(function(){return i.flush(t,n)})):(this._flushFlag=t,this.write(r.alloc(0),"",n))},A.prototype.close=function(t){O(this,t),e.nextTick(L,this)},A.prototype._transform=function(e,t,n){var i,a=this._writableState,s=a.ending||a.ended,l=s&&(!e||a.length===e.length);return null===e||r.isBuffer(e)?this._handle?(l?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},A.prototype._processChunk=function(e,t,n){var i=e&&e.length,o=this._chunkSize-this._offset,a=0,c=this,f="function"===typeof n;if(!f){var h,d=[],p=0;this.on("error",(function(e){h=e})),s(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,o)}while(!this._hadError&&y(g[0],g[1]));if(this._hadError)throw h;if(p>=l)throw O(this),new RangeError(u);var m=r.concat(d,p);return O(this),m}s(this._handle,"zlib binding closed");var v=this._handle.write(t,e,a,i,this._buffer,this._offset,o);function y(l,u){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var h=o-u;if(s(h>=0,"have should not go down"),h>0){var g=c._buffer.slice(c._offset,c._offset+h);c._offset+=h,f?c.push(g):(d.push(g),p+=g.length)}if((0===u||c._offset>=c._chunkSize)&&(o=c._chunkSize,c._offset=0,c._buffer=r.allocUnsafe(c._chunkSize)),0===u){if(a+=i-l,i=l,!f)return!0;var m=c._handle.write(t,e,a,i,c._buffer,c._offset,c._chunkSize);return m.callback=y,void(m.buffer=e)}if(!f)return!1;n()}}v.buffer=e,v.callback=y},a.inherits(b,A),a.inherits(w,A),a.inherits(_,A),a.inherits(x,A),a.inherits(k,A),a.inherits(S,A),a.inherits(E,A)}).call(this,n("4362"))},4738:function(e,t,n){"use strict";var r=n("da84"),i=n("d256"),o=n("1626"),a=n("94ca"),s=n("8925"),l=n("b622"),u=n("6069"),c=n("6c59"),f=n("c430"),h=n("2d00"),d=i&&i.prototype,p=l("species"),g=!1,m=o(r.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===h)return!0;if(f&&(!d["catch"]||!d["finally"]))return!0;if(!h||h<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};if(o[p]=r,g=n.then((function(){}))instanceof r,!g)return!0}return!t&&(u||c)&&!m}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:g}},4754:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},4840:function(e,t,n){"use strict";var r=n("825a"),i=n("5087"),o=n("7234"),a=n("b622"),s=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},"485a":function(e,t,n){"use strict";var r=n("c65b"),i=n("1626"),o=n("861d"),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},4895:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(t,r,o,a){if(o&&o.call){var s=o;o=null}else s=i(t,o,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var l=i(t,o,"minFoldSize");function u(e){var n=s(t,r);if(!n||n.to.line-n.from.linet.firstLine())r=e.Pos(r.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==a){var f=n(t,o,c);e.on(f,"mousedown",(function(t){h.clear(),e.e_preventDefault(t)}));var h=t.markText(c.from,c.to,{replacedWith:f,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});h.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,c.from,c.to)}}function n(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);r=document.createElement("span"),r.appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;nc)if(u=s[c++],u!==u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4dc6":function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},5087:function(e,t,n){"use strict";var r=n("68ee"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},"50c4":function(e,t,n){"use strict";var r=n("5926"),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},5156:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},"51eb":function(e,t,n){"use strict";var r=n("825a"),i=n("485a"),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),l=n("825a"),u=n("1626"),c=n("7234"),f=n("5926"),h=n("50c4"),d=n("577e"),p=n("1d80"),g=n("8aa5"),m=n("dc4a"),v=n("0cb2"),y=n("14c3"),b=n("b622"),w=b("replace"),_=Math.max,x=Math.min,k=o([].concat),S=o([].push),E=o("".indexOf),C=o("".slice),A=function(e){return void 0===e?e:String(e)},O=function(){return"$0"==="a".replace(/./,"$0")}(),L=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),T=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));a("replace",(function(e,t,n){var o=L?"$":"$0";return[function(e,n){var r=p(this),o=c(e)?void 0:m(e,w);return o?i(o,e,r,n):i(t,d(r),e,n)},function(e,i){var a=l(this),s=d(e);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var c=n(t,a,s,i);if(c.done)return c.value}var p=u(i);p||(i=d(i));var m,b=a.global;b&&(m=a.unicode,a.lastIndex=0);var w,O=[];while(1){if(w=y(a,s),null===w)break;if(S(O,w),!b)break;var L=d(w[0]);""===L&&(a.lastIndex=g(s,h(a.lastIndex),m))}for(var T="",M=0,j=0;j=M&&(T+=C(s,M,N)+P,M=N+R.length)}return T+C(s,M)}]}),!T||!O||L)},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}},"545e":function(e,t,n){"use strict";var r=n("00ce"),i=n("3eb1"),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a4d3"),n("4de4"),n("14d9"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("159b");var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),w=/\bCrOS\b/.test(e),_=/win/i.test(t),x=h&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,l=!0);var k=b&&(u||h&&(null==x||x<12.11)),S=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,A=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function L(e,t){return O(e).appendChild(t)}function T(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(D=function(e){try{e.select()}catch(t){}});var W=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};function q(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var J=[""];function Q(e){while(J.length<=e)J.push(ee(J)+" ");return J[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function se(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ae(e))||t.test(e):ae(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ce(e){return e.charCodeAt(0)>=768&&ue.test(e)}function fe(e,t,n){while((n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function de(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var pe=null;function ge(e,t,n){var r;pe=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:pe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:pe=i)}return null!=r?r:pe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,f=[],h=0;h-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function xe(e,t){var n=we(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ce(e){e.prototype.on=function(e,t){be(this,e,t)},e.prototype.off=function(e,t){_e(this,e,t)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Oe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Le(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){Ae(e),Oe(e)}function Me(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Pe,Re,Ne=function(){if(a&&s<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Pe){var t=T("span","​");L(e,T("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Pe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Pe?T("span","​"):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Fe(e){if(null!=Re)return Re;var t=L(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(Re=r.right-n.right<3)}var Ie=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ze=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Be=function(){var e=T("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ue=null;function He(e){if(null!=Ue)return Ue;var t=L(e,T("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return Ue=Math.abs(n.left-r.left)>1}var $e={},We={};function qe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$e[e]=t}function Ze(e,t){We[e]=t}function Ge(e){if("string"==typeof e&&We.hasOwnProperty(e))e=We[e];else if(e&&"string"==typeof e.name&&We.hasOwnProperty(e.name)){var t=We[e.name];"string"==typeof t&&(t={name:t}),e=ie(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Ge(t);var n=$e[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ye.hasOwnProperty(t.name)){var i=Ye[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ye={};function Ke(e,t){var n=Ye.hasOwnProperty(e)?Ye[e]:Ye[e]={};H(t,n)}function Xe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Je(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}var et=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function tt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ut(n,tt(e,n).text.length):vt(t,tt(e,t.line).text.length)}function vt(e,t){var n=e.ch;return null==n||n>t?ut(e.line,t):n<0?ut(e.line,0):e}function yt(e,t){for(var n=[],r=0;r=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.post},et.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var bt=function(e,t){this.state=e,this.lookAhead=t},wt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function _t(e,t,n,r){var i=[e.state.modeGen],o={};Tt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Tt(e,t.text,s.mode,n,(function(e,t){var n=l;while(ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Xe(e.doc.mode,r.state),o=_t(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function kt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new wt(r,!0,t);var o=Mt(e,t,n),a=o>r.first&&tt(r,o-1).stateAfter,s=a?wt.fromSaved(r,a,o):new wt(r,Qe(r.mode),o);return r.iter(o,t,(function(n){St(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}wt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},wt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},wt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wt.fromSaved=function(e,t,n){return t instanceof bt?new wt(e,Xe(e.mode,t.state),n,t.lookAhead):new wt(e,Xe(e.mode,t),n)},wt.prototype.save=function(e){var t=!1!==e?Xe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new bt(t,this.maxLookAhead):t};var At=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ot(e,t,n,r){var i,o=e.doc,a=o.mode;t=mt(o,t);var s,l=tt(o,t.line),u=kt(e,t.line,n),c=new et(l.text,e.options.tabSize,u);r&&(s=[]);while((r||c.pose.options.maxHighlightLength?(s=!1,a&&St(e,t,r,f.pos),f.pos=t.length,l=null):l=Lt(Ct(n,f,r.state,h),o),h){var d=h[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||c!=l){while(ua;--s){if(s<=o.first)return o.first;var l=tt(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof bt?u.lookAhead:0)<=o.modeFrontier))return s;var c=$(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function jt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=tt(e,r).stateAfter;if(i&&(!(i instanceof bt)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Ft(a,o.from,l?null:o.to))}}return r}function Ht(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var w=0;w0)){var c=[l,1],f=ct(u.from,s.from),h=ct(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function Zt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Kt(n,o.marker)<0)&&(n=o.marker)}return n}function tn(e,t,n,r,i){var o=tt(e,t),a=Rt&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(u.to,n)>=0:ct(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(u.from,r)<=0:ct(u.from,r)<0)))return!0}}}function nn(e){var t;while(t=Jt(e))e=t.find(-1,!0).line;return e}function rn(e){var t;while(t=Qt(e))e=t.find(1,!0).line;return e}function on(e){var t,n;while(t=Qt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function an(e,t){var n=tt(e,t),r=nn(n);return n==r?t:ot(r)}function sn(e,t){if(t>e.lastLine())return t;var n,r=tt(e,t);if(!ln(e,r))return t;while(n=Qt(r))r=n.find(1,!0).line;return ot(r)+1}function ln(e,t){var n=Rt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var dn=function(e,t,n){this.text=e,Gt(this,t),this.height=n?n(this):1};function pn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Zt(e),Gt(e,n);var i=r?r(e):1;i!=e.height&&it(e,i)}function gn(e){e.parent=null,Zt(e)}dn.prototype.lineNo=function(){return ot(this)},Ce(dn);var mn={},vn={};function yn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?vn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function bn(e,t){var n=M("span",null,null,l?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=_n,Fe(e.display.measure)&&(a=ve(o,e.doc.direction))&&(r.addToken=kn(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&ot(o);En(o,r,xt(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=N(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return xe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function wn(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function _n(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?xn(t,e.trailingSpace):t,f=e.cm.state.specialChars,h=!1;if(f.test(t)){u=document.createDocumentFragment();var d=0;while(1){f.lastIndex=d;var p=f.exec(t),g=p?p.index-d:t.length-d;if(g){var m=document.createTextNode(c.slice(d,d+g));a&&s<9?u.appendChild(T("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!p)break;d+=g+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;v=u.appendChild(T("span",Q(b),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?(v=u.appendChild(T("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",p[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(p[0]),v.setAttribute("cm-text",p[0]),a&&s<9?u.appendChild(T("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||h||o||l){var w=n||"";r&&(w+=r),i&&(w+=i);var _=T("span",[u],w,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&_.setAttribute(x,l[x]);return e.content.appendChild(_)}e.content.appendChild(u)}}function xn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&f.from<=u)break;if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function Sn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function En(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,h,d=i.length,p=0,g=1,m="",v=0;;){if(v==p){l=u=c=s="",h=null,f=null,v=1/0;for(var y=[],b=void 0,w=0;wp||x.collapsed&&_.to==p&&_.from==p)){if(null!=_.to&&_.to!=p&&v>_.to&&(v=_.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&_.from==p&&(c+=" "+x.startStyle),x.endStyle&&_.to==v&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((h||(h={})).title=x.title),x.attributes)for(var k in x.attributes)(h||(h={}))[k]=x.attributes[k];x.collapsed&&(!f||Kt(f.marker,x)<0)&&(f=_)}else _.from>p&&v>_.from&&(v=_.from)}if(b)for(var S=0;S=d)break;var C=Math.min(d,v);while(1){if(m){var A=p+m.length;if(!f){var O=A>C?m.slice(0,C-p):m;t.addToken(t,O,a?a+l:l,c,p+O.length==v?u:"",s,h)}if(A>=C){m=m.slice(C-p),p=C;break}p=A,c=""}m=i.slice(o,o=n[g++]),a=yn(n[g++],t.cm.options)}}else for(var L=1;L2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function nr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function rr(e,t){t=nn(t);var n=ot(t),r=e.display.externalMeasured=new Cn(e.doc,t,n);r.lineN=n;var i=r.built=bn(e,r);return r.text=i.pre,L(e.display.lineMeasure,i.pre),r}function ir(e,t,n,r){return sr(e,ar(e,t),n,r)}function or(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)while(u=0;i--)if((n=e[i]).left!=n.right)break;return n}function hr(e,t,n,r){var i,o=cr(t.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){while(u&&ce(t.line.text.charAt(o.coverStart+u)))--u;while(o.coverStart+c0&&(f=r="right"),i=e.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Rr(e.display),top:p.top,bottom:p.bottom}:ur}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var f=ge(s,l,u),h=pe,d=c(l,f,"before"==u);return null!=h&&(d.other=c(l,h,"before"!=u)),d}function Sr(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Rr(e.display)*t.ch);var r=tt(e.doc,t.line),i=cn(r)+Yn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Er(e,t,n,r,i){var o=ut(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Cr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Er(r.first,0,null,-1,-1);var i=at(r,n),o=r.first+r.size-1;if(i>o)return Er(r.first+r.size-1,tt(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=tt(r,i);;){var s=Tr(e,a,i,t,n),l=en(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=tt(r,i=u.line)}}function Ar(e,t,n,r){r-=br(t);var i=t.text.length,o=he((function(t){return sr(e,n,t-1).bottom<=r}),i,0);return i=he((function(t){return sr(e,n,t).top>r}),o,i),{begin:o,end:i}}function Or(e,t,n,r){n||(n=ar(e,t));var i=wr(e,t,sr(e,n,r),"line").top;return Ar(e,t,n,i)}function Lr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Tr(e,t,n,r,i){i-=cn(t);var o=ar(e,t),a=br(t),s=0,l=t.text.length,u=!0,c=ve(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?jr:Mr)(e,t,n,o,c,r,i);u=1!=f.level,s=u?f.from:f.to-1,l=u?f.to:f.from-1}var h,d,p=null,g=null,m=he((function(t){var n=sr(e,o,t);return n.top+=a,n.bottom+=a,!!Lr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)}),s,l),v=!1;if(g){var y=r-g.left=w.bottom?1:0}return m=fe(t.text,m,1),Er(n,m,d,v,r-h)}function Mr(e,t,n,r,i,o,a){var s=he((function(s){var l=i[s],u=1!=l.level;return Lr(kr(e,ut(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=kr(e,ut(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Lr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function jr(e,t,n,r,i,o,a){var s=Ar(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,h=0;h=u||d.to<=l)){var p=1!=d.level,g=sr(e,r,p?Math.min(u,d.to)-1:Math.max(l,d.from)).right,m=gm)&&(c=d,f=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Pr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==lr){lr=T("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)lr.appendChild(document.createTextNode("x")),lr.appendChild(T("br"));lr.appendChild(document.createTextNode("x"))}L(e.measure,lr);var n=lr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function Rr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=T("span","xxxxxxxxxx"),n=T("pre",[t],"CodeMirror-line-like");L(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Nr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Fr(e){var t=Pr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Rr(e.display)-3);return function(i){if(ln(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=tt(e.doc,u.line).text).length==u.ch){var c=$(l,l.length,e.options.tabSize)-l.length;u=ut(u.line,Math.max(0,Math.round((o-Xn(e.display).left)/Rr(e.display))-c))}return u}function Br(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Rt&&an(e.doc,t)i.viewFrom?$r(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)$r(e);else if(t<=i.viewFrom){var o=Wr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):$r(e)}else if(n>=i.viewTo){var a=Wr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):$r(e)}else{var s=Wr(e,t,t,-1),l=Wr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(An(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):$r(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Br(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==q(a,n)&&a.push(n)}}}function $r(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wr(e,t,n,r){var i,o=Br(e,t),a=e.display.view;if(!Rt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(an(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function qr(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=An(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=An(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Br(e,n)))),r.viewTo=n}function Zr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(T("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Kr(e,t){return e.top-t.top||e.left-t.left}function Xr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Xn(e.display),s=a.left,l=Math.max(r.sizerWidth,Qn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=tt(i,t),h=f.text.length;function d(n,r){return xr(e,ut(t,n),"div",f,r)}function p(t,n,r){var i=Or(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1);return d(a,o)[o]}var g=ve(f,i.direction);return de(g,n||0,null==r?h:r,(function(e,t,i,f){var m="ltr"==i,v=d(e,m?"left":"right"),y=d(t-1,m?"right":"left"),b=null==n&&0==e,w=null==r&&t==h,_=0==f,x=!g||f==g.length-1;if(y.top-v.top<=3){var k=(u?b:w)&&_,S=(u?w:b)&&x,E=k?s:(m?v:y).left,C=S?l:(m?y:v).right;c(E,v.top,C-E,v.bottom)}else{var A,O,L,T;m?(A=u&&b&&_?s:v.left,O=u?l:p(e,i,"before"),L=u?s:p(t,i,"after"),T=u&&w&&x?l:y.right):(A=u?p(e,i,"before"):s,O=!u&&b&&_?l:v.right,L=!u&&w&&x?s:y.left,T=u?p(t,i,"after"):l),c(A,v.top,O-A,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||ni(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ti(e))}function ei(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ni(e))}),100)}function ti(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Jr(e))}function ni(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ri(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||g<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(h/Rr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ii(e){if(e.widgets)for(var t=0;t=a&&(o=at(t,cn(tt(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ai(e,t){if(!ke(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var a=T("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Yn(e.display))+"px;\n height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function si(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ut(t.line,t.ch+1,"before"):t,t=t.ch?ut(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=kr(e,t),l=n&&n!=t?kr(e,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var u=ui(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(mi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(yi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function li(e,t){var n=ui(e,t);null!=n.scrollTop&&mi(e,n.scrollTop),null!=n.scrollLeft&&yi(e,n.scrollLeft)}function ui(e,t){var n=e.display,r=Pr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=er(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Kn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,d=Qn(e)-n.gutters.offsetWidth,p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+h-3&&(a.scrollLeft=t.right+(p?0:10)-d),a}function ci(e,t){null!=t&&(pi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function fi(e){pi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hi(e,t,n){null==t&&null==n||pi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function di(e,t){pi(e),e.curOp.scrollToPos=t}function pi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Sr(e,t.from),r=Sr(e,t.to);gi(e,n,r,t.margin)}}function gi(e,t,n,r){var i=ui(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});hi(e,i.scrollLeft,i.scrollTop)}function mi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Gi(e,{top:t}),vi(e,t,!0),n&&Gi(e),zi(e,100))}function vi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function yi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Xi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function bi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Kn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var wi=function(e,t,n){this.cm=n;var r=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),be(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),be(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},wi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new W,this.disableVert=new W},wi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},wi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var _i=function(){};function xi(e,t){t||(t=bi(e));var n=e.display.barWidth,r=e.display.barHeight;ki(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ri(e),ki(e,bi(e)),n=e.display.barWidth,r=e.display.barHeight}function ki(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}_i.prototype.update=function(){return{bottom:0,right:0}},_i.prototype.setScrollLeft=function(){},_i.prototype.setScrollTop=function(){},_i.prototype.clear=function(){};var Si={native:wi,null:_i};function Ei(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Si[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),be(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?yi(e,t):mi(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Ci=0;function Ai(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ci,markArrays:null},Ln(e.curOp)}function Oi(e){var t=e.curOp;t&&Mn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mi(e){e.updatedDisplay=e.mustUpdate&&qi(e.cm,e.update)}function ji(e){var t=e.cm,n=t.display;e.updatedDisplay&&ri(t),e.barMeasure=bi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ir(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Pi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=kt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Xe(t.mode,r.state):null,l=_t(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&hn)return zi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ni(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Zr(e))return!1;Ji(e)&&($r(e),t.dims=Nr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Rt&&(o=an(e.doc,o),a=sn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;qr(e,o,a),n.viewOffset=cn(tt(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Zr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=$i(e);return l>4&&(n.lineDiv.style.display="none"),Vi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Wi(u),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,zi(e,400)),n.updateLineNumbers=null,!0}function Zi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Qn(e))r&&(t.visible=oi(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Kn(e.display)-er(e),n.top)}),t.visible=oi(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!qi(e,t))break;ri(e);var i=bi(e);Gr(e),xi(e,i),Ki(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Gi(e,t){var n=new Ui(e,t);if(qi(e,n)){ri(e),Zi(e,n);var r=bi(e);Gr(e),xi(e,r),Ki(e,r),n.finish()}}function Vi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(d=!1),Nn(e,h,c,n)),d&&(O(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(lt(e.options,c)))),a=h.node.nextSibling}else{var p=$n(e,h,c,n);o.insertBefore(p,a)}c+=h.size}while(a)a=s(a)}function Yi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Pn(e,"gutterChanged",e)}function Ki(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jn(e)+"px"}function Xi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Qi(i.gutters,i.lineNumbers),eo(o),r.init(o)}Ui.prototype.signal=function(e,t){Ee(e,t)&&this.events.push(arguments)},Ui.prototype.finish=function(){for(var e=0;eu.clientWidth,p=u.scrollHeight>u.clientHeight;if(i&&d||o&&p){if(o&&b&&l)e:for(var g=t.target,m=s.view;g!=u;g=g.parentNode)for(var v=0;v=0&&ct(e,r.to())<=0)return n}return-1};var uo=function(e,t){this.anchor=e,this.head=t};function co(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ct(e.from(),t.from())})),n=q(t,i);for(var o=1;o0:l>=0){var u=pt(s.from(),a.from()),c=dt(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new uo(f?c:u,f?u:c))}}return new lo(t,n)}function fo(e,t){return new lo([new uo(e,t||e)],0)}function ho(e){return e.text?ut(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function po(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return ho(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ho(t).ch-t.to.ch),ut(n,r)}function go(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}Pn(e,"change",e,t)}function xo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function To(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Lo(i,i.lastOp==r)))a=ee(o.changes),0==ct(t.from,t.to)&&0==ct(t.from,a.to)?a.to=ho(t):o.changes.push(Ao(e,t));else{var l=ee(i.done);l&&l.ranges||Po(e.sel,i.done),o={changes:[Ao(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||xe(e,"historyAdded")}function Mo(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function jo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Mo(e,o,ee(i.done),t))?i.done[i.done.length-1]=t:Po(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Oo(i.undone)}function Po(e,t){var n=ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ro(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function No(e){if(!e)return null;for(var t,n=0;n-1&&(ee(s)[f]=u[f],delete u[f])}}}return r}function zo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ct(t,i)<0;o!=ct(n,i)<0?(i=t,t=n):o!=ct(t,n)<0&&(t=n)}return new uo(i,t)}return new uo(n||t,t)}function Bo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Zo(e,new lo([zo(e.sel.primary(),t,n,i)],0),r)}function Uo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(xe(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),h=void 0;if((r<0?c:u)&&(f=Qo(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(h=ct(f,n))&&(r<0?h<0:h>0))return Xo(e,f,t,r,i)}var d=l.find(r<0?-1:1);return(r<0?u:c)&&(d=Qo(e,d,r,d.line==t.line?o:null)),d?Xo(e,d,t,r,i):null}}return t}function Jo(e,t,n,r,i){var o=r||1,a=Xo(e,t,n,o,i)||!i&&Xo(e,t,n,o,!0)||Xo(e,t,n,-o,i)||!i&&Xo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ut(e.first,0))}function Qo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?mt(e,ut(t.line-1)):null:n>0&&t.ch==(r||tt(e,t.line)).text.length?t.line=0;--i)ra(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ra(e,t)}}function ra(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var n=go(e,t);To(e,t,n,e.cm?e.cm.curOp.id:NaN),aa(e,t,n,$t(e,t));var r=[];xo(e,(function(e,n){n||-1!=q(r,e.history)||(fa(e.history,t),r.push(e.history)),aa(e,t,null,$t(e,t))}))}}function ia(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--d){var p=h(d);if(p)return p.v}}}}function oa(e,t){if(0!=t&&(e.first+=t,e.sel=new lo(te(e.sel.ranges,(function(e){return new uo(ut(e.anchor.line+t,e.anchor.ch),ut(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Ur(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ut(o,tt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=nt(e,t.from,t.to),n||(n=go(e,t)),e.cm?sa(e.cm,t,r):_o(e,t,r),Go(e,n,V),e.cantEdit&&Jo(e,ut(e.firstLine(),0))&&(e.cantEdit=!1)}}function sa(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=ot(nn(tt(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Se(e),_o(r,t,n,Fr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=fn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),jt(r,o.line),zi(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Ur(e):o.line!=a.line||1!=t.text.length||wo(e.doc,t)?Ur(e,o.line,a.line+1,u):Hr(e,o.line,"text");var c=Ee(e,"changes"),f=Ee(e,"change");if(f||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Pn(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function la(e,t,n,r,i){var o;r||(r=n),ct(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),na(e,{from:n,to:r,text:t,origin:i})}function ua(e,t,n,r){n1||!(this.children[0]instanceof da))){var s=[];this.collapse(s),this.children=[new da(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(tn(e,t.line,t,n,o)||t.line!=n.line&&tn(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&To(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&nn(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&it(r,0),Bt(r,new Ft(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){ln(e,t)&&it(t,0)})),o.clearOnEnter&&be(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Nt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ya,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Ur(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Hr(u,c,"text");o.atomic&&Yo(u.doc),Pn(u,"markerAdded",u,o)}return o}ba.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ai(e),Ee(this,"clear")){var n=this.find();n&&Pn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Ur(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Yo(e.doc)),e&&Pn(e,"markerCleared",e,this,r,i),t&&Oi(e),this.parent&&this.parent.clear()}},ba.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)na(this,r[l]);s?qo(this,s):this.cm&&fi(this.cm)})),undo:Ii((function(){ia(this,"undo")})),redo:Ii((function(){ia(this,"redo")})),undoSelection:Ii((function(){ia(this,"undo",!0)})),redoSelection:Ii((function(){ia(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),mt(this,ut(n,t))},indexFromPos:function(e){e=mt(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Go(t.doc,fo(n,n)),h)for(var d=0;d=0;t--)la(e.doc,"",r[t].from,r[t].to,"+delete");fi(e)}))}function Xa(e,t,n){var r=fe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ja(e,t,n){var r=Xa(e,t.ch,n);return null==r?null:new ut(t.line,r,n<0?"after":"before")}function Qa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ve(n,t.doc.direction);if(o){var a,s=i<0?ee(o):o[0],l=i<0==(1==s.level),u=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=ar(t,n);a=i<0?n.text.length-1:0;var f=sr(t,c,a).top;a=he((function(e){return sr(t,c,e).top==f}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Xa(n,a,1))}else a=i<0?s.to:s.from;return new ut(r,a,u)}}return new ut(r,i<0?n.text.length:0,i<0?"before":"after")}function es(e,t,n,r){var i=ve(t,e.doc.direction);if(!i)return Ja(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ge(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&h>=c.begin)){var d=f?"before":"after";return new ut(n.line,h,d)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ut(n.line,l(e,1),"before"):new ut(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==m||r>0&&m==t.text.length||(g=p(r>0?0:i.length-1,r,u(m)),!g)?null:g}Ha.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ha.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ha.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ha.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ha["default"]=b?Ha.macDefault:Ha.pcDefault;var ts={selectAll:ea,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Ka(e,(function(t){if(t.empty()){var n=tt(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ut(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ut(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=tt(e.doc,i.line-1).text;a&&(i=new ut(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ut(i.line-1,a.length-1),i,"+transpose"))}n.push(new uo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ni(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ct((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ct(i.to(),t)>0||t.xRel<0)?Cs(e,r,t,o):Os(e,r,t,o)}function Cs(e,t,n,r){var i=e.display,o=!1,u=Di(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ei(e)),_e(i.wrapper.ownerDocument,"mouseup",u),_e(i.wrapper.ownerDocument,"mousemove",c),_e(i.scroller,"dragstart",f),_e(i.scroller,"drop",u),o||(Ae(t),r.addNew||Bo(e.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,be(i.wrapper.ownerDocument,"mouseup",u),be(i.wrapper.ownerDocument,"mousemove",c),be(i.scroller,"dragstart",f),be(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function As(e,t,n){if("char"==n)return new uo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new uo(ut(t.line,0),mt(e.doc,ut(t.line+1,0)));var r=n(e,t);return new uo(r.from,r.to)}function Os(e,t,n,r){a&&ei(e);var i=e.display,o=e.doc;Ae(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new uo(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new uo(n,n)),n=zr(e,t,!0,!0),l=-1;else{var f=As(e,n,r.unit);s=r.extend?zo(s,f.anchor,f.head,r.extend):f}r.addNew?-1==l?(l=c.length,Zo(o,co(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Zo(o,co(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Ho(o,l,s,Y):(l=0,Zo(o,new lo([s],0),Y),u=o.sel);var h=n;function d(t){if(0!=ct(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=$(tt(o,n.line).text,n.ch,a),f=$(tt(o,t.line).text,t.ch,a),d=Math.min(c,f),p=Math.max(c,f),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=tt(o,g).text,y=X(v,d,a);d==p?i.push(new uo(ut(g,y),ut(g,y))):v.length>y&&i.push(new uo(ut(g,y),ut(g,X(v,p,a))))}i.length||i.push(new uo(n,n)),Zo(o,co(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,_=As(e,t,r.unit),x=w.anchor;ct(_.anchor,x)>0?(b=_.head,x=pt(w.from(),_.anchor)):(b=_.anchor,x=dt(w.to(),_.head));var k=u.ranges.slice(0);k[l]=Ls(e,new uo(mt(o,x),b)),Zo(o,co(e,k,l),Y)}}var p=i.wrapper.getBoundingClientRect(),g=0;function m(t){var n=++g,a=zr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ct(a,h)){e.curOp.focus=P(I(e)),d(a);var s=oi(i,o);(a.line>=s.to||a.linep.bottom?20:0;l&&setTimeout(Di(e,(function(){g==n&&(i.scroller.scrollTop+=l,m(t))})),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(Ae(t),i.input.focus()),_e(i.wrapper.ownerDocument,"mousemove",y),_e(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Di(e,(function(e){0!==e.buttons&&je(e)?m(e):v(e)})),b=Di(e,v);e.state.selectingText=b,be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b)}function Ls(e,t){var n=t.anchor,r=t.head,i=tt(e.doc,n.line);if(0==ct(n,r)&&n.sticky==r.sticky)return t;var o=ve(i);if(!o)return t;var a=ge(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ge(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var h=o[u+(l?-1:0)],d=l==(1==h.level),p=d?h.from:h.to,g=d?"after":"before";return n.ch==p&&n.sticky==g?t:new uo(new ut(n.line,p,g),r)}function Ts(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(h){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ae(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ee(e,n))return Le(t);o-=s.top-a.viewOffset;for(var l=0;l=i){var c=at(e.doc,o),f=e.display.gutterSpecs[l];return xe(e,n,e,c,f.className,t),Le(t)}}}function Ms(e,t){return Ts(e,t,"gutterClick",!0)}function js(e,t){Vn(e.display,t)||Ps(e,t)||ke(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Ps(e,t){return!!Ee(e,"gutterContextMenu")&&Ts(e,t,"gutterContextMenu",!1)}function Rs(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mr(e)}ws.prototype.compare=function(e,t,n){return this.time+bs>e&&0==ct(t,this.pos)&&n==this.button};var Ns={toString:function(){return"CodeMirror.Init"}},Ds={},Fs={};function Is(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ns&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ns,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,yo(e)}),!0),n("indentUnit",2,yo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){bo(e),mr(e),Ur(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ut(r,o))}r++}));for(var i=n.length-1;i>=0;i--)la(e.doc,t,n[i],ut(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ns&&e.refresh()})),n("specialCharPlaceholder",wn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Rs(e),to(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ya(t),i=n!=Ns&&Ya(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Bs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Qi(t,e.options.lineNumbers),to(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Dr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return xi(e)}),!0),n("scrollbarStyle","native",(function(e){Ei(e),xi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Qi(e.options.gutters,t),to(e)}),!0),n("firstLineNumber",1,to,!0),n("lineNumberFormatter",(function(e){return e}),to,!0),n("showCursorWhenSelecting",!1,Gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ni(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,zs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Gr,!0),n("singleCursorHeightPerLine",!0,Gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,bo,!0),n("addModeClass",!1,bo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,bo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function zs(e,t,n){var r=n&&n!=Ns;if(!t!=!r){var i=e.display.dragFunctions,o=t?be:_e;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Bs(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),hn(e)),Ir(e),Ur(e),mr(e),setTimeout((function(){return xi(e)}),100)}function Us(e,t){var n=this;if(!(this instanceof Us))return new Us(e,t);this.options=t=t?H(t):{},H(Ds,t,!1);var r=t.value;"string"==typeof r?r=new Aa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Us.inputStyles[t.inputStyle](this),o=this.display=new no(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Rs(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ei(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new W,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Hs(this),Na(),Ai(this),this.curOp.forceUpdate=!0,ko(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&ti(n)}),20):ni(this),Fs)Fs.hasOwnProperty(u)&&Fs[u](this,t[u],Ns);Ji(this),t.finishInit&&t.finishInit(this);for(var c=0;c<$s.length;++c)$s[c](this);Oi(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Hs(e){var t=e.display;be(t.scroller,"mousedown",Di(e,xs)),be(t.scroller,"dblclick",a&&s<11?Di(e,(function(t){if(!ke(e,t)){var n=zr(e,t);if(n&&!Ms(e,t)&&!Vn(e.display,t)){Ae(t);var r=e.findWordAt(n);Bo(e.doc,r.anchor,r.head)}}})):function(t){return ke(e,t)||Ae(t)}),be(t.scroller,"contextmenu",(function(t){return js(e,t)})),be(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||js(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),r=t.activeTouch,r.end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}be(t.scroller,"touchstart",(function(i){if(!ke(e,i)&&!o(i)&&!Ms(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),be(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),be(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Vn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new uo(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new uo(ut(a.line,0),mt(e.doc,ut(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ae(n)}i()})),be(t.scroller,"touchcancel",i),be(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mi(e,t.scroller.scrollTop),yi(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))})),be(t.scroller,"mousewheel",(function(t){return so(e,t)})),be(t.scroller,"DOMMouseScroll",(function(t){return so(e,t)})),be(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ke(e,t)||Te(t)},over:function(t){ke(e,t)||(Ma(e,t),Te(t))},start:function(t){return Ta(e,t)},drop:Di(e,La),leave:function(t){ke(e,t)||ja(e)}};var u=t.input.getField();be(u,"keyup",(function(t){return gs.call(e,t)})),be(u,"keydown",Di(e,ds)),be(u,"keypress",Di(e,ms)),be(u,"focus",(function(t){return ti(e,t)})),be(u,"blur",(function(t){return ni(e,t)}))}Us.defaults=Ds,Us.optionHandlers=Fs;var $s=[];function Ws(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=kt(e,t).state:n="prev");var a=e.options.tabSize,s=tt(o,t),l=$(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(u=o.mode.indent(i,s.text.slice(c.length),s.text),u==G||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?$(tt(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/a);d;--d)h+=a,f+="\t";if(ha,l=Ie(t),u=null;if(s&&r.ranges.length>1)if(qs&&qs.text.join("\n")==t){if(r.ranges.length%qs.text.length==0){u=[];for(var c=0;c=0;h--){var d=r.ranges[h],p=d.from(),g=d.to();d.empty()&&(n&&n>0?p=ut(p.line,p.ch-n):e.state.overwrite&&!s?g=ut(g.line,Math.min(tt(o,g.line).text.length,g.ch+ee(l).length)):s&&qs&&qs.lineWise&&qs.text.join("\n")==l.join("\n")&&(p=g=ut(p.line,0)));var m={from:p,to:g,text:u?u[h%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};na(e.doc,m),Pn(e,"inputRead",e,m)}t&&!s&&Ys(e,t),fi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Vs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Ni(t,(function(){return Gs(t,n,0,null,"paste")})),!0}function Ys(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Ws(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(tt(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ws(e,i.head.line,"smart"));a&&Pn(e,"electricInput",e,i.head.line)}}}function Ks(e){for(var t=[],n=[],r=0;rn&&(Ws(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&fi(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Ho(this.doc,r,new uo(o,u[r].to()),V)}}})),getTokenAt:function(e,t){return Ot(this,e,t)},getLineTokens:function(e,t){return Ot(this,ut(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,n=xt(this,tt(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=tt(this.doc,e)}else r=e;return wr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-cn(r):0)},defaultTextHeight:function(){return Pr(this.display)},defaultCharWidth:function(){return Rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=kr(this,mt(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&li(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Fi(ds),triggerOnKeyPress:Fi(ms),triggerOnKeyUp:gs,triggerOnMouseDown:Fi(xs),execCommand:function(e){if(ts.hasOwnProperty(e))return ts[e].call(null,this)},triggerElectric:Fi((function(e){Ys(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=mt(this.doc,e),a=0;a0&&s(n.charAt(r-1)))--r;while(i.5||this.options.lineWrapping)&&Ir(this),xe(this,"refresh",this)})),swapDoc:Fi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),ko(this,e),mr(this),this.display.input.reset(),hi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Pn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ce(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function el(e,t,n,r,i){var o=t,a=n,s=tt(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new ut(n,t.ch,t.sticky),s=tt(e,n))}function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new ut(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=i?es(e.cm,s,t,n):Ja(s,t,n);if(null==a){if(o||!u())return!1;t=Qa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var f=null,h="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!c(!p))break;var g=s.text.charAt(t.ch)||"\n",m=se(g,d)?"w":h&&"\n"==g?"n":!h||/\s/.test(g)?null:"p";if(!h||p||m||(m="s"),f&&f!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(f=m),n>0&&!c(!p))break}var v=Jo(e,t,o,a,!0);return ft(o,v)&&(v.hitSide=!0),v}function tl(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,B(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*Pr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=Cr(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var nl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new W,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function rl(e,t){var n=or(e,t.line);if(!n||n.hidden)return null;var r=tt(e.doc,t.line),i=nr(n,r,t.line),o=ve(r,e.doc.direction),a="left";if(o){var s=ge(o,t.ch);a=s%2?"right":"left"}var l=cr(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function il(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ol(e,t){return t&&(e.bad=!0),e}function al(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function f(e){e&&(c(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(ut(r,0),ut(i+1,0),u(+d));return void(p.length&&(o=p[0].find(0))&&f(nt(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&c();for(var m=0;m=t.display.viewTo||o.line=t.display.viewFrom&&rl(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=ut(a.line-1,tt(r.doc,a.line-1).length)),s.ch==tt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Br(r,a.line))?(t=ot(i.view[0].line),n=i.view[0].node):(t=ot(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=Br(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=ot(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;var f=r.doc.splitLines(al(r,n,u,t,l)),h=nt(r.doc,ut(t,0),ut(l,tt(r.doc,l).text.length));while(f.length>1&&h.length>1)if(ee(f)==ee(h))f.pop(),h.pop(),l--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),t++}var d=0,p=0,g=f[0],m=h[0],v=Math.min(g.length,m.length);while(da.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1))d--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var _=ut(t,d),x=ut(l,h.length?ee(h).length-p:0);return f.length>1||f[0]||ct(_,x)?(la(r.doc,f,_,x,"+input"),!0):void 0},nl.prototype.ensurePolled=function(){this.forceCompositionEnd()},nl.prototype.reset=function(){this.forceCompositionEnd()},nl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},nl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ni(this.cm,(function(){return Ur(e.cm)}))},nl.prototype.setUneditable=function(e){e.contentEditable="false"},nl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Di(this.cm,Gs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},nl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},nl.prototype.onContextMenu=function(){},nl.prototype.resetPosition=function(){},nl.prototype.needsContentAttribute=!0;var ul=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new W,this.hasSelection=!1,this.composing=null,this.resetting=!1};function cl(e,t){if(t=t?H(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=P(z(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(be(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(_e(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Us((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function fl(e){e.off=_e,e.on=be,e.wheelEventPixels=ao,e.Doc=Aa,e.splitLines=Ie,e.countColumn=$,e.findColumn=X,e.isWordChar=ae,e.Pass=G,e.signal=xe,e.Line=dn,e.changeEnd=ho,e.scrollbarModel=Si,e.Pos=ut,e.cmpPos=ct,e.modes=$e,e.mimeModes=We,e.resolveMode=Ge,e.getMode=Ve,e.modeExtensions=Ye,e.extendMode=Ke,e.copyState=Xe,e.startState=Qe,e.innerMode=Je,e.commands=ts,e.keyMap=Ha,e.keyName=Va,e.isModifierKey=Za,e.lookupKey=qa,e.normalizeKeyMap=Wa,e.StringStream=et,e.SharedTextMarker=_a,e.TextMarker=ba,e.LineWidget=ga,e.e_preventDefault=Ae,e.e_stopPropagation=Oe,e.e_stop=Te,e.addClass=R,e.contains=j,e.rmClass=A,e.keyNames=Ia}ul.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ke(r,e)){if(r.somethingSelected())Zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ks(r);Zs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),D(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),be(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),be(i,"paste",(function(e){ke(r,e)||Vs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),be(i,"cut",o),be(i,"copy",o),be(e.scroller,"paste",(function(t){if(!Vn(e,t)&&!ke(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),be(e.lineSpace,"selectstart",(function(t){Vn(e,t)||Ae(t)})),be(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),be(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ul.prototype.createField=function(e){this.wrapper=Js(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Xs(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},ul.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ul.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Vr(e);if(e.options.moveInputWithCursor){var i=kr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ul.prototype.showSelection=function(e){var t=this.cm,n=t.display;L(n.cursorDiv,e.cursors),L(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ul.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&D(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},ul.prototype.getField=function(){return this.textarea},ul.prototype.supportsTouch=function(){return!1},ul.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||P(z(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},ul.prototype.blur=function(){this.textarea.blur()},ul.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ul.prototype.receivedFocus=function(){this.slowPoll()},ul.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ul.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ul.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||ze(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,u=Math.min(r.length,i.length);while(l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ul.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ul.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ul.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=zr(n,e),u=r.scroller.scrollTop;if(o&&!h){var c=n.options.resetSelectionOnContextMenu;c&&-1==n.doc.sel.contains(o)&&Di(n,Zo)(n.doc,fo(o),V);var f,d=i.style.cssText,p=t.wrapper.style.cssText,g=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-g.top-5)+"px; left: "+(e.clientX-g.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(f=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,f),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),S){Te(e);var m=function(){_e(window,"mouseup",m),setTimeout(y,20)};be(window,"mouseup",m)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Di(n,ea)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},ul.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ul.prototype.setUneditable=function(){},ul.prototype.needsContentAttribute=!1,Is(Us),Qs(Us);var hl="iter insert remove copy getEditor constructor".split(" ");for(var dl in Aa.prototype)Aa.prototype.hasOwnProperty(dl)&&q(hl,dl)<0&&(Us.prototype[dl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Aa.prototype[dl]));return Ce(Aa),Us.inputStyles={textarea:ul,contenteditable:nl},Us.defineMode=function(e){Us.defaults.mode||"null"==e||(Us.defaults.mode=e),qe.apply(this,arguments)},Us.defineMIME=Ze,Us.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Us.defineMIME("text/plain","null"),Us.defineExtension=function(e,t){Us.prototype[e]=t},Us.defineDocExtension=function(e,t){Aa.prototype[e]=t},Us.fromTextArea=cl,fl(Us),Us.version="5.65.17",Us}))},"56ef":function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},"577e":function(e,t,n){"use strict";var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},"57b9":function(e,t,n){"use strict";var r=n("c65b"),i=n("d066"),o=n("b622"),a=n("cb2d");e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},5899:function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},5926:function(e,t,n){"use strict";var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"59ed":function(e,t,n){"use strict";var r=n("1626"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},"5a34":function(e,t,n){"use strict";var r=n("44e7"),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},"5a47":function(e,t,n){"use strict";var r=n("23e7"),i=n("04f8"),o=n("d039"),a=n("7418"),s=n("7b0b"),l=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:l},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},"5c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e1a":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n("8707").Buffer,o=n(2);function a(e,t,n){e.copy(t,n)}e.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);var t=i.allocUnsafe(e>>>0),n=this.head,r=0;while(n)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},"5e77":function(e,t,n){"use strict";var r=n("83ab"),i=n("1a2d"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},"5e7e":function(e,t,n){"use strict";var r,i,o,a,s=n("23e7"),l=n("c430"),u=n("605d"),c=n("da84"),f=n("c65b"),h=n("cb2d"),d=n("d2bb"),p=n("d44e"),g=n("2626"),m=n("59ed"),v=n("1626"),y=n("861d"),b=n("19aa"),w=n("4840"),_=n("2cf4").set,x=n("b575"),k=n("44de"),S=n("e667"),E=n("01b4"),C=n("69f3"),A=n("d256"),O=n("4738"),L=n("f069"),T="Promise",M=O.CONSTRUCTOR,j=O.REJECTION_EVENT,P=O.SUBCLASSING,R=C.getterFor(T),N=C.set,D=A&&A.prototype,F=A,I=D,z=c.TypeError,B=c.document,U=c.process,H=L.f,$=H,W=!!(B&&B.createEvent&&c.dispatchEvent),q="unhandledrejection",Z="rejectionhandled",G=0,V=1,Y=2,K=1,X=2,J=function(e){var t;return!(!y(e)||!v(t=e.then))&&t},Q=function(e,t){var n,r,i,o=t.value,a=t.state===V,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(t.rejection===X&&ie(t),t.rejection=K),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?u(new z("Promise-chain cycle")):(r=J(n))?f(r,n,l,u):l(n)):u(o)}catch(h){c&&!i&&c.exit(),u(h)}},ee=function(e,t){e.notified||(e.notified=!0,x((function(){var n,r=e.reactions;while(n=r.get())Q(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var r,i;W?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!j&&(i=c["on"+e])?i(r):e===q&&k("Unhandled promise rejection",n)},ne=function(e){f(_,c,(function(){var t,n=e.facade,r=e.value,i=re(e);if(i&&(t=S((function(){u?U.emit("unhandledRejection",r,n):te(q,n,r)})),e.rejection=u||re(e)?X:K,t.error))throw t.value}))},re=function(e){return e.rejection!==K&&!e.parent},ie=function(e){f(_,c,(function(){var t=e.facade;u?U.emit("rejectionHandled",t):te(Z,t,e.value)}))},oe=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=Y,ee(e,!0))},se=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new z("Promise can't be resolved itself");var r=J(t);r?x((function(){var n={done:!1};try{f(r,t,oe(se,n,e),oe(ae,n,e))}catch(i){ae(n,i,e)}})):(e.value=t,e.state=V,ee(e,!1))}catch(i){ae({done:!1},i,e)}}};if(M&&(F=function(e){b(this,I),m(e),f(r,this);var t=R(this);try{e(oe(se,t),oe(ae,t))}catch(n){ae(t,n)}},I=F.prototype,r=function(e){N(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:G,value:void 0})},r.prototype=h(I,"then",(function(e,t){var n=R(this),r=H(w(this,F));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=u?U.domain:void 0,n.state===G?n.reactions.add(r):x((function(){Q(r,n)})),r.promise})),i=function(){var e=new r,t=R(e);this.promise=e,this.resolve=oe(se,t),this.reject=oe(ae,t)},L.f=H=function(e){return e===F||e===o?new i(e):$(e)},!l&&v(A)&&D!==Object.prototype)){a=D.then,P||h(D,"then",(function(e,t){var n=this;return new F((function(e,t){f(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(le){}d&&d(D,I)}s({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:F}),p(F,T,!1,!0),g(T)},"5eed":function(e,t,n){"use strict";var r=n("d256"),i=n("1c7e"),o=n("4738").CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},"605d":function(e,t,n){"use strict";var r=n("da84"),i=n("c6b6");e.exports="process"===i(r.process)},6069:function(e,t,n){"use strict";var r=n("6c59"),i=n("605d");e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),a=n("d039"),s=n("df75"),l=n("7418"),u=n("d1e7"),c=n("7b0b"),f=n("44ad"),h=Object.assign,d=Object.defineProperty,p=i([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==h({},e)[n]||s(h({},t)).join("")!==i}))?function(e,t){var n=c(e),i=arguments.length,a=1,h=l.f,d=u.f;while(i>a){var g,m=f(arguments[a++]),v=h?p(s(m),h(m)):s(m),y=v.length,b=0;while(y>b)g=v[b++],r&&!o(d,m,g)||(n[g]=m[g])}return n}:h},6374:function(e,t,n){"use strict";var r=n("da84"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},"64b0":function(e,t,n){"use strict";var r=n("71c9"),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},6547:function(e,t,n){"use strict";var r=n("e330"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,f=o(a(t)),h=i(n),d=f.length;return h<0||h>=d?e?"":void 0:(r=l(f,h),r<55296||r>56319||h+1===d||(c=l(f,h+1))<56320||c>57343?e?s(f,h):r:e?u(f,h,h+2):c-56320+(r-55296<<10)+65536)}};e.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(e,t,n){"use strict";var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"67d9":function(e,t,n){"use strict";e.exports=URIError},"67ee":function(e,t,n){"use strict";e.exports=SyntaxError},6853:function(e,t,n){"use strict";var r=n("be7f"),i=15,o=852,a=592,s=0,l=1,u=2,c=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],d=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,p,g,m,v,y){var b,w,_,x,k,S,E,C,A,O=y.bits,L=0,T=0,M=0,j=0,P=0,R=0,N=0,D=0,F=0,I=0,z=null,B=0,U=new r.Buf16(i+1),H=new r.Buf16(i+1),$=null,W=0;for(L=0;L<=i;L++)U[L]=0;for(T=0;T=1;j--)if(0!==U[j])break;if(P>j&&(P=j),0===j)return g[m++]=20971520,g[m++]=20971520,y.bits=1,0;for(M=1;M0&&(e===s||1!==j))return-1;for(H[1]=0,L=1;Lo||e===u&&F>a)return 1;for(;;){E=L-N,v[T]S?(C=$[W+v[T]],A=z[B+v[T]]):(C=96,A=0),b=1<>N)+w]=E<<24|C<<16|A|0}while(0!==w);b=1<>=1;if(0!==b?(I&=b-1,I+=b):I=0,T++,0===--U[L]){if(L===j)break;L=t[n+v[T]]}if(L>P&&(I&x)!==_){0===N&&(N=P),k+=M,R=L-N,D=1<o||e===u&&F>a)return 1;_=I&x,g[_]=P<<24|R<<16|k-m|0}}return 0!==I&&(g[k+I]=L-N<<24|64<<16|0),y.bits=P,0}},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,a="[object Function]",s=function(e,t){for(var n=[],r=0;rt.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}h.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||s.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},h.prototype.write=function(e,t,n,r,i,o,a){return this._write(!0,e,t,n,r,i,o,a)},h.prototype.writeSync=function(e,t,n,r,i,o,a){return this._write(!1,e,t,n,r,i,o,a)},h.prototype._write=function(n,o,a,s,l,u,c,f){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==t.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===o,"must provide flush value"),this.write_in_progress=!0,o!==t.Z_NO_FLUSH&&o!==t.Z_PARTIAL_FLUSH&&o!==t.Z_SYNC_FLUSH&&o!==t.Z_FULL_FLUSH&&o!==t.Z_FINISH&&o!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=e.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=u,this.strm.next_out=c,this.flush=o,!n)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return r.nextTick((function(){h._process(),h._after()})),this},h.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},h.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(this.strm.input[e]!==c){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;this.strm.input[e]===f?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:this.err=s.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));while(this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0])this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},h.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},h.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},h.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},h.prototype.init=function(e,n,r,o,a){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(e>=8&&e<=15,"invalid windowBits"),i(n>=-1&&n<=9,"invalid compression level"),i(r>=1&&r<=9,"invalid memlevel"),i(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,o,a),this._setDictionary()},h.prototype.params=function(){throw new Error("deflateParams Not supported")},h.prototype.reset=function(){this._reset(),this._setDictionary()},h.prototype._init=function(e,n,r,i,l){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=l,this.write_in_progress=!1,this.init_done=!0},h.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},h.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=a.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=s.inflateReset(this.strm);break;default:break}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=h}).call(this,n("b639").Buffer,n("4362"))},"6c59":function(e,t,n){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"6f19":function(e,t,n){"use strict";var r=n("9112"),i=n("0d26"),o=n("b980"),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},7149:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("c430"),a=n("d256"),s=n("4738").CONSTRUCTOR,l=n("cdf9"),u=i("Promise"),c=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},7156:function(e,t,n){"use strict";var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},"71c9":function(e,t,n){"use strict";var r=n("00ce"),i=r("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(o){i=!1}e.exports=i},7234:function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},7282:function(e,t,n){"use strict";var r=n("e330"),i=n("59ed");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},"780f":function(e,t,n){"use strict";e.exports=o;var r=n("27bf"),i=Object.create(n("3a7c"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n("3fb5"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){"use strict";var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7992:function(e,t,n){"use strict";var r=n("71c9"),i=n("67ee"),o=n("0d25"),a=n("2aa9");e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===l&&f?f.writable:!l});else{if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"7c73":function(e,t,n){"use strict";var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),f=">",h="<",d="prototype",p="script",g=c("IE_PROTO"),m=function(){},v=function(e){return h+p+f+e+h+"/"+p+f},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var e=a.length;while(e--)delete w[d][a[e]];return w()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[d]=i(e),n=new m,m[d]=null,n[g]=e):n=w(),void 0===t?n:o.f(n,t)}},"7d72":function(e,t,n){"use strict";var r=n("8707").Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=m,this.end=v,t=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function m(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n>>24,g>>>=x,m-=x,x=_>>>16&255,0===x)O[s++]=65535&_;else{if(!(16&x)){if(0===(64&x)){_=v[(65535&_)+(g&(1<>>=x,m-=x),m<15&&(g+=A[o++]<>>24,g>>>=x,m-=x,x=_>>>16&255,!(16&x)){if(0===(64&x)){_=y[(65535&_)+(g&(1<c){e.msg="invalid distance too far back",n.mode=r;break e}if(g>>>=x,m-=x,x=s-l,S>x){if(x=S-x,x>h&&n.sane){e.msg="invalid distance too far back",n.mode=r;break e}if(E=0,C=p,0===d){if(E+=f-x,x2)O[s++]=C[E++],O[s++]=C[E++],O[s++]=C[E++],k-=3;k&&(O[s++]=C[E++],k>1&&(O[s++]=C[E++]))}else{E=s-S;do{O[s++]=O[E++],O[s++]=O[E++],O[s++]=O[E++],k-=3}while(k>2);k&&(O[s++]=O[E++],k>1&&(O[s++]=O[E++]))}break}}break}}while(o>3,o-=k,m-=k<<3,g&=(1<"+l+""}},"861d":function(e,t,n){"use strict";var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},8707:function(e,t,n){var r=n("b639"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},8822:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function r(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);var n=Math.max(0,t.clientY-i.offsetHeight-5),r=Math.max(0,Math.min(t.clientX+5,i.ownerDocument.defaultView.innerWidth-i.offsetWidth));i.style.top=n+"px",i.style.left=r+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}function i(e){e.parentNode&&e.parentNode.removeChild(e)}function o(e){e.parentNode&&(null==e.style.opacity&&i(e),e.style.opacity=0,setTimeout((function(){i(e)}),600))}function a(t,n,i,a){var s=r(t,n,i);function l(){e.off(a,"mouseout",l),s&&(o(s),s=null)}var u=setInterval((function(){if(s)for(var e=a;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){l();break}}if(!s)return clearInterval(u)}),400);e.on(a,"mouseout",l)}function s(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},l)this.options[r]=l[r];for(var r in t)l.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){w(e,t)},this.waitingFor=0}var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&c(e);for(var r=0;r1,o.tooltips)),o.highlightLines&&e.addLineClass(s,"wrap",n+c)}}o.onUpdateLinting&&o.onUpdateLinting(r,a,e)}}function y(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){m(e)}),t.options.delay))}function b(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),o=0;o",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),f=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!f)return null;var h=">"==f.charAt(1)?1:-1;if(o&&o.strict&&h>0!=(l==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,l+1)),p=a(e,n(t.line,l+(h>0?1:0)),h,d,o);return null==p?null:{from:n(t.line,l),to:p&&p.pos,match:p&&p.ch==f.charAt(0),forward:h>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],f=i(s),h=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),d=t.line;d!=h;d+=o){var p=e.getLine(d);if(p){var g=o>0?0:p.length-1,m=o>0?p.length:-1;if(!(p.length>l))for(d==t.line&&(g=t.ch-(o<0?1:0));g!=m;g+=o){var v=p.charAt(g);if(f.test(v)&&(void 0===a||(e.getTokenTypeAt(n(d,g+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(d,g),ch:v};c.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function L(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var T=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},M=K,j=F,P=I,R=U,N=Y,D=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=D.exec(e))){var l=n[0],u=n[1],c=n.index;if(a+=e.slice(o,c),o=c+l.length,u)a+=u[1];else{var f=e[o],h=n[2],d=n[3],p=n[4],g=n[5],m=n[6],v=n[7];a&&(r.push(a),a="");var y=null!=h&&null!=f&&f!==h,b="+"===m||"*"===m,w="?"===m||"*"===m,_=n[2]||s,x=p||g;r.push({name:d||i++,prefix:h||"",delimiter:_,optional:w,repeat:b,partial:y,asterisk:!!v,pattern:x?$(x):v?".*":"[^"+H(_)+"]+?"})}}return o1||!S.length)return 0===S.length?e():e("span",{},S)}if("a"===this.tag)k.on=x,k.attrs={href:l,"aria-current":y};else{var E=ae(this.$slots.default);if(E){E.isStatic=!1;var C=E.data=r({},E.data);for(var A in C.on=C.on||{},C.on){var O=C.on[A];A in x&&(C.on[A]=Array.isArray(O)?O:[O])}for(var L in x)L in C.on?C.on[L].push(x[L]):C.on[L]=w;var T=E.data.attrs=r({},E.data.attrs);T.href=l,T["aria-current"]=y}else k.on=x}return e(this.tag,k,this.$slots.default)}};function oe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n-1&&(s.params[f]=n.params[f]);return s.path=J(u.path,s.params,'named route "'+l+'"'),h(u,s,a)}if(s.path){s.params={};for(var d=0;d-1}function Ze(e,t){return qe(e)&&e._isRouter&&(null==t||e.type===t)}function Ge(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ve(e){return function(t,n,r){var i=!1,o=0,a=null;Ye(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){i=!0,o++;var l,u=Qe((function(t){Je(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[s]=t,o--,o<=0&&r()})),c=Qe((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=qe(e)?e:new Error(t),r(a))}));try{l=e(u,c)}catch(h){c(h)}if(l)if("function"===typeof l.then)l.then(u,c);else{var f=l.component;f&&"function"===typeof f.then&&f.then(u,c)}}})),i||r()}}function Ye(e,t){return Ke(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ke(e){return Array.prototype.concat.apply([],e)}var Xe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Je(e){return e.__esModule||Xe&&"Module"===e[Symbol.toStringTag]}function Qe(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(le){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,r=Re&&n;r&&this.listeners.push(xe());var i=function(){var n=e.current,i=ft(e.base);e.current===m&&i===e._startLocation||e.transitionTo(i,(function(e){r&&ke(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Ne(L(r.base+e.fullPath)),ke(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){De(L(r.base+e.fullPath)),ke(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ft(this.base)!==this.current.fullPath){var t=L(this.base+this.current.fullPath);e?Ne(t):De(t)}},t.prototype.getCurrentLocation=function(){return ft(this.base)},t}(et);function ft(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(L(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ht=function(e){function t(t,n,r){e.call(this,t,n),r&&dt(this.base)||pt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Re&&n;r&&this.listeners.push(xe());var i=function(){var t=e.current;pt()&&e.transitionTo(gt(),(function(n){r&&ke(e.router,n,t,!0),Re||yt(n.fullPath)}))},o=Re?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){vt(e.fullPath),ke(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){yt(e.fullPath),ke(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;gt()!==t&&(e?vt(t):yt(t))},t.prototype.getCurrentLocation=function(){return gt()},t}(et);function dt(e){var t=ft(e);if(!/^\/#/.test(t))return window.location.replace(L(e+"/#"+t)),!0}function pt(){var e=gt();return"/"===e.charAt(0)||(yt("/"+e),!1)}function gt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function mt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function vt(e){Re?Ne(mt(e)):window.location.hash=e}function yt(e){Re?De(mt(e)):window.location.replace(mt(e))}var bt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){Ze(e,Fe.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),wt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=de(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Re&&!1!==e.fallback,this.fallback&&(t="hash"),le||(t="abstract"),this.mode=t,t){case"history":this.history=new ct(this,e.base);break;case"hash":this.history=new ht(this,e.base,this.fallback);break;case"abstract":this.history=new bt(this,e.base);break;default:0}},_t={currentRoute:{configurable:!0}};wt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},_t.currentRoute.get=function(){return this.history&&this.history.current},wt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof ct||n instanceof ht){var r=function(e){var r=n.current,i=t.options.scrollBehavior,o=Re&&i;o&&"fullPath"in e&&ke(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},wt.prototype.beforeEach=function(e){return kt(this.beforeHooks,e)},wt.prototype.beforeResolve=function(e){return kt(this.resolveHooks,e)},wt.prototype.afterEach=function(e){return kt(this.afterHooks,e)},wt.prototype.onReady=function(e,t){this.history.onReady(e,t)},wt.prototype.onError=function(e){this.history.onError(e)},wt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},wt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},wt.prototype.go=function(e){this.history.go(e)},wt.prototype.back=function(){this.go(-1)},wt.prototype.forward=function(){this.go(1)},wt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},wt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=Q(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=St(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},wt.prototype.getRoutes=function(){return this.matcher.getRoutes()},wt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},wt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(wt.prototype,_t);var xt=wt;function kt(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function St(e,t,n){var r="hash"===n?"#"+t:t;return e?L(e+"/"+r):r}wt.install=se,wt.version="3.6.5",wt.isNavigationFailure=Ze,wt.NavigationFailureType=Fe,wt.START_LOCATION=m,le&&window.Vue&&window.Vue.use(wt)},"8d70":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(t,n){var r=t.getLine(n),i=r.search(/\S/);return-1==i||/\bcomment\b/.test(t.getTokenTypeAt(e.Pos(n,i+1)))?-1:e.countColumn(r,null,t.getOption("tabSize"))}e.registerHelper("fold","indent",(function(n,r){var i=t(n,r.line);if(!(i<0)){for(var o=null,a=r.line+1,s=n.lastLine();a<=s;++a){var l=t(n,a);if(-1==l);else{if(!(l>i))break;o=a}}return o?{from:e.Pos(r.line,n.getLine(r.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}}))}))},"8d74":function(e,t,n){var r=n("4cef"),i=/^\s+/;function o(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=o},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8f94":function(e,t,n){!function(t,r){e.exports=r(n("56b3"))}(0,(function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=window.CodeMirror||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},i=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=s(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,d);var p=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;m(e.concat(r),t.getChild(r),n.modules[r])}}p.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},p.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},p.prototype.update=function(e){m([],this.root,e)},p.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&l(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},p.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},p.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g;var v=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&M(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var i=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;x(this,u,[],this._modules.root),_(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:g.config.devtools;c&&o(this)},y={state:{configurable:!0}};function b(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;x(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};l(i,(function(t,n){o[n]=f(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=g.config.silent;g.config.silent=!0,e._vm=new g({data:{$$state:t},computed:o}),g.config.silent=a,e.strict&&O(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),g.nextTick((function(){return r.$destroy()})))}function x(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=L(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){g.set(s,l,r.state)}))}var u=r.context=k(e,a,n);r.forEachMutation((function(t,n){var r=a+n;E(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;C(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;A(e,r,t,u)})),r.forEachChild((function(r,o){x(e,t,n.concat(o),r,i)}))}function k(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return S(e,t)}},state:{get:function(){return L(e.state,n)}}}),i}function S(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function E(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function C(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return c(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function A(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function O(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function L(e,t){return t.reduce((function(e,t){return e[t]}),e)}function T(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function M(e){g&&e===g||(g=e,n(g))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},v.prototype.commit=function(e,t,n){var r=this,i=T(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},v.prototype.dispatch=function(e,t){var n=this,r=T(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},v.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},v.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},v.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},v.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},v.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),x(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},v.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=L(t.state,e.slice(0,-1));g.delete(n,e[e.length-1])})),w(this)},v.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},v.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},v.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(v.prototype,y);var j=z((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=B(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),P=z((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=B(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=z((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||B(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),N=z((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=B(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),D=function(e){return{mapState:j.bind(null,e),mapGetters:R.bind(null,e),mapMutations:P.bind(null,e),mapActions:N.bind(null,e)}};function F(e){return I(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function I(e){return Array.isArray(e)||u(e)}function z(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function B(e,t,n){var r=e._modulesNamespaceMap[n];return r}function U(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var f=s(e.state);"undefined"!==typeof c&&(l&&e.subscribe((function(e,o){var a=s(o);if(n(e,f,a)){var l=W(),u=i(e),h="mutation "+e.type+l;H(c,h,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),$(c)}f=a})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var r=W(),i=a(e),s="action "+e.type+r;H(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),$(c)}})))}}function H(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function $(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+Z(e.getHours(),2)+":"+Z(e.getMinutes(),2)+":"+Z(e.getSeconds(),2)+"."+Z(e.getMilliseconds(),3)}function q(e,t){return new Array(t+1).join(e)}function Z(e,t){return q("0",t-e.toString().length)+e}var G={Store:v,install:M,version:"3.6.2",mapState:j,mapMutations:P,mapGetters:R,mapActions:N,createNamespacedHelpers:D,createLogger:U};t["a"]=G}).call(this,n("c8ba"))},3022:function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),l=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function c(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,n,r){if(e.customInspect&&n&&L(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return x(i)||(i=f(e,i,r)),i}var o=h(e,n);if(o)return o;var a=Object.keys(n),s=c(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),O(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(L(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(A(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return d(n)}var u,y="",b=!1,w=["{","}"];if(v(n)&&(b=!0,w=["[","]"]),L(n)){var _=n.name?": "+n.name:"";y=" [Function"+_+"]"}return E(n)&&(y=" "+RegExp.prototype.toString.call(n)),A(n)&&(y=" "+Date.prototype.toUTCString.call(n)),O(n)&&(y=" "+d(n)),0!==a.length||b&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=b?p(e,n,r,s,a):a.map((function(t){return m(e,n,r,s,t,b)})),e.seen.pop(),g(u,y,w)):w[0]+y+w[1]}function h(e,t){if(S(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return _(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],a=0,s=t.length;a-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),S(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function b(e){return null===e}function w(e){return null==e}function _(e){return"number"===typeof e}function x(e){return"string"===typeof e}function k(e){return"symbol"===typeof e}function S(e){return void 0===e}function E(e){return C(e)&&"[object RegExp]"===M(e)}function C(e){return"object"===typeof e&&null!==e}function A(e){return C(e)&&"[object Date]"===M(e)}function O(e){return C(e)&&("[object Error]"===M(e)||e instanceof Error)}function L(e){return"function"===typeof e}function T(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function M(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(o)&&(o=Object({NODE_ENV:"production",BASE_URL:""}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=y,t.isNull=b,t.isNullOrUndefined=w,t.isNumber=_,t.isString=x,t.isSymbol=k,t.isUndefined=S,t.isRegExp=E,t.isObject=C,t.isDate=A,t.isError=O,t.isFunction=L,t.isPrimitive=T,t.isBuffer=n("d60a");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",R(),t.format.apply(t,arguments))},t.inherits=n("28a0"),t._extend=function(e,t){if(!t||!C(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var D="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function F(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function I(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;ri)throw r("Maximum allowed index exceeded");return e}},3529:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),l=n("2266"),u=n("5eed");r({target:"Promise",stat:!0,forced:u},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=s((function(){var a=o(t.resolve);l(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},"35a1":function(e,t,n){"use strict";var r=n("f5df"),i=n("dc4a"),o=n("7234"),a=n("3f8c"),s=n("b622"),l=s("iterator");e.exports=function(e){if(!o(e))return i(e,l)||i(e,"@@iterator")||a[r(e)]}},3729:function(e,t,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}e.exports=u},"37e8":function(e,t,n){"use strict";var r=n("83ab"),i=n("aed9"),o=n("9bf2"),a=n("825a"),s=n("fc6a"),l=n("df75");t.f=r&&!i?Object.defineProperties:function(e,t){a(e);var n,r=s(t),i=l(t),u=i.length,c=0;while(u>c)o.f(e,n=i[c++],r[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3a34":function(e,t,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a7c":function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function l(e){return"string"===typeof e}function u(e){return"symbol"===typeof e}function c(e){return void 0===e}function f(e){return"[object RegExp]"===v(e)}function h(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function m(e){return"function"===typeof e}function g(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function v(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=a,t.isNumber=s,t.isString=l,t.isSymbol=u,t.isUndefined=c,t.isRegExp=f,t.isObject=h,t.isDate=d,t.isError=p,t.isFunction=m,t.isPrimitive=g,t.isBuffer=n("b639").Buffer.isBuffer},"3a9b":function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},"3bbe":function(e,t,n){"use strict";var r=n("1787"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),a=n("c6d2"),s=n("4754"),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",(function(e){u(this,{type:l,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},"3eb1":function(e,t,n){"use strict";var r=n("0f7c"),i=n("00ce"),o=n("d009"),a=n("0d25"),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,s),c=n("71c9"),f=i("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=u(r,l,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var h=function(){return u(r,s,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h},"3f8c":function(e,t,n){"use strict";e.exports={}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},"408a":function(e,t,n){"use strict";var r=n("e330");e.exports=r(1..valueOf)},"408c":function(e,t,n){var r=n("2b3e"),i=function(){return r.Date.now()};e.exports=i},"40d5":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"417f":function(e,t,n){"use strict";e.exports=EvalError},"428f":function(e,t,n){"use strict";var r=n("da84");e.exports=r},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44a0":function(e,t,n){(function(e){e(n("56b3"),n("959b"),n("9eb9"))})((function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",(function(n,r){var i=0;function o(e){return e.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in r)s[l]=r[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}))},"44ad":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("c6b6"),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},"44d2":function(e,t,n){"use strict";var r=n("b622"),i=n("7c73"),o=n("9bf2").f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},"44e7":function(e,t,n){"use strict";var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},4625:function(e,t,n){"use strict";var r=n("c6b6"),i=n("e330");e.exports=function(e){if("Function"===r(e))return i(e)}},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("7234"),s=n("50c4"),l=n("577e"),u=n("1d80"),c=n("dc4a"),f=n("8aa5"),h=n("14c3");i("match",(function(e,t,n){return[function(t){var n=u(this),i=a(t)?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=o(this),i=l(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return h(r,i);var u=r.unicode;r.lastIndex=0;var c,d=[],p=0;while(null!==(c=h(r,i))){var m=l(c[0]);d[p]=m,""===m&&(r.lastIndex=f(i,s(r.lastIndex),u)),p++}return 0===p?null:d}]}))},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},4681:function(e,t,n){"use strict";var r=n("966d");function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,e)):r.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(a,n,e)):r.nextTick(a,n,e):t&&t(e)})),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}e.exports={destroy:i,undestroy:o}},"470b":function(e,t,n){"use strict";(function(e){var r=n("b639").Buffer,i=n("d485").Transform,o=n("6b75"),a=n("3022"),s=n("f654").ok,l=n("b639").kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),f=0;f=l?a=new RangeError(u):t=r.concat(i,o),i=[],e.close(),n(a,t)}e.on("error",s),e.on("end",c),e.end(t),a()}function y(e,t){if("string"===typeof t&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Not a string or buffer");var n=e._finishFlushFlag;return e._processChunk(t,n)}function b(e){if(!(this instanceof b))return new b(e);A.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);A.call(this,e,o.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);A.call(this,e,o.GZIP)}function x(e){if(!(this instanceof x))return new x(e);A.call(this,e,o.GUNZIP)}function k(e){if(!(this instanceof k))return new k(e);A.call(this,e,o.DEFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);A.call(this,e,o.INFLATERAW)}function E(e){if(!(this instanceof E))return new E(e);A.call(this,e,o.UNZIP)}function C(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function A(e,n){var a=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!C(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!C(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag="undefined"!==typeof e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSizet.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitst.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelt.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelt.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!r.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(n);var s=this;this._hadError=!1,this._handle.onerror=function(e,n){O(s),s._hadError=!0;var r=new Error(e);r.errno=n,r.code=t.codes[n],s.emit("error",r)};var l=t.Z_DEFAULT_COMPRESSION;"number"===typeof e.level&&(l=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"===typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,l,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=l,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function O(t,n){n&&e.nextTick(n),t._handle&&(t._handle.close(),t._handle=null)}function L(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(d),writable:!1}),t.Deflate=b,t.Inflate=w,t.Gzip=_,t.Gunzip=x,t.DeflateRaw=k,t.InflateRaw=S,t.Unzip=E,t.createDeflate=function(e){return new b(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new k(e)},t.createInflateRaw=function(e){return new S(e)},t.createGzip=function(e){return new _(e)},t.createGunzip=function(e){return new x(e)},t.createUnzip=function(e){return new E(e)},t.deflate=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new b(t),e,n)},t.deflateSync=function(e,t){return y(new b(t),e)},t.gzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new _(t),e,n)},t.gzipSync=function(e,t){return y(new _(t),e)},t.deflateRaw=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new k(t),e,n)},t.deflateRawSync=function(e,t){return y(new k(t),e)},t.unzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new E(t),e,n)},t.unzipSync=function(e,t){return y(new E(t),e)},t.inflate=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new w(t),e,n)},t.inflateSync=function(e,t){return y(new w(t),e)},t.gunzip=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new x(t),e,n)},t.gunzipSync=function(e,t){return y(new x(t),e)},t.inflateRaw=function(e,t,n){return"function"===typeof t&&(n=t,t={}),v(new S(t),e,n)},t.inflateRawSync=function(e,t){return y(new S(t),e)},a.inherits(A,i),A.prototype.params=function(n,r,i){if(nt.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+n);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==n||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(a._handle,"zlib binding closed"),a._handle.params(n,r),a._hadError||(a._level=n,a._strategy=r,i&&i())}))}else e.nextTick(i)},A.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},A.prototype._flush=function(e){this._transform(r.alloc(0),"",e)},A.prototype.flush=function(t,n){var i=this,a=this._writableState;("function"===typeof t||void 0===t&&!n)&&(n=t,t=o.Z_FULL_FLUSH),a.ended?n&&e.nextTick(n):a.ending?n&&this.once("end",n):a.needDrain?n&&this.once("drain",(function(){return i.flush(t,n)})):(this._flushFlag=t,this.write(r.alloc(0),"",n))},A.prototype.close=function(t){O(this,t),e.nextTick(L,this)},A.prototype._transform=function(e,t,n){var i,a=this._writableState,s=a.ending||a.ended,l=s&&(!e||a.length===e.length);return null===e||r.isBuffer(e)?this._handle?(l?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},A.prototype._processChunk=function(e,t,n){var i=e&&e.length,o=this._chunkSize-this._offset,a=0,c=this,f="function"===typeof n;if(!f){var h,d=[],p=0;this.on("error",(function(e){h=e})),s(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,o)}while(!this._hadError&&y(m[0],m[1]));if(this._hadError)throw h;if(p>=l)throw O(this),new RangeError(u);var g=r.concat(d,p);return O(this),g}s(this._handle,"zlib binding closed");var v=this._handle.write(t,e,a,i,this._buffer,this._offset,o);function y(l,u){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var h=o-u;if(s(h>=0,"have should not go down"),h>0){var m=c._buffer.slice(c._offset,c._offset+h);c._offset+=h,f?c.push(m):(d.push(m),p+=m.length)}if((0===u||c._offset>=c._chunkSize)&&(o=c._chunkSize,c._offset=0,c._buffer=r.allocUnsafe(c._chunkSize)),0===u){if(a+=i-l,i=l,!f)return!0;var g=c._handle.write(t,e,a,i,c._buffer,c._offset,c._chunkSize);return g.callback=y,void(g.buffer=e)}if(!f)return!1;n()}}v.buffer=e,v.callback=y},a.inherits(b,A),a.inherits(w,A),a.inherits(_,A),a.inherits(x,A),a.inherits(k,A),a.inherits(S,A),a.inherits(E,A)}).call(this,n("4362"))},4738:function(e,t,n){"use strict";var r=n("da84"),i=n("d256"),o=n("1626"),a=n("94ca"),s=n("8925"),l=n("b622"),u=n("6069"),c=n("6c59"),f=n("c430"),h=n("2d00"),d=i&&i.prototype,p=l("species"),m=!1,g=o(r.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===h)return!0;if(f&&(!d["catch"]||!d["finally"]))return!0;if(!h||h<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};if(o[p]=r,m=n.then((function(){}))instanceof r,!m)return!0}return!t&&(u||c)&&!g}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:g,SUBCLASSING:m}},4754:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},4840:function(e,t,n){"use strict";var r=n("825a"),i=n("5087"),o=n("7234"),a=n("b622"),s=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},"485a":function(e,t,n){"use strict";var r=n("c65b"),i=n("1626"),o=n("861d"),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},4895:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(t,r,o,a){if(o&&o.call){var s=o;o=null}else s=i(t,o,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var l=i(t,o,"minFoldSize");function u(e){var n=s(t,r);if(!n||n.to.line-n.from.linet.firstLine())r=e.Pos(r.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==a){var f=n(t,o,c);e.on(f,"mousedown",(function(t){h.clear(),e.e_preventDefault(t)}));var h=t.markText(c.from,c.to,{replacedWith:f,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});h.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,c.from,c.to)}}function n(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);r=document.createElement("span"),r.appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;nc)if(u=s[c++],u!==u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4dc6":function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},5087:function(e,t,n){"use strict";var r=n("68ee"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},"50c4":function(e,t,n){"use strict";var r=n("5926"),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},5156:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},"51eb":function(e,t,n){"use strict";var r=n("825a"),i=n("485a"),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),l=n("825a"),u=n("1626"),c=n("7234"),f=n("5926"),h=n("50c4"),d=n("577e"),p=n("1d80"),m=n("8aa5"),g=n("dc4a"),v=n("0cb2"),y=n("14c3"),b=n("b622"),w=b("replace"),_=Math.max,x=Math.min,k=o([].concat),S=o([].push),E=o("".indexOf),C=o("".slice),A=function(e){return void 0===e?e:String(e)},O=function(){return"$0"==="a".replace(/./,"$0")}(),L=function(){return!!/./[w]&&""===/./[w]("a","$0")}(),T=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));a("replace",(function(e,t,n){var o=L?"$":"$0";return[function(e,n){var r=p(this),o=c(e)?void 0:g(e,w);return o?i(o,e,r,n):i(t,d(r),e,n)},function(e,i){var a=l(this),s=d(e);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var c=n(t,a,s,i);if(c.done)return c.value}var p=u(i);p||(i=d(i));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);var w,O=[];while(1){if(w=y(a,s),null===w)break;if(S(O,w),!b)break;var L=d(w[0]);""===L&&(a.lastIndex=m(s,h(a.lastIndex),g))}for(var T="",M=0,j=0;j=M&&(T+=C(s,M,N)+P,M=N+R.length)}return T+C(s,M)}]}),!T||!O||L)},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}},"545e":function(e,t,n){"use strict";var r=n("00ce"),i=n("3eb1"),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a4d3"),n("4de4"),n("14d9"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("159b");var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),w=/\bCrOS\b/.test(e),_=/win/i.test(t),x=h&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,l=!0);var k=b&&(u||h&&(null==x||x<12.11)),S=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,A=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function O(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function L(e,t){return O(e).appendChild(t)}function T(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(D=function(e){try{e.select()}catch(t){}});var W=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};function q(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var J=[""];function Q(e){while(J.length<=e)J.push(ee(J)+" ");return J[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function se(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ae(e))||t.test(e):ae(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ce(e){return e.charCodeAt(0)>=768&&ue.test(e)}function fe(e,t,n){while((n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function de(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var pe=null;function me(e,t,n){var r;pe=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:pe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:pe=i)}return null!=r?r:pe}var ge=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,f=[],h=0;h-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function xe(e,t){var n=we(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ce(e){e.prototype.on=function(e,t){be(this,e,t)},e.prototype.off=function(e,t){_e(this,e,t)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Oe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Le(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){Ae(e),Oe(e)}function Me(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Pe,Re,Ne=function(){if(a&&s<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Pe){var t=T("span","​");L(e,T("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Pe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Pe?T("span","​"):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Fe(e){if(null!=Re)return Re;var t=L(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return O(e),!(!n||n.left==n.right)&&(Re=r.right-n.right<3)}var Ie=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ze=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Be=function(){var e=T("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ue=null;function He(e){if(null!=Ue)return Ue;var t=L(e,T("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return Ue=Math.abs(n.left-r.left)>1}var $e={},We={};function qe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$e[e]=t}function Ze(e,t){We[e]=t}function Ge(e){if("string"==typeof e&&We.hasOwnProperty(e))e=We[e];else if(e&&"string"==typeof e.name&&We.hasOwnProperty(e.name)){var t=We[e.name];"string"==typeof t&&(t={name:t}),e=ie(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Ge(t);var n=$e[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ye.hasOwnProperty(t.name)){var i=Ye[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ye={};function Ke(e,t){var n=Ye.hasOwnProperty(e)?Ye[e]:Ye[e]={};H(t,n)}function Xe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Je(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}var et=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function tt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ut(n,tt(e,n).text.length):vt(t,tt(e,t.line).text.length)}function vt(e,t){var n=e.ch;return null==n||n>t?ut(e.line,t):n<0?ut(e.line,0):e}function yt(e,t){for(var n=[],r=0;r=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.post},et.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var bt=function(e,t){this.state=e,this.lookAhead=t},wt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function _t(e,t,n,r){var i=[e.state.modeGen],o={};Tt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Tt(e,t.text,s.mode,n,(function(e,t){var n=l;while(ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Xe(e.doc.mode,r.state),o=_t(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function kt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new wt(r,!0,t);var o=Mt(e,t,n),a=o>r.first&&tt(r,o-1).stateAfter,s=a?wt.fromSaved(r,a,o):new wt(r,Qe(r.mode),o);return r.iter(o,t,(function(n){St(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}wt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},wt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},wt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wt.fromSaved=function(e,t,n){return t instanceof bt?new wt(e,Xe(e.mode,t.state),n,t.lookAhead):new wt(e,Xe(e.mode,t),n)},wt.prototype.save=function(e){var t=!1!==e?Xe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new bt(t,this.maxLookAhead):t};var At=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ot(e,t,n,r){var i,o=e.doc,a=o.mode;t=gt(o,t);var s,l=tt(o,t.line),u=kt(e,t.line,n),c=new et(l.text,e.options.tabSize,u);r&&(s=[]);while((r||c.pose.options.maxHighlightLength?(s=!1,a&&St(e,t,r,f.pos),f.pos=t.length,l=null):l=Lt(Ct(n,f,r.state,h),o),h){var d=h[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||c!=l){while(ua;--s){if(s<=o.first)return o.first;var l=tt(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof bt?u.lookAhead:0)<=o.modeFrontier))return s;var c=$(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function jt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=tt(e,r).stateAfter;if(i&&(!(i instanceof bt)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Ft(a,o.from,l?null:o.to))}}return r}function Ht(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var w=0;w0)){var c=[l,1],f=ct(u.from,s.from),h=ct(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function Zt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Kt(n,o.marker)<0)&&(n=o.marker)}return n}function tn(e,t,n,r,i){var o=tt(e,t),a=Rt&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(u.to,n)>=0:ct(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(u.from,r)<=0:ct(u.from,r)<0)))return!0}}}function nn(e){var t;while(t=Jt(e))e=t.find(-1,!0).line;return e}function rn(e){var t;while(t=Qt(e))e=t.find(1,!0).line;return e}function on(e){var t,n;while(t=Qt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function an(e,t){var n=tt(e,t),r=nn(n);return n==r?t:ot(r)}function sn(e,t){if(t>e.lastLine())return t;var n,r=tt(e,t);if(!ln(e,r))return t;while(n=Qt(r))r=n.find(1,!0).line;return ot(r)+1}function ln(e,t){var n=Rt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var dn=function(e,t,n){this.text=e,Gt(this,t),this.height=n?n(this):1};function pn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Zt(e),Gt(e,n);var i=r?r(e):1;i!=e.height&&it(e,i)}function mn(e){e.parent=null,Zt(e)}dn.prototype.lineNo=function(){return ot(this)},Ce(dn);var gn={},vn={};function yn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?vn:gn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function bn(e,t){var n=M("span",null,null,l?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=_n,Fe(e.display.measure)&&(a=ve(o,e.doc.direction))&&(r.addToken=kn(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&ot(o);En(o,r,xt(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=N(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return xe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function wn(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function _n(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?xn(t,e.trailingSpace):t,f=e.cm.state.specialChars,h=!1;if(f.test(t)){u=document.createDocumentFragment();var d=0;while(1){f.lastIndex=d;var p=f.exec(t),m=p?p.index-d:t.length-d;if(m){var g=document.createTextNode(c.slice(d,d+m));a&&s<9?u.appendChild(T("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!p)break;d+=m+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;v=u.appendChild(T("span",Q(b),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?(v=u.appendChild(T("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",p[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(p[0]),v.setAttribute("cm-text",p[0]),a&&s<9?u.appendChild(T("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||h||o||l){var w=n||"";r&&(w+=r),i&&(w+=i);var _=T("span",[u],w,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&_.setAttribute(x,l[x]);return e.content.appendChild(_)}e.content.appendChild(u)}}function xn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&f.from<=u)break;if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function Sn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function En(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,h,d=i.length,p=0,m=1,g="",v=0;;){if(v==p){l=u=c=s="",h=null,f=null,v=1/0;for(var y=[],b=void 0,w=0;wp||x.collapsed&&_.to==p&&_.from==p)){if(null!=_.to&&_.to!=p&&v>_.to&&(v=_.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&_.from==p&&(c+=" "+x.startStyle),x.endStyle&&_.to==v&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((h||(h={})).title=x.title),x.attributes)for(var k in x.attributes)(h||(h={}))[k]=x.attributes[k];x.collapsed&&(!f||Kt(f.marker,x)<0)&&(f=_)}else _.from>p&&v>_.from&&(v=_.from)}if(b)for(var S=0;S=d)break;var C=Math.min(d,v);while(1){if(g){var A=p+g.length;if(!f){var O=A>C?g.slice(0,C-p):g;t.addToken(t,O,a?a+l:l,c,p+O.length==v?u:"",s,h)}if(A>=C){g=g.slice(C-p),p=C;break}p=A,c=""}g=i.slice(o,o=n[m++]),a=yn(n[m++],t.cm.options)}}else for(var L=1;L2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function nr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function rr(e,t){t=nn(t);var n=ot(t),r=e.display.externalMeasured=new Cn(e.doc,t,n);r.lineN=n;var i=r.built=bn(e,r);return r.text=i.pre,L(e.display.lineMeasure,i.pre),r}function ir(e,t,n,r){return sr(e,ar(e,t),n,r)}function or(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)while(u=0;i--)if((n=e[i]).left!=n.right)break;return n}function hr(e,t,n,r){var i,o=cr(t.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){while(u&&ce(t.line.text.charAt(o.coverStart+u)))--u;while(o.coverStart+c0&&(f=r="right"),i=e.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==r?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Rr(e.display),top:p.top,bottom:p.bottom}:ur}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var f=me(s,l,u),h=pe,d=c(l,f,"before"==u);return null!=h&&(d.other=c(l,h,"before"!=u)),d}function Sr(e,t){var n=0;t=gt(e.doc,t),e.options.lineWrapping||(n=Rr(e.display)*t.ch);var r=tt(e.doc,t.line),i=cn(r)+Yn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Er(e,t,n,r,i){var o=ut(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Cr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Er(r.first,0,null,-1,-1);var i=at(r,n),o=r.first+r.size-1;if(i>o)return Er(r.first+r.size-1,tt(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=tt(r,i);;){var s=Tr(e,a,i,t,n),l=en(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=tt(r,i=u.line)}}function Ar(e,t,n,r){r-=br(t);var i=t.text.length,o=he((function(t){return sr(e,n,t-1).bottom<=r}),i,0);return i=he((function(t){return sr(e,n,t).top>r}),o,i),{begin:o,end:i}}function Or(e,t,n,r){n||(n=ar(e,t));var i=wr(e,t,sr(e,n,r),"line").top;return Ar(e,t,n,i)}function Lr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Tr(e,t,n,r,i){i-=cn(t);var o=ar(e,t),a=br(t),s=0,l=t.text.length,u=!0,c=ve(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?jr:Mr)(e,t,n,o,c,r,i);u=1!=f.level,s=u?f.from:f.to-1,l=u?f.to:f.from-1}var h,d,p=null,m=null,g=he((function(t){var n=sr(e,o,t);return n.top+=a,n.bottom+=a,!!Lr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left=w.bottom?1:0}return g=fe(t.text,g,1),Er(n,g,d,v,r-h)}function Mr(e,t,n,r,i,o,a){var s=he((function(s){var l=i[s],u=1!=l.level;return Lr(kr(e,ut(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=kr(e,ut(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Lr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function jr(e,t,n,r,i,o,a){var s=Ar(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,h=0;h=u||d.to<=l)){var p=1!=d.level,m=sr(e,r,p?Math.min(u,d.to)-1:Math.max(l,d.from)).right,g=mg)&&(c=d,f=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Pr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==lr){lr=T("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)lr.appendChild(document.createTextNode("x")),lr.appendChild(T("br"));lr.appendChild(document.createTextNode("x"))}L(e.measure,lr);var n=lr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),O(e.measure),n||1}function Rr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=T("span","xxxxxxxxxx"),n=T("pre",[t],"CodeMirror-line-like");L(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Nr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Fr(e){var t=Pr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Rr(e.display)-3);return function(i){if(ln(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=tt(e.doc,u.line).text).length==u.ch){var c=$(l,l.length,e.options.tabSize)-l.length;u=ut(u.line,Math.max(0,Math.round((o-Xn(e.display).left)/Rr(e.display))-c))}return u}function Br(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Rt&&an(e.doc,t)i.viewFrom?$r(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)$r(e);else if(t<=i.viewFrom){var o=Wr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):$r(e)}else if(n>=i.viewTo){var a=Wr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):$r(e)}else{var s=Wr(e,t,t,-1),l=Wr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(An(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):$r(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Br(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==q(a,n)&&a.push(n)}}}function $r(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wr(e,t,n,r){var i,o=Br(e,t),a=e.display.view;if(!Rt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(an(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function qr(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=An(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=An(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Br(e,n)))),r.viewTo=n}function Zr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(T("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Kr(e,t){return e.top-t.top||e.left-t.left}function Xr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Xn(e.display),s=a.left,l=Math.max(r.sizerWidth,Qn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=tt(i,t),h=f.text.length;function d(n,r){return xr(e,ut(t,n),"div",f,r)}function p(t,n,r){var i=Or(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1);return d(a,o)[o]}var m=ve(f,i.direction);return de(m,n||0,null==r?h:r,(function(e,t,i,f){var g="ltr"==i,v=d(e,g?"left":"right"),y=d(t-1,g?"right":"left"),b=null==n&&0==e,w=null==r&&t==h,_=0==f,x=!m||f==m.length-1;if(y.top-v.top<=3){var k=(u?b:w)&&_,S=(u?w:b)&&x,E=k?s:(g?v:y).left,C=S?l:(g?y:v).right;c(E,v.top,C-E,v.bottom)}else{var A,O,L,T;g?(A=u&&b&&_?s:v.left,O=u?l:p(e,i,"before"),L=u?s:p(t,i,"after"),T=u&&w&&x?l:y.right):(A=u?p(e,i,"before"):s,O=!u&&b&&_?l:v.right,L=!u&&w&&x?s:y.left,T=u?p(t,i,"after"):l),c(A,v.top,O-A,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||ni(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ti(e))}function ei(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ni(e))}),100)}function ti(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Jr(e))}function ni(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ri(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(h/Rr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ii(e){if(e.widgets)for(var t=0;t=a&&(o=at(t,cn(tt(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ai(e,t){if(!ke(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=T("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Yn(e.display))+"px;\n height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function si(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ut(t.line,t.ch+1,"before"):t,t=t.ch?ut(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=kr(e,t),l=n&&n!=t?kr(e,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var u=ui(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(gi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(yi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function li(e,t){var n=ui(e,t);null!=n.scrollTop&&gi(e,n.scrollTop),null!=n.scrollLeft&&yi(e,n.scrollLeft)}function ui(e,t){var n=e.display,r=Pr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=er(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Kn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,d=Qn(e)-n.gutters.offsetWidth,p=t.right-t.left>d;return p&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+h-3&&(a.scrollLeft=t.right+(p?0:10)-d),a}function ci(e,t){null!=t&&(pi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function fi(e){pi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hi(e,t,n){null==t&&null==n||pi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function di(e,t){pi(e),e.curOp.scrollToPos=t}function pi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Sr(e,t.from),r=Sr(e,t.to);mi(e,n,r,t.margin)}}function mi(e,t,n,r){var i=ui(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});hi(e,i.scrollLeft,i.scrollTop)}function gi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Gi(e,{top:t}),vi(e,t,!0),n&&Gi(e),zi(e,100))}function vi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function yi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Xi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function bi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Kn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var wi=function(e,t,n){this.cm=n;var r=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),be(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),be(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},wi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new W,this.disableVert=new W},wi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},wi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var _i=function(){};function xi(e,t){t||(t=bi(e));var n=e.display.barWidth,r=e.display.barHeight;ki(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ri(e),ki(e,bi(e)),n=e.display.barWidth,r=e.display.barHeight}function ki(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}_i.prototype.update=function(){return{bottom:0,right:0}},_i.prototype.setScrollLeft=function(){},_i.prototype.setScrollTop=function(){},_i.prototype.clear=function(){};var Si={native:wi,null:_i};function Ei(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Si[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),be(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?yi(e,t):gi(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Ci=0;function Ai(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ci,markArrays:null},Ln(e.curOp)}function Oi(e){var t=e.curOp;t&&Mn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mi(e){e.updatedDisplay=e.mustUpdate&&qi(e.cm,e.update)}function ji(e){var t=e.cm,n=t.display;e.updatedDisplay&&ri(t),e.barMeasure=bi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ir(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Pi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=kt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Xe(t.mode,r.state):null,l=_t(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&hn)return zi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ni(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Zr(e))return!1;Ji(e)&&($r(e),t.dims=Nr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Rt&&(o=an(e.doc,o),a=sn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;qr(e,o,a),n.viewOffset=cn(tt(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Zr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=$i(e);return l>4&&(n.lineDiv.style.display="none"),Vi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Wi(u),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,zi(e,400)),n.updateLineNumbers=null,!0}function Zi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Qn(e))r&&(t.visible=oi(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Kn(e.display)-er(e),n.top)}),t.visible=oi(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!qi(e,t))break;ri(e);var i=bi(e);Gr(e),xi(e,i),Ki(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Gi(e,t){var n=new Ui(e,t);if(qi(e,n)){ri(e),Zi(e,n);var r=bi(e);Gr(e),xi(e,r),Ki(e,r),n.finish()}}function Vi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(d=!1),Nn(e,h,c,n)),d&&(O(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(lt(e.options,c)))),a=h.node.nextSibling}else{var p=$n(e,h,c,n);o.insertBefore(p,a)}c+=h.size}while(a)a=s(a)}function Yi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Pn(e,"gutterChanged",e)}function Ki(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jn(e)+"px"}function Xi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Qi(i.gutters,i.lineNumbers),eo(o),r.init(o)}Ui.prototype.signal=function(e,t){Ee(e,t)&&this.events.push(arguments)},Ui.prototype.finish=function(){for(var e=0;eu.clientWidth,p=u.scrollHeight>u.clientHeight;if(i&&d||o&&p){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=u;m=m.parentNode)for(var v=0;v=0&&ct(e,r.to())<=0)return n}return-1};var uo=function(e,t){this.anchor=e,this.head=t};function co(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ct(e.from(),t.from())})),n=q(t,i);for(var o=1;o0:l>=0){var u=pt(s.from(),a.from()),c=dt(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new uo(f?c:u,f?u:c))}}return new lo(t,n)}function fo(e,t){return new lo([new uo(e,t||e)],0)}function ho(e){return e.text?ut(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function po(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return ho(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ho(t).ch-t.to.ch),ut(n,r)}function mo(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}Pn(e,"change",e,t)}function xo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function To(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Lo(i,i.lastOp==r)))a=ee(o.changes),0==ct(t.from,t.to)&&0==ct(t.from,a.to)?a.to=ho(t):o.changes.push(Ao(e,t));else{var l=ee(i.done);l&&l.ranges||Po(e.sel,i.done),o={changes:[Ao(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||xe(e,"historyAdded")}function Mo(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function jo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Mo(e,o,ee(i.done),t))?i.done[i.done.length-1]=t:Po(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Oo(i.undone)}function Po(e,t){var n=ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ro(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function No(e){if(!e)return null;for(var t,n=0;n-1&&(ee(s)[f]=u[f],delete u[f])}}}return r}function zo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ct(t,i)<0;o!=ct(n,i)<0?(i=t,t=n):o!=ct(t,n)<0&&(t=n)}return new uo(i,t)}return new uo(n||t,t)}function Bo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Zo(e,new lo([zo(e.sel.primary(),t,n,i)],0),r)}function Uo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(xe(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),h=void 0;if((r<0?c:u)&&(f=Qo(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(h=ct(f,n))&&(r<0?h<0:h>0))return Xo(e,f,t,r,i)}var d=l.find(r<0?-1:1);return(r<0?u:c)&&(d=Qo(e,d,r,d.line==t.line?o:null)),d?Xo(e,d,t,r,i):null}}return t}function Jo(e,t,n,r,i){var o=r||1,a=Xo(e,t,n,o,i)||!i&&Xo(e,t,n,o,!0)||Xo(e,t,n,-o,i)||!i&&Xo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ut(e.first,0))}function Qo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?gt(e,ut(t.line-1)):null:n>0&&t.ch==(r||tt(e,t.line)).text.length?t.line=0;--i)ra(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ra(e,t)}}function ra(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var n=mo(e,t);To(e,t,n,e.cm?e.cm.curOp.id:NaN),aa(e,t,n,$t(e,t));var r=[];xo(e,(function(e,n){n||-1!=q(r,e.history)||(fa(e.history,t),r.push(e.history)),aa(e,t,null,$t(e,t))}))}}function ia(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--d){var p=h(d);if(p)return p.v}}}}function oa(e,t){if(0!=t&&(e.first+=t,e.sel=new lo(te(e.sel.ranges,(function(e){return new uo(ut(e.anchor.line+t,e.anchor.ch),ut(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Ur(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ut(o,tt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=nt(e,t.from,t.to),n||(n=mo(e,t)),e.cm?sa(e.cm,t,r):_o(e,t,r),Go(e,n,V),e.cantEdit&&Jo(e,ut(e.firstLine(),0))&&(e.cantEdit=!1)}}function sa(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=ot(nn(tt(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Se(e),_o(r,t,n,Fr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=fn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),jt(r,o.line),zi(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Ur(e):o.line!=a.line||1!=t.text.length||wo(e.doc,t)?Ur(e,o.line,a.line+1,u):Hr(e,o.line,"text");var c=Ee(e,"changes"),f=Ee(e,"change");if(f||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Pn(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function la(e,t,n,r,i){var o;r||(r=n),ct(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),na(e,{from:n,to:r,text:t,origin:i})}function ua(e,t,n,r){n1||!(this.children[0]instanceof da))){var s=[];this.collapse(s),this.children=[new da(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(tn(e,t.line,t,n,o)||t.line!=n.line&&tn(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&To(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&nn(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&it(r,0),Bt(r,new Ft(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){ln(e,t)&&it(t,0)})),o.clearOnEnter&&be(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Nt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ya,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Ur(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Hr(u,c,"text");o.atomic&&Yo(u.doc),Pn(u,"markerAdded",u,o)}return o}ba.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ai(e),Ee(this,"clear")){var n=this.find();n&&Pn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Ur(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Yo(e.doc)),e&&Pn(e,"markerCleared",e,this,r,i),t&&Oi(e),this.parent&&this.parent.clear()}},ba.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)na(this,r[l]);s?qo(this,s):this.cm&&fi(this.cm)})),undo:Ii((function(){ia(this,"undo")})),redo:Ii((function(){ia(this,"redo")})),undoSelection:Ii((function(){ia(this,"undo",!0)})),redoSelection:Ii((function(){ia(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=gt(this,e),t=gt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),gt(this,ut(n,t))},indexFromPos:function(e){e=gt(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Go(t.doc,fo(n,n)),h)for(var d=0;d=0;t--)la(e.doc,"",r[t].from,r[t].to,"+delete");fi(e)}))}function Xa(e,t,n){var r=fe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ja(e,t,n){var r=Xa(e,t.ch,n);return null==r?null:new ut(t.line,r,n<0?"after":"before")}function Qa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ve(n,t.doc.direction);if(o){var a,s=i<0?ee(o):o[0],l=i<0==(1==s.level),u=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=ar(t,n);a=i<0?n.text.length-1:0;var f=sr(t,c,a).top;a=he((function(e){return sr(t,c,e).top==f}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Xa(n,a,1))}else a=i<0?s.to:s.from;return new ut(r,a,u)}}return new ut(r,i<0?n.text.length:0,i<0?"before":"after")}function es(e,t,n,r){var i=ve(t,e.doc.direction);if(!i)return Ja(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=me(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&h>=c.begin)){var d=f?"before":"after";return new ut(n.line,h,d)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ut(n.line,l(e,1),"before"):new ut(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||(m=p(r>0?0:i.length-1,r,u(g)),!m)?null:m}Ha.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ha.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ha.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ha.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ha["default"]=b?Ha.macDefault:Ha.pcDefault;var ts={selectAll:ea,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Ka(e,(function(t){if(t.empty()){var n=tt(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ut(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ut(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=tt(e.doc,i.line-1).text;a&&(i=new ut(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ut(i.line-1,a.length-1),i,"+transpose"))}n.push(new uo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ni(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ct((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ct(i.to(),t)>0||t.xRel<0)?Cs(e,r,t,o):Os(e,r,t,o)}function Cs(e,t,n,r){var i=e.display,o=!1,u=Di(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ei(e)),_e(i.wrapper.ownerDocument,"mouseup",u),_e(i.wrapper.ownerDocument,"mousemove",c),_e(i.scroller,"dragstart",f),_e(i.scroller,"drop",u),o||(Ae(t),r.addNew||Bo(e.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,be(i.wrapper.ownerDocument,"mouseup",u),be(i.wrapper.ownerDocument,"mousemove",c),be(i.scroller,"dragstart",f),be(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function As(e,t,n){if("char"==n)return new uo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new uo(ut(t.line,0),gt(e.doc,ut(t.line+1,0)));var r=n(e,t);return new uo(r.from,r.to)}function Os(e,t,n,r){a&&ei(e);var i=e.display,o=e.doc;Ae(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new uo(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new uo(n,n)),n=zr(e,t,!0,!0),l=-1;else{var f=As(e,n,r.unit);s=r.extend?zo(s,f.anchor,f.head,r.extend):f}r.addNew?-1==l?(l=c.length,Zo(o,co(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Zo(o,co(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Ho(o,l,s,Y):(l=0,Zo(o,new lo([s],0),Y),u=o.sel);var h=n;function d(t){if(0!=ct(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=$(tt(o,n.line).text,n.ch,a),f=$(tt(o,t.line).text,t.ch,a),d=Math.min(c,f),p=Math.max(c,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=tt(o,m).text,y=X(v,d,a);d==p?i.push(new uo(ut(m,y),ut(m,y))):v.length>y&&i.push(new uo(ut(m,y),ut(m,X(v,p,a))))}i.length||i.push(new uo(n,n)),Zo(o,co(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,_=As(e,t,r.unit),x=w.anchor;ct(_.anchor,x)>0?(b=_.head,x=pt(w.from(),_.anchor)):(b=_.anchor,x=dt(w.to(),_.head));var k=u.ranges.slice(0);k[l]=Ls(e,new uo(gt(o,x),b)),Zo(o,co(e,k,l),Y)}}var p=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=zr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ct(a,h)){e.curOp.focus=P(I(e)),d(a);var s=oi(i,o);(a.line>=s.to||a.linep.bottom?20:0;l&&setTimeout(Di(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Ae(t),i.input.focus()),_e(i.wrapper.ownerDocument,"mousemove",y),_e(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Di(e,(function(e){0!==e.buttons&&je(e)?g(e):v(e)})),b=Di(e,v);e.state.selectingText=b,be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b)}function Ls(e,t){var n=t.anchor,r=t.head,i=tt(e.doc,n.line);if(0==ct(n,r)&&n.sticky==r.sticky)return t;var o=ve(i);if(!o)return t;var a=me(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=me(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var h=o[u+(l?-1:0)],d=l==(1==h.level),p=d?h.from:h.to,m=d?"after":"before";return n.ch==p&&n.sticky==m?t:new uo(new ut(n.line,p,m),r)}function Ts(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(h){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ae(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ee(e,n))return Le(t);o-=s.top-a.viewOffset;for(var l=0;l=i){var c=at(e.doc,o),f=e.display.gutterSpecs[l];return xe(e,n,e,c,f.className,t),Le(t)}}}function Ms(e,t){return Ts(e,t,"gutterClick",!0)}function js(e,t){Vn(e.display,t)||Ps(e,t)||ke(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Ps(e,t){return!!Ee(e,"gutterContextMenu")&&Ts(e,t,"gutterContextMenu",!1)}function Rs(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gr(e)}ws.prototype.compare=function(e,t,n){return this.time+bs>e&&0==ct(t,this.pos)&&n==this.button};var Ns={toString:function(){return"CodeMirror.Init"}},Ds={},Fs={};function Is(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ns&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ns,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,yo(e)}),!0),n("indentUnit",2,yo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){bo(e),gr(e),Ur(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ut(r,o))}r++}));for(var i=n.length-1;i>=0;i--)la(e.doc,t,n[i],ut(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ns&&e.refresh()})),n("specialCharPlaceholder",wn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Rs(e),to(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ya(t),i=n!=Ns&&Ya(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Bs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Qi(t,e.options.lineNumbers),to(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Dr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return xi(e)}),!0),n("scrollbarStyle","native",(function(e){Ei(e),xi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Qi(e.options.gutters,t),to(e)}),!0),n("firstLineNumber",1,to,!0),n("lineNumberFormatter",(function(e){return e}),to,!0),n("showCursorWhenSelecting",!1,Gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ni(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,zs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Gr,!0),n("singleCursorHeightPerLine",!0,Gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,bo,!0),n("addModeClass",!1,bo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,bo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function zs(e,t,n){var r=n&&n!=Ns;if(!t!=!r){var i=e.display.dragFunctions,o=t?be:_e;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Bs(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),hn(e)),Ir(e),Ur(e),gr(e),setTimeout((function(){return xi(e)}),100)}function Us(e,t){var n=this;if(!(this instanceof Us))return new Us(e,t);this.options=t=t?H(t):{},H(Ds,t,!1);var r=t.value;"string"==typeof r?r=new Aa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Us.inputStyles[t.inputStyle](this),o=this.display=new no(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Rs(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ei(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new W,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Hs(this),Na(),Ai(this),this.curOp.forceUpdate=!0,ko(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&ti(n)}),20):ni(this),Fs)Fs.hasOwnProperty(u)&&Fs[u](this,t[u],Ns);Ji(this),t.finishInit&&t.finishInit(this);for(var c=0;c<$s.length;++c)$s[c](this);Oi(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Hs(e){var t=e.display;be(t.scroller,"mousedown",Di(e,xs)),be(t.scroller,"dblclick",a&&s<11?Di(e,(function(t){if(!ke(e,t)){var n=zr(e,t);if(n&&!Ms(e,t)&&!Vn(e.display,t)){Ae(t);var r=e.findWordAt(n);Bo(e.doc,r.anchor,r.head)}}})):function(t){return ke(e,t)||Ae(t)}),be(t.scroller,"contextmenu",(function(t){return js(e,t)})),be(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||js(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),r=t.activeTouch,r.end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}be(t.scroller,"touchstart",(function(i){if(!ke(e,i)&&!o(i)&&!Ms(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),be(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),be(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Vn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new uo(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new uo(ut(a.line,0),gt(e.doc,ut(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ae(n)}i()})),be(t.scroller,"touchcancel",i),be(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(gi(e,t.scroller.scrollTop),yi(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))})),be(t.scroller,"mousewheel",(function(t){return so(e,t)})),be(t.scroller,"DOMMouseScroll",(function(t){return so(e,t)})),be(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ke(e,t)||Te(t)},over:function(t){ke(e,t)||(Ma(e,t),Te(t))},start:function(t){return Ta(e,t)},drop:Di(e,La),leave:function(t){ke(e,t)||ja(e)}};var u=t.input.getField();be(u,"keyup",(function(t){return ms.call(e,t)})),be(u,"keydown",Di(e,ds)),be(u,"keypress",Di(e,gs)),be(u,"focus",(function(t){return ti(e,t)})),be(u,"blur",(function(t){return ni(e,t)}))}Us.defaults=Ds,Us.optionHandlers=Fs;var $s=[];function Ws(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=kt(e,t).state:n="prev");var a=e.options.tabSize,s=tt(o,t),l=$(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(u=o.mode.indent(i,s.text.slice(c.length),s.text),u==G||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?$(tt(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",h=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/a);d;--d)h+=a,f+="\t";if(ha,l=Ie(t),u=null;if(s&&r.ranges.length>1)if(qs&&qs.text.join("\n")==t){if(r.ranges.length%qs.text.length==0){u=[];for(var c=0;c=0;h--){var d=r.ranges[h],p=d.from(),m=d.to();d.empty()&&(n&&n>0?p=ut(p.line,p.ch-n):e.state.overwrite&&!s?m=ut(m.line,Math.min(tt(o,m.line).text.length,m.ch+ee(l).length)):s&&qs&&qs.lineWise&&qs.text.join("\n")==l.join("\n")&&(p=m=ut(p.line,0)));var g={from:p,to:m,text:u?u[h%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};na(e.doc,g),Pn(e,"inputRead",e,g)}t&&!s&&Ys(e,t),fi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Vs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Ni(t,(function(){return Gs(t,n,0,null,"paste")})),!0}function Ys(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Ws(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(tt(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ws(e,i.head.line,"smart"));a&&Pn(e,"electricInput",e,i.head.line)}}}function Ks(e){for(var t=[],n=[],r=0;rn&&(Ws(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&fi(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Ho(this.doc,r,new uo(o,u[r].to()),V)}}})),getTokenAt:function(e,t){return Ot(this,e,t)},getLineTokens:function(e,t){return Ot(this,ut(e),t,!0)},getTokenTypeAt:function(e){e=gt(this.doc,e);var t,n=xt(this,tt(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=tt(this.doc,e)}else r=e;return wr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-cn(r):0)},defaultTextHeight:function(){return Pr(this.display)},defaultCharWidth:function(){return Rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=kr(this,gt(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&li(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Fi(ds),triggerOnKeyPress:Fi(gs),triggerOnKeyUp:ms,triggerOnMouseDown:Fi(xs),execCommand:function(e){if(ts.hasOwnProperty(e))return ts[e].call(null,this)},triggerElectric:Fi((function(e){Ys(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=gt(this.doc,e),a=0;a0&&s(n.charAt(r-1)))--r;while(i.5||this.options.lineWrapping)&&Ir(this),xe(this,"refresh",this)})),swapDoc:Fi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),ko(this,e),gr(this),this.display.input.reset(),hi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Pn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ce(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function el(e,t,n,r,i){var o=t,a=n,s=tt(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new ut(n,t.ch,t.sticky),s=tt(e,n))}function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new ut(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=i?es(e.cm,s,t,n):Ja(s,t,n);if(null==a){if(o||!u())return!1;t=Qa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var f=null,h="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!c(!p))break;var m=s.text.charAt(t.ch)||"\n",g=se(m,d)?"w":h&&"\n"==m?"n":!h||/\s/.test(m)?null:"p";if(!h||p||g||(g="s"),f&&f!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(f=g),n>0&&!c(!p))break}var v=Jo(e,t,o,a,!0);return ft(o,v)&&(v.hitSide=!0),v}function tl(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,B(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*Pr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=Cr(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var nl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new W,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function rl(e,t){var n=or(e,t.line);if(!n||n.hidden)return null;var r=tt(e.doc,t.line),i=nr(n,r,t.line),o=ve(r,e.doc.direction),a="left";if(o){var s=me(o,t.ch);a=s%2?"right":"left"}var l=cr(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function il(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ol(e,t){return t&&(e.bad=!0),e}function al(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function f(e){e&&(c(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(ut(r,0),ut(i+1,0),u(+d));return void(p.length&&(o=p[0].find(0))&&f(nt(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&rl(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=ut(a.line-1,tt(r.doc,a.line-1).length)),s.ch==tt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Br(r,a.line))?(t=ot(i.view[0].line),n=i.view[0].node):(t=ot(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=Br(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=ot(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;var f=r.doc.splitLines(al(r,n,u,t,l)),h=nt(r.doc,ut(t,0),ut(l,tt(r.doc,l).text.length));while(f.length>1&&h.length>1)if(ee(f)==ee(h))f.pop(),h.pop(),l--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),t++}var d=0,p=0,m=f[0],g=h[0],v=Math.min(m.length,g.length);while(da.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1))d--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var _=ut(t,d),x=ut(l,h.length?ee(h).length-p:0);return f.length>1||f[0]||ct(_,x)?(la(r.doc,f,_,x,"+input"),!0):void 0},nl.prototype.ensurePolled=function(){this.forceCompositionEnd()},nl.prototype.reset=function(){this.forceCompositionEnd()},nl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},nl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ni(this.cm,(function(){return Ur(e.cm)}))},nl.prototype.setUneditable=function(e){e.contentEditable="false"},nl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Di(this.cm,Gs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},nl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},nl.prototype.onContextMenu=function(){},nl.prototype.resetPosition=function(){},nl.prototype.needsContentAttribute=!0;var ul=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new W,this.hasSelection=!1,this.composing=null,this.resetting=!1};function cl(e,t){if(t=t?H(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=P(z(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(be(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(_e(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Us((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function fl(e){e.off=_e,e.on=be,e.wheelEventPixels=ao,e.Doc=Aa,e.splitLines=Ie,e.countColumn=$,e.findColumn=X,e.isWordChar=ae,e.Pass=G,e.signal=xe,e.Line=dn,e.changeEnd=ho,e.scrollbarModel=Si,e.Pos=ut,e.cmpPos=ct,e.modes=$e,e.mimeModes=We,e.resolveMode=Ge,e.getMode=Ve,e.modeExtensions=Ye,e.extendMode=Ke,e.copyState=Xe,e.startState=Qe,e.innerMode=Je,e.commands=ts,e.keyMap=Ha,e.keyName=Va,e.isModifierKey=Za,e.lookupKey=qa,e.normalizeKeyMap=Wa,e.StringStream=et,e.SharedTextMarker=_a,e.TextMarker=ba,e.LineWidget=ma,e.e_preventDefault=Ae,e.e_stopPropagation=Oe,e.e_stop=Te,e.addClass=R,e.contains=j,e.rmClass=A,e.keyNames=Ia}ul.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ke(r,e)){if(r.somethingSelected())Zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ks(r);Zs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),D(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),be(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),be(i,"paste",(function(e){ke(r,e)||Vs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),be(i,"cut",o),be(i,"copy",o),be(e.scroller,"paste",(function(t){if(!Vn(e,t)&&!ke(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),be(e.lineSpace,"selectstart",(function(t){Vn(e,t)||Ae(t)})),be(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),be(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ul.prototype.createField=function(e){this.wrapper=Js(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Xs(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},ul.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ul.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Vr(e);if(e.options.moveInputWithCursor){var i=kr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ul.prototype.showSelection=function(e){var t=this.cm,n=t.display;L(n.cursorDiv,e.cursors),L(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ul.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&D(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},ul.prototype.getField=function(){return this.textarea},ul.prototype.supportsTouch=function(){return!1},ul.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||P(z(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},ul.prototype.blur=function(){this.textarea.blur()},ul.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ul.prototype.receivedFocus=function(){this.slowPoll()},ul.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ul.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ul.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||ze(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,u=Math.min(r.length,i.length);while(l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ul.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ul.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ul.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=zr(n,e),u=r.scroller.scrollTop;if(o&&!h){var c=n.options.resetSelectionOnContextMenu;c&&-1==n.doc.sel.contains(o)&&Di(n,Zo)(n.doc,fo(o),V);var f,d=i.style.cssText,p=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(f=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,f),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),S){Te(e);var g=function(){_e(window,"mouseup",g),setTimeout(y,20)};be(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Di(n,ea)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},ul.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ul.prototype.setUneditable=function(){},ul.prototype.needsContentAttribute=!1,Is(Us),Qs(Us);var hl="iter insert remove copy getEditor constructor".split(" ");for(var dl in Aa.prototype)Aa.prototype.hasOwnProperty(dl)&&q(hl,dl)<0&&(Us.prototype[dl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Aa.prototype[dl]));return Ce(Aa),Us.inputStyles={textarea:ul,contenteditable:nl},Us.defineMode=function(e){Us.defaults.mode||"null"==e||(Us.defaults.mode=e),qe.apply(this,arguments)},Us.defineMIME=Ze,Us.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Us.defineMIME("text/plain","null"),Us.defineExtension=function(e,t){Us.prototype[e]=t},Us.defineDocExtension=function(e,t){Aa.prototype[e]=t},Us.fromTextArea=cl,fl(Us),Us.version="5.65.17",Us}))},"56ef":function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},"577e":function(e,t,n){"use strict";var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},"57b9":function(e,t,n){"use strict";var r=n("c65b"),i=n("d066"),o=n("b622"),a=n("cb2d");e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},5899:function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},5926:function(e,t,n){"use strict";var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"59ed":function(e,t,n){"use strict";var r=n("1626"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},"5a34":function(e,t,n){"use strict";var r=n("44e7"),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},"5a47":function(e,t,n){"use strict";var r=n("23e7"),i=n("04f8"),o=n("d039"),a=n("7418"),s=n("7b0b"),l=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:l},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},"5c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e1a":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n("8707").Buffer,o=n(2);function a(e,t,n){e.copy(t,n)}e.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);var t=i.allocUnsafe(e>>>0),n=this.head,r=0;while(n)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},"5e77":function(e,t,n){"use strict";var r=n("83ab"),i=n("1a2d"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},"5e7e":function(e,t,n){"use strict";var r,i,o,a,s=n("23e7"),l=n("c430"),u=n("605d"),c=n("da84"),f=n("c65b"),h=n("cb2d"),d=n("d2bb"),p=n("d44e"),m=n("2626"),g=n("59ed"),v=n("1626"),y=n("861d"),b=n("19aa"),w=n("4840"),_=n("2cf4").set,x=n("b575"),k=n("44de"),S=n("e667"),E=n("01b4"),C=n("69f3"),A=n("d256"),O=n("4738"),L=n("f069"),T="Promise",M=O.CONSTRUCTOR,j=O.REJECTION_EVENT,P=O.SUBCLASSING,R=C.getterFor(T),N=C.set,D=A&&A.prototype,F=A,I=D,z=c.TypeError,B=c.document,U=c.process,H=L.f,$=H,W=!!(B&&B.createEvent&&c.dispatchEvent),q="unhandledrejection",Z="rejectionhandled",G=0,V=1,Y=2,K=1,X=2,J=function(e){var t;return!(!y(e)||!v(t=e.then))&&t},Q=function(e,t){var n,r,i,o=t.value,a=t.state===V,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(t.rejection===X&&ie(t),t.rejection=K),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?u(new z("Promise-chain cycle")):(r=J(n))?f(r,n,l,u):l(n)):u(o)}catch(h){c&&!i&&c.exit(),u(h)}},ee=function(e,t){e.notified||(e.notified=!0,x((function(){var n,r=e.reactions;while(n=r.get())Q(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var r,i;W?(r=B.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!j&&(i=c["on"+e])?i(r):e===q&&k("Unhandled promise rejection",n)},ne=function(e){f(_,c,(function(){var t,n=e.facade,r=e.value,i=re(e);if(i&&(t=S((function(){u?U.emit("unhandledRejection",r,n):te(q,n,r)})),e.rejection=u||re(e)?X:K,t.error))throw t.value}))},re=function(e){return e.rejection!==K&&!e.parent},ie=function(e){f(_,c,(function(){var t=e.facade;u?U.emit("rejectionHandled",t):te(Z,t,e.value)}))},oe=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=Y,ee(e,!0))},se=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new z("Promise can't be resolved itself");var r=J(t);r?x((function(){var n={done:!1};try{f(r,t,oe(se,n,e),oe(ae,n,e))}catch(i){ae(n,i,e)}})):(e.value=t,e.state=V,ee(e,!1))}catch(i){ae({done:!1},i,e)}}};if(M&&(F=function(e){b(this,I),g(e),f(r,this);var t=R(this);try{e(oe(se,t),oe(ae,t))}catch(n){ae(t,n)}},I=F.prototype,r=function(e){N(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:G,value:void 0})},r.prototype=h(I,"then",(function(e,t){var n=R(this),r=H(w(this,F));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=u?U.domain:void 0,n.state===G?n.reactions.add(r):x((function(){Q(r,n)})),r.promise})),i=function(){var e=new r,t=R(e);this.promise=e,this.resolve=oe(se,t),this.reject=oe(ae,t)},L.f=H=function(e){return e===F||e===o?new i(e):$(e)},!l&&v(A)&&D!==Object.prototype)){a=D.then,P||h(D,"then",(function(e,t){var n=this;return new F((function(e,t){f(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(le){}d&&d(D,I)}s({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:F}),p(F,T,!1,!0),m(T)},"5eed":function(e,t,n){"use strict";var r=n("d256"),i=n("1c7e"),o=n("4738").CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},"605d":function(e,t,n){"use strict";var r=n("da84"),i=n("c6b6");e.exports="process"===i(r.process)},6069:function(e,t,n){"use strict";var r=n("6c59"),i=n("605d");e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),a=n("d039"),s=n("df75"),l=n("7418"),u=n("d1e7"),c=n("7b0b"),f=n("44ad"),h=Object.assign,d=Object.defineProperty,p=i([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==h({},e)[n]||s(h({},t)).join("")!==i}))?function(e,t){var n=c(e),i=arguments.length,a=1,h=l.f,d=u.f;while(i>a){var m,g=f(arguments[a++]),v=h?p(s(g),h(g)):s(g),y=v.length,b=0;while(y>b)m=v[b++],r&&!o(d,g,m)||(n[m]=g[m])}return n}:h},6374:function(e,t,n){"use strict";var r=n("da84"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},"64b0":function(e,t,n){"use strict";var r=n("71c9"),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},6547:function(e,t,n){"use strict";var r=n("e330"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,f=o(a(t)),h=i(n),d=f.length;return h<0||h>=d?e?"":void 0:(r=l(f,h),r<55296||r>56319||h+1===d||(c=l(f,h+1))<56320||c>57343?e?s(f,h):r:e?u(f,h,h+2):c-56320+(r-55296<<10)+65536)}};e.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(e,t,n){"use strict";var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"67d9":function(e,t,n){"use strict";e.exports=URIError},"67ee":function(e,t,n){"use strict";e.exports=SyntaxError},6853:function(e,t,n){"use strict";var r=n("be7f"),i=15,o=852,a=592,s=0,l=1,u=2,c=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],d=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,p,m,g,v,y){var b,w,_,x,k,S,E,C,A,O=y.bits,L=0,T=0,M=0,j=0,P=0,R=0,N=0,D=0,F=0,I=0,z=null,B=0,U=new r.Buf16(i+1),H=new r.Buf16(i+1),$=null,W=0;for(L=0;L<=i;L++)U[L]=0;for(T=0;T=1;j--)if(0!==U[j])break;if(P>j&&(P=j),0===j)return m[g++]=20971520,m[g++]=20971520,y.bits=1,0;for(M=1;M0&&(e===s||1!==j))return-1;for(H[1]=0,L=1;Lo||e===u&&F>a)return 1;for(;;){E=L-N,v[T]S?(C=$[W+v[T]],A=z[B+v[T]]):(C=96,A=0),b=1<>N)+w]=E<<24|C<<16|A|0}while(0!==w);b=1<>=1;if(0!==b?(I&=b-1,I+=b):I=0,T++,0===--U[L]){if(L===j)break;L=t[n+v[T]]}if(L>P&&(I&x)!==_){0===N&&(N=P),k+=M,R=L-N,D=1<o||e===u&&F>a)return 1;_=I&x,m[_]=P<<24|R<<16|k-g|0}}return 0!==I&&(m[k+I]=L-N<<24|64<<16|0),y.bits=P,0}},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,a="[object Function]",s=function(e,t){for(var n=[],r=0;rt.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}h.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||s.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},h.prototype.write=function(e,t,n,r,i,o,a){return this._write(!0,e,t,n,r,i,o,a)},h.prototype.writeSync=function(e,t,n,r,i,o,a){return this._write(!1,e,t,n,r,i,o,a)},h.prototype._write=function(n,o,a,s,l,u,c,f){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==t.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===o,"must provide flush value"),this.write_in_progress=!0,o!==t.Z_NO_FLUSH&&o!==t.Z_PARTIAL_FLUSH&&o!==t.Z_SYNC_FLUSH&&o!==t.Z_FULL_FLUSH&&o!==t.Z_FINISH&&o!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==a&&(a=e.alloc(0),l=0,s=0),this.strm.avail_in=l,this.strm.input=a,this.strm.next_in=s,this.strm.avail_out=f,this.strm.output=u,this.strm.next_out=c,this.flush=o,!n)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return r.nextTick((function(){h._process(),h._after()})),this},h.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},h.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(this.strm.input[e]!==c){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;this.strm.input[e]===f?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:this.err=s.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));while(this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0])this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},h.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},h.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},h.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},h.prototype.init=function(e,n,r,o,a){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(e>=8&&e<=15,"invalid windowBits"),i(n>=-1&&n<=9,"invalid compression level"),i(r>=1&&r<=9,"invalid memlevel"),i(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,e,r,o,a),this._setDictionary()},h.prototype.params=function(){throw new Error("deflateParams Not supported")},h.prototype.reset=function(){this._reset(),this._setDictionary()},h.prototype._init=function(e,n,r,i,l){switch(this.level=e,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=l,this.write_in_progress=!1,this.init_done=!0},h.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},h.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=a.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=s.inflateReset(this.strm);break;default:break}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=h}).call(this,n("b639").Buffer,n("4362"))},"6c59":function(e,t,n){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"6f19":function(e,t,n){"use strict";var r=n("9112"),i=n("0d26"),o=n("b980"),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},7149:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("c430"),a=n("d256"),s=n("4738").CONSTRUCTOR,l=n("cdf9"),u=i("Promise"),c=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},7156:function(e,t,n){"use strict";var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},"71c9":function(e,t,n){"use strict";var r=n("00ce"),i=r("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(o){i=!1}e.exports=i},7234:function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},7282:function(e,t,n){"use strict";var r=n("e330"),i=n("59ed");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},"780f":function(e,t,n){"use strict";e.exports=o;var r=n("27bf"),i=Object.create(n("3a7c"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n("3fb5"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){"use strict";var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7992:function(e,t,n){"use strict";var r=n("71c9"),i=n("67ee"),o=n("0d25"),a=n("2aa9");e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===l&&f?f.writable:!l});else{if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"7c73":function(e,t,n){"use strict";var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),f=">",h="<",d="prototype",p="script",m=c("IE_PROTO"),g=function(){},v=function(e){return h+p+f+e+h+"/"+p+f},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var e=a.length;while(e--)delete w[d][a[e]];return w()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[d]=i(e),n=new g,g[d]=null,n[m]=e):n=w(),void 0===t?n:o.f(n,t)}},"7d72":function(e,t,n){"use strict";var r=n("8707").Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n>>24,m>>>=x,g-=x,x=_>>>16&255,0===x)O[s++]=65535&_;else{if(!(16&x)){if(0===(64&x)){_=v[(65535&_)+(m&(1<>>=x,g-=x),g<15&&(m+=A[o++]<>>24,m>>>=x,g-=x,x=_>>>16&255,!(16&x)){if(0===(64&x)){_=y[(65535&_)+(m&(1<c){e.msg="invalid distance too far back",n.mode=r;break e}if(m>>>=x,g-=x,x=s-l,S>x){if(x=S-x,x>h&&n.sane){e.msg="invalid distance too far back",n.mode=r;break e}if(E=0,C=p,0===d){if(E+=f-x,x2)O[s++]=C[E++],O[s++]=C[E++],O[s++]=C[E++],k-=3;k&&(O[s++]=C[E++],k>1&&(O[s++]=C[E++]))}else{E=s-S;do{O[s++]=O[E++],O[s++]=O[E++],O[s++]=O[E++],k-=3}while(k>2);k&&(O[s++]=O[E++],k>1&&(O[s++]=O[E++]))}break}}break}}while(o>3,o-=k,g-=k<<3,m&=(1<"+l+""}},"861d":function(e,t,n){"use strict";var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},8707:function(e,t,n){var r=n("b639"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},8822:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function r(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);var n=Math.max(0,t.clientY-i.offsetHeight-5),r=Math.max(0,Math.min(t.clientX+5,i.ownerDocument.defaultView.innerWidth-i.offsetWidth));i.style.top=n+"px",i.style.left=r+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}function i(e){e.parentNode&&e.parentNode.removeChild(e)}function o(e){e.parentNode&&(null==e.style.opacity&&i(e),e.style.opacity=0,setTimeout((function(){i(e)}),600))}function a(t,n,i,a){var s=r(t,n,i);function l(){e.off(a,"mouseout",l),s&&(o(s),s=null)}var u=setInterval((function(){if(s)for(var e=a;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){l();break}}if(!s)return clearInterval(u)}),400);e.on(a,"mouseout",l)}function s(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},l)this.options[r]=l[r];for(var r in t)l.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){w(e,t)},this.waitingFor=0}var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&c(e);for(var r=0;r1,o.tooltips)),o.highlightLines&&e.addLineClass(s,"wrap",n+c)}}o.onUpdateLinting&&o.onUpdateLinting(r,a,e)}}function y(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){g(e)}),t.options.delay))}function b(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),o=0;o",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),f=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!f)return null;var h=">"==f.charAt(1)?1:-1;if(o&&o.strict&&h>0!=(l==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,l+1)),p=a(e,n(t.line,l+(h>0?1:0)),h,d,o);return null==p?null:{from:n(t.line,l),to:p&&p.pos,match:p&&p.ch==f.charAt(0),forward:h>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],f=i(s),h=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),d=t.line;d!=h;d+=o){var p=e.getLine(d);if(p){var m=o>0?0:p.length-1,g=o>0?p.length:-1;if(!(p.length>l))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=p.charAt(m);if(f.test(v)&&(void 0===a||(e.getTokenTypeAt(n(d,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(d,m),ch:v};c.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function L(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var T=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},M=K,j=F,P=I,R=U,N=Y,D=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=D.exec(e))){var l=n[0],u=n[1],c=n.index;if(a+=e.slice(o,c),o=c+l.length,u)a+=u[1];else{var f=e[o],h=n[2],d=n[3],p=n[4],m=n[5],g=n[6],v=n[7];a&&(r.push(a),a="");var y=null!=h&&null!=f&&f!==h,b="+"===g||"*"===g,w="?"===g||"*"===g,_=n[2]||s,x=p||m;r.push({name:d||i++,prefix:h||"",delimiter:_,optional:w,repeat:b,partial:y,asterisk:!!v,pattern:x?$(x):v?".*":"[^"+H(_)+"]+?"})}}return o1||!S.length)return 0===S.length?e():e("span",{},S)}if("a"===this.tag)k.on=x,k.attrs={href:l,"aria-current":y};else{var E=ae(this.$slots.default);if(E){E.isStatic=!1;var C=E.data=r({},E.data);for(var A in C.on=C.on||{},C.on){var O=C.on[A];A in x&&(C.on[A]=Array.isArray(O)?O:[O])}for(var L in x)L in C.on?C.on[L].push(x[L]):C.on[L]=w;var T=E.data.attrs=r({},E.data.attrs);T.href=l,T["aria-current"]=y}else k.on=x}return e(this.tag,k,this.$slots.default)}};function oe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n-1&&(s.params[f]=n.params[f]);return s.path=J(u.path,s.params,'named route "'+l+'"'),h(u,s,a)}if(s.path){s.params={};for(var d=0;d-1}function Ze(e,t){return qe(e)&&e._isRouter&&(null==t||e.type===t)}function Ge(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function Ve(e){return function(t,n,r){var i=!1,o=0,a=null;Ye(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){i=!0,o++;var l,u=Qe((function(t){Je(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[s]=t,o--,o<=0&&r()})),c=Qe((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=qe(e)?e:new Error(t),r(a))}));try{l=e(u,c)}catch(h){c(h)}if(l)if("function"===typeof l.then)l.then(u,c);else{var f=l.component;f&&"function"===typeof f.then&&f.then(u,c)}}})),i||r()}}function Ye(e,t){return Ke(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ke(e){return Array.prototype.concat.apply([],e)}var Xe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Je(e){return e.__esModule||Xe&&"Module"===e[Symbol.toStringTag]}function Qe(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(le){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,r=Re&&n;r&&this.listeners.push(xe());var i=function(){var n=e.current,i=ft(e.base);e.current===g&&i===e._startLocation||e.transitionTo(i,(function(e){r&&ke(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Ne(L(r.base+e.fullPath)),ke(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){De(L(r.base+e.fullPath)),ke(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ft(this.base)!==this.current.fullPath){var t=L(this.base+this.current.fullPath);e?Ne(t):De(t)}},t.prototype.getCurrentLocation=function(){return ft(this.base)},t}(et);function ft(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(L(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ht=function(e){function t(t,n,r){e.call(this,t,n),r&&dt(this.base)||pt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Re&&n;r&&this.listeners.push(xe());var i=function(){var t=e.current;pt()&&e.transitionTo(mt(),(function(n){r&&ke(e.router,n,t,!0),Re||yt(n.fullPath)}))},o=Re?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){vt(e.fullPath),ke(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){yt(e.fullPath),ke(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;mt()!==t&&(e?vt(t):yt(t))},t.prototype.getCurrentLocation=function(){return mt()},t}(et);function dt(e){var t=ft(e);if(!/^\/#/.test(t))return window.location.replace(L(e+"/#"+t)),!0}function pt(){var e=mt();return"/"===e.charAt(0)||(yt("/"+e),!1)}function mt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function gt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function vt(e){Re?Ne(gt(e)):window.location.hash=e}function yt(e){Re?De(gt(e)):window.location.replace(gt(e))}var bt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){Ze(e,Fe.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),wt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=de(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Re&&!1!==e.fallback,this.fallback&&(t="hash"),le||(t="abstract"),this.mode=t,t){case"history":this.history=new ct(this,e.base);break;case"hash":this.history=new ht(this,e.base,this.fallback);break;case"abstract":this.history=new bt(this,e.base);break;default:0}},_t={currentRoute:{configurable:!0}};wt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},_t.currentRoute.get=function(){return this.history&&this.history.current},wt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof ct||n instanceof ht){var r=function(e){var r=n.current,i=t.options.scrollBehavior,o=Re&&i;o&&"fullPath"in e&&ke(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},wt.prototype.beforeEach=function(e){return kt(this.beforeHooks,e)},wt.prototype.beforeResolve=function(e){return kt(this.resolveHooks,e)},wt.prototype.afterEach=function(e){return kt(this.afterHooks,e)},wt.prototype.onReady=function(e,t){this.history.onReady(e,t)},wt.prototype.onError=function(e){this.history.onError(e)},wt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},wt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},wt.prototype.go=function(e){this.history.go(e)},wt.prototype.back=function(){this.go(-1)},wt.prototype.forward=function(){this.go(1)},wt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},wt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=Q(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=St(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},wt.prototype.getRoutes=function(){return this.matcher.getRoutes()},wt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},wt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(wt.prototype,_t);var xt=wt;function kt(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function St(e,t,n){var r="hash"===n?"#"+t:t;return e?L(e+"/"+r):r}wt.install=se,wt.version="3.6.5",wt.isNavigationFailure=Ze,wt.NavigationFailureType=Fe,wt.START_LOCATION=g,le&&window.Vue&&window.Vue.use(wt)},"8d70":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(t,n){var r=t.getLine(n),i=r.search(/\S/);return-1==i||/\bcomment\b/.test(t.getTokenTypeAt(e.Pos(n,i+1)))?-1:e.countColumn(r,null,t.getOption("tabSize"))}e.registerHelper("fold","indent",(function(n,r){var i=t(n,r.line);if(!(i<0)){for(var o=null,a=r.line+1,s=n.lastLine();a<=s;++a){var l=t(n,a);if(-1==l);else{if(!(l>i))break;o=a}}return o?{from:e.Pos(r.line,n.getLine(r.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}}))}))},"8d74":function(e,t,n){var r=n("4cef"),i=/^\s+/;function o(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=o},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8f94":function(e,t,n){!function(t,r){e.exports=r(n("56b3"))}(0,(function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o=window.CodeMirror||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r */ -t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?h/l:h*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,u-=8);e[n+d-p]|=128*g}},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),l=n("5692"),u=n("7c73"),c=n("69f3").get,f=n("fce3"),h=n("107c"),d=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=i("".charAt),v=i("".indexOf),y=i("".replace),b=i("".slice),w=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],k=w||x||_||f||h;k&&(g=function(e){var t,n,i,s,l,f,h,k=this,S=c(k),E=o(e),C=S.raw;if(C)return C.lastIndex=k.lastIndex,t=r(g,C,E),k.lastIndex=C.lastIndex,t;var A=S.groups,O=_&&k.sticky,L=r(a,k),T=k.source,M=0,j=E;if(O&&(L=y(L,"y",""),-1===v(L,"g")&&(L+="g"),j=b(E,k.lastIndex),k.lastIndex>0&&(!k.multiline||k.multiline&&"\n"!==m(E,k.lastIndex-1))&&(T="(?: "+T+")",j=" "+j,M++),n=new RegExp("^(?:"+T+")",L)),x&&(n=new RegExp("^"+T+"$(?!\\s)",L)),w&&(i=k.lastIndex),s=r(p,O?n:k,j),O?s?(s.input=b(s.input,M),s[0]=b(s[0],M),s.index=k.lastIndex,k.lastIndex+=s[0].length):k.lastIndex=0:w&&s&&(k.lastIndex=k.global?s.index+s[0].length:i),x&&s&&s.length>1&&r(d,s[0],n,(function(){for(l=1;l` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v=" ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function w(e){return!e||!/\S/.test(e.string)}function _(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==k){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=A,t.block=x,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function x(t,r){var i=t.column()===r.indentation,s=w(r.prevLine.stream),d=r.indentedCode,m=r.prevLine.hr,v=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var _=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){r.list=null;while(_=4&&(d||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=b&&(C=t.match(f))&&C[1].length<=6)return r.quote=0,r.header=C[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,E(r);if(r.indentation<=b&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),E(r);if(!k&&!r.setext&&i&&r.indentation<=b&&(C=t.match(u))){var A=C[1]?"ol":"ul";return r.indentation=_+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(c,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+A]),E(r)}return i&&r.indentation<=b&&(C=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(C[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(C[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=S,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,E(r)):r.setext||!(x&&v||r.quote||!1!==r.list||r.code||k||g.test(t.string))&&(C=t.lookAhead(1))&&(C=C.match(h))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==C[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,E(r)):k?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?y(t,r,j):y(t,r,r.inline)}function k(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=A,n.block=x,n.htmlState=null)}return o}function S(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function C(e,t){if(e.match(d,!0))return E(t)}function A(t,i){var o=i.text(t,i);if("undefined"!==typeof o)return o;if(i.list)return i.list=null,E(i);if(i.taskList){var s=" "===t.match(c,!0)[1];return s?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,E(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),E(i);var l=t.next();if(i.linkTitle){i.linkTitle=!1;var u=l;"("===l&&(u=")"),u=(u+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var f="^\\s*(?:[^"+u+"\\\\]+|\\\\\\\\|\\\\.)"+u;if(t.match(new RegExp(f),!0))return a.linkHref}if("`"===l){var h=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var d=t.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var p=E(i);return i.code=0,p}return i.formatting=h,E(i)}return i.code=d,E(i)}if(i.code)return E(i);if("\\"===l&&(t.next(),n.highlightFormatting)){var g=E(i),v=a.formatting+"-escape";return g?g+" "+v:v}if("!"===l&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),E(i);if("["===l&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),E(i);if("]"===l&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");g=E(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=L,g}if("["===l&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),E(i);if("]"===l&&i.linkText){n.highlightFormatting&&(i.formatting="link");g=E(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?L:A,g}if("<"===l&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=O,n.highlightFormatting&&(i.formatting="link");g=E(i);return g?g+=" ":g="",g+a.linkInline}if("<"===l&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=O,n.highlightFormatting&&(i.formatting="link");g=E(i);return g?g+=" ":g="",g+a.linkEmail}if(n.xml&&"<"===l&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var w=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(w)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,k)}if(n.xml&&"<"===l&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===l||"_"===l){var _=1,x=1==t.pos?" ":t.string.charAt(t.pos-2);while(_<3&&t.eat(l))_++;var S=t.peek()||" ",C=!/\s/.test(S)&&(!m.test(S)||/\s/.test(x)||m.test(x)),T=!/\s/.test(x)&&(!m.test(x)||/\s/.test(S)||m.test(S)),M=null,j=null;if(_%2&&(i.em||!C||"*"!==l&&T&&!m.test(x)?i.em!=l||!T||"*"!==l&&C&&!m.test(S)||(M=!1):M=!0),_>1&&(i.strong||!C||"*"!==l&&T&&!m.test(x)?i.strong!=l||!T||"*"!==l&&C&&!m.test(S)||(j=!1):j=!0),null!=j||null!=M){n.highlightFormatting&&(i.formatting=null==M?"strong":null==j?"em":"strong em"),!0===M&&(i.em=l),!0===j&&(i.strong=l);p=E(i);return!1===M&&(i.em=!1),!1===j&&(i.strong=!1),p}}else if(" "===l&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return E(i);t.backUp(1)}if(n.strikethrough)if("~"===l&&t.eatWhile(l)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");p=E(i);return i.strikethrough=!1,p}if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),E(i)}else if(" "===l&&t.match("~~",!0)){if(" "===t.peek())return E(i);t.backUp(2)}if(n.emoji&&":"===l&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var P=E(i);return i.emoji=!1,P}return" "===l&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),E(i)}function O(e,t){var r=e.next();if(">"===r){t.f=t.inline=A,n.highlightFormatting&&(t.formatting="link");var i=E(t);return i?i+=" ":i="",i+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function L(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=M("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,E(t)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function M(e){return function(t,r){var i=t.next();if(i===e){r.f=r.inline=A,n.highlightFormatting&&(r.formatting="link-string");var o=E(r);return r.linkHref=!1,o}return t.match(T[e]),r.linkHref=!0,E(r)}}function j(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=P,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,E(t)):y(e,t,A)}function P(e,t){if(e.match("]:",!0)){t.f=t.inline=R,n.highlightFormatting&&(t.formatting="link");var r=E(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function R(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=A,a.linkHref+" url")}var N={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:A,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return _(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=k)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==k?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:N}},indent:function(t,n,i){return t.block==k&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:_,getType:E,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return N}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}))},"966d":function(e,t,n){"use strict";(function(t){function n(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:o=new Array(s-1),a=0;while(a=51||!i((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:o(e)},y=!m||!h("concat");r({target:"Array",proto:!0,arity:1,forced:y},{concat:function(e){var t,n,r,i,o,a=s(this),h=f(a,0),d=0;for(t=-1,r=arguments.length;t>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function oe(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=x,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,p):v}function se(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,ae(e)):v}function le(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,se(e))):v}function ue(e,t){var n,r;return e?(r=new oe,e.state=r,r.window=null,n=le(e,t),n!==p&&(e.state=null),n):v}function ce(e){return ue(e,re)}var fe,he,de=!0;function pe(e){if(de){var t;fe=new r.Buf32(512),he=new r.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;s(u,e.lens,0,288,fe,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;s(c,e.lens,0,32,he,0,e.work,{bits:5}),de=!1}e.lencode=fe,e.lenbits=9,e.distcode=he,e.distbits=5}function ge(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o=a.wsize-a.wnext,o>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),i-=o,i?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,Ae,2,0),se=0,le=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=X;break}if((15&se)!==_){e.msg="unknown compression method",n.mode=X;break}if(se>>>=4,le-=4,xe=8+(15&se),0===n.wbits)n.wbits=xe;else if(xe>n.wbits){e.msg="invalid window size",n.mode=X;break}n.dmax=1<>8&1),512&n.flags&&(Ae[0]=255&se,Ae[1]=se>>>8&255,n.check=o(n.check,Ae,2,0)),se=0,le=0,n.mode=S;case S:while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<>>8&255,Ae[2]=se>>>16&255,Ae[3]=se>>>24&255,n.check=o(n.check,Ae,4,0)),se=0,le=0,n.mode=E;case E:while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<>8),512&n.flags&&(Ae[0]=255&se,Ae[1]=se>>>8&255,n.check=o(n.check,Ae,2,0)),se=0,le=0,n.mode=C;case C:if(1024&n.flags){while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<>>8&255,n.check=o(n.check,Ae,2,0)),se=0,le=0}else n.head&&(n.head.extra=null);n.mode=A;case A:if(1024&n.flags&&(fe=n.length,fe>oe&&(fe=oe),fe&&(n.head&&(xe=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,fe,xe)),512&n.flags&&(n.check=o(n.check,ee,fe,ne)),oe-=fe,ne+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=O;case O:if(2048&n.flags){if(0===oe)break e;fe=0;do{xe=ee[ne+fe++],n.head&&xe&&n.length<65536&&(n.head.name+=String.fromCharCode(xe))}while(xe&&fe>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=P;break;case M:while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<>>=7&le,le-=7&le,n.mode=V;break}while(le<3){if(0===oe)break e;oe--,se+=ee[ne++]<>>=1,le-=1,3&se){case 0:n.mode=N;break;case 1:if(pe(n),n.mode=U,t===d){se>>>=2,le-=2;break e}break;case 2:n.mode=I;break;case 3:e.msg="invalid block type",n.mode=X}se>>>=2,le-=2;break;case N:se>>>=7&le,le-=7≤while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=X;break}if(n.length=65535&se,se=0,le=0,n.mode=D,t===d)break e;case D:n.mode=F;case F:if(fe=n.length,fe){if(fe>oe&&(fe=oe),fe>ae&&(fe=ae),0===fe)break e;r.arraySet(te,ee,ne,fe,re),oe-=fe,ne+=fe,ae-=fe,re+=fe,n.length-=fe;break}n.mode=P;break;case I:while(le<14){if(0===oe)break e;oe--,se+=ee[ne++]<>>=5,le-=5,n.ndist=1+(31&se),se>>>=5,le-=5,n.ncode=4+(15&se),se>>>=4,le-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=X;break}n.have=0,n.mode=z;case z:while(n.have>>=3,le-=3}while(n.have<19)n.lens[Oe[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Se={bits:n.lenbits},ke=s(l,n.lens,0,19,n.lencode,0,n.work,Se),n.lenbits=Se.bits,ke){e.msg="invalid code lengths set",n.mode=X;break}n.have=0,n.mode=B;case B:while(n.have>>24,ve=Ce>>>16&255,ye=65535&Ce,me<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>>=me,le-=me,n.lens[n.have++]=ye;else{if(16===ye){Ee=me+2;while(le>>=me,le-=me,0===n.have){e.msg="invalid bit length repeat",n.mode=X;break}xe=n.lens[n.have-1],fe=3+(3&se),se>>>=2,le-=2}else if(17===ye){Ee=me+3;while(le>>=me,le-=me,xe=0,fe=3+(7&se),se>>>=3,le-=3}else{Ee=me+7;while(le>>=me,le-=me,xe=0,fe=11+(127&se),se>>>=7,le-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=X;break}while(fe--)n.lens[n.have++]=xe}}if(n.mode===X)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=X;break}if(n.lenbits=9,Se={bits:n.lenbits},ke=s(u,n.lens,0,n.nlen,n.lencode,0,n.work,Se),n.lenbits=Se.bits,ke){e.msg="invalid literal/lengths set",n.mode=X;break}if(n.distbits=6,n.distcode=n.distdyn,Se={bits:n.distbits},ke=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Se),n.distbits=Se.bits,ke){e.msg="invalid distances set",n.mode=X;break}if(n.mode=U,t===d)break e;case U:n.mode=H;case H:if(oe>=6&&ae>=258){e.next_out=re,e.avail_out=ae,e.next_in=ne,e.avail_in=oe,n.hold=se,n.bits=le,a(e,ce),re=e.next_out,te=e.output,ae=e.avail_out,ne=e.next_in,ee=e.input,oe=e.avail_in,se=n.hold,le=n.bits,n.mode===P&&(n.back=-1);break}for(n.back=0;;){if(Ce=n.lencode[se&(1<>>24,ve=Ce>>>16&255,ye=65535&Ce,me<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>be)],me=Ce>>>24,ve=Ce>>>16&255,ye=65535&Ce,be+me<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>>=be,le-=be,n.back+=be}if(se>>>=me,le-=me,n.back+=me,n.length=ye,0===ve){n.mode=G;break}if(32&ve){n.back=-1,n.mode=P;break}if(64&ve){e.msg="invalid literal/length code",n.mode=X;break}n.extra=15&ve,n.mode=$;case $:if(n.extra){Ee=n.extra;while(le>>=n.extra,le-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=W;case W:for(;;){if(Ce=n.distcode[se&(1<>>24,ve=Ce>>>16&255,ye=65535&Ce,me<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>be)],me=Ce>>>24,ve=Ce>>>16&255,ye=65535&Ce,be+me<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>>=be,le-=be,n.back+=be}if(se>>>=me,le-=me,n.back+=me,64&ve){e.msg="invalid distance code",n.mode=X;break}n.offset=ye,n.extra=15&ve,n.mode=q;case q:if(n.extra){Ee=n.extra;while(le>>=n.extra,le-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=X;break}n.mode=Z;case Z:if(0===ae)break e;if(fe=ce-ae,n.offset>fe){if(fe=n.offset-fe,fe>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=X;break}fe>n.wnext?(fe-=n.wnext,he=n.wsize-fe):he=n.wnext-fe,fe>n.length&&(fe=n.length),de=n.window}else de=te,he=re-n.offset,fe=n.length;fe>ae&&(fe=ae),ae-=fe,n.length-=fe;do{te[re++]=de[he++]}while(--fe);0===n.length&&(n.mode=H);break;case G:if(0===ae)break e;te[re++]=n.length,ae--,n.mode=H;break;case V:if(n.wrap){while(le<32){if(0===oe)break e;oe--,se|=ee[ne++]<4?9:0)}function te(e){var t=e.length;while(--t>=0)e[t]=0}function ne(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function re(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ne(e.strm)}function ie(e,t){e.pending_buf[e.pending++]=t}function oe(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ae(e,t,n,r){var o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}function se(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,u=e.window,c=e.w_mask,f=e.prev,h=e.strstart+I,d=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,u[n+a]===p&&u[n+a-1]===d&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;d=u[o+a-1],p=u[o+a]}}}while((t=f[t&c])>l&&0!==--i);return a<=e.lookahead?a:e.lookahead}function le(e){var t,n,r,o,a,s=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-z)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);n=s,t=n;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);o+=s}if(0===e.strm.avail_in)break;if(n=ae(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=F){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(le(e),0===e.lookahead&&t===u)return V;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,re(e,!1),0===e.strm.avail_out))return V;if(e.strstart-e.block_start>=e.w_size-z&&(re(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(re(e,!0),0===e.strm.avail_out?K:X):(e.strstart>e.block_start&&(re(e,!1),e.strm.avail_out),V)}function ce(e,t){for(var n,r;;){if(e.lookahead=F&&(e.ins_h=(e.ins_h<=F)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-F),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=F){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=F&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=F-1)),e.prev_length>=F&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-F,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-F),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<=F&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){a=e.strstart+I;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=F?(n=o._tr_tally(e,1,e.match_length-F),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(re(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(re(e,!0),0===e.strm.avail_out?K:X):e.last_lit&&(re(e,!1),0===e.strm.avail_out)?V:Y}function de(e,t){for(var n;;){if(0===e.lookahead&&(le(e),0===e.lookahead)){if(t===u)return V;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(re(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(re(e,!0),0===e.strm.avail_out?K:X):e.last_lit&&(re(e,!1),0===e.strm.avail_out)?V:Y}function pe(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ge(e){e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=F-1,e.match_available=0,e.ins_h=0}function me(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*N),this.dyn_dtree=new i.Buf16(2*(2*P+1)),this.bl_tree=new i.Buf16(2*(2*R+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(D+1),this.heap=new i.Buf16(2*j+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*j+1),te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ve(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=E,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?U:Z,e.adler=2===t.wrap?0:1,t.last_flush=u,o._tr_init(t),p):Q(e,m)}function ye(e){var t=ve(e);return t===p&&ge(e.state),t}function be(e,t){return e&&e.state?2!==e.state.wrap?m:(e.state.gzhead=t,p):m}function we(e,t,n,r,o,a){if(!e)return m;var s=1;if(t===b&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>A||n!==C||r<8||r>15||t<0||t>9||a<0||a>k)return Q(e,m);8===r&&(r=9);var l=new me;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<d||t<0)return e?Q(e,m):m;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===G&&t!==h)return Q(e,0===e.avail_out?y:m);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===U)if(2===i.wrap)e.adler=0,ie(i,31),ie(i,139),ie(i,8),i.gzhead?(ie(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ie(i,255&i.gzhead.time),ie(i,i.gzhead.time>>8&255),ie(i,i.gzhead.time>>16&255),ie(i,i.gzhead.time>>24&255),ie(i,9===i.level?2:i.strategy>=_||i.level<2?4:0),ie(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ie(i,255&i.gzhead.extra.length),ie(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=H):(ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,9===i.level?2:i.strategy>=_||i.level<2?4:0),ie(i,J),i.status=Z);else{var v=C+(i.w_bits-8<<4)<<8,b=-1;b=i.strategy>=_||i.level<2?0:i.level<6?1:6===i.level?2:3,v|=b<<6,0!==i.strstart&&(v|=B),v+=31-v%31,i.status=Z,oe(i,v),0!==i.strstart&&(oe(i,e.adler>>>16),oe(i,65535&e.adler)),e.adler=1}if(i.status===H)if(i.gzhead.extra){a=i.pending;while(i.gzindex<(65535&i.gzhead.extra.length)){if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ne(e),a=i.pending,i.pending===i.pending_buf_size))break;ie(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++}i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=$)}else i.status=$;if(i.status===$)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ne(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=W)}else i.status=W;if(i.status===W)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ne(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=q)}else i.status=q;if(i.status===q&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ne(e),i.pending+2<=i.pending_buf_size&&(ie(i,255&e.adler),ie(i,e.adler>>8&255),e.adler=0,i.status=Z)):i.status=Z),0!==i.pending){if(ne(e),0===e.avail_out)return i.last_flush=-1,p}else if(0===e.avail_in&&ee(t)<=ee(n)&&t!==h)return Q(e,y);if(i.status===G&&0!==e.avail_in)return Q(e,y);if(0!==e.avail_in||0!==i.lookahead||t!==u&&i.status!==G){var w=i.strategy===_?de(i,t):i.strategy===x?he(i,t):r[i.level].func(i,t);if(w!==K&&w!==X||(i.status=G),w===V||w===K)return 0===e.avail_out&&(i.last_flush=-1),p;if(w===Y&&(t===c?o._tr_align(i):t!==d&&(o._tr_stored_block(i,0,0,!1),t===f&&(te(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ne(e),0===e.avail_out))return i.last_flush=-1,p}return t!==h?p:i.wrap<=0?g:(2===i.wrap?(ie(i,255&e.adler),ie(i,e.adler>>8&255),ie(i,e.adler>>16&255),ie(i,e.adler>>24&255),ie(i,255&e.total_in),ie(i,e.total_in>>8&255),ie(i,e.total_in>>16&255),ie(i,e.total_in>>24&255)):(oe(i,e.adler>>>16),oe(i,65535&e.adler)),ne(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:g)}function ke(e){var t;return e&&e.state?(t=e.state.status,t!==U&&t!==H&&t!==$&&t!==W&&t!==q&&t!==Z&&t!==G?Q(e,m):(e.state=null,t===Z?Q(e,v):p)):m}function Se(e,t){var n,r,o,s,l,u,c,f,h=t.length;if(!e||!e.state)return m;if(n=e.state,s=n.wrap,2===s||1===s&&n.status!==U||n.lookahead)return m;1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(te(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,le(n);while(n.lookahead>=F){r=n.strstart,o=n.lookahead-(F-1);do{n.ins_h=(n.ins_h<=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function u(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function c(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(l(e))continue;return}if(s(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function f(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(u(e))continue;return}if(s(e,t+1)){o.lastIndex=t,e.ch=t;var n=o.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function h(e){for(;;){o.lastIndex=e.ch;var t=o.exec(e.text);if(!t){if(l(e))continue;return}if(s(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(u(e))continue;return}if(s(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function p(e,n){for(var r=[];;){var i,o=h(e),a=e.line,s=e.ch-(o?o[0].length:0);if(!o||!(i=c(e)))return;if("selfClose"!=i)if(o[1]){for(var l=r.length-1;l>=0;--l)if(r[l]==o[2]){r.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,s),to:t(e.line,e.ch)}}else r.push(o[2])}}function g(e,n){for(var r=[];;){var i=d(e);if(!i)return;if("selfClose"!=i){var o=e.line,a=e.ch,s=f(e);if(!s)return;if(s[1])r.push(s[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==s[2]){r.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:t(e.line,e.ch),to:t(o,a)}}}else f(e)}}e.registerHelper("fold","xml",(function(e,r){for(var i=new a(e,r.line,0);;){var o=h(i);if(!o||i.line!=r.line)return;var s=c(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var l=t(i.line,i.ch),u=p(i,o[2]);return u&&n(u.from,l)>0?{from:l,to:u.from}:null}}})),e.findMatchingTag=function(e,r,i){var o=new a(e,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=c(o),l=s&&t(o.line,o.ch),u=s&&f(o);if(s&&u&&!(n(o,r)>0)){var h={from:t(o.line,o.ch),to:l,tag:u[2]};return"selfClose"==s?{open:h,close:null,at:"open"}:u[1]?{open:g(o,u[2]),close:h,at:"close"}:(o=new a(e,l.line,l.ch,i),{open:h,close:p(o,u[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,n,r){for(var i=new a(e,t.line,t.ch,n);;){var o=g(i,r);if(!o)break;var s=new a(e,t.line,t.ch,n),l=p(s,o.tag);if(l)return{open:o,close:l}}},e.scanForClosingTag=function(e,t,n,r){var i=new a(e,t.line,t.ch,r?{from:0,to:r}:null);return p(i,n)}}))},a4b4:function(e,t,n){"use strict";var r=n("342f");e.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},a645:function(e,t,n){"use strict";e.exports=Error},a79d:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("d256"),a=n("d039"),s=n("d066"),l=n("1626"),u=n("4840"),c=n("cdf9"),f=n("cb2d"),h=o&&o.prototype,d=!!o&&a((function(){h["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!i&&l(o)){var p=s("Promise").prototype["finally"];h["finally"]!==p&&f(h,"finally",p,{unsafe:!0})}},a9e3:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("83ab"),a=n("da84"),s=n("428f"),l=n("e330"),u=n("94ca"),c=n("1a2d"),f=n("7156"),h=n("3a9b"),d=n("d9b5"),p=n("c04e"),g=n("d039"),m=n("241c").f,v=n("06cf").f,y=n("9bf2").f,b=n("408a"),w=n("58a8").trim,_="Number",x=a[_],k=s[_],S=x.prototype,E=a.TypeError,C=l("".slice),A=l("".charCodeAt),O=function(e){var t=p(e,"number");return"bigint"==typeof t?t:L(t)},L=function(e){var t,n,r,i,o,a,s,l,u=p(e,"number");if(d(u))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),t=A(u,0),43===t||45===t){if(n=A(u,2),88===n||120===n)return NaN}else if(48===t){switch(A(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=C(u,2),a=o.length,s=0;si)return NaN;return parseInt(o,r)}return+u},T=u(_,!x(" 0o1")||!x("0b1")||x("+0x1")),M=function(e){return h(S,e)&&g((function(){b(e)}))},j=function(e){var t=arguments.length<1?0:x(O(e));return M(this)?f(Object(t),this,j):t};j.prototype=S,T&&!i&&(S.constructor=j),r({global:!0,constructor:!0,wrap:!0,forced:T},{Number:j});var P=function(e,t){for(var n,r=o?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)c(t,n=r[i])&&!c(e,n)&&y(e,n,v(t,n))};i&&k&&P(s[_],k),(T||i)&&P(s[_],x)},aa1f:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("825a"),a=n("e391"),s=Error.prototype.toString,l=i((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=l?function(){var e=o(this),t=a(e.name,"Error"),n=a(e.message);return t?n?t+": "+n:t:n}:s},ab13:function(e,t,n){"use strict";var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ab36:function(e,t,n){"use strict";var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ad71:function(e,t,n){"use strict";(function(t,r){var i=n("966d");e.exports=x;var o,a=n("e3db");x.ReadableState=_;n("faa1").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n("429b"),u=n("8707").Buffer,c=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function f(e){return u.from(e)}function h(e){return u.isBuffer(e)||e instanceof c}var d=Object.create(n("3a7c"));d.inherits=n("3fb5");var p=n(1),g=void 0;g=p&&p.debuglog?p.debuglog("stream"):function(){};var m,v=n("5e1a"),y=n("4681");d.inherits(x,l);var b=["error","close","destroy","pause","resume"];function w(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function _(e,t){o=o||n("b19a"),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(m||(m=n("7d72").StringDecoder),this.decoder=new m(e.encoding),this.encoding=e.encoding)}function x(e){if(o=o||n("b19a"),!(this instanceof x))return new x(e);this._readableState=new _(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function k(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,T(e,a)):(i||(o=E(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=f(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?S(e,a,t,!1):P(e,a)):S(e,a,t,!1))):r||(a.reading=!1));return C(a)}function S(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),P(e,t)}function E(e,t){var n;return h(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function C(e){return!e.ended&&(e.needReadable||e.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=O(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,M(e)}}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(g("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(j,e):j(e))}function j(e){g("emit readable"),e.emit("readable"),z(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=U(e,t.buffer,t.decoder),n);var n}function U(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function $(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),e-=a,0===e){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function W(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(q,t,e))}function q(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Z(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return g("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?W(this):M(this),null;if(e=L(e,t),0===e&&t.ended)return 0===t.length&&W(this),null;var r,i=t.needReadable;return g("need readable",i),(0===t.length||t.length-e0?B(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&W(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,g("pipe count=%d opts=%j",o.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,l=a?c:_;function u(e,t){g("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function c(){g("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",u);var f=N(n);e.on("drain",f);var h=!1;function d(){g("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",_),n.removeListener("data",m),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}var p=!1;function m(t){g("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==Z(o.pipes,e))&&!h&&(g("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),n.pause())}function v(t){g("onerror",t),_(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),_()}function b(){g("onfinish"),e.removeListener("close",y),_()}function _(){g("unpipe"),n.unpipe(e)}return n.on("data",m),w(e,"error",v),e.once("close",y),e.once("finish",b),e.emit("pipe",n),o.flowing||(g("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;ot.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i),s=a.indexOf(";");if(-1!=s)return{startCh:r.end,end:e.Pos(i,s)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){var s=r(a+1);if(null==s)break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}))},af03:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b047:function(e,t,n){var r=n("1a8c"),i=n("408c"),o=n("b4b0"),a="Expected a function",s=Math.max,l=Math.min;function u(e,t,n){var u,c,f,h,d,p,g=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=u,r=c;return u=c=void 0,g=t,h=e.apply(r,n),h}function w(e){return g=e,d=setTimeout(k,t),m?b(e):h}function _(e){var n=e-p,r=e-g,i=t-n;return v?l(i,f-r):i}function x(e){var n=e-p,r=e-g;return void 0===p||n>=t||n<0||v&&r>=f}function k(){var e=i();if(x(e))return S(e);d=setTimeout(k,_(e))}function S(e){return d=void 0,y&&u?b(e):(u=c=void 0,h)}function E(){void 0!==d&&clearTimeout(d),g=0,u=p=c=d=void 0}function C(){return void 0===d?h:S(i())}function A(){var e=i(),n=x(e);if(u=arguments,c=this,p=e,n){if(void 0===d)return w(p);if(v)return clearTimeout(d),d=setTimeout(k,t),b(p)}return void 0===d&&(d=setTimeout(k,t)),h}return t=o(t)||0,r(n)&&(m=!!n.leading,v="maxWait"in n,f=v?s(o(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),A.cancel=E,A.flush=C,A}e.exports=u},b0c0:function(e,t,n){"use strict";var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("edd0"),s=Function.prototype,l=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec),f="name";r&&!i&&a(s,f,{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},b189:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n("d4ab"),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(e){if("undefined"===typeof window||!d)return f(e);try{return f(e)}catch(t){return!1}};r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var d=0;d0)for(var g=0;g0?i:r)(t)}},b4b0:function(e,t,n){var r=n("8d74"),i=n("1a8c"),o=n("ffd6"),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function f(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}e.exports=f},b4f8:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("1a2d"),a=n("577e"),s=n("5692"),l=n("0b43"),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(o(u,t))return u[t];var n=i("Symbol")(t);return u[t]=n,c[n]=t,n}})},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),u=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,n){var f=e.data,h=e.headers;r.isFormData(f)&&delete h["Content-Type"],(r.isBlob(f)||r.isFile(f))&&f.type&&delete h["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=unescape(encodeURIComponent(e.auth.password))||"";h.Authorization="Basic "+btoa(p+":"+g)}var m=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?l(d.getAllResponseHeaders()):null,o=e.responseType&&"text"!==e.responseType?d.response:d.responseText,a={data:o,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,n,a),d=null}},d.onabort=function(){d&&(n(c("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(m))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(h[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(h,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},b575:function(e,t,n){"use strict";var r,i,o,a,s,l=n("da84"),u=n("157a"),c=n("0366"),f=n("2cf4").set,h=n("01b4"),d=n("1cdc"),p=n("d4c3"),g=n("a4b4"),m=n("605d"),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,w=l.Promise,_=u("queueMicrotask");if(!_){var x=new h,k=function(){var e,t;m&&(e=b.domain)&&e.exit();while(t=x.get())try{t()}catch(n){throw x.head&&r(),n}e&&e.enter()};d||m||g||!v||!y?!p&&w&&w.resolve?(a=w.resolve(void 0),a.constructor=w,s=c(a.then,a),r=function(){s(k)}):m?r=function(){b.nextTick(k)}:(f=c(f,l),r=function(){f(k)}):(i=!0,o=y.createTextNode(""),new v(k).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),_=function(e){x.head||r(),x.add(e)}}e.exports=_},b622:function(e,t,n){"use strict";var r=n("da84"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),u=r.Symbol,c=i("wks"),f=l?u["for"]||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:f("Symbol."+e)),c[e]}},b639:function(e,t,n){"use strict";(function(e){ +t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?h/l:h*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,u-=8);e[n+d-p]|=128*m}},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),l=n("5692"),u=n("7c73"),c=n("69f3").get,f=n("fce3"),h=n("107c"),d=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,g=i("".charAt),v=i("".indexOf),y=i("".replace),b=i("".slice),w=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],k=w||x||_||f||h;k&&(m=function(e){var t,n,i,s,l,f,h,k=this,S=c(k),E=o(e),C=S.raw;if(C)return C.lastIndex=k.lastIndex,t=r(m,C,E),k.lastIndex=C.lastIndex,t;var A=S.groups,O=_&&k.sticky,L=r(a,k),T=k.source,M=0,j=E;if(O&&(L=y(L,"y",""),-1===v(L,"g")&&(L+="g"),j=b(E,k.lastIndex),k.lastIndex>0&&(!k.multiline||k.multiline&&"\n"!==g(E,k.lastIndex-1))&&(T="(?: "+T+")",j=" "+j,M++),n=new RegExp("^(?:"+T+")",L)),x&&(n=new RegExp("^"+T+"$(?!\\s)",L)),w&&(i=k.lastIndex),s=r(p,O?n:k,j),O?s?(s.input=b(s.input,M),s[0]=b(s[0],M),s.index=k.lastIndex,k.lastIndex+=s[0].length):k.lastIndex=0:w&&s&&(k.lastIndex=k.global?s.index+s[0].length:i),x&&s&&s.length>1&&r(d,s[0],n,(function(){for(l=1;l` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,m=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v=" ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function w(e){return!e||!/\S/.test(e.string)}function _(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==k){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=A,t.block=x,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function x(t,r){var i=t.column()===r.indentation,s=w(r.prevLine.stream),d=r.indentedCode,g=r.prevLine.hr,v=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var _=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){r.list=null;while(_=4&&(d||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=b&&(C=t.match(f))&&C[1].length<=6)return r.quote=0,r.header=C[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,E(r);if(r.indentation<=b&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),E(r);if(!k&&!r.setext&&i&&r.indentation<=b&&(C=t.match(u))){var A=C[1]?"ol":"ul";return r.indentation=_+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(c,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+A]),E(r)}return i&&r.indentation<=b&&(C=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(C[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(C[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=S,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,E(r)):r.setext||!(x&&v||r.quote||!1!==r.list||r.code||k||m.test(t.string))&&(C=t.lookAhead(1))&&(C=C.match(h))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==C[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,E(r)):k?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?y(t,r,j):y(t,r,r.inline)}function k(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=A,n.block=x,n.htmlState=null)}return o}function S(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function C(e,t){if(e.match(d,!0))return E(t)}function A(t,i){var o=i.text(t,i);if("undefined"!==typeof o)return o;if(i.list)return i.list=null,E(i);if(i.taskList){var s=" "===t.match(c,!0)[1];return s?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,E(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),E(i);var l=t.next();if(i.linkTitle){i.linkTitle=!1;var u=l;"("===l&&(u=")"),u=(u+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var f="^\\s*(?:[^"+u+"\\\\]+|\\\\\\\\|\\\\.)"+u;if(t.match(new RegExp(f),!0))return a.linkHref}if("`"===l){var h=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var d=t.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var p=E(i);return i.code=0,p}return i.formatting=h,E(i)}return i.code=d,E(i)}if(i.code)return E(i);if("\\"===l&&(t.next(),n.highlightFormatting)){var m=E(i),v=a.formatting+"-escape";return m?m+" "+v:v}if("!"===l&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),E(i);if("["===l&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),E(i);if("]"===l&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");m=E(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=L,m}if("["===l&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),E(i);if("]"===l&&i.linkText){n.highlightFormatting&&(i.formatting="link");m=E(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?L:A,m}if("<"===l&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=O,n.highlightFormatting&&(i.formatting="link");m=E(i);return m?m+=" ":m="",m+a.linkInline}if("<"===l&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=O,n.highlightFormatting&&(i.formatting="link");m=E(i);return m?m+=" ":m="",m+a.linkEmail}if(n.xml&&"<"===l&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var w=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(w)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,k)}if(n.xml&&"<"===l&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===l||"_"===l){var _=1,x=1==t.pos?" ":t.string.charAt(t.pos-2);while(_<3&&t.eat(l))_++;var S=t.peek()||" ",C=!/\s/.test(S)&&(!g.test(S)||/\s/.test(x)||g.test(x)),T=!/\s/.test(x)&&(!g.test(x)||/\s/.test(S)||g.test(S)),M=null,j=null;if(_%2&&(i.em||!C||"*"!==l&&T&&!g.test(x)?i.em!=l||!T||"*"!==l&&C&&!g.test(S)||(M=!1):M=!0),_>1&&(i.strong||!C||"*"!==l&&T&&!g.test(x)?i.strong!=l||!T||"*"!==l&&C&&!g.test(S)||(j=!1):j=!0),null!=j||null!=M){n.highlightFormatting&&(i.formatting=null==M?"strong":null==j?"em":"strong em"),!0===M&&(i.em=l),!0===j&&(i.strong=l);p=E(i);return!1===M&&(i.em=!1),!1===j&&(i.strong=!1),p}}else if(" "===l&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return E(i);t.backUp(1)}if(n.strikethrough)if("~"===l&&t.eatWhile(l)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");p=E(i);return i.strikethrough=!1,p}if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),E(i)}else if(" "===l&&t.match("~~",!0)){if(" "===t.peek())return E(i);t.backUp(2)}if(n.emoji&&":"===l&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var P=E(i);return i.emoji=!1,P}return" "===l&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),E(i)}function O(e,t){var r=e.next();if(">"===r){t.f=t.inline=A,n.highlightFormatting&&(t.formatting="link");var i=E(t);return i?i+=" ":i="",i+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function L(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=M("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,E(t)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function M(e){return function(t,r){var i=t.next();if(i===e){r.f=r.inline=A,n.highlightFormatting&&(r.formatting="link-string");var o=E(r);return r.linkHref=!1,o}return t.match(T[e]),r.linkHref=!0,E(r)}}function j(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=P,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,E(t)):y(e,t,A)}function P(e,t){if(e.match("]:",!0)){t.f=t.inline=R,n.highlightFormatting&&(t.formatting="link");var r=E(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function R(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=A,a.linkHref+" url")}var N={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:A,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return _(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=k)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==k?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:N}},indent:function(t,n,i){return t.block==k&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:_,getType:E,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return N}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}))},"966d":function(e,t,n){"use strict";(function(t){function n(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:o=new Array(s-1),a=0;while(a=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)},y=!g||!h("concat");r({target:"Array",proto:!0,arity:1,forced:y},{concat:function(e){var t,n,r,i,o,a=s(this),h=f(a,0),d=0;for(t=-1,r=arguments.length;t>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function oe(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=x,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(ee),t.distcode=t.distdyn=new r.Buf32(te),t.sane=1,t.back=-1,p):v}function se(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,ae(e)):v}function le(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?v:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,se(e))):v}function ue(e,t){var n,r;return e?(r=new oe,e.state=r,r.window=null,n=le(e,t),n!==p&&(e.state=null),n):v}function ce(e){return ue(e,re)}var fe,he,de=!0;function pe(e){if(de){var t;fe=new r.Buf32(512),he=new r.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;s(u,e.lens,0,288,fe,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;s(c,e.lens,0,32,he,0,e.work,{bits:5}),de=!1}e.lencode=fe,e.lenbits=9,e.distcode=he,e.distbits=5}function me(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o=a.wsize-a.wnext,o>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),i-=o,i?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,Ae,2,0),se=0,le=0,n.mode=k;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&se)<<8)+(se>>8))%31){e.msg="incorrect header check",n.mode=X;break}if((15&se)!==_){e.msg="unknown compression method",n.mode=X;break}if(se>>>=4,le-=4,xe=8+(15&se),0===n.wbits)n.wbits=xe;else if(xe>n.wbits){e.msg="invalid window size",n.mode=X;break}n.dmax=1<>8&1),512&n.flags&&(Ae[0]=255&se,Ae[1]=se>>>8&255,n.check=o(n.check,Ae,2,0)),se=0,le=0,n.mode=S;case S:while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<>>8&255,Ae[2]=se>>>16&255,Ae[3]=se>>>24&255,n.check=o(n.check,Ae,4,0)),se=0,le=0,n.mode=E;case E:while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<>8),512&n.flags&&(Ae[0]=255&se,Ae[1]=se>>>8&255,n.check=o(n.check,Ae,2,0)),se=0,le=0,n.mode=C;case C:if(1024&n.flags){while(le<16){if(0===oe)break e;oe--,se+=ee[ne++]<>>8&255,n.check=o(n.check,Ae,2,0)),se=0,le=0}else n.head&&(n.head.extra=null);n.mode=A;case A:if(1024&n.flags&&(fe=n.length,fe>oe&&(fe=oe),fe&&(n.head&&(xe=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,ee,ne,fe,xe)),512&n.flags&&(n.check=o(n.check,ee,fe,ne)),oe-=fe,ne+=fe,n.length-=fe),n.length))break e;n.length=0,n.mode=O;case O:if(2048&n.flags){if(0===oe)break e;fe=0;do{xe=ee[ne+fe++],n.head&&xe&&n.length<65536&&(n.head.name+=String.fromCharCode(xe))}while(xe&&fe>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=P;break;case M:while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<>>=7&le,le-=7&le,n.mode=V;break}while(le<3){if(0===oe)break e;oe--,se+=ee[ne++]<>>=1,le-=1,3&se){case 0:n.mode=N;break;case 1:if(pe(n),n.mode=U,t===d){se>>>=2,le-=2;break e}break;case 2:n.mode=I;break;case 3:e.msg="invalid block type",n.mode=X}se>>>=2,le-=2;break;case N:se>>>=7&le,le-=7≤while(le<32){if(0===oe)break e;oe--,se+=ee[ne++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=X;break}if(n.length=65535&se,se=0,le=0,n.mode=D,t===d)break e;case D:n.mode=F;case F:if(fe=n.length,fe){if(fe>oe&&(fe=oe),fe>ae&&(fe=ae),0===fe)break e;r.arraySet(te,ee,ne,fe,re),oe-=fe,ne+=fe,ae-=fe,re+=fe,n.length-=fe;break}n.mode=P;break;case I:while(le<14){if(0===oe)break e;oe--,se+=ee[ne++]<>>=5,le-=5,n.ndist=1+(31&se),se>>>=5,le-=5,n.ncode=4+(15&se),se>>>=4,le-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=X;break}n.have=0,n.mode=z;case z:while(n.have>>=3,le-=3}while(n.have<19)n.lens[Oe[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Se={bits:n.lenbits},ke=s(l,n.lens,0,19,n.lencode,0,n.work,Se),n.lenbits=Se.bits,ke){e.msg="invalid code lengths set",n.mode=X;break}n.have=0,n.mode=B;case B:while(n.have>>24,ve=Ce>>>16&255,ye=65535&Ce,ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>>=ge,le-=ge,n.lens[n.have++]=ye;else{if(16===ye){Ee=ge+2;while(le>>=ge,le-=ge,0===n.have){e.msg="invalid bit length repeat",n.mode=X;break}xe=n.lens[n.have-1],fe=3+(3&se),se>>>=2,le-=2}else if(17===ye){Ee=ge+3;while(le>>=ge,le-=ge,xe=0,fe=3+(7&se),se>>>=3,le-=3}else{Ee=ge+7;while(le>>=ge,le-=ge,xe=0,fe=11+(127&se),se>>>=7,le-=7}if(n.have+fe>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=X;break}while(fe--)n.lens[n.have++]=xe}}if(n.mode===X)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=X;break}if(n.lenbits=9,Se={bits:n.lenbits},ke=s(u,n.lens,0,n.nlen,n.lencode,0,n.work,Se),n.lenbits=Se.bits,ke){e.msg="invalid literal/lengths set",n.mode=X;break}if(n.distbits=6,n.distcode=n.distdyn,Se={bits:n.distbits},ke=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Se),n.distbits=Se.bits,ke){e.msg="invalid distances set",n.mode=X;break}if(n.mode=U,t===d)break e;case U:n.mode=H;case H:if(oe>=6&&ae>=258){e.next_out=re,e.avail_out=ae,e.next_in=ne,e.avail_in=oe,n.hold=se,n.bits=le,a(e,ce),re=e.next_out,te=e.output,ae=e.avail_out,ne=e.next_in,ee=e.input,oe=e.avail_in,se=n.hold,le=n.bits,n.mode===P&&(n.back=-1);break}for(n.back=0;;){if(Ce=n.lencode[se&(1<>>24,ve=Ce>>>16&255,ye=65535&Ce,ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>be)],ge=Ce>>>24,ve=Ce>>>16&255,ye=65535&Ce,be+ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>>=be,le-=be,n.back+=be}if(se>>>=ge,le-=ge,n.back+=ge,n.length=ye,0===ve){n.mode=G;break}if(32&ve){n.back=-1,n.mode=P;break}if(64&ve){e.msg="invalid literal/length code",n.mode=X;break}n.extra=15&ve,n.mode=$;case $:if(n.extra){Ee=n.extra;while(le>>=n.extra,le-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=W;case W:for(;;){if(Ce=n.distcode[se&(1<>>24,ve=Ce>>>16&255,ye=65535&Ce,ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>be)],ge=Ce>>>24,ve=Ce>>>16&255,ye=65535&Ce,be+ge<=le)break;if(0===oe)break e;oe--,se+=ee[ne++]<>>=be,le-=be,n.back+=be}if(se>>>=ge,le-=ge,n.back+=ge,64&ve){e.msg="invalid distance code",n.mode=X;break}n.offset=ye,n.extra=15&ve,n.mode=q;case q:if(n.extra){Ee=n.extra;while(le>>=n.extra,le-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=X;break}n.mode=Z;case Z:if(0===ae)break e;if(fe=ce-ae,n.offset>fe){if(fe=n.offset-fe,fe>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=X;break}fe>n.wnext?(fe-=n.wnext,he=n.wsize-fe):he=n.wnext-fe,fe>n.length&&(fe=n.length),de=n.window}else de=te,he=re-n.offset,fe=n.length;fe>ae&&(fe=ae),ae-=fe,n.length-=fe;do{te[re++]=de[he++]}while(--fe);0===n.length&&(n.mode=H);break;case G:if(0===ae)break e;te[re++]=n.length,ae--,n.mode=H;break;case V:if(n.wrap){while(le<32){if(0===oe)break e;oe--,se|=ee[ne++]<4?9:0)}function te(e){var t=e.length;while(--t>=0)e[t]=0}function ne(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function re(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ne(e.strm)}function ie(e,t){e.pending_buf[e.pending++]=t}function oe(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ae(e,t,n,r){var o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,n),1===e.state.wrap?e.adler=a(e.adler,t,o,n):2===e.state.wrap&&(e.adler=s(e.adler,t,o,n)),e.next_in+=o,e.total_in+=o,o)}function se(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,u=e.window,c=e.w_mask,f=e.prev,h=e.strstart+I,d=u[o+a-1],p=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,u[n+a]===p&&u[n+a-1]===d&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;d=u[o+a-1],p=u[o+a]}}}while((t=f[t&c])>l&&0!==--i);return a<=e.lookahead?a:e.lookahead}function le(e){var t,n,r,o,a,s=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-z)){i.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=s?r-s:0}while(--n);n=s,t=n;do{r=e.prev[--t],e.prev[t]=r>=s?r-s:0}while(--n);o+=s}if(0===e.strm.avail_in)break;if(n=ae(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=F){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(le(e),0===e.lookahead&&t===u)return V;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,re(e,!1),0===e.strm.avail_out))return V;if(e.strstart-e.block_start>=e.w_size-z&&(re(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(re(e,!0),0===e.strm.avail_out?K:X):(e.strstart>e.block_start&&(re(e,!1),e.strm.avail_out),V)}function ce(e,t){for(var n,r;;){if(e.lookahead=F&&(e.ins_h=(e.ins_h<=F)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-F),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=F){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=F&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=F-1)),e.prev_length>=F&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-F,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-F),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<=F&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){a=e.strstart+I;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=F?(n=o._tr_tally(e,1,e.match_length-F),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(re(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(re(e,!0),0===e.strm.avail_out?K:X):e.last_lit&&(re(e,!1),0===e.strm.avail_out)?V:Y}function de(e,t){for(var n;;){if(0===e.lookahead&&(le(e),0===e.lookahead)){if(t===u)return V;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(re(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(re(e,!0),0===e.strm.avail_out?K:X):e.last_lit&&(re(e,!1),0===e.strm.avail_out)?V:Y}function pe(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function me(e){e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=F-1,e.match_available=0,e.ins_h=0}function ge(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*N),this.dyn_dtree=new i.Buf16(2*(2*P+1)),this.bl_tree=new i.Buf16(2*(2*R+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(D+1),this.heap=new i.Buf16(2*j+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*j+1),te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ve(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=E,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?U:Z,e.adler=2===t.wrap?0:1,t.last_flush=u,o._tr_init(t),p):Q(e,g)}function ye(e){var t=ve(e);return t===p&&me(e.state),t}function be(e,t){return e&&e.state?2!==e.state.wrap?g:(e.state.gzhead=t,p):g}function we(e,t,n,r,o,a){if(!e)return g;var s=1;if(t===b&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>A||n!==C||r<8||r>15||t<0||t>9||a<0||a>k)return Q(e,g);8===r&&(r=9);var l=new ge;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<d||t<0)return e?Q(e,g):g;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===G&&t!==h)return Q(e,0===e.avail_out?y:g);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===U)if(2===i.wrap)e.adler=0,ie(i,31),ie(i,139),ie(i,8),i.gzhead?(ie(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ie(i,255&i.gzhead.time),ie(i,i.gzhead.time>>8&255),ie(i,i.gzhead.time>>16&255),ie(i,i.gzhead.time>>24&255),ie(i,9===i.level?2:i.strategy>=_||i.level<2?4:0),ie(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ie(i,255&i.gzhead.extra.length),ie(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=H):(ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,0),ie(i,9===i.level?2:i.strategy>=_||i.level<2?4:0),ie(i,J),i.status=Z);else{var v=C+(i.w_bits-8<<4)<<8,b=-1;b=i.strategy>=_||i.level<2?0:i.level<6?1:6===i.level?2:3,v|=b<<6,0!==i.strstart&&(v|=B),v+=31-v%31,i.status=Z,oe(i,v),0!==i.strstart&&(oe(i,e.adler>>>16),oe(i,65535&e.adler)),e.adler=1}if(i.status===H)if(i.gzhead.extra){a=i.pending;while(i.gzindex<(65535&i.gzhead.extra.length)){if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ne(e),a=i.pending,i.pending===i.pending_buf_size))break;ie(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++}i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=$)}else i.status=$;if(i.status===$)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ne(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=W)}else i.status=W;if(i.status===W)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),ne(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=q)}else i.status=q;if(i.status===q&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ne(e),i.pending+2<=i.pending_buf_size&&(ie(i,255&e.adler),ie(i,e.adler>>8&255),e.adler=0,i.status=Z)):i.status=Z),0!==i.pending){if(ne(e),0===e.avail_out)return i.last_flush=-1,p}else if(0===e.avail_in&&ee(t)<=ee(n)&&t!==h)return Q(e,y);if(i.status===G&&0!==e.avail_in)return Q(e,y);if(0!==e.avail_in||0!==i.lookahead||t!==u&&i.status!==G){var w=i.strategy===_?de(i,t):i.strategy===x?he(i,t):r[i.level].func(i,t);if(w!==K&&w!==X||(i.status=G),w===V||w===K)return 0===e.avail_out&&(i.last_flush=-1),p;if(w===Y&&(t===c?o._tr_align(i):t!==d&&(o._tr_stored_block(i,0,0,!1),t===f&&(te(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ne(e),0===e.avail_out))return i.last_flush=-1,p}return t!==h?p:i.wrap<=0?m:(2===i.wrap?(ie(i,255&e.adler),ie(i,e.adler>>8&255),ie(i,e.adler>>16&255),ie(i,e.adler>>24&255),ie(i,255&e.total_in),ie(i,e.total_in>>8&255),ie(i,e.total_in>>16&255),ie(i,e.total_in>>24&255)):(oe(i,e.adler>>>16),oe(i,65535&e.adler)),ne(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:m)}function ke(e){var t;return e&&e.state?(t=e.state.status,t!==U&&t!==H&&t!==$&&t!==W&&t!==q&&t!==Z&&t!==G?Q(e,g):(e.state=null,t===Z?Q(e,v):p)):g}function Se(e,t){var n,r,o,s,l,u,c,f,h=t.length;if(!e||!e.state)return g;if(n=e.state,s=n.wrap,2===s||1===s&&n.status!==U||n.lookahead)return g;1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(te(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,h-n.w_size,n.w_size,0),t=f,h=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,le(n);while(n.lookahead>=F){r=n.strstart,o=n.lookahead-(F-1);do{n.ins_h=(n.ins_h<=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function u(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function c(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(l(e))continue;return}if(s(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function f(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(u(e))continue;return}if(s(e,t+1)){o.lastIndex=t,e.ch=t;var n=o.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function h(e){for(;;){o.lastIndex=e.ch;var t=o.exec(e.text);if(!t){if(l(e))continue;return}if(s(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(u(e))continue;return}if(s(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function p(e,n){for(var r=[];;){var i,o=h(e),a=e.line,s=e.ch-(o?o[0].length:0);if(!o||!(i=c(e)))return;if("selfClose"!=i)if(o[1]){for(var l=r.length-1;l>=0;--l)if(r[l]==o[2]){r.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,s),to:t(e.line,e.ch)}}else r.push(o[2])}}function m(e,n){for(var r=[];;){var i=d(e);if(!i)return;if("selfClose"!=i){var o=e.line,a=e.ch,s=f(e);if(!s)return;if(s[1])r.push(s[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==s[2]){r.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:t(e.line,e.ch),to:t(o,a)}}}else f(e)}}e.registerHelper("fold","xml",(function(e,r){for(var i=new a(e,r.line,0);;){var o=h(i);if(!o||i.line!=r.line)return;var s=c(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var l=t(i.line,i.ch),u=p(i,o[2]);return u&&n(u.from,l)>0?{from:l,to:u.from}:null}}})),e.findMatchingTag=function(e,r,i){var o=new a(e,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=c(o),l=s&&t(o.line,o.ch),u=s&&f(o);if(s&&u&&!(n(o,r)>0)){var h={from:t(o.line,o.ch),to:l,tag:u[2]};return"selfClose"==s?{open:h,close:null,at:"open"}:u[1]?{open:m(o,u[2]),close:h,at:"close"}:(o=new a(e,l.line,l.ch,i),{open:h,close:p(o,u[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,n,r){for(var i=new a(e,t.line,t.ch,n);;){var o=m(i,r);if(!o)break;var s=new a(e,t.line,t.ch,n),l=p(s,o.tag);if(l)return{open:o,close:l}}},e.scanForClosingTag=function(e,t,n,r){var i=new a(e,t.line,t.ch,r?{from:0,to:r}:null);return p(i,n)}}))},a4b4:function(e,t,n){"use strict";var r=n("342f");e.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},a645:function(e,t,n){"use strict";e.exports=Error},a79d:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("d256"),a=n("d039"),s=n("d066"),l=n("1626"),u=n("4840"),c=n("cdf9"),f=n("cb2d"),h=o&&o.prototype,d=!!o&&a((function(){h["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!i&&l(o)){var p=s("Promise").prototype["finally"];h["finally"]!==p&&f(h,"finally",p,{unsafe:!0})}},a9e3:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("83ab"),a=n("da84"),s=n("428f"),l=n("e330"),u=n("94ca"),c=n("1a2d"),f=n("7156"),h=n("3a9b"),d=n("d9b5"),p=n("c04e"),m=n("d039"),g=n("241c").f,v=n("06cf").f,y=n("9bf2").f,b=n("408a"),w=n("58a8").trim,_="Number",x=a[_],k=s[_],S=x.prototype,E=a.TypeError,C=l("".slice),A=l("".charCodeAt),O=function(e){var t=p(e,"number");return"bigint"==typeof t?t:L(t)},L=function(e){var t,n,r,i,o,a,s,l,u=p(e,"number");if(d(u))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),t=A(u,0),43===t||45===t){if(n=A(u,2),88===n||120===n)return NaN}else if(48===t){switch(A(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=C(u,2),a=o.length,s=0;si)return NaN;return parseInt(o,r)}return+u},T=u(_,!x(" 0o1")||!x("0b1")||x("+0x1")),M=function(e){return h(S,e)&&m((function(){b(e)}))},j=function(e){var t=arguments.length<1?0:x(O(e));return M(this)?f(Object(t),this,j):t};j.prototype=S,T&&!i&&(S.constructor=j),r({global:!0,constructor:!0,wrap:!0,forced:T},{Number:j});var P=function(e,t){for(var n,r=o?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)c(t,n=r[i])&&!c(e,n)&&y(e,n,v(t,n))};i&&k&&P(s[_],k),(T||i)&&P(s[_],x)},aa1f:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("825a"),a=n("e391"),s=Error.prototype.toString,l=i((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=l?function(){var e=o(this),t=a(e.name,"Error"),n=a(e.message);return t?n?t+": "+n:t:n}:s},ab13:function(e,t,n){"use strict";var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ab36:function(e,t,n){"use strict";var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ad71:function(e,t,n){"use strict";(function(t,r){var i=n("966d");e.exports=x;var o,a=n("e3db");x.ReadableState=_;n("faa1").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n("429b"),u=n("8707").Buffer,c=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function f(e){return u.from(e)}function h(e){return u.isBuffer(e)||e instanceof c}var d=Object.create(n("3a7c"));d.inherits=n("3fb5");var p=n(1),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,v=n("5e1a"),y=n("4681");d.inherits(x,l);var b=["error","close","destroy","pause","resume"];function w(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function _(e,t){o=o||n("b19a"),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=n("7d72").StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function x(e){if(o=o||n("b19a"),!(this instanceof x))return new x(e);this._readableState=new _(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function k(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,T(e,a)):(i||(o=E(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=f(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?S(e,a,t,!1):P(e,a)):S(e,a,t,!1))):r||(a.reading=!1));return C(a)}function S(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),P(e,t)}function E(e,t){var n;return h(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function C(e){return!e.ended&&(e.needReadable||e.length=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=O(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,M(e)}}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(j,e):j(e))}function j(e){m("emit readable"),e.emit("readable"),z(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=U(e,t.buffer,t.decoder),n);var n}function U(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function $(e,t){var n=u.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),e-=a,0===e){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function W(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(q,t,e))}function q(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Z(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?W(this):M(this),null;if(e=L(e,t),0===e&&t.ended)return 0===t.length&&W(this),null;var r,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e0?B(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&W(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,m("pipe count=%d opts=%j",o.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,l=a?c:_;function u(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function c(){m("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",u);var f=N(n);e.on("drain",f);var h=!1;function d(){m("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",_),n.removeListener("data",g),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}var p=!1;function g(t){m("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==Z(o.pipes,e))&&!h&&(m("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),n.pause())}function v(t){m("onerror",t),_(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),_()}function b(){m("onfinish"),e.removeListener("close",y),_()}function _(){m("unpipe"),n.unpipe(e)}return n.on("data",g),w(e,"error",v),e.once("close",y),e.once("finish",b),e.emit("pipe",n),o.flowing||(m("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;ot.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i),s=a.indexOf(";");if(-1!=s)return{startCh:r.end,end:e.Pos(i,s)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){var s=r(a+1);if(null==s)break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}))},af03:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b047:function(e,t,n){var r=n("1a8c"),i=n("408c"),o=n("b4b0"),a="Expected a function",s=Math.max,l=Math.min;function u(e,t,n){var u,c,f,h,d,p,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=u,r=c;return u=c=void 0,m=t,h=e.apply(r,n),h}function w(e){return m=e,d=setTimeout(k,t),g?b(e):h}function _(e){var n=e-p,r=e-m,i=t-n;return v?l(i,f-r):i}function x(e){var n=e-p,r=e-m;return void 0===p||n>=t||n<0||v&&r>=f}function k(){var e=i();if(x(e))return S(e);d=setTimeout(k,_(e))}function S(e){return d=void 0,y&&u?b(e):(u=c=void 0,h)}function E(){void 0!==d&&clearTimeout(d),m=0,u=p=c=d=void 0}function C(){return void 0===d?h:S(i())}function A(){var e=i(),n=x(e);if(u=arguments,c=this,p=e,n){if(void 0===d)return w(p);if(v)return clearTimeout(d),d=setTimeout(k,t),b(p)}return void 0===d&&(d=setTimeout(k,t)),h}return t=o(t)||0,r(n)&&(g=!!n.leading,v="maxWait"in n,f=v?s(o(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),A.cancel=E,A.flush=C,A}e.exports=u},b0c0:function(e,t,n){"use strict";var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("edd0"),s=Function.prototype,l=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec),f="name";r&&!i&&a(s,f,{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},b189:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n("d4ab"),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(e){if("undefined"===typeof window||!d)return f(e);try{return f(e)}catch(t){return!1}};r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var d=0;d0)for(var m=0;m0?i:r)(t)}},b4b0:function(e,t,n){var r=n("8d74"),i=n("1a8c"),o=n("ffd6"),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function f(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}e.exports=f},b4f8:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("1a2d"),a=n("577e"),s=n("5692"),l=n("0b43"),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(o(u,t))return u[t];var n=i("Symbol")(t);return u[t]=n,c[n]=t,n}})},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),u=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,n){var f=e.data,h=e.headers;r.isFormData(f)&&delete h["Content-Type"],(r.isBlob(f)||r.isFile(f))&&f.type&&delete h["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=unescape(encodeURIComponent(e.auth.password))||"";h.Authorization="Basic "+btoa(p+":"+m)}var g=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?l(d.getAllResponseHeaders()):null,o=e.responseType&&"text"!==e.responseType?d.response:d.responseText,a={data:o,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,n,a),d=null}},d.onabort=function(){d&&(n(c("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(h[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(h,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},b575:function(e,t,n){"use strict";var r,i,o,a,s,l=n("da84"),u=n("157a"),c=n("0366"),f=n("2cf4").set,h=n("01b4"),d=n("1cdc"),p=n("d4c3"),m=n("a4b4"),g=n("605d"),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,w=l.Promise,_=u("queueMicrotask");if(!_){var x=new h,k=function(){var e,t;g&&(e=b.domain)&&e.exit();while(t=x.get())try{t()}catch(n){throw x.head&&r(),n}e&&e.enter()};d||g||m||!v||!y?!p&&w&&w.resolve?(a=w.resolve(void 0),a.constructor=w,s=c(a.then,a),r=function(){s(k)}):g?r=function(){b.nextTick(k)}:(f=c(f,l),r=function(){f(k)}):(i=!0,o=y.createTextNode(""),new v(k).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),_=function(e){x.head||r(),x.add(e)}}e.exports=_},b622:function(e,t,n){"use strict";var r=n("da84"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),u=r.Symbol,c=i("wks"),f=l?u["for"]||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:f("Symbol."+e)),c[e]}},b639:function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),u.alloc(+e)}function w(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return R(r)}t.Buffer=u,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return h(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return A(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return L(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function R(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function H(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function $(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(e,t,n,r,o){return o||$(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,o){return o||$(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||z(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||z(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||z(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return W(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return W(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function X(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function Q(e){return r.toByteArray(G(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b64b:function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b727:function(e,t,n){"use strict";var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),l=n("65f0"),u=i([].push),c=function(e){var t=1===e,n=2===e,i=3===e,c=4===e,f=6===e,h=7===e,d=5===e||f;return function(p,g,m,v){for(var y,b,w=a(p),_=o(w),x=s(_),k=r(g,m),S=0,E=v||l,C=t?E(p,x):n||h?E(p,0):void 0;x>S;S++)if((d||S in _)&&(y=_[S],b=k(y,S,w),e))if(t)C[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:u(C,y)}else switch(e){case 4:return!1;case 7:u(C,y)}return f?-1:i||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},b7d1:function(e,t,n){(function(t){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!t.localStorage)return!1}catch(r){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b980:function(e,t,n){"use strict";var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},bc3a:function(e,t,n){e.exports=n("cee4")},be7f:function(e,t,n){"use strict";var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c430:function(e,t,n){"use strict";e.exports=!1},c513:function(e,t,n){"use strict";var r=n("23e7"),i=n("1a2d"),o=n("d9b5"),a=n("0d51"),s=n("5692"),l=n("0b43"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(u,e))return u[e]}})},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function h(e){return"number"===typeof e}function d(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===i.call(e)}function m(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function b(e){return d(e)&&y(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function _(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}e.exports=r},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8ba6:function(e,t,n){"use strict";var r=n("16e7"),i=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r1?arguments[1]:void 0;return l?s(this,e,t)||0:o(this,e,t)}})},ca84:function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(t.length>u)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("d039"),a=n("44d2"),s=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cb2d:function(e,t,n){"use strict";var r=n("1626"),i=n("9bf2"),o=n("13d2"),a=n("6374");e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cbc8:function(e,t,n){(function(e){e(n("56b3"),n("4895"))})((function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,i,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",u),t.off("changes",f),t.off("viewportChange",h),t.off("fold",d),t.off("unfold",d),t.off("swapDoc",f),t.off("optionChange",c)),i&&(t.state.foldGutter=new n(r(i)),l(t),t.on("gutterClick",u),t.on("changes",f),t.on("viewportChange",h),t.on("fold",d),t.on("unfold",d),t.on("swapDoc",f),t.on("optionChange",c))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i=u){if(h&&s&&h.test(s.className))return;r=o(a.indicatorOpen)}}(r||s)&&e.setGutterMarker(n,a.gutter,r)}))}function s(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function l(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){a(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function u(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function c(e,t){"mode"==t&&f(e)}function f(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){l(e)}),n.foldOnChangeTimeSpan||600)}}function h(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?l(e):e.operation((function(){n.fromt.to&&(a(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function d(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){"use strict";var r=n("da84"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d17b:function(e,t,n){e.exports=n("e372").Transform},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d256:function(e,t,n){"use strict";var r=n("da84");e.exports=r.Promise},d28b:function(e,t,n){"use strict";var r=n("e065");r("iterator")},d2bb:function(e,t,n){"use strict";var r=n("7282"),i=n("861d"),o=n("1d80"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},d3b7:function(e,t,n){"use strict";var r=n("00ee"),i=n("cb2d"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d401:function(e,t,n){"use strict";var r=n("cb2d"),i=n("aa1f"),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},d44e:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},d485:function(e,t,n){e.exports=o;var r=n("faa1").EventEmitter,i=n("3fb5");function o(){r.call(this)}i(o,r),o.Readable=n("e372"),o.Writable=n("2c63"),o.Duplex=n("0960"),o.Transform=n("d17b"),o.PassThrough=n("c2ae"),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},d4ab:function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},d4c3:function(e,t,n){"use strict";var r=n("342f");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},d5e0:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function f(e,t){function n(n){return t.tokenize=n,n(e,t)}var r,i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==i?(r=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),r?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=f,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=f,t.state=w,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=d(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e){var t=function(t,n){while(!t.eol())if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=f;break}n.next()}return e}}function g(e){return function(t,n){var r;while(null!=(r=t.next())){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=f;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function m(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){var n;while(1){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(m(n))||!l.contextGrabbers[m(n)].hasOwnProperty(m(t)))return;y(e)}}function w(e,t,n){return"openTag"==e?(n.tagStart=t.column(),_):"closeTag"==e?x:w}function _(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",E):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",E(e,t,n)):(a="error",_)}function x(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",k):(a="tag error",S)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,t,n)):(a="error",S)}function k(e,t,n){return"endTag"!=e?(a="error",k):(y(n),w)}function S(e,t,n){return a="error",k(e,t,n)}function E(e,t,n){if("word"==e)return a="attribute",C;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(m(r))?b(n,r):(b(n,r),n.context=new v(n,r,i==n.indented)),w}return a="error",E}function C(e,t,n){return"equals"==e?A:(l.allowMissing||(a="error"),E(e,t,n))}function A(e,t,n){return"string"==e?O:"word"==e&&l.allowUnquoted?(a="string",E):(a="error",E(e,t,n))}function O(e,t,n){return"string"==e?O:E(e,t,n)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:w,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=h&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==A&&(e.state=E)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}))},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d6c7:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n("d4ab"),o=Object.keys,a=o?function(e){return o(e)}:n("b189"),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},d6d6:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e1?arguments[1]:void 0)}})},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9b5:function(e,t,n){"use strict";var r=n("d066"),i=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},d9e2:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=i[s],u=7!==new Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},f=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,u),r({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},d9f5:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("e330"),s=n("c430"),l=n("83ab"),u=n("04f8"),c=n("d039"),f=n("1a2d"),h=n("3a9b"),d=n("825a"),p=n("fc6a"),g=n("a04b"),m=n("577e"),v=n("5c6c"),y=n("7c73"),b=n("df75"),w=n("241c"),_=n("057f"),x=n("7418"),k=n("06cf"),S=n("9bf2"),E=n("37e8"),C=n("d1e7"),A=n("cb2d"),O=n("edd0"),L=n("5692"),T=n("f772"),M=n("d012"),j=n("90e3"),P=n("b622"),R=n("e538"),N=n("e065"),D=n("57b9"),F=n("d44e"),I=n("69f3"),z=n("b727").forEach,B=T("hidden"),U="Symbol",H="prototype",$=I.set,W=I.getterFor(U),q=Object[H],Z=i.Symbol,G=Z&&Z[H],V=i.RangeError,Y=i.TypeError,K=i.QObject,X=k.f,J=S.f,Q=_.f,ee=C.f,te=a([].push),ne=L("symbols"),re=L("op-symbols"),ie=L("wks"),oe=!K||!K[H]||!K[H].findChild,ae=function(e,t,n){var r=X(q,t);r&&delete q[t],J(e,t,n),r&&e!==q&&J(q,t,r)},se=l&&c((function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?ae:J,le=function(e,t){var n=ne[e]=y(G);return $(n,{type:U,tag:e,description:t}),l||(n.description=t),n},ue=function(e,t,n){e===q&&ue(re,t,n),d(e);var r=g(t);return d(n),f(ne,r)?(n.enumerable?(f(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:v(0,!1)})):(f(e,B)||J(e,B,v(1,y(null))),e[B][r]=!0),se(e,r,n)):J(e,r,n)},ce=function(e,t){d(e);var n=p(t),r=b(n).concat(ge(n));return z(r,(function(t){l&&!o(he,n,t)||ue(e,t,n[t])})),e},fe=function(e,t){return void 0===t?y(e):ce(y(e),t)},he=function(e){var t=g(e),n=o(ee,this,t);return!(this===q&&f(ne,t)&&!f(re,t))&&(!(n||!f(this,t)||!f(ne,t)||f(this,B)&&this[B][t])||n)},de=function(e,t){var n=p(e),r=g(t);if(n!==q||!f(ne,r)||f(re,r)){var i=X(n,r);return!i||!f(ne,r)||f(n,B)&&n[B][r]||(i.enumerable=!0),i}},pe=function(e){var t=Q(p(e)),n=[];return z(t,(function(e){f(ne,e)||f(M,e)||te(n,e)})),n},ge=function(e){var t=e===q,n=Q(t?re:p(e)),r=[];return z(n,(function(e){!f(ne,e)||t&&!f(q,e)||te(r,ne[e])})),r};u||(Z=function(){if(h(G,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=j(e),n=function(e){var r=void 0===this?i:this;r===q&&o(n,re,e),f(r,B)&&f(r[B],t)&&(r[B][t]=!1);var a=v(1,e);try{se(r,t,a)}catch(s){if(!(s instanceof V))throw s;ae(r,t,a)}};return l&&oe&&se(q,t,{configurable:!0,set:n}),le(t,e)},G=Z[H],A(G,"toString",(function(){return W(this).tag})),A(Z,"withoutSetter",(function(e){return le(j(e),e)})),C.f=he,S.f=ue,E.f=ce,k.f=de,w.f=_.f=pe,x.f=ge,R.f=function(e){return le(P(e),e)},l&&(O(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||A(q,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Z}),z(b(ie),(function(e){N(e)})),r({target:U,stat:!0,forced:!u},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:fe,defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe}),D(),F(Z,U),M[B]=!0},da84:function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,u=o(r),c={},f=0;while(u.length>f)n=i(r,t=u[f++]),void 0!==n&&l(c,t,n);return c}})},dc14:function(e,t,n){"use strict";(function(t,r){var i=n("966d");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){D(t,e)}}e.exports=b;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=y;var l=Object.create(n("3a7c"));l.inherits=n("3fb5");var u={deprecate:n("b7d1")},c=n("429b"),f=n("8707").Buffer,h=("undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function d(e){return f.from(e)}function p(e){return f.isBuffer(e)||e instanceof h}var g,m=n("4681");function v(){}function y(e,t){a=a||n("b19a"),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){A(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(e){if(a=a||n("b19a"),!g.call(b,this)&&!(this instanceof a))return new b(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),c.call(this)}function w(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}function _(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}function x(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=f.from(t,n)),t}function k(e,t,n,r,i,o){if(!n){var a=x(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||N(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("4362"),n("c8ba"))},dc4a:function(e,t,n){"use strict";var r=n("59ed"),i=n("7234");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},dc99:function(e,t,n){"use strict";e.exports=RangeError},dcc3:function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},dd40:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},ddb0:function(e,t,n){"use strict";var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("e260"),s=n("9112"),l=n("d44e"),u=n("b622"),c=u("iterator"),f=a.values,h=function(e,t){if(e){if(e[c]!==f)try{s(e,c,f)}catch(r){e[c]=f}if(l(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(o,"DOMTokenList")},df75:function(e,t,n){"use strict";var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("e330"),s=n("1a2d"),l=n("1626"),u=n("3a9b"),c=n("577e"),f=n("edd0"),h=n("e893"),d=o.Symbol,p=d&&d.prototype;if(i&&l(d)&&(!("description"in p)||void 0!==d().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new d(e):void 0===e?d():d(e);return""===e&&(g[t]=!0),t};h(m,d),m.prototype=p,p.constructor=m;var v="Symbol(description detection)"===String(d("description detection")),y=a(p.valueOf),b=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),x=a("".slice);f(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=b(e),n=v?x(t,7,-1):_(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},e065:function(e,t,n){"use strict";var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},e163:function(e,t,n){"use strict";var r=n("1a2d"),i=n("1626"),o=n("7b0b"),a=n("f772"),s=n("e177"),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},e177:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("9bf2").f,l=n("c6d2"),u=n("4754"),c=n("c430"),f=n("83ab"),h="Array Iterator",d=a.set,p=a.getterFor(h);e.exports=l(Array,"Array",(function(e,t){d(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var g=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&f&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(m){}},e267:function(e,t,n){"use strict";var r=n("e330"),i=n("e8b5"),o=n("1626"),a=n("c6b6"),s=n("577e"),l=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;ry&&h(r,arguments[y]),r}));if(S.prototype=x,"Error"!==w?s?s(S,k):l(S,k,{name:!0}):p&&v in _&&(u(S,_,v),u(S,_,"prepareStackTrace")),l(S,_),!g)try{x.name!==w&&o(x,"name",w),x.constructor=S}catch(E){}return S}}},e667:function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e893:function(e,t,n){"use strict";var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t,n){for(var s=i(t),l=a.f,u=o.f,c=0;c>>1:e>>>1;t[n]=e}return t}var i=r();function o(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s>>8^o[255&(e^t[s])];return-1^e}e.exports=o},efec:function(e,t,n){"use strict";var r=n("1a2d"),i=n("cb2d"),o=n("51eb"),a=n("b622"),s=a("toPrimitive"),l=Date.prototype;r(l,s)||i(l,s,o)},f040:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),u.alloc(+e)}function w(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return j(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return R(r)}t.Buffer=u,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return h(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return A(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return L(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function R(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function H(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function $(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(e,t,n,r,o){return o||$(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,o){return o||$(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||z(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||z(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||z(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||z(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||z(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||z(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return W(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return W(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function X(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function Q(e){return r.toByteArray(G(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b64b:function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b727:function(e,t,n){"use strict";var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),l=n("65f0"),u=i([].push),c=function(e){var t=1===e,n=2===e,i=3===e,c=4===e,f=6===e,h=7===e,d=5===e||f;return function(p,m,g,v){for(var y,b,w=a(p),_=o(w),x=s(_),k=r(m,g),S=0,E=v||l,C=t?E(p,x):n||h?E(p,0):void 0;x>S;S++)if((d||S in _)&&(y=_[S],b=k(y,S,w),e))if(t)C[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:u(C,y)}else switch(e){case 4:return!1;case 7:u(C,y)}return f?-1:i||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},b7d1:function(e,t,n){(function(t){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!t.localStorage)return!1}catch(r){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b980:function(e,t,n){"use strict";var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},bc3a:function(e,t,n){e.exports=n("cee4")},be7f:function(e,t,n){"use strict";var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c430:function(e,t,n){"use strict";e.exports=!1},c513:function(e,t,n){"use strict";var r=n("23e7"),i=n("1a2d"),o=n("d9b5"),a=n("0d51"),s=n("5692"),l=n("0b43"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(u,e))return u[e]}})},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function h(e){return"number"===typeof e}function d(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===i.call(e)}function g(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function b(e){return d(e)&&y(e.pipe)}function w(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function _(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n>>16&65535|0,a=0;while(0!==n){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}e.exports=r},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8ba6:function(e,t,n){"use strict";var r=n("16e7"),i=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r1?arguments[1]:void 0;return l?s(this,e,t)||0:o(this,e,t)}})},ca84:function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(t.length>u)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("d039"),a=n("44d2"),s=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cb2d:function(e,t,n){"use strict";var r=n("1626"),i=n("9bf2"),o=n("13d2"),a=n("6374");e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cbc8:function(e,t,n){(function(e){e(n("56b3"),n("4895"))})((function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,i,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",u),t.off("changes",f),t.off("viewportChange",h),t.off("fold",d),t.off("unfold",d),t.off("swapDoc",f),t.off("optionChange",c)),i&&(t.state.foldGutter=new n(r(i)),l(t),t.on("gutterClick",u),t.on("changes",f),t.on("viewportChange",h),t.on("fold",d),t.on("unfold",d),t.on("swapDoc",f),t.on("optionChange",c))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i=u){if(h&&s&&h.test(s.className))return;r=o(a.indicatorOpen)}}(r||s)&&e.setGutterMarker(n,a.gutter,r)}))}function s(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function l(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){a(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function u(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function c(e,t){"mode"==t&&f(e)}function f(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){l(e)}),n.foldOnChangeTimeSpan||600)}}function h(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?l(e):e.operation((function(){n.fromt.to&&(a(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function d(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r + * Released under the MIT License. + */ +!function(t,n){e.exports=n()}(0,(function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;arguments.length>t;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u={exports:{}};!function(e){(function(){function t(e){var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}var n={},r={},i={},o=t(!0),a="vanilla",s={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:function(){var e=t(!0),n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}()};function l(e,t){var r=t?"Error in "+t+" extension->":"Error in unnamed extension",i={valid:!0,error:""};n.helper.isArray(e)||(e=[e]);for(var o=0;e.length>o;++o){var a=r+" sub-extension "+o+": ",s=e[o];if("object"!=typeof s)return i.valid=!1,i.error=a+"must be an object, but "+typeof s+" given",i;if(!n.helper.isString(s.type))return i.valid=!1,i.error=a+'property "type" must be a string, but '+typeof s.type+" given",i;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return i.valid=!1,i.error=a+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',i;if("listener"===l){if(n.helper.isUndefined(s.listeners))return i.valid=!1,i.error=a+'. Extensions of type "listener" must have a property called "listeners"',i}else if(n.helper.isUndefined(s.filter)&&n.helper.isUndefined(s.regex))return i.valid=!1,i.error=a+l+' extensions must define either a "regex" property or a "filter" method',i;if(s.listeners){if("object"!=typeof s.listeners)return i.valid=!1,i.error=a+'"listeners" property must be an object but '+typeof s.listeners+" given",i;for(var u in s.listeners)if(s.listeners.hasOwnProperty(u)&&"function"!=typeof s.listeners[u])return i.valid=!1,i.error=a+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+u+" must be a function but "+typeof s.listeners[u]+" given",i}if(s.filter){if("function"!=typeof s.filter)return i.valid=!1,i.error=a+'"filter" must be a function, but '+typeof s.filter+" given",i}else if(s.regex){if(n.helper.isString(s.regex)&&(s.regex=RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return i.valid=!1,i.error=a+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",i;if(n.helper.isUndefined(s.replace))return i.valid=!1,i.error=a+'"regex" extensions must implement a replace string or function',i}}return i}function u(e,t){return"¨E"+t.charCodeAt(0)+"E"}n.helper={},n.extensions={},n.setOption=function(e,t){return o[e]=t,this},n.getOption=function(e){return o[e]},n.getOptions=function(){return o},n.resetOptions=function(){o=t(!0)},n.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");n.resetOptions();var t=s[e];for(var r in a=e,t)t.hasOwnProperty(r)&&(o[r]=t[r])},n.getFlavor=function(){return a},n.getFlavorOptions=function(e){if(s.hasOwnProperty(e))return s[e]},n.getDefaultOptions=function(e){return t(e)},n.subParser=function(e,t){if(n.helper.isString(e)){if(void 0===t){if(r.hasOwnProperty(e))return r[e];throw Error("SubParser named "+e+" not registered!")}r[e]=t}},n.extension=function(e,t){if(!n.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=n.helper.stdExtName(e),n.helper.isUndefined(t)){if(!i.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return i[e]}"function"==typeof t&&(t=t()),n.helper.isArray(t)||(t=[t]);var r=l(t,e);if(!r.valid)throw Error(r.error);i[e]=t},n.getAllExtensions=function(){return i},n.removeExtension=function(e){delete i[e]},n.resetExtensions=function(){i={}},n.validateExtension=function(e){return!!l(e,null).valid},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(e){return"string"==typeof e||e instanceof String},n.helper.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},n.helper.isArray=function(e){return Array.isArray(e)},n.helper.isUndefined=function(e){return void 0===e},n.helper.forEach=function(e,t){if(n.helper.isUndefined(e))throw Error("obj param is required");if(n.helper.isUndefined(t))throw Error("callback param is required");if(!n.helper.isFunction(t))throw Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(n.helper.isArray(e))for(var r=0;e.length>r;r++)t(e[r],r,e);else{if("object"!=typeof e)throw Error("obj does not seem to be an array or an iterable object");for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)}},n.helper.stdExtName=function(e){return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},n.helper.escapeCharactersCallback=u,n.helper.escapeCharacters=function(e,t,n){var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var i=RegExp(r,"g");return e.replace(i,u)},n.helper.unescapeHTMLEntities=function(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var c=function(e,t,n,r){var i,o,a,s,l,u=r||"",c=u.indexOf("g")>-1,f=RegExp(t+"|"+n,"g"+u.replace(/g/g,"")),h=RegExp(t,u.replace(/g/g,"")),d=[];do{for(i=0;a=f.exec(e);)if(h.test(a[0]))i++||(s=(o=f.lastIndex)-a[0].length);else if(i&&!--i&&(d.push({left:{start:s,end:o},match:{start:o,end:a.index},right:{start:a.index,end:l=a.index+a[0].length},wholeMatch:{start:s,end:l}}),!c))return d}while(i&&(f.lastIndex=o));return d};n.helper.matchRecursiveRegExp=function(e,t,n,r){for(var i=c(e,t,n,r),o=[],a=0;i.length>a;++a)o.push([e.slice(i[a].wholeMatch.start,i[a].wholeMatch.end),e.slice(i[a].match.start,i[a].match.end),e.slice(i[a].left.start,i[a].left.end),e.slice(i[a].right.start,i[a].right.end)]);return o},n.helper.replaceRecursiveRegExp=function(e,t,r,i,o){if(!n.helper.isFunction(t)){var a=t;t=function(){return a}}var s=c(e,r,i,o),l=e,u=s.length;if(u>0){var f=[];0!==s[0].wholeMatch.start&&f.push(e.slice(0,s[0].wholeMatch.start));for(var h=0;u>h;++h)f.push(t(e.slice(s[h].wholeMatch.start,s[h].wholeMatch.end),e.slice(s[h].match.start,s[h].match.end),e.slice(s[h].left.start,s[h].left.end),e.slice(s[h].right.start,s[h].right.end))),u-1>h&&f.push(e.slice(s[h].wholeMatch.end,s[h+1].wholeMatch.start));e.length>s[u-1].wholeMatch.end&&f.push(e.slice(s[u-1].wholeMatch.end)),l=f.join("")}return l},n.helper.regexIndexOf=function(e,t,r){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==0)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var i=e.substring(r||0).search(t);return 0>i?i:i+(r||0)},n.helper.splitAtIndex=function(e,t){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},n.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e}))},n.helper.padEnd=function(e,t,n){return n=(n||" ")+"",e.length>(t|=0)?e+"":((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),e+""+n.slice(0,t))},void 0===console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},n.Converter=function(e){var t={},r=[],u=[],c={},f=a,h={parsed:{},raw:"",format:""};function d(e,t){if(t=t||null,n.helper.isString(e)){if(t=e=n.helper.stdExtName(e),n.extensions[e])return void function(e,t){"function"==typeof e&&(e=e(new n.Converter)),n.helper.isArray(e)||(e=[e]);var i=l(e,t);if(!i.valid)throw Error(i.error);for(var o=0;e.length>o;++o)switch(e[o].type){case"lang":r.push(e[o]);break;case"output":u.push(e[o]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(n.extensions[e],e);if(n.helper.isUndefined(i[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=i[e]}"function"==typeof e&&(e=e()),n.helper.isArray(e)||(e=[e]);var o=l(e,t);if(!o.valid)throw Error(o.error);for(var a=0;e.length>a;++a){switch(e[a].type){case"lang":r.push(e[a]);break;case"output":u.push(e[a])}if(e[a].hasOwnProperty("listeners"))for(var s in e[a].listeners)e[a].listeners.hasOwnProperty(s)&&p(s,e[a].listeners[s])}}function p(e,t){if(!n.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");c.hasOwnProperty(e)||(c[e]=[]),c[e].push(t)}!function(){for(var r in e=e||{},o)o.hasOwnProperty(r)&&(t[r]=o[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.extensions&&n.helper.forEach(t.extensions,d)}(),this._dispatch=function(e,t,n,r){if(c.hasOwnProperty(e))for(var i=0;c[e].length>i;++i){var o=c[e][i](e,t,this,n,r);o&&void 0!==o&&(t=o)}return t},this.listen=function(e,t){return p(e,t),this},this.makeHtml=function(e){if(!e)return e;var i={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:u,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,n=RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}(e)),e="\n\n"+e+"\n\n",e=(e=n.subParser("detab")(e,t,i)).replace(/^[ \t]+$/gm,""),n.helper.forEach(r,(function(r){e=n.subParser("runExtension")(r,e,t,i)})),e=n.subParser("metadata")(e,t,i),e=n.subParser("hashPreCodeTags")(e,t,i),e=n.subParser("githubCodeBlocks")(e,t,i),e=n.subParser("hashHTMLBlocks")(e,t,i),e=n.subParser("hashCodeTags")(e,t,i),e=n.subParser("stripLinkDefinitions")(e,t,i),e=n.subParser("blockGamut")(e,t,i),e=n.subParser("unhashHTMLSpans")(e,t,i),e=(e=(e=n.subParser("unescapeSpecialChars")(e,t,i)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=n.subParser("completeHTMLDocument")(e,t,i),n.helper.forEach(u,(function(r){e=n.subParser("runExtension")(r,e,t,i)})),h=i.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var i={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],i=0;t.length>i;++i)if(1===t[i].childElementCount&&"code"===t[i].firstChild.tagName.toLowerCase()){var o=t[i].firstChild.innerHTML.trim(),a=t[i].firstChild.getAttribute("data-language")||"";if(""===a)for(var s=t[i].firstChild.className.split(" "),l=0;s.length>l;++l){var u=s[l].match(/^language-(.+)$/);if(null!==u){a=u[1];break}}o=n.helper.unescapeHTMLEntities(o),r.push(o),t[i].outerHTML=''}else r.push(t[i].innerHTML),t[i].innerHTML="",t[i].setAttribute("prenum",""+i);return r}(r)};!function e(t){for(var n=0;t.childNodes.length>n;++n){var r=t.childNodes[n];3===r.nodeType?/\S/.test(r.nodeValue)||/^[ ]+$/.test(r.nodeValue)?(r.nodeValue=r.nodeValue.split("\n").join(" "),r.nodeValue=r.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(r),--n):1===r.nodeType&&e(r)}}(r);for(var o=r.childNodes,a="",s=0;o.length>s;s++)a+=n.subParser("makeMarkdown.node")(o[s],i);return a},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){d(e,t=t||null)},this.useExtension=function(e){d(e)},this.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=s[e];for(var r in f=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return f},this.removeExtension=function(e){n.helper.isArray(e)||(e=[e]);for(var t=0;e.length>t;++t){for(var i=e[t],o=0;r.length>o;++o)r[o]===i&&r.splice(o,1);for(var a=0;u.length>a;++a)u[a]===i&&u.splice(a,1)}},this.getAllExtensions=function(){return{language:r,output:u}},this.getMetadata=function(e){return e?h.raw:h.parsed},this.getMetadataFormat=function(){return h.format},this._setMetadataPair=function(e,t){h.parsed[e]=t},this._setMetadataFormat=function(e){h.format=e},this._setMetadataRaw=function(e){h.raw=e}},n.subParser("anchors",(function(e,t,r){var i=function(e,i,o,a,s,l,u){if(n.helper.isUndefined(u)&&(u=""),o=o.toLowerCase(),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(!a){if(o||(o=i.toLowerCase().replace(/ ?\n/g," ")),a="#"+o,n.helper.isUndefined(r.gUrls[o]))return e;a=r.gUrls[o],n.helper.isUndefined(r.gTitles[o])||(u=r.gTitles[o])}var c='
"+i+""};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,i)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i)).replace(/\[([^\[\]]+)]()()()()()/g,i),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,i,o,a){if("\\"===i)return r+o;if(!n.helper.isString(t.ghMentionsLink))throw Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,a),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+o+""}))),r.converter._dispatch("anchors.after",e,t,r)}));var f=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,d=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,p=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,m=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,g=function(e){return function(t,r,i,o,a,s,l){var u=i=i.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),c="",f="",h=r||"",d=l||"";return/^www\./i.test(i)&&(i=i.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(c=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),h+'"+u+""+c+d}},v=function(e,t){return function(r,i,o){var a="mailto:";return i=i||"",o=n.subParser("unescapeSpecialChars")(o,e,t),e.encodeEmails?(a=n.helper.encodeEmailAddress(a+o),o=n.helper.encodeEmailAddress(o)):a+=o,i+''+o+""}};n.subParser("autoLinks",(function(e,t,n){return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(d,g(t))).replace(m,v(t,n)),n.converter._dispatch("autoLinks.after",e,t,n)})),n.subParser("simplifiedAutoLinks",(function(e,t,n){return t.simplifiedAutoLink?(e=(e=(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n)).replace(t.excludeTrailingPunctuationFromURLs?h:f,g(t))).replace(p,v(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e})),n.subParser("blockGamut",(function(e,t,r){return e=r.converter._dispatch("blockGamut.before",e,t,r),e=n.subParser("blockQuotes")(e,t,r),e=n.subParser("headers")(e,t,r),e=n.subParser("horizontalRule")(e,t,r),e=n.subParser("lists")(e,t,r),e=n.subParser("codeBlocks")(e,t,r),e=n.subParser("tables")(e,t,r),e=n.subParser("hashHTMLBlocks")(e,t,r),e=n.subParser("paragraphs")(e,t,r),r.converter._dispatch("blockGamut.after",e,t,r)})),n.subParser("blockQuotes",(function(e,t,r){e=r.converter._dispatch("blockQuotes.before",e,t,r);var i=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(i=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=(e+="\n\n").replace(i,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=n.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=n.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;return(n=n.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),n.subParser("hashBlock")("
\n"+e+"\n
",t,r)})),r.converter._dispatch("blockQuotes.after",e,t,r)})),n.subParser("codeBlocks",(function(e,t,r){return e=r.converter._dispatch("codeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,i,o){var a=i,s=o,l="\n";return a=n.subParser("outdent")(a,t,r),a=n.subParser("encodeCode")(a,t,r),a=(a=(a=n.subParser("detab")(a,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),a="
"+a+l+"
",n.subParser("hashBlock")(a,t,r)+s}))).replace(/¨0/,""),r.converter._dispatch("codeBlocks.after",e,t,r)})),n.subParser("codeSpans",(function(e,t,r){return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,i,o,a){var s=a;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=i+""+(s=n.subParser("encodeCode")(s,t,r))+"",n.subParser("hashHTMLSpans")(s,t,r)})),r.converter._dispatch("codeSpans.after",e,t,r)})),n.subParser("completeHTMLDocument",(function(e,t,n){if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",i="\n",o="",a='\n',s="",l="";for(var u in void 0!==n.metadata.parsed.doctype&&(i="\n","html"!==(r=(""+n.metadata.parsed.doctype).toLowerCase())&&"html5"!==r||(a='')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o=""+n.metadata.parsed.title+"\n";break;case"charset":a="html"===r||"html5"===r?'\n':'\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[u]+'"',l+='\n';break;default:l+='\n'}return e=i+"\n\n"+o+a+l+"\n\n"+e.trim()+"\n\n",n.converter._dispatch("completeHTMLDocument.after",e,t,n)})),n.subParser("detab",(function(e,t,n){return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var n=t,r=4-n.length%4,i=0;r>i;i++)n+=" ";return n}))).replace(/¨A/g," ")).replace(/¨B/g,""),n.converter._dispatch("detab.after",e,t,n)})),n.subParser("ellipsis",(function(e,t,n){return t.ellipsis?(e=(e=n.converter._dispatch("ellipsis.before",e,t,n)).replace(/\.\.\./g,"…"),e=n.converter._dispatch("ellipsis.after",e,t,n)):e})),n.subParser("emoji",(function(e,t,r){return t.emoji?(e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,(function(e,t){return n.helper.emojis.hasOwnProperty(t)?n.helper.emojis[t]:e})),r.converter._dispatch("emoji.after",e,t,r)):e})),n.subParser("encodeAmpsAndAngles",(function(e,t,n){return e=(e=(e=(e=(e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(//g,">"),n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)})),n.subParser("encodeBackslashEscapes",(function(e,t,r){return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,n.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,n.helper.escapeCharactersCallback),r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),n.subParser("encodeCode",(function(e,t,r){return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),r.converter._dispatch("encodeCode.after",e,t,r)})),n.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)})),r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),n.subParser("githubCodeBlocks",(function(e,t,r){return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,i,o,a){var s=t.omitExtraWLInCodeBlocks?"":"\n";return a=n.subParser("encodeCode")(a,t,r),a="
"+(a=(a=(a=n.subParser("detab")(a,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
",a=n.subParser("hashBlock")(a,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),n.subParser("hashBlock",(function(e,t,n){return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",n.converter._dispatch("hashBlock.after",e,t,n)})),n.subParser("hashCodeTags",(function(e,t,r){return e=r.converter._dispatch("hashCodeTags.before",e,t,r),e=n.helper.replaceRecursiveRegExp(e,(function(e,i,o,a){var s=o+n.subParser("encodeCode")(i,t,r)+a;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","","gim"),r.converter._dispatch("hashCodeTags.after",e,t,r)})),n.subParser("hashElement",(function(e,t,n){return function(e,t){var r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}})),n.subParser("hashHTMLBlocks",(function(e,t,r){e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var i=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],o=function(e,t,n,i){var o=e;return-1!==n.search(/\bmarkdown\b/)&&(o=n+r.converter.makeHtml(t)+i),"\n\n¨K"+(r.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var a=0;34>a;++a)for(var s,l=RegExp("^ {0,3}(<"+i[a]+"\\b[^>]*>)","im"),u="<"+i[a]+"\\b[^>]*>",c="";-1!==(s=n.helper.regexIndexOf(e,l));){var f=n.helper.splitAtIndex(e,s),h=n.helper.replaceRecursiveRegExp(f[1],o,u,c,"im");if(h===f[1])break;e=f[0].concat(h)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=(e=n.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),n.subParser("hashHTMLSpans",(function(e,t,n){function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,(function(e){return r(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<[^>]+?>/gi,(function(e){return r(e)})),n.converter._dispatch("hashHTMLSpans.after",e,t,n)})),n.subParser("unhashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;n.gHtmlSpans.length>r;++r){for(var i=n.gHtmlSpans[r],o=0;/¨C(\d+)C/.test(i);){var a=RegExp.$1;if(i=i.replace("¨C"+a+"C",n.gHtmlSpans[a]),10===o)break;++o}e=e.replace("¨C"+r+"C",i)}return n.converter._dispatch("unhashHTMLSpans.after",e,t,n)})),n.subParser("hashPreCodeTags",(function(e,t,r){return e=r.converter._dispatch("hashPreCodeTags.before",e,t,r),e=n.helper.replaceRecursiveRegExp(e,(function(e,i,o,a){var s=o+n.subParser("encodeCode")(i,t,r)+a;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}]*>\\s*]*>","^ {0,3}\\s*
","gim"),r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),n.subParser("headers",(function(e,t,r){e=r.converter._dispatch("headers.before",e,t,r);var i=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;function a(e){var i,o;if(t.customizedHeaderId){var a=e.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(e=a[1])}return i=e,o=n.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(i=o+i),i=t.ghCompatibleHeaderId?i.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?i.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():i.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(i=o+i),r.hashLinkCounts[i]?i=i+"-"+r.hashLinkCounts[i]++:r.hashLinkCounts[i]=1,i}return e=(e=(e=e.replace(t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,(function(e,o){var s=n.subParser("spanGamut")(o,t,r),l=t.noHeaderId?"":' id="'+a(o)+'"',u=""+s+"";return n.subParser("hashBlock")(u,t,r)}))).replace(o,(function(e,o){var s=n.subParser("spanGamut")(o,t,r),l=t.noHeaderId?"":' id="'+a(o)+'"',u=i+1,c=""+s+"";return n.subParser("hashBlock")(c,t,r)}))).replace(t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,(function(e,o,s){var l=s;t.customizedHeaderId&&(l=s.replace(/\s?\{([^{]+?)}\s*$/,""));var u=n.subParser("spanGamut")(l,t,r),c=t.noHeaderId?"":' id="'+a(s)+'"',f=i-1+o.length,h=""+u+"";return n.subParser("hashBlock")(h,t,r)})),r.converter._dispatch("headers.after",e,t,r)})),n.subParser("horizontalRule",(function(e,t,r){e=r.converter._dispatch("horizontalRule.before",e,t,r);var i=n.subParser("hashBlock")("
",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,i)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,i)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,i),r.converter._dispatch("horizontalRule.after",e,t,r)})),n.subParser("images",(function(e,t,r){function i(e,t,i,o,a,s,l,u){var c=r.gUrls,f=r.gTitles,h=r.gDimensions;if(i=i.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)o="";else if(""===o||null===o){if(""!==i&&null!==i||(i=t.toLowerCase().replace(/ ?\n/g," ")),o="#"+i,n.helper.isUndefined(c[i]))return e;o=c[i],n.helper.isUndefined(f[i])||(u=f[i]),n.helper.isUndefined(h[i])||(a=h[i].width,s=h[i].height)}t=t.replace(/"/g,""").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var d=''+t+'"}return e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,i)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,n,r,o,a,s,l){return i(e,t,n,r=r.replace(/\s/g,""),o,a,s,l)})),e=(e=(e=e.replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,i)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,i)).replace(/!\[([^\[\]]+)]()()()()()/g,i),r.converter._dispatch("images.after",e,t,r)})),n.subParser("italicsAndBold",(function(e,t,n){function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return r(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return r(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return r(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?r(t,"",""):e})),n.converter._dispatch("italicsAndBold.after",e,t,n)})),n.subParser("lists",(function(e,t,r){function i(e,i){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,a=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(o=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=e.replace(o,(function(e,i,o,s,l,u,c){c=c&&""!==c.trim();var f=n.subParser("outdent")(l,t,r),h="";return u&&t.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='"}))),f=f.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),i||f.search(/\n{2,}/)>-1?(f=n.subParser("githubCodeBlocks")(f,t,r),f=n.subParser("blockGamut")(f,t,r)):(f=(f=n.subParser("lists")(f,t,r)).replace(/\n$/,""),f=(f=n.subParser("hashHTMLBlocks")(f,t,r)).replace(/\n\n+/g,"\n\n"),f=a?n.subParser("paragraphs")(f,t,r):n.subParser("spanGamut")(f,t,r)),""+(f=f.replace("¨A",""))+"\n"})),e=e.replace(/¨0/g,""),r.gListLevel--,i&&(e=e.replace(/\s+$/,"")),e}function o(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function a(e,n,r){var a=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?a:s,u="";if(-1!==e.search(l))!function t(c){var f=c.search(l),h=o(e,n);-1!==f?(u+="\n\n<"+n+h+">\n"+i(c.slice(0,f),!!r)+"\n",l="ul"===(n="ul"===n?"ol":"ul")?a:s,t(c.slice(f))):u+="\n\n<"+n+h+">\n"+i(c,!!r)+"\n"}(e);else{var c=o(e,n);u="\n\n<"+n+c+">\n"+i(e,!!r)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){return a(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,r){return a(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),r.converter._dispatch("lists.after",e,t,r)})),n.subParser("metadata",(function(e,t,n){if(!t.metadata)return e;function r(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,r){return n.metadata.parsed[t]=r,""}))}return e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){return r(n),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,i){return t&&(n.metadata.format=t),r(i),"¨M"})),e=e.replace(/¨M/g,""),n.converter._dispatch("metadata.after",e,t,n)})),n.subParser("outdent",(function(e,t,n){return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),n.converter._dispatch("outdent.after",e,t,n)})),n.subParser("paragraphs",(function(e,t,r){for(var i=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),o=[],a=i.length,s=0;a>s;s++){var l=i[s];0>l.search(/¨(K|G)(\d+)\1/g)?0>l.search(/\S/)||(l=(l=n.subParser("spanGamut")(l,t,r)).replace(/^([ \t]*)/g,"

"),o.push(l+="

")):o.push(l)}for(a=o.length,s=0;a>s;s++){for(var u="",c=o[s],f=!1;/¨(K|G)(\d+)\1/.test(c);){var h=RegExp.$2;u=(u="K"===RegExp.$1?r.gHtmlBlocks[h]:f?n.subParser("encodeCode")(r.ghCodeBlocks[h].text,t,r):r.ghCodeBlocks[h].codeblock).replace(/\$/g,"$$$$"),c=c.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,u),/^]*>\s*]*>/.test(c)&&(f=!0)}o[s]=c}return e=(e=(e=o.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),n.subParser("runExtension",(function(e,t,n,r){if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var i=e.regex;i instanceof RegExp||(i=RegExp(i,"g")),t=t.replace(i,e.replace)}return t})),n.subParser("spanGamut",(function(e,t,r){return e=r.converter._dispatch("spanGamut.before",e,t,r),e=n.subParser("codeSpans")(e,t,r),e=n.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=n.subParser("encodeBackslashEscapes")(e,t,r),e=n.subParser("images")(e,t,r),e=n.subParser("anchors")(e,t,r),e=n.subParser("autoLinks")(e,t,r),e=n.subParser("simplifiedAutoLinks")(e,t,r),e=n.subParser("emoji")(e,t,r),e=n.subParser("underline")(e,t,r),e=n.subParser("italicsAndBold")(e,t,r),e=n.subParser("strikethrough")(e,t,r),e=n.subParser("ellipsis")(e,t,r),e=n.subParser("hashHTMLSpans")(e,t,r),e=n.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),r.converter._dispatch("spanGamut.after",e,t,r)})),n.subParser("strikethrough",(function(e,t,r){return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,i){return function(e){return t.simplifiedAutoLink&&(e=n.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(i)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),n.subParser("stripLinkDefinitions",(function(e,t,r){var i=function(i,o,a,s,l,u,c){return o=o.toLowerCase(),2>e.toLowerCase().split(o).length-1?i:(r.gUrls[o]=a.match(/^data:.+?\/.+?;base64,/)?a.replace(/\s/g,""):n.subParser("encodeAmpsAndAngles")(a,t,r),u?u+c:(c&&(r.gTitles[o]=c.replace(/"|'/g,""")),t.parseImgDimensions&&s&&l&&(r.gDimensions[o]={width:s,height:l}),""))};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,i)).replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,i)).replace(/¨0/,"")})),n.subParser("tables",(function(e,t,r){if(!t.tables)return e;function i(e,i){return""+n.subParser("spanGamut")(e,t,r)+"\n"}function o(e){var o,a=e.split("\n");for(o=0;a.length>o;++o)/^ {0,3}\|/.test(a[o])&&(a[o]=a[o].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(a[o])&&(a[o]=a[o].replace(/\|[ \t]*$/,"")),a[o]=n.subParser("codeSpans")(a[o],t,r);var s,l,u,c,f=a[0].split("|").map((function(e){return e.trim()})),h=a[1].split("|").map((function(e){return e.trim()})),d=[],p=[],m=[],g=[];for(a.shift(),a.shift(),o=0;a.length>o;++o)""!==a[o].trim()&&d.push(a[o].split("|").map((function(e){return e.trim()})));if(h.length>f.length)return e;for(o=0;h.length>o;++o)m.push(/^:[ \t]*--*$/.test(s=h[o])?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':"");for(o=0;f.length>o;++o)n.helper.isUndefined(m[o])&&(m[o]=""),p.push((u=m[o],c=void 0,c="",l=(l=f[o]).trim(),(t.tablesHeaderId||t.tableHeaderId)&&(c=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),""+(l=n.subParser("spanGamut")(l,t,r))+"\n"));for(o=0;d.length>o;++o){for(var v=[],y=0;p.length>y;++y)n.helper.isUndefined(d[o][y]),v.push(i(d[o][y],m[y]));g.push(v)}return function(e,t){for(var n="\n\n\n",r=e.length,i=0;r>i;++i)n+=e[i];for(n+="\n\n\n",i=0;t.length>i;++i){n+="\n";for(var o=0;r>o;++o)n+=t[i][o];n+="\n"}return n+"\n
\n"}(p,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,n.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o),r.converter._dispatch("tables.after",e,t,r)})),n.subParser("underline",(function(e,t,r){return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),n.subParser("unescapeSpecialChars",(function(e,t,n){return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,(function(e,t){return String.fromCharCode(parseInt(t))})),n.converter._dispatch("unescapeSpecialChars.after",e,t,n)})),n.subParser("makeMarkdown.blockquote",(function(e,t){var r="";if(e.hasChildNodes())for(var i=e.childNodes,o=i.length,a=0;o>a;++a){var s=n.subParser("makeMarkdown.node")(i[a],t);""!==s&&(r+=s)}return"> "+(r=r.trim()).split("\n").join("\n> ")})),n.subParser("makeMarkdown.codeBlock",(function(e,t){var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"})),n.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"})),n.subParser("makeMarkdown.emphasis",(function(e,t){var r="";if(e.hasChildNodes()){r+="*";for(var i=e.childNodes,o=i.length,a=0;o>a;++a)r+=n.subParser("makeMarkdown.node")(i[a],t);r+="*"}return r})),n.subParser("makeMarkdown.header",(function(e,t,r){var i=Array(r+1).join("#"),o="";if(e.hasChildNodes()){o=i+" ";for(var a=e.childNodes,s=a.length,l=0;s>l;++l)o+=n.subParser("makeMarkdown.node")(a[l],t)}return o})),n.subParser("makeMarkdown.hr",(function(){return"---"})),n.subParser("makeMarkdown.image",(function(e){var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),n.subParser("makeMarkdown.links",(function(e,t){var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var i=e.childNodes,o=i.length;r="[";for(var a=0;o>a;++a)r+=n.subParser("makeMarkdown.node")(i[a],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),n.subParser("makeMarkdown.list",(function(e,t,r){var i="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,a=o.length,s=e.getAttribute("start")||1,l=0;a>l;++l)void 0!==o[l].tagName&&"li"===o[l].tagName.toLowerCase()&&(i+=("ol"===r?s+". ":"- ")+n.subParser("makeMarkdown.listItem")(o[l],t),++s);return(i+="\n\x3c!-- --\x3e\n").trim()})),n.subParser("makeMarkdown.listItem",(function(e,t){for(var r="",i=e.childNodes,o=i.length,a=0;o>a;++a)r+=n.subParser("makeMarkdown.node")(i[a],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r})),n.subParser("makeMarkdown.node",(function(e,t,r){r=r||!1;var i="";if(3===e.nodeType)return n.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":r||(i=n.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(i=n.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(i=n.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(i=n.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(i=n.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(i=n.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(i=n.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(i=n.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(i=n.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(i=n.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(i=n.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(i=n.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(i=n.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(i=n.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":i=n.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":i=n.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":i=n.subParser("makeMarkdown.strong")(e,t);break;case"del":i=n.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":i=n.subParser("makeMarkdown.links")(e,t);break;case"img":i=n.subParser("makeMarkdown.image")(e,t);break;default:i=e.outerHTML+"\n\n"}return i})),n.subParser("makeMarkdown.paragraph",(function(e,t){var r="";if(e.hasChildNodes())for(var i=e.childNodes,o=i.length,a=0;o>a;++a)r+=n.subParser("makeMarkdown.node")(i[a],t);return r.trim()})),n.subParser("makeMarkdown.pre",(function(e,t){var n=e.getAttribute("prenum");return"
"+t.preList[n]+"
"})),n.subParser("makeMarkdown.strikethrough",(function(e,t){var r="";if(e.hasChildNodes()){r+="~~";for(var i=e.childNodes,o=i.length,a=0;o>a;++a)r+=n.subParser("makeMarkdown.node")(i[a],t);r+="~~"}return r})),n.subParser("makeMarkdown.strong",(function(e,t){var r="";if(e.hasChildNodes()){r+="**";for(var i=e.childNodes,o=i.length,a=0;o>a;++a)r+=n.subParser("makeMarkdown.node")(i[a],t);r+="**"}return r})),n.subParser("makeMarkdown.table",(function(e,t){var r,i,o="",a=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(r=0;s.length>r;++r){var u=n.subParser("makeMarkdown.tableCell")(s[r],t),c="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":c=":---";break;case"text-align:right;":c="---:";break;case"text-align:center;":c=":---:"}a[0][r]=u.trim(),a[1][r]=c}for(r=0;l.length>r;++r){var f=a.push([])-1,h=l[r].getElementsByTagName("td");for(i=0;s.length>i;++i){var d=" ";void 0!==h[i]&&(d=n.subParser("makeMarkdown.tableCell")(h[i],t)),a[f].push(d)}}var p=3;for(r=0;a.length>r;++r)for(i=0;a[r].length>i;++i){var m=a[r][i].length;m>p&&(p=m)}for(r=0;a.length>r;++r){for(i=0;a[r].length>i;++i)a[r][i]=1===r?":"===a[r][i].slice(-1)?n.helper.padEnd(a[r][i].slice(-1),p-1,"-")+":":n.helper.padEnd(a[r][i],p,"-"):n.helper.padEnd(a[r][i],p);o+="| "+a[r].join(" | ")+" |\n"}return o.trim()})),n.subParser("makeMarkdown.tableCell",(function(e,t){var r="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,o=i.length,a=0;o>a;++a)r+=n.subParser("makeMarkdown.node")(i[a],t,!0);return r.trim()})),n.subParser("makeMarkdown.txt",(function(e){var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),(t=(t=(t=(t=(t=(t=(t=(t=n.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")})),e.exports?e.exports=n:this.showdown=n}).call(s)}(u);var c=l(u.exports);c.ConverterExtObj=function(e,t){var n=[],r=e;function i(e,t){if(t=t||null,c.helper.isString(e)&&(t=c.helper.stdExtName(e),e=c.asyncExtension(t),c.helper.isUndefined(e)))throw Error('Extension "'+t+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),c.helper.isArray(e)||(e=[e]),c.validateExtension(e))for(var r=0;e.length>r;++r)"output"===e[r].type&&n.push(e[r])}t&&c.helper.forEach(t,i),this.addAsyncExtension=function(e,t){i(e,t=t||null)},this.removeAsyncExtension=function(e){c.helper.isArray(e)||(e=[e]);for(var t=0;e.length>t;++t)for(var r=e[t],i=0;n.length>i;++i)n[i]===r&&n.splice(i,1)},this.getAsyncExtensions=function(){return n},this.getCurrFlavor=function(){return r},this.setCurrFlavor=function(e){r=e}},c.Converter.prototype.initConvertExtObj=function(e,t){return this.extObj=new c.ConverterExtObj(e,t),this.resetOptions=function(e){e=e||{};var t=c.getOptions(),n=this.getOptions();for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);if("object"===a(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i])},this.setFlavor=function(e){var t=c.getFlavorOptions(e);if(!c.helper.isUndefined(t)){this.extObj.setCurrFlavor(e);var n=c.getDefaultOptions(!0);for(var r in n)n.hasOwnProperty(r)&&(this.getOptions()[r]=n[r]);for(var r in t)t.hasOwnProperty(r)&&(this.getOptions()[r]=t[r])}},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(e,t){this.extObj.addAsyncExtension(e,t)},this.removeAsyncExtension=function(e){this.extObj.removeAsyncExtension(e)},this.removeExtension=function(e){c.helper.isArray(e)||(e=[e]);for(var t=this.getAllExtensions(),n=t.language,r=t.output,i=0;e.length>i;++i){for(var o=e[i],a=0;n.length>a;++a)n[a]===o&&n.splice(a,1);for(var s=0;r.length>s;++s)r[s]===o&&r.splice(s,1)}},this.asyncMakeHtml=function(e,t){var n=this.makeHtml(e),r=this.extObj.getAsyncExtensions();if(!r.length)return Promise.resolve({html:n});var i={outputs:r,converter:this},o=(new DOMParser).parseFromString(n,"text/html"),a=void 0!==o.body?o.body:o,s=this.getOptions(),l=Promise.resolve({wrapper:a,options:s,globals:i,scripts:[]});return r.forEach((function(e){l=l.then((function(t){var n=e.filter(t);return n||t}))})),l.then((function(e){if("function"==typeof t&&t){var n=t(e);if(n instanceof Promise)return n.then((function(e){return{html:e.wrapper.innerHTML,scripts:e.scripts}}))}return{html:e.wrapper.innerHTML,scripts:e.scripts}}))},this},c.subParser("githubCodeBlocks",(function(e,t,n){return t.ghCodeBlocks?(e=n.converter._dispatch("githubCodeBlocks.before",e,t,n),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,r,i,o,a){var s=t.omitExtraWLInCodeBlocks?"":"\n";return a=c.subParser("encodeCode")(a,t,n),a=(a=(a=c.subParser("detab")(a,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""),a="
"+a+s+"
",a=c.subParser("hashBlock")(a,t,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"}))).replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e})),c.subParser("tables",(function(e,t,n){if(!t.tables)return e;function r(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function i(e,r,i,o,a){if(t.tablesMerge){var s=function(e,n,r,i){if(i){if(!t.tablesRowspan||"^^"!==i||!n)return;for(var o=n-1;o>=0;--o)if(e[o][r]){if("^^"!==e[o][r])return e[o][r]=e[o][r].replace(/rowspan="[0-9]*"/g,"").replace(/^(\n\r]*?)(>.*<\/td>\n)/,(function(e,t,r){return t+' rowspan="'+(n-o+1)+'"'+r})),i;if(0===o)return e[o][r]='\n',i}else for(var a=r-1;a>=0;-a){if(e[o+1][a]&&"^^"!==e[o+1][a])return;if(e[o][a]){if(!e[o+1][a])return;return e[o][a]=e[o][a].replace(/rowspan="[0-9]*"/g,"").replace(/^(\n\r]*?)(>.*<\/td>\n)/,(function(e,t,r){return t+' rowspan="'+(n-o+1)+'"'+r})),i}}}else if(r)for(a=r-1;a>=0;--a)if(e[n][a]){if("^^"!==e[n][a])return e[n][a]=e[n][a].replace(/colspan="[0-9]*"/g,"").replace(/^(\n\r]*?)(>.*<\/td>\n)/,(function(e,t,n){return t+' colspan="'+(r-a+1)+'"'+n})),i;for(o=n-1;o>=0;--o){if(e[o][a+1])return;if("^^"!==e[o][a])return e[o][a]=e[o][a].replace(/colspan="[0-9]*"/g,"").replace(/^(\n\r]*?)(>.*<\/td>\n)/,(function(e,t,n){return t+' colspan="'+(r-a+1)+'"'+n})),i}}else if(0===a)return e[n][a]='\n',i}(e,r,i,o);if(!c.helper.isUndefined(s))return s}return o=o.trim(),""+c.subParser("spanGamut")(o,t,n)+"\n"}function o(e,o){var a,s=e.split("\n");for(a=0;s.length>a;++a)/^ {0,3}\|/.test(s[a])&&(s[a]=s[a].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(s[a])&&(s[a]=s[a].replace(/\|[ \t]*$/,"")),s[a]=c.subParser("codeSpans")(s[a],t,n);var l,u,f,h=[],d=[],p=[],m=[],g=[];if(o)for(h=s[0].split("|").map((function(e){return e.trim()})),s.shift(),a=0;h.length>a;++a)m.push(r(h[a]));else{var v=s[0].split("|").map((function(e){return e.trim()}));if(h=s[1].split("|").map((function(e){return e.trim()})),s.shift(),s.shift(),h.length>v.length)return e;for(a=0;h.length>a;++a)m.push(r(h[a]));for(a=0;v.length>a;++a)c.helper.isUndefined(m[a])&&(m[a]=""),p.push((u=m[a],f=void 0,f="",l=(l=v[a]).trim(),(t.tablesHeaderId||t.tableHeaderId)&&(f=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),""+(l=c.subParser("spanGamut")(l,t,n))+"\n"))}for(a=0;s.length>a;++a)""!==s[a].trim()&&d.push(s[a].split("|").map((function(e){var t=e.trim();return""===t&&e.length>0?e:t})));for(a=0;d.length>a;++a){var y=[];g.push(y);for(var b=0;m.length>b;++b)c.helper.isUndefined(d[a][b])&&(d[a][b]=""),y.push(i(g,a,b,d[a][b],m[b]))}return function(e,n,r){var i="\n",o=n.length;if(e.length){i+="\n\n";for(var a=0;e.length>a;++a)i+=e[a];i+="\n\n"}for(i+="\n",a=0;r.length>a;++a){i+="\n";for(var s=0;o>s;++s)t.tablesMerge&&"^^"===r[a][s]||(i+=r[a][s]);i+="\n"}return i+"\n
\n"}(p,m,g)}function a(e){return o(e,!1)}function s(e){return o(e,!0)}return e=(e=(e=(e=n.converter._dispatch("tables.before",e,t,n)).replace(/\\(\|)/g,c.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),t.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,s)),n.converter._dispatch("tables.after",e,t,n)}));var f="vanilla",h={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},d={};c.asyncExtension=function(e,t){if(!c.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=c.helper.stdExtName(e),c.helper.isUndefined(t)){if(!d.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return d[e]}"function"==typeof t&&(t=t()),c.helper.isArray(t)||(t=[t]),c.validateExtension(t)&&(d[e]=t)},c.removeAsyncExtension=function(e){e=c.helper.stdExtName(e),delete d[e]},c.resetAsyncExtensions=function(){d={}},c.removeExtension=function(e){e=c.helper.stdExtName(e),delete c.getAllExtensions[e]};var p=c.setFlavor,m=c.getFlavorOptions;function g(e){return"".concat((new Date).Format("yyyy-MM-dd HH:mm:ss.S")," ").concat(e)}c.setFlavor=function(e){try{if(p(e),f=e,!h.hasOwnProperty(e))return}catch(t){if(!h.hasOwnProperty(e))return;c.resetOptions(),f=e}var t=h[e];for(var n in t)t.hasOwnProperty(n)&&(c.getOptions()[n]=t[n])},c.getFlavor=function(){return f},c.setFlavorOptions=function(e,t){t&&(h[e]=Object.assign(h[e]||{},t))},c.getFlavorOptions=function(e){var t=m(e);return c.helper.isUndefined(t)?h.hasOwnProperty(e)?h[e]:void 0:h.hasOwnProperty(e)?Object.assign(t,h[e]):t},Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};e||(e="yyyy-MM-dd hh:mm:ss.S");var n=/(y+)/.exec(e);for(var r in n&&(e=e.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length))),t){var i=RegExp("("+r+")").exec(e);if(i){var o=t[r];1==i[1].length?o=("000"+t[r]).substring((""+t[r]).length):2==i[1].length&&(o=("00"+t[r]).substring((""+t[r]).length)),e=e.replace(i[1],o)}}return e};var v="jsdelivr",y="file:"===document.location.protocol?"https://":document.location.protocol+"//",b="",w="",_={local:{ABCJS:"../node_modules/abcjs/dist/abcjs-basic.js",ABCJSCSS:"../node_modules/abcjs/abcjs-audio.css",echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/lib/viz-standalone.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:"../node_modules/mermaid/dist/mermaid.js",katex:"../node_modules/katex/dist/katex.min.js",katexCSS:"../node_modules/katex/dist/katex.min.css",renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",railroad:"../node_modules/railroad-diagrams/railroad-diagrams.js",railroadCSS:"../node_modules/railroad-diagrams/railroad-diagrams.css",Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",sequenceCSS:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css",WaveDrom:"../node_modules/wavedrom/wavedrom.min.js",WaveDromSkin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"},vega:"../node_modules/vega/build/vega.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.js"},cdnjs:{ABCJS:y+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.4.1/abcjs-basic-min.js",ABCJSCSS:y+"cdnjs.cloudflare.com/ajax/libs/abcjs/abcjs-audio.css",echarts:y+"cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js",Viz:y+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:y+"cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js",flowchart:y+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:y+"cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.1/mermaid.min.js",katex:y+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.js",katexCSS:y+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.css",renderMathInElement:y+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/contrib/auto-render.js",railroad:y+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js",railroadCSS:y+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css",Snap:y+"cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js",WebFont:y+"cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js",underscore:y+"cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js",sequence:y+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:y+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:y+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js",WaveDromSkin:{default:y+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js",lowkey:y+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js",narrow:y+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js"},vega:y+"cdnjs.cloudflare.com/ajax/libs/vega/5.30.0/vega.min.js",vegaLite:y+"cdnjs.cloudflare.com/ajax/libs/vega-lite/5.19.0/vega-lite.min.js",vegaEmbed:y+"cdnjs.cloudflare.com/ajax/libs/vega-embed/6.26.0/vega-embed.min.js"},jsdelivr:{ABCJS:y+"cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js",ABCJSCSS:y+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:y+"cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js",Viz:y+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:y+"cdn.jsdelivr.net/npm/raphael@2/raphael.min.js",flowchart:y+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:y+"cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js",katex:y+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js",katexCSS:y+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css",renderMathInElement:y+"cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js",railroad:y+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js",railroadCSS:y+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css",Snap:y+"cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js",WebFont:y+"cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js",underscore:y+"cdn.jsdelivr.net/npm/underscore@1/underscore-min.js",sequence:y+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:y+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:y+"cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js",WaveDromSkin:{default:y+"cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js",lowkey:y+"cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js",narrow:y+"cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js"},vega:y+"cdn.jsdelivr.net/npm/vega@5/build/vega.js",vegaLite:y+"cdn.jsdelivr.net/npm/vega-lite@5/build/vega-lite.js",vegaEmbed:y+"cdn.jsdelivr.net/npm/vega-embed@6/build/vega-embed.js"}};function x(e){if("object"===a(e)){var t=Object.keys(e)[0],n=e[t];if("string"==typeof n)return t+"-"+n}return e}function k(e,t){if(_.hasOwnProperty(v)){var n=_[v],r="";if("object"===a(e)){var i=Object.keys(e)[0],o=e[i];n[i]&&"string"==typeof o&&o&&n[i][o]&&(r=n[i][o])}else n[e]&&(r=n[e]);r&&(t=r.substring(0,y.length)===y?r:"../dist/"===r.substring(0,8)?w+r:b+r)}return t}var S={setCDN:function(e,t,n){e in _&&(v=e),"string"==typeof t&&t&&(b=t),"string"==typeof n&&n&&(w=n)},getCDN:function(){return v},getSrc:k,loadScript:function(e,t){return new Promise((function(n,r){e&&"undefined"!=typeof document||r("Args is invaild!"),void 0===t&&(t=""),(t=k(e,t))||r(e+" script source invaild!");var i="script-"+x(e).toLowerCase(),o=document.getElementById(i);if(o)return n(e);var a=document.head||document.getElementsByTagName("head")[0];(o=document.createElement("script")).src=t,o.id=i,o.onload=function(){n(e)},a.appendChild(o)}))},unloadScript:function(e){e=x(e);var t=document.getElementById("script-"+e.toLowerCase());t&&(document.head||document.getElementsByTagName("head")[0]).removeChild(t)},loadStyleSheet:function(e,t){if(!e||"undefined"==typeof document)return"";if(void 0===t&&(t=""),!(t=k(e,t)))return"";var n="css-"+x(e).toLowerCase();if(!document.getElementById(n)){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=t,i.id=n,r.appendChild(i)}return"local"===v?"":t},unloadStyleSheet:function(e){e=x(e);var t=document.getElementById("css-"+e.toLowerCase());t&&(document.head||document.getElementsByTagName("head")[0]).removeChild(t)}},E={interopDefault:function(e){return e&&"object"===a(e)&&"default"in e?e.default:e},loadStyle:function(e,t){if(!e||!t||"undefined"==typeof document)return!1;var n="css-"+e.toLowerCase();if(!document.getElementById(n)){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.id=n,i.innerText=t,r.appendChild(i)}return!0},loadScript:function(e,t){return new Promise((function(n,r){t&&"undefined"!=typeof document||r("Args is invaild!");var i=document.body,o=document.getElementById(e);o?i.removeChild(o):(o=document.createElement("script")).id=e,o.type="text/javascript",o.text=t,i.appendChild(o),n(!0)}))},renderCacheElement:function(e,t,n,r){"undefined"!=typeof window&&window.document&&(e=window.document);var i=e.createElement("div");if(i.id=t,i.className=n,i.style.display="none",e.body.appendChild(i),"function"==typeof r&&r){var o=r(i);if(o instanceof Promise)return o.then((function(t){e.body.removeChild(t),t.style.display=""})),i.outerHTML}return e.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(e,t,n){"undefined"!=typeof window&&window.document&&(e=window.document);var r=e.createElement("div");return r.id=t,r.className=n,e.body.appendChild(r),r},createElementMeta:function(e,t,n){var r=t.dataset.lang,i=r?JSON.parse(r):null,o="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return!1;i.align&&("center"===i.align?o="diagram-center":"right"===i.align&&(o="diagram-right"))}var a=t.textContent.trim();n&&"function"==typeof n&&(a=n(a));var s=(t.classList.length>0?t.classList[0]:"")+(t.className&&o?" ":"")+o,l=e+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return t.id=l,{id:l,className:s,data:a,element:t,lang:i}}},C="abc",A="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===O)var O=window.ABCJS||void 0;function L(){return!!O}var T=!1,M={add_classes:!0,responsive:"resize"};function j(e){var t=this;t.onReady=function(){},t.onStart=function(){var t=document.querySelector("#".concat(e," svg")),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),t.appendChild(n)},t.beatSubdivisions=2,t.onBeat=function(e,t,n){},t.onEvent=function(t){if(!t.measureStart||null!==t.left){for(var n=document.querySelectorAll("#".concat(e," svg .highlight")),r=0;n.length>r;r++)n[r].classList.remove("highlight");for(var i=0;t.elements.length>i;i++)for(var o=t.elements[i],a=0;o.length>a;a++)o[a].classList.add("highlight");var s=document.querySelector("#".concat(e," svg .abcjs-cursor"));s&&(s.setAttribute("x1",t.left-2),s.setAttribute("x2",t.left-2),s.setAttribute("y1",t.top),s.setAttribute("y2",t.top+t.height))}},t.onFinished=function(){for(var t=document.querySelectorAll("#".concat(e," svg .highlight")),n=0;t.length>n;n++)t[n].classList.remove("highlight");var r=document.querySelector("#".concat(e," svg .abcjs-cursor"));r&&(r.setAttribute("x1",0),r.setAttribute("x2",0),r.setAttribute("y1",0),r.setAttribute("y2",0))}}function P(e,t){var n;O.synth.supportsAudio()?(n=new O.synth.SynthController).load("#".concat(e),new j(t.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0}):document.querySelector("#".concat(e)).innerHTML="
Audio is not supported in this browser.
",function(e,t,n){var r=e.id,i=decodeURIComponent(atob(e.data));if(n){n.disable(!0);var o=O.renderAbc("".concat(r),i,M)[0];(new O.synth.CreateSynth).init({visualObj:o}).then((function(e){n.setTune(o,t).then((function(e){})).catch((function(e){}))})).catch((function(e){}))}else O.renderAbc("".concat(r),i,M)}(t,!1,n)}function R(e,t,n){if(L()){var r=n.id,i=n.className,o='
');if(!n.lang||!n.lang.audio){var a=n.data,s=n.element.ownerDocument.getElementById(r);return O.renderAbc(s,a),e(!0)}var l=btoa(encodeURIComponent(n.data)),u=r+"-audio";n.element.parentNode.outerHTML=o+='
');var c={id:r,code:"(function() {\n if (typeof window !== 'undefined' && window.dispatchEvent) {\n window.dispatchEvent(new CustomEvent('abcjs',{\n detail: {\n audio: '".concat(u,"',\n render: {\n id:'").concat(r,"',\n class:'").concat(i,"',\n data:\"").concat(l,'"\n }\n }\n }));\n }\n })();')};return t.push(c),e(!0)}setTimeout((function(){R(e,t,n)}),10)}function N(e,t){return new Promise((function(n){var r=E.createElementMeta(C,e);if(!r)return n(!1);R(n,t,r)}))}function D(e,t){return function(){var e=L();if("undefined"!=typeof window){if(T)return e;e||(T=!0,S.loadStyleSheet(A),E.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),S.loadScript("ABCJS").then((function(e){O=E.interopDefault(window[e])})))}}(),new Promise((function(n){var r=[];e.forEach((function(e){r.push(N(e,t))})),Promise.all(r).then((function(){n(!0)}))}))}function F(){var e=!1;return[{type:"output",filter:function(t){var n=t.wrapper;if(!n)return!1;var r=n.querySelectorAll("code.".concat(C,".language-").concat(C));return!!r.length&&(e||"undefined"!=typeof window&&window.dispatchEvent&&(e=!0,window.addEventListener("abcjs",(function(e){e.detail&&P(e.detail.audio,e.detail.render)}))),D(r,t.scripts).then((function(){return t})))}}]}function I(e,t,n,r){try{r&&(n=n.appendChild(e.ownerDocument.createElement("ul")));var i=n.appendChild(e.ownerDocument.createElement("li")).appendChild(e.ownerDocument.createElement("a"));t&&(i.appendChild(e.ownerDocument.createTextNode(t.textContent)),i.href="#"+t.id)}catch(e){}return n}function z(e,t,n,r){if(n.headingLevel>=r){for(var i=null;n&&n.headingLevel>=r;)n=(i=n).parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&z(e,t,n,r),n}if(r>n.preLevel){for(n.preLevel++;r>n.preLevel;)n.toc=I(e,null,n.toc,!0),n.preLevel++;n.toc=I(e,t,n.toc,!0)}else{for(;n.preLevel>r;)n.toc=n.toc.parentNode,n.preLevel--;I(e,t,n.toc,!1)}return n.parentNode&&z(e,t,n.parentNode,r),n}function B(){var e=new DOMParser;return[{type:"output",filter:function(t){var n=e.parseFromString(t,"text/html"),r=void 0!==n.body?n.body:n;return function(e){for(var t=null,n=0,r=null,i=!1,o=e.querySelectorAll("p,h1,h2,h3,h4,h5,h6"),a=0;o.length>a;a++)if("[toc]"==(t=o[a]).textContent.trim().toLowerCase()){var s=e.ownerDocument.createElement("ul");s.className="showdown-toc",t.parentNode.replaceChild(s,t);var l={parentNode:null,toc:s,headingLevel:n,preLevel:0};if(r)if(n>r.headingLevel)l.parentNode=r;else{for(var u=r;u.headingLevel>n;)u=u.parentNode;u&&(l.parentNode=n===u.headingLevel?u.parentNode:u)}r=l,i=!0}else if(t.tagName)switch(t.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":n=parseInt(t.tagName.substr(1)),r&&(r.preLevel||(r.preLevel=n),r=z(e,t,r,n))}for(;r;){var c=r;r=c.parentNode,c.parentNode=null,c.toc=null,c.headingLevel=null,c.preLevel=null}return i}(r)?r.innerHTML:t}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===U)var U=window.Viz||void 0;var H=["circo","dot","neato","osage","twopi"];function $(){return!(void 0===U||!U||void 0===U.instance)}var W=!1;function q(e,t){if($()){var n=t.id,r=t.className,i=t.data,o=t.element,a=t.element.dataset.lang,s="dot";if(a){var l=JSON.parse(a);l&&l.engine&&-1!=H.indexOf(l.engine)&&(s=l.engine)}U.instance().then((function(t){var a=t.renderString(i,{format:"svg",engine:s});o.parentNode.outerHTML='
').concat(a,"
"),e(!0)}))}else setTimeout((function(){q(e,t)}),10)}function Z(e){return new Promise((function(t){var n=E.createElementMeta("viz",e);if(!n)return t(!1);q(t,n)}))}function G(e){return function(){var e=$();if("undefined"!=typeof window){if(W)return e;e||(W=!0,S.loadScript("Viz").then((function(e){U=E.interopDefault(window[e])})))}}(),new Promise((function(t){var n=[];e.forEach((function(e){n.push(Z(e))})),Promise.all(n).then((function(){t(!0)}))}))}function V(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.dot.language-dot");return!!n.length&&G(n).then((function(){return e}))}}]}var Y="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===K)var K=window.vegaEmbed||void 0;function X(){return!(void 0===K||!K)}var J=!1;function Q(e,t,n,r){var i=E.createElementMeta(Y,e);if(!i)return Promise.resolve(!1);var o=JSON.stringify(t),a=JSON.stringify(JSON.parse(i.data)),s=i.id,l={id:s,code:"(function() {\n let el = document.getElementById('".concat(s,"');\n if (el){\n vegaEmbed(el, JSON.parse('").concat(a,"'), JSON.parse('").concat(o,"'));\n }\n })();")};return n.push(l),new Promise((function(e){te(e,i)}))}function ee(e,t,n,r){return function(){var e=X();if("undefined"!=typeof window){if(J)return e;e||(J=!0,S.loadScript(Y).then((function(){return S.loadScript("vegaLite")})).then((function(){return S.loadScript("vegaEmbed")})).then((function(e){K=E.interopDefault(window[e])})))}}(),new Promise((function(i){var o=[];e.forEach((function(e){o.push(Q(e,r,n))})),t.forEach((function(e){o.push(Q(e,r,n))})),Promise.all(o).then((function(){i(!0)}))}))}function te(e,t){if(X()){var n=t.className;return t.element.parentNode.outerHTML='
'),e(!0)}setTimeout((function(){te(e,t)}),10)}function ne(e){var t=function(){return i({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.vega.language-vega"),r=t.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!r.length)&&ee(n,r,e.scripts,this.config).then((function(){return e}))}}]}function re(){var e=new DOMParser;return[{type:"output",filter:function(t){var n=e.parseFromString(t,"text/html"),r=void 0!==n.body?n.body:n;return function(e){for(var t=null,n=null,r=!1,i=e.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph"),o=0;i.length>o;o++)for(n=(t=i[o]).firstChild;n;){if(3===n.nodeType){var a=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);a&&(":-:"===a[2]?(n.nodeValue=a[3],t.className?t.className+=" align-center":t.className="align-center",r=!0):"--:"===a[2]&&(n.nodeValue=a[3],t.className?t.className+=" align-right":t.className="align-right",r=!0));break}n=n.nextSibling}return r}(r)?r.innerHTML:t}}]}var ie={decimalsign:"."},oe=0,ae=1,se=2,le=3,ue=4,ce=5,fe=6,he=7,de=8,pe=9,me=10,ge={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:me},ve=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:oe},{input:"beta",tag:"mi",output:"β",tex:null,ttype:oe},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:oe},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:oe},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:oe},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:oe},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:oe},{input:"eta",tag:"mi",output:"η",tex:null,ttype:oe},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:oe},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:oe},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:oe},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:oe},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:oe},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:oe},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:de},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:de},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:oe},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:oe},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:oe},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:oe},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:oe},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:oe},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:oe},{input:"pi",tag:"mi",output:"π",tex:null,ttype:oe},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:oe},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:oe},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:oe},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:oe},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:oe},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:oe},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:oe},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:oe},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:oe},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:oe},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:oe},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:oe},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:oe},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:oe},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:oe},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:oe},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:oe},{input:"//",tag:"mo",output:"/",tex:"/",ttype:oe,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:oe},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:oe},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:oe},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:oe},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:oe},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:oe},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:oe},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:de},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:oe},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:oe},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:oe},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:oe},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:he},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:he},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:oe},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:he},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:oe},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:he},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:oe},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:he},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:oe},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:he},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:se},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:se},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:oe},{input:":=",tag:"mo",output:":=",tex:null,ttype:oe},{input:"lt",tag:"mo",output:"<",tex:null,ttype:oe},{input:"gt",tag:"mo",output:">",tex:null,ttype:oe},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:oe},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:oe},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:oe},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:oe},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:oe},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:oe},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:oe},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:oe},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:oe},{input:"in",tag:"mo",output:"∈",tex:null,ttype:oe},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:oe},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:oe},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:oe},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:oe},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:oe},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:oe},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:oe},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:de},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:oe},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:oe},{input:"and",tag:"mtext",output:"and",tex:null,ttype:fe},{input:"or",tag:"mtext",output:"or",tex:null,ttype:fe},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:oe},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:oe},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:de},{input:"if",tag:"mo",output:"if",tex:null,ttype:fe},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:oe},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:de},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:oe},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:oe},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:oe},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:oe},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:oe},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:oe},{input:"(",tag:"mo",output:"(",tex:null,ttype:ue,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:ce,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:ue,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:ce,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:ue,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:ce,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:ue,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:ce,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:ue},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:ce},{input:"|",tag:"mo",output:"|",tex:null,ttype:pe,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:ue,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:ce,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:oe,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:ue},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:ce},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:ue},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:ce},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:ue,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:ce,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:oe},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:de},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:de},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:de},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:de},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:oe},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:oe},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:oe},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:oe},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:oe},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:oe},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:oe},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:oe},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:oe},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:oe},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:oe},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:oe},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:oe,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:oe},{input:"%",tag:"mo",output:"%",tex:"%",ttype:oe,notexcopy:!0},{input:"quad",tag:"mo",output:"  ",tex:null,ttype:oe},{input:"qquad",tag:"mo",output:"    ",tex:null,ttype:oe},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:oe},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:oe},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:oe},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:oe},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:oe},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:oe},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:oe},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:oe},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:de},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:oe},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:de},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:oe,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:oe,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:oe,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:oe,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:oe,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:ae,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:ae,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:he},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:he},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:ae,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:ae,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:ae,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:ae,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:ae,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:ae,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:ae,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:ae,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:ae,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:ae,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:ae,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:ae,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:ae,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:ae,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:ae,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:ae,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:ae,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:ae,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:ae,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:ae,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:ae,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:ae,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:ae,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:ae,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:ae,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:ae,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:ae,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:ae,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:ae,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:ae,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:ae,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:ae,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:ae,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:ae,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:ae,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:ae,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:ae,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:ae,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:oe},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:oe,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:ae,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:ae,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:oe},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:oe},{input:"min",tag:"mo",output:"min",tex:null,ttype:he},{input:"max",tag:"mo",output:"max",tex:null,ttype:he},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:oe},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:oe},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:oe},{input:"->",tag:"mo",output:"→",tex:"to",ttype:oe},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:oe},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:oe},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:oe},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:oe},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:oe},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:oe},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:oe},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:oe},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:oe},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:ae},{input:"root",tag:"mroot",output:"root",tex:null,ttype:se},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:se},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:le},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:se},{input:"_",tag:"msub",output:"_",tex:null,ttype:le},{input:"^",tag:"msup",output:"^",tex:null,ttype:le},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:ae},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:ae},{input:"hat",tag:"mover",output:"^",tex:null,ttype:ae,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:ae,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:ae,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:ae,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:ae,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:ae,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:ae,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:ae,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:ae,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:ae,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:ae,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:me},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:me},ge,{input:"color",tag:"mstyle",ttype:se},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:ae,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:ae},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:ae,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:ae},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:ae,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:ae},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:ae,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:ae},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:ae,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:ae},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:ae,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:ae}];function ye(e,t){return e.input>t.input?1:-1}var be,we,_e,xe=[];function ke(e,t){var n;n="\\"==e.charAt(t)&&"\\"!=e.charAt(t+1)&&" "!=e.charAt(t+1)?e.slice(t+1):e.slice(t);for(var r=0;n.length>r&&32>=n.charCodeAt(r);r+=1);return n.slice(r)}function Se(e,t,n){if(0==n){var r,i;for(n=-1,r=e.length;r>n+1;)t>e[i=n+r>>1]?n=i:r=i;return r}for(var o=n;e.length>o&&t>e[o];o++);return o}function Ee(e){for(var t,n,r,i=0,o="",a=!0,s=1;e.length>=s&&a;s++)n=e.slice(0,s),i=Se(xe,n,i),xe.length>i&&e.slice(0,xe[i].length)==xe[i]&&(t=i,s=(o=xe[i]).length),a=xe.length>i&&e.slice(0,xe[i].length)>=xe[i];if(we=_e,""!=o)return _e=ve[t].ttype,ve[t];_e=oe,i=1,n=e.slice(0,1);for(var l=!0;n>="0"&&"9">=n&&e.length>=i;)n=e.slice(i,i+1),i++;if(n==ie.decimalsign&&(n=e.slice(i,i+1))>="0"&&"9">=n)for(l=!1,i++;n>="0"&&"9">=n&&e.length>=i;)n=e.slice(i,i+1),i++;return l&&i>1||i>2?(n=e.slice(0,i-1),r="mn"):(i=2,r=("A">(n=e.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&we==le?(_e=le,{input:n,tag:r,output:n,ttype:ae,func:!0,val:!0}):{input:n,tag:r,output:n,ttype:oe,val:!0}}function Ce(e){var t;if("{"==e.charAt(0)&&"}"==e.charAt(e.length-1)){var n=0;"\\left"==(t=e.substr(1,5))?"("==(t=e.charAt(6))||"["==t||"{"==t?n=7:"\\lbrace"==(t=e.substr(6,7))&&(n=13):"("!=(t=e.charAt(1))&&"["!=t||(n=2),n>0&&("\\right)}"==(t=e.substr(e.length-8))||"\\right]}"==t||"\\right.}"==t?e=(e="{"+e.substr(n)).substr(0,e.length-8)+"}":"\\rbrace}"==t&&(e=(e="{"+e.substr(n)).substr(0,e.length-14)+"}"))}return e}function Ae(e){var t;return t="boolean"==typeof e.val&&e.val?"":"\\",null==e.tex?t+e.input:t+e.tex}function Oe(e){var t,n,r,i,o="";if(null==(t=Ee(e=ke(e,0)))||t.ttype==ce&&be>0)return[null,e];switch(t.ttype==de&&(t=Ee(e=t.output+ke(e,t.input.length))),t.ttype){case he:case oe:e=ke(e,t.input.length);var a=Ae(t);return"\\"==a.charAt(0)||"mo"==t.tag?[a,e]:["{"+a+"}",e];case ue:be++,r=Te(e=ke(e,t.input.length),!0),be--;var s=0;return"\\right"==r[0].substr(0,6)&&(")"==(u=r[0].charAt(6))||"]"==u||"}"==u?s=6:"."==u?s=7:"\\rbrace"==(u=r[0].substr(6,7))&&(s=13)),s>0?(r[0]=r[0].substr(s),n="boolean"==typeof t.invisible&&t.invisible?"{"+r[0]+"}":"{"+Ae(t)+r[0]+"}"):n="boolean"==typeof t.invisible&&t.invisible?"{\\left."+r[0]+"}":"{\\left"+Ae(t)+r[0]+"}",[n,r[1]];case me:return t!=ge&&(e=ke(e,t.input.length)),-1==(i="{"==e.charAt(0)?e.indexOf("}"):"("==e.charAt(0)?e.indexOf(")"):"["==e.charAt(0)?e.indexOf("]"):t==ge?e.slice(1).indexOf('"')+1:0)&&(i=e.length)," "==(u=e.slice(1,i)).charAt(0)&&(o="\\ "),o+="\\text{"+u+"}"," "==u.charAt(u.length-1)&&(o+="\\ "),[o,e=ke(e,i+1)];case ae:return null==(r=Oe(e=ke(e,t.input.length)))[0]?["{"+Ae(t)+"}",e]:"boolean"==typeof t.func&&t.func?"^"==(u=e.charAt(0))||"_"==u||"/"==u||"|"==u||","==u||1==t.input.length&&t.input.match(/\w/)&&"("!=u?["{"+Ae(t)+"}",e]:[n="{"+Ae(t)+"{"+r[0]+"}}",r[1]]:(r[0]=Ce(r[0]),"sqrt"==t.input?["\\sqrt{"+r[0]+"}",r[1]]:"cancel"==t.input?["\\cancel{"+r[0]+"}",r[1]]:void 0!==t.rewriteleftright?["{\\left"+t.rewriteleftright[0]+r[0]+"\\right"+t.rewriteleftright[1]+"}",r[1]]:"boolean"==typeof t.acc&&t.acc?[Ae(t)+"{"+r[0]+"}",r[1]]:["{"+Ae(t)+"{"+r[0]+"}}",r[1]]);case se:if(null==(r=Oe(e=ke(e,t.input.length)))[0])return["{"+Ae(t)+"}",e];r[0]=Ce(r[0]);var l=Oe(r[1]);return null==l[0]?["{"+Ae(t)+"}",e]:(l[0]=Ce(l[0]),[o="color"==t.input?"{\\color{"+r[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==t.input?"{\\sqrt["+r[0]+"]{"+l[0]+"}}":"{"+Ae(t)+"{"+r[0]+"}{"+l[0]+"}}",l[1]]);case le:return e=ke(e,t.input.length),[t.output,e];case fe:return e=ke(e,t.input.length),["{\\quad\\text{"+t.input+"}\\quad}",e];case pe:be++,r=Te(e=ke(e,t.input.length),!1),be--;var u="";return"|"==(u=r[0].charAt(r[0].length-1))&&","!==e.charAt(0)?[n="{\\left|"+r[0]+"}",r[1]]:[n="{\\mid}",e];default:return e=ke(e,t.input.length),["{"+Ae(t)+"}",e]}}function Le(e){var t,n,r,i,o;if(n=Ee(e=ke(e,0)),i=(o=Oe(e))[0],(t=Ee(e=o[1])).ttype==le&&"/"!=t.input){if((o=Oe(e=ke(e,t.input.length)))[0]=null==o[0]?"{}":Ce(o[0]),e=o[1],"_"==t.input)if("^"==(r=Ee(e)).input){var a=Oe(e=ke(e,r.input.length));a[0]=Ce(a[0]),e=a[1],i="{"+i,i+="_{"+o[0]+"}",i+="^{"+a[0]+"}",i+="}"}else i+="_{"+o[0]+"}";else i=i+"^{"+o[0]+"}";void 0!==n.func&&n.func&&((r=Ee(e)).ttype==le||r.ttype==ce||1>=n.input.length&&r.ttype!=ue||(i="{"+i+(o=Le(e))[0]+"}",e=o[1]))}return[i,e]}function Te(e,t){var n,r,i,o,a="",s=!1;do{r=(i=Le(e=ke(e,0)))[0],(n=Ee(e=i[1])).ttype==le&&"/"==n.input?((i=Le(e=ke(e,n.input.length)))[0]=null==i[0]?"{}":Ce(i[0]),e=i[1],r="\\frac{"+(r=Ce(r))+"}",a+=r+="{"+i[0]+"}",n=Ee(e)):null!=r&&(a+=r)}while((n.ttype!=ce&&(n.ttype!=pe||t)||0==be)&&null!=n&&""!=n.output);if(n.ttype==ce||n.ttype==pe){var l=a.length;if(l>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var u=a.charAt(l-2);if(")"==u||"]"==u){var c=a.charAt(6);if("("==c&&")"==u&&"}"!=n.output||"["==c&&"]"==u){var f="",h=[];h.push(0);var d=!0,p=0,m=[];m[0]=[0];var g=0,v=0,y="";for(o=1;l-1>o;o++)a.charAt(o)==c&&p++,a.charAt(o)==u&&0==--p&&","==a.charAt(o+2)&&"{"==a.charAt(o+3)&&(h.push(o+2),m[g=o+2]=[o+2]),"["!=a.charAt(o)&&"("!=a.charAt(o)&&"{"!=a.charAt(o)||v++,"]"!=a.charAt(o)&&")"!=a.charAt(o)&&"}"!=a.charAt(o)||v--,","==a.charAt(o)&&1==v&&m[g].push(o),0>v&&(g==o+1?o++:d=!1);h.push(l);var b=-1;if(0==p&&h.length>0&&d)for(o=0;h.length-1>o;o++){if(o>0&&(f+="\\\\"),0==o)if(1==m[h[o]].length)var w=[a.substr(h[o]+7,h[o+1]-h[o]-15)];else{w=[a.substring(h[o]+7,m[h[o]][1])];for(var _=2;m[h[o]].length>_;_++)w.push(a.substring(m[h[o]][_-1]+1,m[h[o]][_]));w.push(a.substring(m[h[o]][m[h[o]].length-1]+1,h[o+1]-8))}else if(1==m[h[o]].length)w=[a.substr(h[o]+8,h[o+1]-h[o]-16)];else{for(w=[a.substring(h[o]+8,m[h[o]][1])],_=2;m[h[o]].length>_;_++)w.push(a.substring(m[h[o]][_-1]+1,m[h[o]][_]));w.push(a.substring(m[h[o]][m[h[o]].length-1]+1,h[o+1]-8))}for(_=w.length-1;_>=0;_--)"{\\mid}"==w[_]?(0==o&&(y="|"+y),w.splice(_,1)):0==o&&(y="c"+y);b>0&&w.length!=b?d=!1:-1==b&&(b=w.length),f+=w.join("&")}f="\\begin{array}{"+y+"} "+f+"\\end{array}",d&&(a=f)}}}e=ke(e,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",s=!0):(a+=r="\\right"+Ae(n),s=!0)}return be>0&&!s&&(a+="\\right."),[a,e]}function Me(e){return be=0,null==(e=(e=(e=e.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":Te(e.replace(/^\s+/g,""),!1)[0]}if(function(){var e,t=ve.length;for(e=0;t>e;e++)!ve[e].tex||"boolean"==typeof ve[e].notexcopy&&ve[e].notexcopy||ve.push({input:ve[e].tex,tag:ve[e].tag,output:ve[e].output,ttype:ve[e].ttype,acc:ve[e].acc||!1});!function(){var e;for(ve.sort(ye),e=0;ve.length>e;e++)xe[e]=ve[e].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===je)var je=window.katex||void 0;if("undefined"==typeof renderMathInElement)var Pe=window.renderMathInElement||void 0;var Re=0;function Ne(){return!(void 0===Pe||!Pe||void 0===je||!je)}var De=!1,Fe="katexCSS";function Ie(e){var t=Ne();if("undefined"!=typeof window){if(De)return t;if(!t)return De=!0,S.loadStyleSheet(Fe),S.loadScript("katex").then((function(e){return je=E.interopDefault(window[e]),S.loadScript("renderMathInElement")})).then((function(t){Pe=E.interopDefault(window[t]),"function"==typeof e&&e&&e(Pe)})).catch((function(e){})),t}return"function"==typeof e&&e&&e(Pe),t}function ze(e,t){if(Ne()){var n=t.className,r=t.input,i=t.data,o=t.cssLink,a=t.options,s=t.element.ownerDocument,l="";if(i instanceof Array)i.forEach((function(e){if(""===e)l+="
";else{var t=je.renderToString(e,a);l+=o?'
').concat(t,"
"):'
').concat(t,"
")}}));else{var u=je.renderToString(i,a);l=o?'
').concat(u,"
"):'
').concat(u,"
")}t.element.parentNode.outerHTML=l,--Re||Pe(s.body,a),e(!0)}else setTimeout((function(){ze(e,t)}),10)}function Be(e,t,n){return new Promise((function(r){var i,o=E.createElementMeta("katex",e,(function(e){var t;i=e;var r=e.split(/\n[ \f\r\t\v]*\n/);return r.length>1?(t=[],r.forEach((function(e){""!==(e=e.trim())&&(e=n?Me(e):e),t.push(e)}))):t=n?Me(i):i,t}));if(!o)return r(!1);o.cssLink=S.getSrc(Fe),o.input=i,o.options=t,ze(r,o)}))}function Ue(e){return e.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}var He=function(){var e=i({displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});function t(e,t){return!(!e||"object"!==a(e)||!e.hasOwnProperty(t))}function n(e,n,r){return!!(t(e,n)&&t(e[n],r)&&(i=e[n][r],Array.isArray(i)&&i.length))&&(e[n][r].forEach((function(e){e.display="inline"!==r,"asciimath"===n&&(e.asciimath=!0)})),e[n][r]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"@ ",right:" @",display:!1,asciimath:!0},{left:"\\~",right:"\\~",display:!1,asciimath:!0}]):e.delimiters=[].concat(n(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0}]).concat(n(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(n(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(n(e.delimiters,"asciimath","inline")||[{left:"@ ",right:" @",display:!1,asciimath:!0},{left:"\\~",right:"\\~",display:!1,asciimath:!0}]),e};function $e(e){var t=0,n=He(e),r=n.delimiters.map((function(e){var n=e.right,r=e.display,i=e.asciimath;return{test:RegExp("".concat(Ue(e.left),"(.+?)").concat(Ue(n)),"g"),replacer:function(e,n){return++t,i&&(n=Me(n)),r?"\\[".concat(n,"\\]"):"\\(".concat(n,"\\)")}}}));return[{type:"output",config:n,filter:function(e){t=0;var i=e.wrapper;if(!i)return!1;r.length&&i.querySelectorAll(":not(code):not(pre)").forEach((function(e){o(e.childNodes).filter((function(e){return"#text"===e.nodeName&&e.nodeValue.trim()})).forEach((function(e){var t=r.reduce((function(e,t){return e.replace(t.test,t.replacer)}),e.nodeValue);e.nodeValue=t}))}));var a=i.querySelectorAll("code.latex.language-latex"),s=i.querySelectorAll("code.asciimath.language-asciimath");if(!a.length&&!s.length){if(t>0){var l=function(e,t){Ne()?(t(i.ownerDocument.body,u.config),e(!0)):setTimeout((function(){l(e,t)}),10)};this.config.cssLink=S.getSrc(Fe);var u=this;return new Promise((function(e){Ie((function(t){l(e,t)}))})).then((function(){return e}))}return!1}return n.cssLink=S.getSrc(Fe),function(e,t,n){return Re=e.length+t.length,Ie(),new Promise((function(r){var i=[];e.forEach((function(e){i.push(Be(e,n,!1))})),t.forEach((function(e){i.push(Be(e,n,!0))})),Promise.all(i).then((function(){r(!0)}))}))}(a,s,this.config).then((function(){return e}))}}]}var We="echarts";if("undefined"==typeof window)throw Error("The showdown ".concat(We," extension can only be used in browser environment!"));if(void 0===qe)var qe=window.echarts||void 0;function Ze(){return!!qe}var Ge=!1;function Ve(e,t){if(Ze()){var n=t.className;return t.element.parentNode.outerHTML='
'),e(!0)}setTimeout((function(){Ve(e,t)}),20)}function Ye(e,t,n){var r=E.createElementMeta(We,e);if(!r)return Promise.resolve(!1);n=JSON.stringify(i(i({},n),{},{ssr:!1}));var o=JSON.stringify(JSON.parse(r.data)),a={id:r.id,code:"(function() {\n let el = document.getElementById('".concat(r.id,"');\n if (el){\n let config = JSON.parse('").concat(n,"');\n let chart = echarts.init(el, null, config);\n let option = JSON.parse('").concat(o,"');\n chart.setOption(option);\n }\n })();")};return t.push(a),new Promise((function(e){Ve(e,r)}))}function Ke(e,t,n){return function(){var e=Ze();if("undefined"!=typeof window){if(Ge)return e;e||(Ge=!0,S.loadScript(We).then((function(e){qe=E.interopDefault(window[e])})))}}(),new Promise((function(r){var i=[];e.forEach((function(e){i.push(Ye(e,t,n))})),Promise.all(i).then((function(){r(!0)}))}))}function Xe(e){var t=function(){return i({renderer:"svg",ssr:!1,width:400,height:300,tooltip:{show:!0},animation:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.".concat(We,".language-").concat(We));return!!n.length&&Ke(n,e.scripts,this.config).then((function(){return e}))}}]}var Je="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Qe)var Qe=window.mermaid||void 0;function et(){return!(void 0===Qe||!Qe)}var tt=!1;function nt(e,t){if(et()){var n=t.className,r=t.element.parentNode;Qe.render(t.id,t.data).then((function(t){r.outerHTML='
').concat(t.svg,"
"),e(!0)}))}else setTimeout((function(){nt(e,t)}),10)}function rt(e){return new Promise((function(t){var n=E.createElementMeta(Je,e);if(!n)return t(!1);nt(t,n)}))}function it(e,t){return function(e){var t=et();if("undefined"!=typeof window){if(tt)return t;if(!t)return tt=!0,S.loadScript(Je).then((function(t){(Qe=E.interopDefault(window[t])).initialize(e)})),t}Qe.initialize(e)}(t),new Promise((function(t){var n=[];e.forEach((function(e){n.push(rt(e))})),Promise.all(n).then((function(){t(!0)}))}))}function ot(e){var t=function(){return i({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&it(n,this.config).then((function(){return e}))}}]}var at="undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},st=[],lt=[],ut="undefined"!=typeof Uint8Array?Uint8Array:Array,ct=!1;function ft(){ct=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;64>t;++t)st[t]=e[t],lt[e.charCodeAt(t)]=t;lt[45]=62,lt[95]=63}function ht(e,t,n){for(var r,i=[],o=t;n>o;o+=3)i.push(st[(r=(e[o]<<16)+(e[o+1]<<8)+e[o+2])>>18&63]+st[r>>12&63]+st[r>>6&63]+st[63&r]);return i.join("")}function dt(e){var t;ct||ft();for(var n=e.length,r=n%3,i="",o=[],a=16383,s=0,l=n-r;l>s;s+=a)o.push(ht(e,s,s+a>l?l:s+a));return 1===r?(i+=st[(t=e[n-1])>>2],i+=st[t<<4&63],i+="=="):2===r&&(i+=st[(t=(e[n-2]<<8)+e[n-1])>>10],i+=st[t>>4&63],i+=st[t<<2&63],i+="="),o.push(i),o.join("")}function pt(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)}function mt(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,h=23===i?5.960464477539062e-8:0,d=r?0:o-1,p=r?1:-1,m=0>t||0===t&&0>1/t?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(1>t*(l=Math.pow(2,-(a=Math.floor(Math.log(t)/Math.LN2))))&&(a--,l*=2),2>(t+=1>a+f?h*Math.pow(2,1-f):h/l)*l||(a++,l/=2),c>a+f?1>a+f?(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0):(s=(t*l-1)*Math.pow(2,i),a+=f):(s=0,a=c));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,u-=8);e[n+d-p]|=128*m}var gt={}.toString,vt=Array.isArray||function(e){return"[object Array]"==gt.call(e)};function yt(){return wt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function bt(e,t){if(yt()n||n>t.byteLength)throw new RangeError("'offset' is out of bounds");if(n+(r||0)>t.byteLength)throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),wt.TYPED_ARRAY_SUPPORT?(e=t).__proto__=wt.prototype:e=St(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!wt.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|At(t,n);e=bt(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(Ct(t)){var n=0|Et(t.length);return 0===(e=bt(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?bt(e,0):St(e,t);if("Buffer"===t.type&&vt(t.data))return St(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function xt(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(0>e)throw new RangeError('"size" argument must not be negative')}function kt(e,t){if(xt(t),e=bt(e,0>t?0:0|Et(t)),!wt.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;++n)e[n]=0;return e}function St(e,t){var n=0>t.length?0:0|Et(t.length);e=bt(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function Et(e){if(e>=yt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+yt().toString(16)+" bytes");return 0|e}function Ct(e){return!(null==e||!e._isBuffer)}function At(e,t){if(Ct(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return en(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return tn(e).length;default:if(r)return en(e).length;t=(""+t).toLowerCase(),r=!0}}function Ot(e,t,n){var r=!1;if((void 0===t||0>t)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),0>=n)return"";if((t>>>=0)>=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return $t(this,t,n);case"utf8":case"utf-8":return zt(this,t,n);case"ascii":return Ut(this,t,n);case"latin1":case"binary":return Ht(this,t,n);case"base64":return It(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Lt(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Tt(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),isNaN(n=+n)&&(n=i?0:e.length-1),0>n&&(n=e.length+n),e.length>n){if(0>n){if(!i)return-1;n=0}}else{if(i)return-1;n=e.length-1}if("string"==typeof t&&(t=wt.from(t,r)),Ct(t))return 0===t.length?-1:Mt(e,t,n,r,i);if("number"==typeof t)return t&=255,wt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Mt(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Mt(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=(r+"").toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(2>e.length||2>t.length)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;s>o;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,h=0;l>h;h++)if(u(e,o+h)!==u(t,h)){f=!1;break}if(f)return o}return-1}function jt(e,t,n,r){var i=e.length-(n=Number(n)||0);r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;r>a;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function Pt(e,t,n,r){return nn(en(t,e.length-n),e,n,r)}function Rt(e,t,n,r){return nn(function(e){for(var t=[],n=0;e.length>n;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Nt(e,t,n,r){return Rt(e,t,n,r)}function Dt(e,t,n,r){return nn(tn(t),e,n,r)}function Ft(e,t,n,r){return nn(function(e,t){for(var n,r,i=[],o=0;e.length>o&&0<=(t-=2);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function It(e,t,n){return dt(0===t&&n===e.length?e:e.slice(t,n))}function zt(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;n>i;){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(n>=i+f)switch(f){case 1:128>u&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:a=e[i+2],128==(192&(o=e[i+1]))&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(55296>l||l>57343)&&(c=l);break;case 4:a=e[i+2],s=e[i+3],128==(192&(o=e[i+1]))&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&1114112>l&&(c=l)}null===c?(c=65533,f=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(Bt>=t)return String.fromCharCode.apply(String,e);for(var n="",r=0;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Bt));return n}(r)}wt.TYPED_ARRAY_SUPPORT=void 0===at.TYPED_ARRAY_SUPPORT||at.TYPED_ARRAY_SUPPORT,yt(),wt.poolSize=8192,wt._augment=function(e){return e.__proto__=wt.prototype,e},wt.from=function(e,t,n){return _t(null,e,t,n)},wt.TYPED_ARRAY_SUPPORT&&(wt.prototype.__proto__=Uint8Array.prototype,wt.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Symbol),wt.alloc=function(e,t,n){return function(e,t,n,r){return xt(t),t>0&&void 0!==n?"string"==typeof r?bt(e,t).fill(n,r):bt(e,t).fill(n):bt(e,t)}(null,e,t,n)},wt.allocUnsafe=function(e){return kt(null,e)},wt.allocUnsafeSlow=function(e){return kt(null,e)},wt.isBuffer=rn,wt.compare=function(e,t){if(!Ct(e)||!Ct(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);o>i;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return r>n?-1:n>r?1:0},wt.isEncoding=function(e){switch((e+"").toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},wt.concat=function(e,t){if(!vt(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return wt.alloc(0);var n;if(void 0===t)for(t=0,n=0;e.length>n;++n)t+=e[n].length;var r=wt.allocUnsafe(t),i=0;for(n=0;e.length>n;++n){var o=e[n];if(!Ct(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},wt.byteLength=At,wt.prototype._isBuffer=!0,wt.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;e>t;t+=2)Lt(this,t,t+1);return this},wt.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;e>t;t+=4)Lt(this,t,t+3),Lt(this,t+1,t+2);return this},wt.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;e>t;t+=8)Lt(this,t,t+7),Lt(this,t+1,t+6),Lt(this,t+2,t+5),Lt(this,t+3,t+4);return this},wt.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?zt(this,0,e):Ot.apply(this,arguments)},wt.prototype.equals=function(e){if(!Ct(e))throw new TypeError("Argument must be a Buffer");return this===e||0===wt.compare(this,e)},wt.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},wt.prototype.compare=function(e,t,n,r,i){if(!Ct(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),0>t||n>e.length||0>r||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),c=0;s>c;++c)if(l[c]!==u[c]){o=l[c],a=u[c];break}return a>o?-1:o>a?1:0},wt.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},wt.prototype.indexOf=function(e,t,n){return Tt(this,e,t,n,!0)},wt.prototype.lastIndexOf=function(e,t,n){return Tt(this,e,t,n,!1)},wt.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return jt(this,e,t,n);case"utf8":case"utf-8":return Pt(this,e,t,n);case"ascii":return Rt(this,e,t,n);case"latin1":case"binary":return Nt(this,e,t,n);case"base64":return Dt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},wt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Bt=4096;function Ut(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(127&e[i]);return r}function Ht(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(e[i]);return r}function $t(e,t,n){var r=e.length;t&&t>=0||(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;n>o;++o)i+=Qt(e[o]);return i}function Wt(e,t,n){for(var r=e.slice(t,n),i="",o=0;r.length>o;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function qt(e,t,n){if(e%1!=0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Zt(e,t,n,r,i,o){if(!Ct(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||o>t)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Gt(e,t,n,r){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);o>i;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Vt(e,t,n,r){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);o>i;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Yt(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(0>n)throw new RangeError("Index out of range")}function Kt(e,t,n,r,i){return i||Yt(e,0,n,4),mt(e,t,n,r,23,4),n+4}function Xt(e,t,n,r,i){return i||Yt(e,0,n,8),mt(e,t,n,r,52,8),n+8}wt.prototype.slice=function(e,t){var n,r=this.length;if(0>(e=~~e)?0>(e+=r)&&(e=0):e>r&&(e=r),0>(t=void 0===t?r:~~t)?0>(t+=r)&&(t=0):t>r&&(t=r),e>t&&(t=e),wt.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=wt.prototype;else{var i=t-e;n=new wt(i,void 0);for(var o=0;i>o;++o)n[o]=this[o+e]}return n},wt.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||qt(e,t,this.length);for(var r=this[e],i=1,o=0;++o0&&(i*=256);)r+=this[e+--t]*i;return r},wt.prototype.readUInt8=function(e,t){return t||qt(e,1,this.length),this[e]},wt.prototype.readUInt16LE=function(e,t){return t||qt(e,2,this.length),this[e]|this[e+1]<<8},wt.prototype.readUInt16BE=function(e,t){return t||qt(e,2,this.length),this[e]<<8|this[e+1]},wt.prototype.readUInt32LE=function(e,t){return t||qt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},wt.prototype.readUInt32BE=function(e,t){return t||qt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},wt.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||qt(e,t,this.length);for(var r=this[e],i=1,o=0;++or||(r-=Math.pow(2,8*t)),r},wt.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||qt(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return(i*=128)>o||(o-=Math.pow(2,8*t)),o},wt.prototype.readInt8=function(e,t){return t||qt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},wt.prototype.readInt16LE=function(e,t){t||qt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},wt.prototype.readInt16BE=function(e,t){t||qt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},wt.prototype.readInt32LE=function(e,t){return t||qt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},wt.prototype.readInt32BE=function(e,t){return t||qt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},wt.prototype.readFloatLE=function(e,t){return t||qt(e,4,this.length),pt(this,e,!0,23,4)},wt.prototype.readFloatBE=function(e,t){return t||qt(e,4,this.length),pt(this,e,!1,23,4)},wt.prototype.readDoubleLE=function(e,t){return t||qt(e,8,this.length),pt(this,e,!0,52,8)},wt.prototype.readDoubleBE=function(e,t){return t||qt(e,8,this.length),pt(this,e,!1,52,8)},wt.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Zt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},wt.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,1,255,0),wt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},wt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,2,65535,0),wt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Gt(this,e,t,!0),t+2},wt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,2,65535,0),wt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Gt(this,e,t,!1),t+2},wt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,4,4294967295,0),wt.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Vt(this,e,t,!0),t+4},wt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,4,4294967295,0),wt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Vt(this,e,t,!1),t+4},wt.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Zt(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++oe&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},wt.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Zt(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)0>e&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},wt.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,1,127,-128),wt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},wt.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,2,32767,-32768),wt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Gt(this,e,t,!0),t+2},wt.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,2,32767,-32768),wt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Gt(this,e,t,!1),t+2},wt.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,4,2147483647,-2147483648),wt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Vt(this,e,t,!0),t+4},wt.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Zt(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),wt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Vt(this,e,t,!1),t+4},wt.prototype.writeFloatLE=function(e,t,n){return Kt(this,e,t,!0,n)},wt.prototype.writeFloatBE=function(e,t,n){return Kt(this,e,t,!1,n)},wt.prototype.writeDoubleLE=function(e,t,n){return Xt(this,e,t,!0,n)},wt.prototype.writeDoubleBE=function(e,t,n){return Xt(this,e,t,!1,n)},wt.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),e.length>t||(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),r-n>e.length-t&&(r=e.length-t+n);var i,o=r-n;if(this===e&&t>n&&r>t)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(1e3>o||!wt.TYPED_ARRAY_SUPPORT)for(i=0;o>i;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},wt.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);256>i&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!wt.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(0>t||t>this.length||n>this.length)throw new RangeError("Out of range index");if(t>=n)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;n>o;++o)this[o]=e;else{var a=Ct(e)?e:en(""+new wt(e,r)),s=a.length;for(o=0;n-t>o;++o)this[o+t]=a[o%s]}return this};var Jt=/[^+\/0-9A-Za-z-_]/g;function Qt(e){return 16>e?"0"+e.toString(16):e.toString(16)}function en(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;r>a;++a){if((n=e.charCodeAt(a))>55295&&57344>n){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(56320>n){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,128>n){if(0>(t-=1))break;o.push(n)}else if(2048>n){if(0>(t-=2))break;o.push(n>>6|192,63&n|128)}else if(65536>n){if(0>(t-=3))break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(n>=1114112)throw Error("Invalid code point");if(0>(t-=4))break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function tn(e){return function(e){var t,n,r,i,o,a;ct||ft();var s=e.length;if(s%4>0)throw Error("Invalid string. Length must be a multiple of 4");a=new ut(3*s/4-(o="="===e[s-2]?2:"="===e[s-1]?1:0)),r=o>0?s-4:s;var l=0;for(t=0,n=0;r>t;t+=4,n+=3)i=lt[e.charCodeAt(t)]<<18|lt[e.charCodeAt(t+1)]<<12|lt[e.charCodeAt(t+2)]<<6|lt[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=lt[e.charCodeAt(t)]<<2|lt[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=lt[e.charCodeAt(t)]<<10|lt[e.charCodeAt(t+1)]<<4|lt[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){if(2>(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Jt,"")).length)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function nn(e,t,n,r){for(var i=0;r>i&&i+n1)for(var n=1;arguments.length>n;n++)t[n-1]=arguments[n];hn.push(new yn(e,t)),1!==hn.length||dn||cn(gn)}function yn(e,t){this.fun=e,this.array=t}function bn(){}yn.prototype.run=function(){this.fun.apply(null,this.array)};var wn=bn,_n=bn,xn=bn,kn=bn,Sn=bn,En=bn,Cn=bn,An=at.performance||{},On=An.now||An.mozNow||An.msNow||An.oNow||An.webkitNow||function(){return(new Date).getTime()},Ln=new Date,Tn={nextTick:vn,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:wn,addListener:_n,once:xn,off:kn,removeListener:Sn,removeAllListeners:En,emit:Cn,binding:function(e){throw Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*On.call(An),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],0>(r-=e[1])&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ln)/1e3}};function Mn(){}function jn(){jn.init.call(this)}function Pn(e){return void 0===e._maxListeners?jn.defaultMaxListeners:e._maxListeners}function Rn(e,t,n,r){var i,o,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]):(o=e._events=new Mn,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=Pn(e))&&i>0&&a.length>i){a.warned=!0;var s=Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length}}else a=o[t]=n,++e._eventsCount;return e}function Nn(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function Dn(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Fn(e,t){for(var n=Array(t);t--;)n[t]=e[t];return n}Mn.prototype=Object.create(null),jn.EventEmitter=jn,jn.usingDomains=!1,jn.prototype.domain=void 0,jn.prototype._events=void 0,jn.prototype._maxListeners=void 0,jn.defaultMaxListeners=10,jn.init=function(){this.domain=null,jn.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Mn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},jn.prototype.setMaxListeners=function(e){if("number"!=typeof e||0>e||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},jn.prototype.getMaxListeners=function(){return Pn(this)},jn.prototype.emit=function(e){var t,n,r,i,o,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=Fn(e,r),o=0;r>o;++o)i[o].call(n)}(n,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=Fn(e,i),a=0;i>a;++a)o[a].call(n,r)}(n,c,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,a=Fn(e,o),s=0;o>s;++s)a[s].call(n,r,i)}(n,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var a=e.length,s=Fn(e,a),l=0;a>l;++l)s[l].call(n,r,i,o)}(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=Array(r-1),o=1;r>o;o++)i[o-1]=arguments[o];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=Fn(e,i),a=0;i>a;++a)o[a].apply(n,r)}(n,c,this,i)}return!0},jn.prototype.on=jn.prototype.addListener=function(e,t){return Rn(this,e,t,!1)},jn.prototype.prependListener=function(e,t){return Rn(this,e,t,!0)},jn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Nn(this,e,t)),this},jn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Nn(this,e,t)),this},jn.prototype.removeListener=function(e,t){var n,r,i,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new Mn:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){a=n[o].listener,i=o;break}if(0>i)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new Mn,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;i>r;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,a||t)}return this},jn.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new Mn,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new Mn:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),o=0;i.length>o;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new Mn,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},jn.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=Array(e.length),n=0;t.length>n;++n)t[n]=e[n].listener||e[n];return t}(t):[]},jn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Dn.call(e,t)},jn.prototype.listenerCount=Dn,jn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var In="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},zn=/%[sdj%]/g;function Bn(e){if(!Jn(e)){for(var t=[],n=0;arguments.length>n;n++)t.push(Wn(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,o=(e+"").replace(zn,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return r[n++]+"";case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];i>n;a=r[++n])Xn(a)||!tr(a)?o+=" "+a:o+=" "+Wn(a);return o}function Un(e,t){if(Qn(at.process))return function(){return Un(e,t).apply(this,arguments)};if(!0===Tn.noDeprecation)return e;var n=!1;return function(){if(!n){if(Tn.throwDeprecation)throw Error(t);n=!0}return e.apply(this,arguments)}}var Hn,$n={};function Wn(e,t){var n={seen:[],stylize:Zn};return 3>arguments.length||(n.depth=arguments[2]),4>arguments.length||(n.colors=arguments[3]),Kn(t)?n.showHidden=t:t&&function(e,t){if(!t||!tr(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]]}(n,t),Qn(n.showHidden)&&(n.showHidden=!1),Qn(n.depth)&&(n.depth=2),Qn(n.colors)&&(n.colors=!1),Qn(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=qn),Gn(n,e,n.depth)}function qn(e,t){var n=Wn.styles[t];return n?"["+Wn.colors[n][0]+"m"+e+"["+Wn.colors[n][1]+"m":e}function Zn(e,t){return e}function Gn(e,t,n){if(e.customInspect&&t&&ir(t.inspect)&&t.inspect!==Wn&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Jn(r)||(r=Gn(e,r,n)),r}var i=function(e,t){if(Qn(t))return e.stylize("undefined","undefined");if(Jn(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return r=t,"number"==typeof r?e.stylize(""+t,"number"):Kn(t)?e.stylize(""+t,"boolean"):Xn(t)?e.stylize("null","null"):void 0;var r}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),rr(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Vn(t);if(0===o.length){if(ir(t))return e.stylize("[Function"+(t.name?": "+t.name:"")+"]","special");if(er(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(nr(t))return e.stylize(Date.prototype.toString.call(t),"date");if(rr(t))return Vn(t)}var s,l="",u=!1,c=["{","}"];return Array.isArray(t)&&(u=!0,c=["[","]"]),ir(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),er(t)&&(l=" "+RegExp.prototype.toString.call(t)),nr(t)&&(l=" "+Date.prototype.toUTCString.call(t)),rr(t)&&(l=" "+Vn(t)),0!==o.length||u&&0!=t.length?0>n?er(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),s=u?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;s>a;++a)ar(t,a+"")?o.push(Yn(e,t,n,r,a+"",!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(Yn(e,t,n,r,i,!0))})),o}(e,t,n,a,o):o.map((function(r){return Yn(e,t,n,a,r,u)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(s,l,c)):c[0]+l+c[1]}function Vn(e){return"["+Error.prototype.toString.call(e)+"]"}function Yn(e,t,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=e.stylize(l.set?"[Getter/Setter]":"[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),ar(r,i)||(a="["+i+"]"),s||(0>e.seen.indexOf(l.value)?(s=Xn(n)?Gn(e,l.value,null):Gn(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Qn(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Kn(e){return"boolean"==typeof e}function Xn(e){return null===e}function Jn(e){return"string"==typeof e}function Qn(e){return void 0===e}function er(e){return tr(e)&&"[object RegExp]"===or(e)}function tr(e){return"object"==typeof e&&null!==e}function nr(e){return tr(e)&&"[object Date]"===or(e)}function rr(e){return tr(e)&&("[object Error]"===or(e)||e instanceof Error)}function ir(e){return"function"==typeof e}function or(e){return Object.prototype.toString.call(e)}function ar(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sr(){this.head=null,this.tail=null,this.length=0}Wn.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Wn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},sr.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},sr.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},sr.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},sr.prototype.clear=function(){this.head=this.tail=null,this.length=0},sr.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},sr.prototype.concat=function(e){if(0===this.length)return wt.alloc(0);if(1===this.length)return this.head.data;for(var t=wt.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var lr=wt.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ur(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!lr(e))throw Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=fr;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=hr;break;default:return void(this.write=cr)}this.charBuffer=new wt(6),this.charReceived=0,this.charLength=0}function cr(e){return e.toString(this.encoding)}function fr(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function hr(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}ur.prototype.write=function(e){for(var t="";this.charLength;){var n=this.charLength-this.charReceived>e.length?e.length:this.charLength-this.charReceived;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charLength>this.charReceived)return"";if(e=e.slice(n,e.length),55296>(r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))||r>56319){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),(r=(t+=e.toString(this.encoding,0,i)).charCodeAt(i=t.length-1))>=55296&&56319>=r){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},ur.prototype.detectIncompleteChar=function(e){for(var t=3>e.length?e.length:3;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(2>=t&&n>>4==14){this.charLength=3;break}if(3>=t&&n>>3==30){this.charLength=4;break}}this.charReceived=t},ur.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.encoding;t+=this.charBuffer.slice(0,this.charReceived).toString(n)}return t},mr.ReadableState=pr;var dr=function(e){return Qn(Hn)&&(Hn=Tn.env.NODE_DEBUG||""),e=e.toUpperCase(),$n[e]||(RegExp("\\b"+e+"\\b","i").test(Hn)?$n[e]=function(){Bn.apply(null,arguments)}:$n[e]=function(){}),$n[e]}("stream");function pr(e,t){this.objectMode=!!(e=e||{}).objectMode,t instanceof $r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=new sr,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new ur(e.encoding),this.encoding=e.encoding)}function mr(e){if(!(this instanceof mr))return new mr(e);this._readableState=new pr(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),jn.call(this)}function gr(e,t,n,r,i){var o=function(e,t){var n=null;return rn(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,br(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i)e.emit("error",Error("stream.push() after EOF"));else if(t.endEmitted&&i)e.emit("error",Error("stream.unshift() after end event"));else{var a;!t.decoder||i||r||(n=t.decoder.write(n),a=!t.objectMode&&0===n.length),i||(t.reading=!1),a||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&br(e))),function(e,t){t.readingMore||(t.readingMore=!0,vn(_r,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.highWaterMark>e.length||0===e.length)}(t)}In(mr,jn),mr.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=wt.from(e,t),t=""),gr(this,n,e,t,!1)},mr.prototype.unshift=function(e){return gr(this,this._readableState,e,"",!0)},mr.prototype.isPaused=function(){return!1===this._readableState.flowing},mr.prototype.setEncoding=function(e){return this._readableState.decoder=new ur(e),this._readableState.encoding=e,this};var vr=8388608;function yr(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return vr>e?(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++):e=vr,e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function br(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(dr("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?vn(wr,e):wr(e))}function wr(e){dr("emit readable"),e.emit("readable"),Sr(e)}function _r(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.highWaterMark>t.length&&(dr("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function xr(e){dr("readable nexttick read 0"),e.read(0)}function kr(e,t){t.reading||(dr("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Sr(e),t.flowing&&!t.reading&&e.read(0)}function Sr(e){var t=e._readableState;for(dr("flow",t.flowing);t.flowing&&null!==e.read(););}function Er(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():e&&t.length>e?n=function(e,t,n){var r;return t.head.data.length>e?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(i+=a===o.length?o:o.slice(0,e),0===(e-=a)){a===o.length?(++r,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=wt.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t),r}(e,t.buffer,t.decoder):(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()),n);var n}function Cr(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,vn(Ar,t,e))}function Ar(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Or(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}function Lr(){}function Tr(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function Mr(e,t){Object.defineProperty(this,"buffer",{get:Un((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),this.objectMode=!!(e=e||{}).objectMode,t instanceof $r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.decodeStrings=!(!1===e.decodeStrings),this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?vn(i,r):i(r),e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,i);else{var o=Dr(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||Nr(e,n),r?vn(Rr,e,n,o,i):Rr(e,n,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new zr(this)}function jr(e){if(!(this instanceof jr||this instanceof $r))return new jr(e);this._writableState=new Mr(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),jn.call(this)}function Pr(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function Rr(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),Ir(e,t)}function Nr(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var o=0;n;)r[o]=n,n=n.next,o+=1;Pr(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new zr(t)}else{for(;n;){var a=n.chunk;if(Pr(e,t,!1,t.objectMode?1:a.length,a,n.encoding,n.callback),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function Dr(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Fr(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Ir(e,t){var n=Dr(t);return n&&(0===t.pendingcb?(Fr(e,t),t.finished=!0,e.emit("finish")):Fr(e,t)),n}function zr(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}mr.prototype.read=function(e){dr("read",e);var t=this._readableState,n=e=parseInt(e,10);if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return dr("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Cr(this):br(this),null;if(0===(e=yr(e,t))&&t.ended)return 0===t.length&&Cr(this),null;var r,i=t.needReadable;return dr("need readable",i),(0===t.length||t.highWaterMark>t.length-e)&&dr("length less than watermark",i=!0),t.ended||t.reading?dr("reading or ended",i=!1):i&&(dr("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=yr(n,t))),null===(r=e>0?Er(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Cr(this)),null!==r&&this.emit("data",r),r},mr.prototype._read=function(e){this.emit("error",Error("not implemented"))},mr.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,dr("pipe count=%d opts=%j",r.pipesCount,t);var i=t&&!1===t.end?u:a;function o(e){dr("onunpipe"),e===n&&u()}function a(){dr("onend"),e.end()}r.endEmitted?vn(i):n.once("end",i),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;dr("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Sr(e))}}(n);e.on("drain",s);var l=!1;function u(){dr("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",u),n.removeListener("data",f),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function f(t){dr("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Or(r.pipes,e))&&!l&&(dr("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function h(t){dr("onerror",t),m(),e.removeListener("error",h),0===e.listeners("error").length&&e.emit("error",t)}function d(){e.removeListener("finish",p),m()}function p(){dr("onfinish"),e.removeListener("close",d),m()}function m(){dr("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",n),r.flowing||(dr("pipe resume"),n.resume()),e},mr.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;r>i;i++)n[i].emit("unpipe",this);return this}var o=Or(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},mr.prototype.addListener=mr.prototype.on=function(e,t){var n=jn.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&br(this):vn(xr,this))}return n},mr.prototype.resume=function(){var e=this._readableState;return e.flowing||(dr("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,vn(kr,e,t))}(this,e)),this},mr.prototype.pause=function(){return dr("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(dr("pause"),this._readableState.flowing=!1,this.emit("pause")),this},mr.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",(function(){if(dr("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(i){dr("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){dr("wrapped _read",t),n&&(n=!1,e.resume())},r},mr._fromList=Er,jr.WritableState=Mr,In(jr,jn),Mr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},jr.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},jr.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),wt.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=Lr),r.ended?function(e,t){var n=Error("write after end");e.emit("error",n),vn(t,n)}(this,n):function(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):wt.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),vn(r,o),i=!1),i}(this,r,e,n)&&(r.pendingcb++,i=function(e,t,n,r,i){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=wt.from(t,n)),t}(t,n,r),wt.isBuffer(n)&&(r="buffer");var o=t.objectMode?1:n.length;t.length+=o;var a=t.highWaterMark>t.length;if(a||(t.needDrain=!0),t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new Tr(n,r,i),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Pr(e,t,!1,o,n,r,i);return a}(this,r,e,t,n)),i},jr.prototype.cork=function(){this._writableState.corked++},jr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||Nr(this,e))},jr.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())<=-1)throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},jr.prototype._write=function(e,t,n){n(Error("not implemented"))},jr.prototype._writev=null,jr.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,Ir(e,t),n&&(t.finished?vn(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},In($r,mr);for(var Br=Object.keys(jr.prototype),Ur=0;Br.length>Ur;Ur++){var Hr=Br[Ur];$r.prototype[Hr]||($r.prototype[Hr]=jr.prototype[Hr])}function $r(e){if(!(this instanceof $r))return new $r(e);mr.call(this,e),jr.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Wr)}function Wr(){this.allowHalfOpen||this._writableState.ended||vn(qr,this)}function qr(e){e.end()}function Zr(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.highWaterMark>o.length)&&e._read(o.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Gr(e){if(!(this instanceof Gr))return new Gr(e);$r.call(this,e),this._transformState=new Zr(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Vr(t,e)})):Vr(t)}))}function Vr(e,t){if(t)return e.emit("error",t);var n=e._transformState;if(e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(n.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}function Yr(e){if(!(this instanceof Yr))return new Yr(e);Gr.call(this,e)}function Kr(){jn.call(this)}In(Gr,$r),Gr.prototype.push=function(e,t){return this._transformState.needTransform=!1,$r.prototype.push.call(this,e,t)},Gr.prototype._transform=function(e,t,n){throw Error("Not implemented")},Gr.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.highWaterMark>i.length)&&this._read(i.highWaterMark)}},Gr.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},In(Yr,Gr),Yr.prototype._transform=function(e,t,n){n(null,e)},In(Kr,jn),Kr.Readable=mr,Kr.Writable=jr,Kr.Duplex=$r,Kr.Transform=Gr,Kr.PassThrough=Yr,Kr.Stream=Kr,Kr.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===jn.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",a),n.removeListener("close",s),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e};var Xr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Jr(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function Qr(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;r>o;o++)e[i+o]=t[n+o]}var ei=Uint8Array,ti=Uint16Array,ni=Int32Array,ri=4,ii=0,oi=1,ai=2;function si(e){for(var t=e.length;--t>=0;)e[t]=0}var li=0,ui=1,ci=2,fi=29,hi=256,di=hi+1+fi,pi=30,mi=19,gi=2*di+1,vi=15,yi=16,bi=7,wi=256,_i=16,xi=17,ki=18,Si=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Ei=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ci=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ai=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Oi=Array(2*(di+2));si(Oi);var Li=Array(2*pi);si(Li);var Ti=Array(512);si(Ti);var Mi=Array(256);si(Mi);var ji=Array(fi);si(ji);var Pi,Ri,Ni,Di=Array(pi);function Fi(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function Ii(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function zi(e){return 256>e?Ti[e]:Ti[256+(e>>>7)]}function Bi(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Ui(e,t,n){e.bi_valid>yi-n?(e.bi_buf|=t<>yi-e.bi_valid,e.bi_valid+=n-yi):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function Wi(e,t,n){var r,i,o=Array(vi+1),a=0;for(r=1;vi>=r;r++)o[r]=a=a+n[r-1]<<1;for(i=0;t>=i;i++){var s=e[2*i+1];0!==s&&(e[2*i]=$i(o[s]++,s))}}function qi(e){var t;for(t=0;di>t;t++)e.dyn_ltree[2*t]=0;for(t=0;pi>t;t++)e.dyn_dtree[2*t]=0;for(t=0;mi>t;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*wi]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Zi(e){e.bi_valid>8?Bi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Gi(e,t,n,r){var i=2*t,o=2*n;return e[o]>e[i]||e[i]===e[o]&&r[n]>=r[t]}function Vi(e,t,n){for(var r=e.heap[n],i=n<<1;e.heap_len>=i&&(e.heap_len>i&&Gi(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Gi(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function Yi(e,t,n){var r,i,o,a,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?Hi(e,i,t):(Hi(e,(o=Mi[i])+hi+1,t),0!==(a=Si[o])&&Ui(e,i-=ji[o],a),Hi(e,o=zi(--r),n),0!==(a=Ei[o])&&Ui(e,r-=Di[o],a))}while(e.last_lit>s);Hi(e,wi,t)}function Ki(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=gi,n=0;l>n;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;2>e.heap_len;)o[2*(i=e.heap[++e.heap_len]=2>u?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)Vi(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Vi(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[r]>e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,Vi(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(o=0;vi>=o;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;gi>n;n++)(o=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(o=p,m++),l[2*r+1]=o,r>u||(e.bl_count[o]++,a=0,d>r||(a=h[r-d]),e.opt_len+=(s=l[2*r])*(o+a),f&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==m){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(o=p;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(e,t),Wi(o,u,e.bl_count)}function Xi(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;n>=r;r++)i=a,a=t[2*(r+1)+1],++ss?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*_i]++):s>10?e.bl_tree[2*ki]++:e.bl_tree[2*xi]++,s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4))}function Ji(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;n>=r;r++)if(i=a,a=t[2*(r+1)+1],++s>=l||i!==a){if(u>s)do{Hi(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(Hi(e,i,e.bl_tree),s--),Hi(e,_i,e.bl_tree),Ui(e,s-3,2)):s>10?(Hi(e,ki,e.bl_tree),Ui(e,s-11,7)):(Hi(e,xi,e.bl_tree),Ui(e,s-3,3));s=0,o=i,0===a?(l=138,u=3):i===a?(l=6,u=3):(l=7,u=4)}}si(Di);var Qi=!1;function eo(e){Qi||(function(){var e,t,n,r,i,o=Array(vi+1);for(n=0,r=0;fi-1>r;r++)for(ji[r]=n,e=0;1<e;e++)Mi[n++]=r;for(Mi[n-1]=r,i=0,r=0;16>r;r++)for(Di[r]=i,e=0;1<e;e++)Ti[i++]=r;for(i>>=7;pi>r;r++)for(Di[r]=i<<7,e=0;1<e;e++)Ti[256+i++]=r;for(t=0;vi>=t;t++)o[t]=0;for(e=0;143>=e;)Oi[2*e+1]=8,e++,o[8]++;for(;255>=e;)Oi[2*e+1]=9,e++,o[9]++;for(;279>=e;)Oi[2*e+1]=7,e++,o[7]++;for(;287>=e;)Oi[2*e+1]=8,e++,o[8]++;for(Wi(Oi,di+1,o),e=0;pi>e;e++)Li[2*e+1]=5,Li[2*e]=$i(e,5);Pi=new Fi(Oi,Si,hi+1,di,vi),Ri=new Fi(Li,Ei,0,pi,vi),Ni=new Fi([],Ci,0,mi,bi)}(),Qi=!0),e.l_desc=new Ii(e.dyn_ltree,Pi),e.d_desc=new Ii(e.dyn_dtree,Ri),e.bl_desc=new Ii(e.bl_tree,Ni),e.bi_buf=0,e.bi_valid=0,qi(e)}function to(e,t,n,r){Ui(e,(li<<1)+(r?1:0),3),function(e,t,n){Zi(e),Bi(e,n),Bi(e,~n),Qr(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}function no(e){Ui(e,ui<<1,3),Hi(e,wi,Oi),function(e){16===e.bi_valid?(Bi(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8>e.bi_valid||(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}function ro(e,t,n,r){var i,o,a=0;e.level>0?(e.strm.data_type===ai&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;31>=t;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return ii;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return oi;for(t=32;hi>t;t++)if(0!==e.dyn_ltree[2*t])return oi;return ii}(e)),Ki(e,e.l_desc),Ki(e,e.d_desc),a=function(e){var t;for(Xi(e,e.dyn_ltree,e.l_desc.max_code),Xi(e,e.dyn_dtree,e.d_desc.max_code),Ki(e,e.bl_desc),t=mi-1;t>=3&&0===e.bl_tree[2*Ai[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(o=e.static_len+3+7>>>3)>(i=e.opt_len+3+7>>>3)||(i=o)):i=o=n+5,n+4>i||-1===t?e.strategy===ri||o===i?(Ui(e,(ui<<1)+(r?1:0),3),Yi(e,Oi,Li)):(Ui(e,(ci<<1)+(r?1:0),3),function(e,t,n,r){var i;for(Ui(e,t-257,5),Ui(e,n-1,5),Ui(e,r-4,4),i=0;r>i;i++)Ui(e,e.bl_tree[2*Ai[i]+1],3);Ji(e,e.dyn_ltree,t-1),Ji(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Yi(e,e.dyn_ltree,e.dyn_dtree)):to(e,t,n,r),qi(e),r&&Zi(e)}function io(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Mi[n]+hi+1)]++,e.dyn_dtree[2*zi(t)]++),e.last_lit===e.lit_bufsize-1}function oo(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}var ao=function(){for(var e,t=[],n=0;256>n;n++){e=n;for(var r=0;8>r;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();function so(e,t,n,r){var i=ao,o=r+n;e^=-1;for(var a=r;o>a;a++)e=e>>>8^i[255&(e^t[a])];return~e}var lo,uo=0,co=4,fo=0,ho=-2,po=2,mo=8,go=286,vo=30,yo=19,bo=2*go+1,wo=15,_o=3,xo=258,ko=xo+_o+1,So=42,Eo=103,Co=113,Ao=666,Oo=1,Lo=2,To=3,Mo=4;function jo(e,t){return e.msg=Xr[t],t}function Po(e){return(e<<1)-(e>4?9:0)}function Ro(e){for(var t=e.length;--t>=0;)e[t]=0}function No(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Qr(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Do(e,t){ro(e,0>e.block_start?-1:e.block_start,e.strstart-e.block_start,t),e.block_start=e.strstart,No(e.strm)}function Fo(e,t){e.pending_buf[e.pending++]=t}function Io(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function zo(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-ko?e.strstart-(e.w_size-ko):0,u=e.window,c=e.w_mask,f=e.prev,h=e.strstart+xo,d=u[o+a-1],p=u[o+a];e.good_match>e.prev_length||(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===p&&u[n+a-1]===d&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&h>o);if(r=xo-(h-o),o=h-xo,r>a){if(e.match_start=t,a=r,r>=s)break;d=u[o+a-1],p=u[o+a]}}}while((t=f[t&c])>l&&0!=--i);return a>e.lookahead?e.lookahead:a}function Bo(e){var t,n,r,i,o,a,s,l,u,c,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-ko)){Qr(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=f>r?0:r-f}while(--n);t=n=f;do{r=e.prev[--t],e.prev[t]=f>r?0:r-f}while(--n);i+=f}if(0===e.strm.avail_in)break;if(s=e.window,l=e.strstart+e.lookahead,c=void 0,(c=(a=e.strm).avail_in)>(u=i)&&(c=u),n=0===c?0:(a.avail_in-=c,Qr(s,a.input,a.next_in,c,l),1===a.state.wrap?a.adler=oo(a.adler,s,c,l):2===a.state.wrap&&(a.adler=so(a.adler,s,c,l)),a.next_in+=c,a.total_in+=c,c),e.lookahead+=n,e.lookahead+e.insert>=_o)for(e.ins_h=e.window[o=e.strstart-e.insert],e.ins_h=(e.ins_h<=_o););}while(ko>e.lookahead&&0!==e.strm.avail_in)}function Uo(e,t){for(var n,r;;){if(ko>e.lookahead){if(Bo(e),ko>e.lookahead&&t===uo)return Oo;if(0===e.lookahead)break}if(n=0,_o>e.lookahead||(e.ins_h=(e.ins_h<e.w_size-ko||(e.match_length=zo(e,n)),_o>e.match_length)r=io(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;else if(r=io(e,e.strstart-e.match_start,e.match_length-_o),e.lookahead-=e.match_length,e.match_length>e.max_lazy_match||_o>e.lookahead)e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<e.strstart?e.strstart:_o-1,t===co?(Do(e,!0),0===e.strm.avail_out?To:Mo):e.last_lit&&(Do(e,!1),0===e.strm.avail_out)?Oo:Lo}function Ho(e,t){for(var n,r,i;;){if(ko>e.lookahead){if(Bo(e),ko>e.lookahead&&t===uo)return Oo;if(0===e.lookahead)break}if(n=0,_o>e.lookahead||(e.ins_h=(e.ins_h<e.prev_length&&e.w_size-ko>=e.strstart-n&&(e.match_length=zo(e,n),5>=e.match_length&&(1===e.strategy||e.match_length===_o&&e.strstart-e.match_start>4096)&&(e.match_length=_o-1)),_o>e.prev_length||e.match_length>e.prev_length)if(e.match_available){if((r=io(e,0,e.window[e.strstart-1]))&&Do(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Oo}else e.match_available=1,e.strstart++,e.lookahead--;else{i=e.strstart+e.lookahead-_o,r=io(e,e.strstart-1-e.prev_match,e.prev_length-_o),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart>i||(e.ins_h=(e.ins_h<e.strstart?e.strstart:_o-1,t===co?(Do(e,!0),0===e.strm.avail_out?To:Mo):e.last_lit&&(Do(e,!1),0===e.strm.avail_out)?Oo:Lo}function $o(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function Wo(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mo,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ti(2*bo),this.dyn_dtree=new ti(2*(2*vo+1)),this.bl_tree=new ti(2*(2*yo+1)),Ro(this.dyn_ltree),Ro(this.dyn_dtree),Ro(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ti(wo+1),this.heap=new ti(2*go+1),Ro(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ti(2*go+1),Ro(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function qo(e){var t,n=function(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=po,(t=e.state).pending=0,t.pending_out=0,0>t.wrap&&(t.wrap=-t.wrap),t.status=t.wrap?So:Co,e.adler=2===t.wrap?0:1,t.last_flush=uo,eo(t),fo):jo(e,ho)}(e);return n===fo&&((t=e.state).window_size=2*t.w_size,Ro(t.head),t.max_lazy_match=lo[t.level].max_lazy,t.good_match=lo[t.level].good_length,t.nice_match=lo[t.level].nice_length,t.max_chain_length=lo[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=_o-1,t.match_available=0,t.ins_h=0),n}function Zo(e,t){var n,r,i,o;if(!e||!e.state||t>5||0>t)return e?jo(e,ho):ho;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Ao&&t!==co)return jo(e,0===e.avail_out?-5:ho);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===So)if(2===r.wrap)e.adler=0,Fo(r,31),Fo(r,139),Fo(r,8),r.gzhead?(Fo(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Fo(r,255&r.gzhead.time),Fo(r,r.gzhead.time>>8&255),Fo(r,r.gzhead.time>>16&255),Fo(r,r.gzhead.time>>24&255),Fo(r,9===r.level?2:r.strategy>=2||2>r.level?4:0),Fo(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Fo(r,255&r.gzhead.extra.length),Fo(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=so(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Fo(r,0),Fo(r,0),Fo(r,0),Fo(r,0),Fo(r,0),Fo(r,9===r.level?2:r.strategy>=2||2>r.level?4:0),Fo(r,3),r.status=Co);else{var a=mo+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||2>r.level?0:6>r.level?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=Co,Io(r,a),0!==r.strstart&&(Io(r,e.adler>>>16),Io(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;(65535&r.gzhead.extra.length)>r.gzindex&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=so(e.adler,r.pending_buf,r.pending-i,i)),No(e),i=r.pending,r.pending!==r.pending_buf_size));)Fo(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=so(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=so(e.adler,r.pending_buf,r.pending-i,i)),No(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzhead.name.length>r.gzindex?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Fo(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=so(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=so(e.adler,r.pending_buf,r.pending-i,i)),No(e),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzhead.comment.length>r.gzindex?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Fo(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(e.adler=so(e.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=Eo)}else r.status=Eo;if(r.status===Eo&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&No(e),r.pending+2>r.pending_buf_size||(Fo(r,255&e.adler),Fo(r,e.adler>>8&255),e.adler=0,r.status=Co)):r.status=Co),0!==r.pending){if(No(e),0===e.avail_out)return r.last_flush=-1,fo}else if(0===e.avail_in&&Po(t)<=Po(n)&&t!==co)return jo(e,-5);if(r.status===Ao&&0!==e.avail_in)return jo(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==uo&&r.status!==Ao){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Bo(e),0===e.lookahead)){if(t===uo)return Oo;break}if(e.match_length=0,n=io(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Do(e,!1),0===e.strm.avail_out))return Oo}return e.insert=0,t===co?(Do(e,!0),0===e.strm.avail_out?To:Mo):e.last_lit&&(Do(e,!1),0===e.strm.avail_out)?Oo:Lo}(r,t):3===r.strategy?function(e,t){for(var n,r,i,o,a=e.window;;){if(xo>=e.lookahead){if(Bo(e),xo>=e.lookahead&&t===uo)return Oo;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=_o&&e.strstart>0&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=e.strstart+xo;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&o>i);e.match_length=xo-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(_o>e.match_length?(n=io(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++):(n=io(e,1,e.match_length-_o),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0),n&&(Do(e,!1),0===e.strm.avail_out))return Oo}return e.insert=0,t===co?(Do(e,!0),0===e.strm.avail_out?To:Mo):e.last_lit&&(Do(e,!1),0===e.strm.avail_out)?Oo:Lo}(r,t):lo[r.level].func(r,t);if(s!==To&&s!==Mo||(r.status=Ao),s===Oo||s===To)return 0===e.avail_out&&(r.last_flush=-1),fo;if(s===Lo&&(1===t?no(r):5!==t&&(to(r,0,0,!1),3===t&&(Ro(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),No(e),0===e.avail_out))return r.last_flush=-1,fo}return t!==co?fo:r.wrap>0?(2===r.wrap?(Fo(r,255&e.adler),Fo(r,e.adler>>8&255),Fo(r,e.adler>>16&255),Fo(r,e.adler>>24&255),Fo(r,255&e.total_in),Fo(r,e.total_in>>8&255),Fo(r,e.total_in>>16&255),Fo(r,e.total_in>>24&255)):(Io(r,e.adler>>>16),Io(r,65535&e.adler)),No(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?fo:1):1}lo=[new $o(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(1>=e.lookahead){if(Bo(e),0===e.lookahead&&t===uo)return Oo;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Do(e,!1),0===e.strm.avail_out))return Oo;if(e.strstart-e.block_start>=e.w_size-ko&&(Do(e,!1),0===e.strm.avail_out))return Oo}return e.insert=0,t===co?(Do(e,!0),0===e.strm.avail_out?To:Mo):(e.strstart>e.block_start&&Do(e,!1),Oo)})),new $o(4,4,8,4,Uo),new $o(4,5,16,8,Uo),new $o(4,6,32,32,Uo),new $o(4,4,16,16,Ho),new $o(8,16,32,32,Ho),new $o(8,16,128,128,Ho),new $o(8,32,128,256,Ho),new $o(32,128,258,1024,Ho),new $o(32,258,258,4096,Ho)];var Go=30,Vo=12;function Yo(e,t){var n,r,i,o,a,s,l,u,c,f,h,d,p,m,g,v,y,b,w,_,x,k,S,E,C;E=e.input,i=(r=e.next_in)+(e.avail_in-5),C=e.output,a=(o=e.next_out)-(t-e.avail_out),s=o+(e.avail_out-257),l=(n=e.state).dmax,u=n.wsize,c=n.whave,f=n.wnext,h=n.window,d=n.hold,p=n.bits,m=n.lencode,g=n.distcode,v=(1<p&&(d+=E[r++]<>>=w=b>>>24,p-=w,0===(w=b>>>16&255))C[o++]=65535&b;else{if(!(16&w)){if(64&w){if(32&w){n.mode=Vo;break e}e.msg="invalid literal/length code",n.mode=Go;break e}b=m[(65535&b)+(d&(1<p&&(d+=E[r++]<>>=w,p-=w),15>p&&(d+=E[r++]<>>=w=b>>>24,p-=w,16&(w=b>>>16&255)){if(x=65535&b,(w&=15)>p&&(d+=E[r++]<(p+=8)&&(d+=E[r++]<l){e.msg="invalid distance too far back",n.mode=Go;break e}if(d>>>=w,p-=w,x>(w=o-a)){if((w=x-w)>c&&n.sane){e.msg="invalid distance too far back",n.mode=Go;break e}if(k=0,S=h,0===f){if(k+=u-w,_>w){_-=w;do{C[o++]=h[k++]}while(--w);k=o-x,S=C}}else if(w>f){if(k+=u+f-w,_>(w-=f)){_-=w;do{C[o++]=h[k++]}while(--w);if(k=0,_>f){_-=w=f;do{C[o++]=h[k++]}while(--w);k=o-x,S=C}}}else if(k+=f-w,_>w){_-=w;do{C[o++]=h[k++]}while(--w);k=o-x,S=C}for(;_>2;)C[o++]=S[k++],C[o++]=S[k++],C[o++]=S[k++],_-=3;_&&(C[o++]=S[k++],_>1&&(C[o++]=S[k++]))}else{k=o-x;do{C[o++]=C[k++],C[o++]=C[k++],C[o++]=C[k++],_-=3}while(_>2);_&&(C[o++]=C[k++],_>1&&(C[o++]=C[k++]))}break}if(64&w){e.msg="invalid distance code",n.mode=Go;break e}b=g[(65535&b)+(d&(1<r&&s>o);d&=(1<<(p-=(_=p>>3)<<3))-1,e.next_in=r-=_,e.next_out=o,e.avail_in=i>r?i-r+5:5-(r-i),e.avail_out=s>o?s-o+257:257-(o-s),n.hold=d,n.bits=p}var Ko=15,Xo=852,Jo=592,Qo=0,ea=1,ta=2,na=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],ra=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],ia=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],oa=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function aa(e,t,n,r,i,o,a,s){var l,u,c,f,h,d,p,m,g,v=s.bits,y=0,b=0,w=0,_=0,x=0,k=0,S=0,E=0,C=0,A=0,O=null,L=0,T=new ti(Ko+1),M=new ti(Ko+1),j=null,P=0;for(y=0;Ko>=y;y++)T[y]=0;for(b=0;r>b;b++)T[t[n+b]]++;for(x=v,_=Ko;_>=1&&0===T[_];_--);if(x>_&&(x=_),0===_)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(w=1;_>w&&0===T[w];w++);for(w>x&&(x=w),E=1,y=1;Ko>=y;y++)if(E<<=1,0>(E-=T[y]))return-1;if(E>0&&(e===Qo||1!==_))return-1;for(M[1]=0,y=1;Ko>y;y++)M[y+1]=M[y]+T[y];for(b=0;r>b;b++)0!==t[n+b]&&(a[M[t[n+b]]++]=b);if(e===Qo?(O=j=a,d=19):e===ea?(O=na,L-=257,j=ra,P-=257,d=256):(O=ia,j=oa,d=-1),A=0,b=0,y=w,h=o,k=x,S=0,c=-1,f=(C=1<Xo||e===ta&&C>Jo)return 1;for(;;){p=y-S,d>a[b]?(m=0,g=a[b]):a[b]>d?(m=j[P+a[b]],g=O[L+a[b]]):(m=96,g=0),l=1<>S)+(u-=l)]=p<<24|m<<16|g}while(0!==u);for(l=1<>=1;if(0!==l?(A&=l-1,A+=l):A=0,b++,0==--T[y]){if(y===_)break;y=t[n+a[b]]}if(y>x&&(A&f)!==c){for(0===S&&(S=x),h+=w,E=1<<(k=y-S);_>k+S&&(E-=T[k+S])>0;)k++,E<<=1;if(C+=1<Xo||e===ta&&C>Jo)return 1;i[c=A&f]=x<<24|k<<16|h-o}}return 0!==A&&(i[h+A]=y-S<<24|64<<16),s.bits=x,0}var sa=1,la=2,ua=0,ca=-2,fa=1,ha=12,da=30,pa=852,ma=592;function ga(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function va(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ti(320),this.work=new ti(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ya(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(e.total_in=e.total_out=(t=e.state).total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=fa,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new ni(pa),t.distcode=t.distdyn=new ni(ma),t.sane=1,t.back=-1,ua):ca}(e)):ca}function ba(e,t){var n,r;return e?(r=new va,e.state=r,r.window=null,n=function(e,t){var n,r;return e&&e.state?(0>t?(n=0,t=-t):(n=1+(t>>4),48>t&&(t&=15)),t&&(8>t||t>15)?ca:(null!==(r=e.state).window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ya(e))):ca}(e,t),n!==ua&&(e.state=null),n):ca}var wa,_a,xa,ka=!0;function Sa(e){if(ka){var t;for(wa=new ni(512),_a=new ni(32),t=0;144>t;)e.lens[t++]=8;for(;256>t;)e.lens[t++]=9;for(;280>t;)e.lens[t++]=7;for(;288>t;)e.lens[t++]=8;for(aa(sa,e.lens,0,288,wa,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5;aa(la,e.lens,0,32,_a,0,e.work,{bits:5}),ka=!1}e.lencode=wa,e.lenbits=9,e.distcode=_a,e.distbits=5}function Ea(e,t){var n,r,i,o,a,s,l,u,c,f,h,d,p,m,g,v,y,b,w,_,x,k,S,E,C=0,A=new ei(4),O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return ca;(n=e.state).mode===ha&&(n.mode=13),a=e.next_out,i=e.output,o=e.next_in,r=e.input,u=n.hold,c=n.bits,f=s=e.avail_in,h=l=e.avail_out,k=ua;e:for(;;)switch(n.mode){case fa:if(0===n.wrap){n.mode=13;break}for(;16>c;){if(0===s)break e;s--,u+=r[o++]<>>8&255,n.check=so(n.check,A,2,0),u=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=da;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=da;break}if(c-=4,x=8+(15&(u>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=da;break}n.dmax=1<c;){if(0===s)break e;s--,u+=r[o++]<>8&1),512&n.flags&&(A[0]=255&u,A[1]=u>>>8&255,n.check=so(n.check,A,2,0)),u=0,c=0,n.mode=3;case 3:for(;32>c;){if(0===s)break e;s--,u+=r[o++]<>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,n.check=so(n.check,A,4,0)),u=0,c=0,n.mode=4;case 4:for(;16>c;){if(0===s)break e;s--,u+=r[o++]<>8),512&n.flags&&(A[0]=255&u,A[1]=u>>>8&255,n.check=so(n.check,A,2,0)),u=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;16>c;){if(0===s)break e;s--,u+=r[o++]<>>8&255,n.check=so(n.check,A,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((d=n.length)>s&&(d=s),d&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),Qr(n.head.extra,r,o,d,x)),512&n.flags&&(n.check=so(n.check,r,d,o)),s-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;d=0;do{x=r[o+d++],n.head&&x&&65536>n.length&&(n.head.name+=String.fromCharCode(x))}while(x&&s>d);if(512&n.flags&&(n.check=so(n.check,r,d,o)),s-=d,o+=d,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;d=0;do{x=r[o+d++],n.head&&x&&65536>n.length&&(n.head.comment+=String.fromCharCode(x))}while(x&&s>d);if(512&n.flags&&(n.check=so(n.check,r,d,o)),s-=d,o+=d,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;16>c;){if(0===s)break e;s--,u+=r[o++]<>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ha;break;case 10:for(;32>c;){if(0===s)break e;s--,u+=r[o++]<>>=7&c,c-=7&c,n.mode=27;break}for(;3>c;){if(0===s)break e;s--,u+=r[o++]<>>=1)){case 0:n.mode=14;break;case 1:if(Sa(n),n.mode=20,6===t){u>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=da}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;32>c;){if(0===s)break e;s--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=da;break}if(n.length=65535&u,u=0,c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(d=n.length){if(d>s&&(d=s),d>l&&(d=l),0===d)break e;Qr(i,r,o,d,a),s-=d,o+=d,l-=d,a+=d,n.length-=d;break}n.mode=ha;break;case 17:for(;14>c;){if(0===s)break e;s--,u+=r[o++]<>>=5)),c-=5,n.ncode=4+(15&(u>>>=5)),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=da;break}n.have=0,n.mode=18;case 18:for(;n.ncode>n.have;){for(;3>c;){if(0===s)break e;s--,u+=r[o++]<>>=3,c-=3}for(;19>n.have;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k=aa(0,n.lens,0,19,n.lencode,0,n.work,S={bits:n.lenbits}),n.lenbits=S.bits,k){e.msg="invalid code lengths set",n.mode=da;break}n.have=0,n.mode=19;case 19:for(;n.nlen+n.ndist>n.have;){for(;v=(C=n.lencode[u&(1<>>16&255,y=65535&C,c<(g=C>>>24);){if(0===s)break e;s--,u+=r[o++]<y)u>>>=g,c-=g,n.lens[n.have++]=y;else{if(16===y){for(E=g+2;E>c;){if(0===s)break e;s--,u+=r[o++]<>>=g,c-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=da;break}x=n.lens[n.have-1],d=3+(3&u),u>>>=2,c-=2}else if(17===y){for(E=g+3;E>c;){if(0===s)break e;s--,u+=r[o++]<>>=g)),u>>>=3,c-=3}else{for(E=g+7;E>c;){if(0===s)break e;s--,u+=r[o++]<>>=g)),u>>>=7,c-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=da;break}for(;d--;)n.lens[n.have++]=x}}if(n.mode===da)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=da;break}if(n.lenbits=9,k=aa(sa,n.lens,0,n.nlen,n.lencode,0,n.work,S={bits:n.lenbits}),n.lenbits=S.bits,k){e.msg="invalid literal/lengths set",n.mode=da;break}if(n.distbits=6,n.distcode=n.distdyn,k=aa(la,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S={bits:n.distbits}),n.distbits=S.bits,k){e.msg="invalid distances set",n.mode=da;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=c,Yo(e,h),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,n.mode===ha&&(n.back=-1);break}for(n.back=0;v=(C=n.lencode[u&(1<>>16&255,y=65535&C,c<(g=C>>>24);){if(0===s)break e;s--,u+=r[o++]<>b)])>>>16&255,y=65535&C,c>>24);){if(0===s)break e;s--,u+=r[o++]<>>=b,c-=b,n.back+=b}if(u>>>=g,c-=g,n.back+=g,n.length=y,0===v){n.mode=26;break}if(32&v){n.back=-1,n.mode=ha;break}if(64&v){e.msg="invalid literal/length code",n.mode=da;break}n.extra=15&v,n.mode=22;case 22:if(n.extra){for(E=n.extra;E>c;){if(0===s)break e;s--,u+=r[o++]<>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;v=(C=n.distcode[u&(1<>>16&255,y=65535&C,c<(g=C>>>24);){if(0===s)break e;s--,u+=r[o++]<>b)])>>>16&255,y=65535&C,c>>24);){if(0===s)break e;s--,u+=r[o++]<>>=b,c-=b,n.back+=b}if(u>>>=g,c-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=da;break}n.offset=y,n.extra=15&v,n.mode=24;case 24:if(n.extra){for(E=n.extra;E>c;){if(0===s)break e;s--,u+=r[o++]<>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=da;break}n.mode=25;case 25:if(0===l)break e;if(n.offset>(d=h-l)){if((d=n.offset-d)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=da;break}p=d>n.wnext?n.wsize-(d-=n.wnext):n.wnext-d,d>n.length&&(d=n.length),m=n.window}else m=i,p=a-n.offset,d=n.length;d>l&&(d=l),l-=d,n.length-=d;do{i[a++]=m[p++]}while(--d);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;i[a++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;32>c;){if(0===s)break e;s--,u|=r[o++]<c;){if(0===s)break e;s--,u+=r[o++]<n.mode&&(27>n.mode||4!==t))&&function(e,t,n,r){var i,o=e.state;null===o.window&&(o.wsize=1<r?((i=o.wsize-o.wnext)>r&&(i=r),Qr(o.window,t,n-r,i,o.wnext),(r-=i)?(Qr(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.wsize>o.whave&&(o.whave+=i))):(Qr(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize)}(e,e.output,e.next_out,h-e.avail_out),h-=e.avail_out,e.total_in+=f-=e.avail_in,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?so(n.check,i,h,e.next_out-h):oo(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===ha?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===t)&&k===ua&&(k=-5),k}function Ca(e){if(1>e||e>7)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function Aa(e,t){for(var n=0;e.length>n;n++)this[t+n]=e[n]}Ca.prototype.init=function(e,t,n,r,i){var o;switch(this.windowBits=e,this.level=t,this.memLevel=n,this.strategy=r,3!==this.mode&&4!==this.mode||(this.windowBits+=16),7===this.mode&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Jr,this.mode){case 1:case 3:case 5:o=function(e,t,n,r,i,o){if(!e)return ho;var a=1;if(-1===t&&(t=6),0>r?(a=0,r=-r):r>15&&(a=2,r-=16),1>i||i>9||n!==mo||8>r||r>15||0>t||t>9||0>o||o>4)return jo(e,ho);8===r&&(r=9);var s=new Wo;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<e.chunkSize||e.chunkSize>La.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(La.Z_MIN_WINDOWBITS>e.windowBits||e.windowBits>La.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+e.windowBits);if(e.level&&(La.Z_MIN_LEVEL>e.level||e.level>La.Z_MAX_LEVEL))throw Error("Invalid compression level: "+e.level);if(e.memLevel&&(La.Z_MIN_MEMLEVEL>e.memLevel||e.memLevel>La.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=La.Z_FILTERED&&e.strategy!=La.Z_HUFFMAN_ONLY&&e.strategy!=La.Z_RLE&&e.strategy!=La.Z_FIXED&&e.strategy!=La.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!rn(e.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");this._binding=new La.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var r=Error(e);r.errno=t,r.code=La.codes[t],n.emit("error",r)};var r=La.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(r=e.level);var i=La.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(i=e.strategy),this._binding.init(e.windowBits||La.Z_DEFAULT_WINDOWBITS,r,e.memLevel||La.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new wt(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=i,this.once("end",this.close)}Object.keys(Ta).forEach((function(e){Ta[Ta[e]]=e})),In(Ba,Gr),Ba.prototype.params=function(e,t,n){if(La.Z_MIN_LEVEL>e||e>La.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=La.Z_FILTERED&&t!=La.Z_HUFFMAN_ONLY&&t!=La.Z_RLE&&t!=La.Z_FIXED&&t!=La.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var r=this;this.flush(La.Z_SYNC_FLUSH,(function(){r._binding.params(e,t),r._hadError||(r._level=e,r._strategy=t,n&&n())}))}else vn(n)},Ba.prototype.reset=function(){return this._binding.reset()},Ba.prototype._flush=function(e){this._transform(new wt(0),"",e)},Ba.prototype.flush=function(e,t){var n=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=La.Z_FULL_FLUSH),n.ended)t&&vn(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var r=this;this.once("drain",(function(){r.flush(t)}))}else this._flushFlag=e,this.write(new wt(0),"",t)},Ba.prototype.close=function(e){if(e&&vn(e),!this._closed){this._closed=!0,this._binding.close();var t=this;vn((function(){t.emit("close")}))}},Ba.prototype._transform=function(e,t,n){var r,i=this._writableState,o=(i.ending||i.ended)&&(!e||i.length===e.length);if(null===!e&&!rn(e))return n(Error("invalid input"));o?r=La.Z_FINISH:(r=this._flushFlag,i.length>e.length||(this._flushFlag=this._opts.flush||La.Z_NO_FLUSH)),this._processChunk(e,r,n)},Ba.prototype._processChunk=function(e,t,n){var r=e&&e.length,i=this._chunkSize-this._offset,o=0,a=this,s="function"==typeof n;if(!s){var l,u=[],c=0;this.on("error",(function(e){l=e}));do{var f=this._binding.writeSync(t,e,o,r,this._buffer,this._offset,i)}while(!this._hadError&&p(f[0],f[1]));if(this._hadError)throw l;var h=wt.concat(u,c);return this.close(),h}var d=this._binding.write(t,e,o,r,this._buffer,this._offset,i);function p(l,f){if(!a._hadError){var h=i-f;if(function(e,t){if(!e)throw Error(t)}(h>=0,"have should not go down"),h>0){var d=a._buffer.slice(a._offset,a._offset+h);a._offset+=h,s?a.push(d):(u.push(d),c+=d.length)}if(0!==f&&a._chunkSize>a._offset||(i=a._chunkSize,a._offset=0,a._buffer=new wt(a._chunkSize)),0===f){if(o+=r-l,r=l,!s)return!0;var m=a._binding.write(t,e,o,r,a._buffer,a._offset,a._chunkSize);return m.callback=p,void(m.buffer=e)}if(!s)return!1;n()}}d.buffer=e,d.callback=p},In(Pa,Ba),In(Ra,Ba),In(Na,Ba),In(Da,Ba),In(Fa,Ba),In(Ia,Ba),In(za,Ba);var Ua={codes:Ta,createDeflate:function(e){return new Pa(e)},createInflate:function(e){return new Ra(e)},createDeflateRaw:function(e){return new Fa(e)},createInflateRaw:function(e){return new Ia(e)},createGzip:function(e){return new Na(e)},createGunzip:function(e){return new Da(e)},createUnzip:function(e){return new za(e)},deflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Ma(new Pa(t),e,n)},deflateSync:function(e,t){return ja(new Pa(t),e)},gzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Ma(new Na(t),e,n)},gzipSync:function(e,t){return ja(new Na(t),e)},deflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Ma(new Fa(t),e,n)},deflateRawSync:function(e,t){return ja(new Fa(t),e)},unzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Ma(new za(t),e,n)},unzipSync:function(e,t){return ja(new za(t),e)},inflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Ma(new Ra(t),e,n)},inflateSync:function(e,t){return ja(new Ra(t),e)},gunzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Ma(new Da(t),e,n)},gunzipSync:function(e,t){return ja(new Da(t),e)},inflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),Ma(new Ia(t),e,n)},inflateRawSync:function(e,t){return ja(new Ia(t),e)},Deflate:Pa,Inflate:Ra,Gzip:Na,Gunzip:Da,DeflateRaw:Fa,InflateRaw:Ia,Unzip:za,Zlib:Ba};function Ha(e,t,n){var r=(3&e)<<4|t>>4,i=(15&t)<<2|n>>6,o=63&n,a="";return a+=$a(63&e>>2),a+=$a(63&r),a+=$a(63&i),a+$a(63&o)}function $a(e){return 10>e?String.fromCharCode(48+e):26>(e-=10)?String.fromCharCode(65+e):26>(e-=26)?String.fromCharCode(97+e):0==(e-=26)?"-":1==e?"_":"?"}function Wa(e){var t=e.charCodeAt(0);return"_"===e?63:"-"===e?62:97>t?65>t?48>t?"?":t-48:t-55:t-61}function qa(e){var t=Wa(e[0]),n=Wa(e[1]),r=Wa(e[2]);return[t<<2|n>>4&63,n<<4&240|r>>2&15,r<<6&192|63&Wa(e[3])]}function Za(e){return function(e){for(var t="",n=0;e.length>n;n+=3)t+=n+2==e.length?Ha(e.charCodeAt(n),e.charCodeAt(n+1),0):n+1==e.length?Ha(e.charCodeAt(n),0,0):Ha(e.charCodeAt(n),e.charCodeAt(n+1),e.charCodeAt(n+2));return t}(Ua.deflateRawSync(e,{level:9}).toString("binary"))}function Ga(e){return""+Ua.inflateRawSync(wt.from(function(e){var t="",n=0;for(n=0;e.length>n;n+=4){var r=qa(e.substring(n,n+4));t+=String.fromCharCode(r[0]),t+=String.fromCharCode(r[1]),t+=String.fromCharCode(r[2])}return t}(e),"binary"))}var Va={encodeuml:function(e){var t="@startuml",n="@enduml";return Za("".concat(t).concat((e.split(t)[1]+"").split(n)[0]||"").concat(n))},decodeuml:function(e){return Ga(e)}},Ya="img",Ka=0;function Xa(e,t){return Ka=e.length,new Promise((function(n){var r=[];e.forEach((function(e){r.push(function(e,t){return new Promise((function(n){var r=e.dataset.lang,i=r?JSON.parse(r):null,o="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return n(!1);i.align&&("center"===i.align?o="diagram-center":"right"===i.align&&(o="diagram-right"))}var a=e.textContent.trim(),s=(e.classList.length>0?e.classList[0]:"")+(e.className&&o?" ":"")+o,l=t.imageFormat;if("svg"!==l){var u=window&&window.location.protocol,c=("http:"===u||"https:"===u?"//":"https://")+t.umlWebSite,f=l!==Ya?".".concat(l):"",h=Va.encodeuml(a),d="".concat(c,"/").concat(l,"/").concat(h).concat(f);return e.parentNode.outerHTML='
"),n(!0)}var p="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"==typeof t.svgRender&&t.svgRender)t.svgRender(p,s,a,Ka).then((function(t){e.parentNode.outerHTML='
').concat(t,"
"),n(!0)}));else if("undefined"!=typeof window&&window.fetch&&window.dispatchEvent){var m=window&&window.location.protocol,g=("http:"===m||"https:"===m?"//":"https://")+t.umlWebSite,v=l!==Ya?".".concat(l):"",y=Va.encodeuml(a),b="".concat(g,"/").concat(l,"/").concat(y).concat(v);window.fetch(b).then((function(e){if(e.ok)return e.text()})).then((function(t){e.parentNode.outerHTML='
').concat(t,"
"),n(!0)}))}}))}(e,t))})),Promise.all(r).then((function(){n(!0)}))}))}function Ja(e){var t=function(){return i({umlWebSite:"www.plantuml.com/plantuml",imageFormat:Ya,svgRender:null},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&Xa(n,this.config).then((function(){return e}))}}]}var Qa="railroad",es="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");var ts=!1;function ns(){return ts}var rs,is=!1;function os(e,t){if(ns()){var n=t.id,r=t.className,i=t.cssLink,o=window.eval(t.data).format(),a=t.element.ownerDocument;return t.element.parentNode.outerHTML=i?'
'):'
'),o.addTo(a.getElementById(n)),e(!0)}setTimeout((function(){os(e,t)}),10)}function as(e){return new Promise((function(t){var n=E.createElementMeta(Qa,e);if(!n)return t(!1);n.cssLink=S.getSrc(es),os(t,n)}))}function ss(e){return function(){var e=ns();if("undefined"!=typeof window){if(is)return e;e||(is=!0,S.loadStyleSheet(es),S.loadScript(Qa).then((function(){ts=!0})))}}(),new Promise((function(t){var n=[];e.forEach((function(e){n.push(as(e))})),Promise.all(n).then((function(){t(!0)}))}))}function ls(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:S.getSrc(es)},ss(n).then((function(){return e})))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===us)var us=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(rs=window.Diagram,window.Diagram.Signal))var cs=window.Diagram;var fs=["simple","hand"];function hs(){return!!us}function ds(){return hs()&&!!cs}void 0===cs&&"undefined"!=typeof window&&(cs=window.SequenceJS);var ps=!1,ms="sequenceCSS";function gs(e){var t=e.dataset.lang,n=t?JSON.parse(t):null,r="";if(n){if("boolean"==typeof n.codeblock&&n.codeblock||"string"==typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?r="diagram-center":"right"===n.align&&(r="diagram-right"))}var i=function(){var e=ds();if("undefined"!=typeof window){if(ps)return e;e||(ps=!0,S.loadStyleSheet(ms),S.loadScript("WebFont").then((function(){return hs()?"Raphael":S.loadScript("Raphael")})).then((function(e){return us=E.interopDefault(window[e]),S.loadScript("Snap")})).then((function(){return S.loadScript("underscore")})).then((function(){return!rs&&window.Diagram&&(rs=window.Diagram),S.loadScript("sequence")})).then((function(){cs=window.Diagram,window.SequenceJS=cs,rs&&(window.Diagram=rs)})))}return e}(),o=S.getSrc(ms),a=e.textContent.trim(),s="js-sequence"+(r?" ":"")+r,l="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());e.id=l,o&&(e.className=e.className+(e.className?" ":"")+"css-sequence",e.dataset.css=o),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(l).then((function(e){window.dispatchEvent(new CustomEvent("sequence",{detail:{id:e,className:s,data:a,langattr:t,cssLink:o}}))})):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:l,className:s,data:a,langattr:t,cssLink:o}}))}function vs(e){if(ds()){var t=e.id,n=e.className,r=e.data,i=e.cssLink,o="hand",a=e.langattr;if(a){var s=JSON.parse(a);s&&s.theme&&-1!=fs.indexOf(s.theme)&&(o=s.theme)}var l=window.document.getElementById(t);if(l)return l.parentNode.outerHTML=i?'
'):'
'),l=window.document.getElementById(t),void cs.parse(r).drawSVG(l||t,{theme:o})}setTimeout((function(){vs(e)}),10)}function ys(){var e=!1,t=new DOMParser;return[{type:"output",filter:function(n){var r=t.parseFromString(n,"text/html"),i=void 0!==r.body?r.body:r,o=i.querySelectorAll("code.sequence.language-sequence");return o.length&&(e||"undefined"!=typeof window&&window.dispatchEvent&&(e=!0,window.addEventListener("sequence",(function(e){e.detail&&vs(e.detail)}))),this.config={cssLink:S.getSrc(ms)}),function(e){return!!e.length&&(e.forEach((function(e){gs(e)})),!0)}(o)?i.innerHTML:n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===bs)var bs=window.WaveDrom||void 0;var ws=0,_s=0;function xs(){return!!bs}var ks=!1;function Ss(e,t){if(xs()){var n=t.index,r=t.id,i=t.data,o=t.element;return o.parentNode.outerHTML=E.renderCacheElement(o.ownerDocument,r+n,t.className,(function(e){var t=window.eval("(".concat(i,")"));bs.RenderWaveForm(n,t,r);var o=document.getElementById("WaveDrom_Display_"+n);if(e!=o)for(;o.childNodes.length;)e.appendChild(o.removeChild(o.childNodes[0]))})),e(!0)}setTimeout((function(){Ss(e,t)}),10)}function Es(e){return new Promise((function(t){var n=e.dataset.lang,r=n?JSON.parse(n):null,i="";if(r){if("boolean"==typeof r.codeblock&&r.codeblock||"string"==typeof r.codeblock&&"true"===r.codeblock.toLowerCase())return;r.align&&("center"===r.align?i="diagram-center":"right"===r.align&&(i="diagram-right"))}var o=e.textContent.trim(),a=(e.classList.length>0?e.classList[0]:"")+(e.className&&i?" ":"")+i,s=_s;++_s,--ws||(_s=0);var l="WaveDrom_Display_";e.id=l+s,Ss(t,{element:e,index:s,id:l,className:a,data:o})}))}function Cs(e,t){return function(e){var t=xs();ks||t||(ks=!0,"undefined"!=typeof window&&S.loadScript({WaveDromSkin:e}).then((function(){return S.loadScript("WaveDrom")})).then((function(e){bs=E.interopDefault(window[e])})))}(t),new Promise((function(t){var n=[];ws=e.length,e.forEach((function(e){n.push(Es(e))})),Promise.all(n).then((function(){t(!0)}))}))}function As(e){var t=function(){return i({skin:"default"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(g("Begin render wavedrom elements."),Cs(n,this.config.skin).then((function(){return g("End render wavedrom elements."),e})))}}]}function Os(){return[{type:"lang",filter:function(e,t){return e.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,(function(e,n,r,i,o){var a=t.makeHtml(r.replace(RegExp("^".concat(o),"gm"),""));return'
[').concat(n,"]:").concat(a,"
")}))}},{type:"lang",filter:function(e){return e.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,(function(e,t,n,r){return'[').concat(t,"]: ").concat(r,"")}))}},{type:"lang",filter:function(e){return e.replace(/\[\^([\d\w]+)\]/m,(function(e,t){return'[').concat(t,"]")}))}}]}function Ls(){return[{type:"lang",filter:function(e,t){return e.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,(function(e,n,r,i,o){if(r){var a=r.split("-");a.length>1?a.forEach((function(e,t,n){t>0&&(n[t]=n[t-1]+"-"+e)})):a.unshift("container"),r=a.join(" ")}return o&&(o=t.makeHtml(o)),i=i?'

'.concat(i,"

"):"",'
').concat(i).concat(o,"
")}))}}]}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===Ts)var Ts=window.Raphael||void 0;if(void 0===Ms)var Ms=window.flowchart||void 0;function js(){return!(void 0===Ts||!Ts||void 0===Ms||!Ms)}var Ps=!1;function Rs(){var e=js();if("undefined"!=typeof window){if(Ps)return e;if(!e){if(Ps=!0,!Ts)return S.loadScript("Raphael").then((function(e){return Ts=E.interopDefault(window[e]),S.loadScript("flowchart")})).then((function(e){Ms=E.interopDefault(window[e])})),e;S.loadScript("flowchart").then((function(e){Ms=E.interopDefault(window[e])}))}}return e}function Ns(e,t){if(js()){var n=t.data,r=t.options;return t.element.parentNode.outerHTML=E.renderCacheElement(t.element.ownerDocument,t.id,t.className,(function(e){Ms.parse(n).drawSVG(e,r)})),void e(!0)}setTimeout((function(){Ns(e,t)}),10)}function Ds(e,t){return new Promise((function(n){var r=E.createElementMeta("flowchart",e);if(!r)return n(!1);r.options=t,Ns(n,r)}))}function Fs(e){var t=function(){return i({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.flowchart.language-flowchart"),r=t.querySelectorAll("code.flow.language-flow");return!(!n.length&&!r.length)&&function(e,t,n){return Rs(),new Promise((function(r){var i=[];e.forEach((function(e){i.push(Ds(e,n))})),t.forEach((function(e){i.push(Ds(e,n))})),Promise.all(i).then((function(){r(!0)}))}))}(n,r,this.config).then((function(){return e}))}}]}var Is=function(){return i({flavor:"github"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},zs=function(e,t,n){if(!t||"undefined"==typeof document)return!1;if(n||(n=document.getElementById(e)),n){var r=n.id,i="script-".concat(e),o=document.querySelector("#".concat(r," > #").concat(i));o?document.body.removeChild(o):(o=document.createElement("script")).id=i,o.type="text/javascript",o.text=t,n.appendChild(o)}return!0},Bs=["github","ghost","vanilla","original","allon"],Us=["default","forest","dark","neutral"],Hs=["excel","ggplot2","quartz","vox","dark"],$s=["canvas","svg"],Ws=["svg","png","jpg"],qs={showdown:c,converter:null,defaultOptions:{showdown:Is(),plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},katex:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(e){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},plantuml:{},mermaid:{},katex:{},vega:{}})},setFlavor:function(e){this.showdown.setFlavor(e),this.converter&&this.converter.setFlavor(e)},addOptions:function(e){for(var t in e)"flavor"!==t&&(this.showdown.setOption(t,e[t]),this.converter&&this.converter.setOption(t,e[t]))},addExtension:function(e,t){if(this.removeExtension(e),"string"==typeof e)try{c.extension(e,t),this.converter&&this.converter.addExtension(e)}catch(e){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){var t=null;try{t=c.extension(e)}catch(e){}if(!t)return;this.converter.removeExtension(t)}c.removeExtension(e)}},addAsyncExtension:function(e,t){if(this.removeAsyncExtension(e),"string"==typeof e)try{c.asyncExtension(e,t),this.converter&&this.converter.addAsyncExtension(e)}catch(e){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){var t=null;try{t=c.asyncExtension(e)}catch(e){}if(!t)return;this.converter.removeAsyncExtension(t)}c.removeAsyncExtension(e)}},setCDN:function(e,t,n){"string"==typeof e&&e&&S.setCDN(e,t,n)},setShowdownFlavor:function(e){this.initDefaultOptions(),e&&(-1===Bs.indexOf(e)&&(e="github"),this.defaultOptions.showdown.flavor=e,this.setFlavor(e))},setShowdownOptions:function(e){return this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},e),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setPlantumlOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.plantuml=Object.assign(this.defaultOptions.plantuml||{},e);var t=this.defaultOptions.plantuml.imageFormat;return t&&-1===Ws.indexOf(t)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",Ja(this.defaultOptions.plantuml)),this.defaultOptions.plantuml},setMermaidOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.mermaid=Object.assign(this.defaultOptions.mermaid||{},e);var t=this.defaultOptions.mermaid.theme;return t&&-1===Us.indexOf(t)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",ot(this.defaultOptions.mermaid)),this.defaultOptions.mermaid},setKatexOptions:function(e){return this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.katex=Object.assign(this.defaultOptions.katex||{},e),this.converter&&this.addAsyncExtension("showdown-katex",$e(this.defaultOptions.katex)),this.defaultOptions.katex},setVegaOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.vega=Object.assign(this.defaultOptions.vega||{},e);var t=this.defaultOptions.vega.theme;t&&-1===Hs.indexOf(t)&&(this.defaultOptions.vega.theme="vox");var n=this.defaultOptions.vega.renderer;return n&&-1===$s.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",ne(this.defaultOptions.vega)),this.defaultOptions.vega},init:function(e){if(this.converter){var t={};if("object"===a(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e)){if(t.hasOwnProperty("option")&&t.option){var n=Is(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(n)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",Ja(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",ot(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",ne(this.defaultOptions.vega)))}}else{var r=Is(this.defaultOptions&&this.defaultOptions.showdown||{}),o=function(e){var t=i({"showdown-toc":B,"showdown-align":re,"showdown-footnotes":Os,"showdown-container":Ls,"showdown-sequence":ys},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=[];for(var r in t)t.hasOwnProperty(r)&&(c.extension(r,t[r]),n.push(r));return n}(this.defaultOptions,this.defaultExtensions),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e&&e.mermaid||{},r=e&&e.katex||{},o=e&&e.vega||{},a=i({"showdown-plantuml":Ja(e&&e.plantuml||{}),"showdown-mermaid":ot(n),"showdown-katex":$e(r),"showdown-flowchart":Fs,"showdown-viz":V,"showdown-vega":ne(o),"showdown-wavedrom":As,"showdown-railroad":ls,"showdown-abc":F,"showdown-echarts":Xe},t),s=[];for(var l in a)a.hasOwnProperty(l)&&(c.asyncExtension(l,a[l]),s.push(l));return s}(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(r.flavor),this.converter=new c.Converter({extensions:o}).initConvertExtObj(r.flavor,s),this.addOptions(r)}return this},makeHtml:function(e,t){var n="";if("object"===a(e)?"string"==typeof e.content&&(n="string"==typeof e.type?"zip"===e.type?this.zDecode(e.content):this.markdownDecodeFilter(e)||e.content:e.content):n=e,this.converter&&n){var r=function(e,t,n){var r=e.querySelector(t),i="";if(r)i=r.dataset.css;else{var o;try{o=c.extension(n)}catch(e){}if(!o)try{o=c.asyncExtension(n)}catch(e){}if(o)if(Array.isArray(o)){for(var s=0;o.length>s;++s)if(o[s].hasOwnProperty("config")&&o[s].config.hasOwnProperty("cssLink")){i=o[s].config.cssLink;break}}else"object"===a(o)&&o.hasOwnProperty("config")&&o.config.hasOwnProperty("cssLink")&&(i=o.config.cssLink)}return i};return this.converter.asyncMakeHtml(n,(function(e){var n=e.wrapper;return!!n&&new Promise((function(i){var o=r(n,".css-katex","showdown-katex"),a=r(n,".css-sequence","showdown-sequence"),s=r(n,".css-railroad","showdown-railroad");return e.cssTypes={hasKatex:!!o,hasSequence:!!a,hasRailroad:!!s,css:{katex:o,sequence:a,railroad:s}},"function"==typeof t&&t&&t(e.cssTypes),i(e)}))})).then((function(e){return{html:n="
".concat(e.html,"
"),scripts:e.scripts}}))}return Promise.reject(n?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,t){return c.helper.isArray(e)||(e=[e]),new Promise((function(n,r){for(var i=0;e.length>i;++i){var o=e[i];if(!zs(o.id,o.code,t))return r("Args is invaild!")}n(!0)}))},zDecode:function(e){return""+Ua.inflateRawSync(wt.from(e,"base64"))},zEncode:function(e){return Ua.deflateRawSync(e,{level:9}).toString("base64")}};return qs}))}).call(this,n("c8ba"))},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=l(s);u.Axios=o,u.create=function(e){return l(a(u.defaults,e))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(e){return Promise.all(e)},u.spread=n("0df6"),e.exports=u,e.exports.default=u},d009:function(e,t,n){"use strict";var r=n("00ce"),i=n("7992"),o=n("64b0")(),a=n("2aa9"),s=n("0d25"),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){"use strict";var r=n("da84"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d17b:function(e,t,n){e.exports=n("e372").Transform},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d256:function(e,t,n){"use strict";var r=n("da84");e.exports=r.Promise},d28b:function(e,t,n){"use strict";var r=n("e065");r("iterator")},d2bb:function(e,t,n){"use strict";var r=n("7282"),i=n("861d"),o=n("1d80"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},d3b7:function(e,t,n){"use strict";var r=n("00ee"),i=n("cb2d"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d401:function(e,t,n){"use strict";var r=n("cb2d"),i=n("aa1f"),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},d44e:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},d485:function(e,t,n){e.exports=o;var r=n("faa1").EventEmitter,i=n("3fb5");function o(){r.call(this)}i(o,r),o.Readable=n("e372"),o.Writable=n("2c63"),o.Duplex=n("0960"),o.Transform=n("d17b"),o.PassThrough=n("c2ae"),o.Stream=o,o.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(c(),0===r.listenerCount(this,"error"))throw e}function c(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),e.removeListener("close",c)}return n.on("error",u),e.on("error",u),n.on("end",c),n.on("close",c),e.on("close",c),e.emit("pipe",n),e}},d4ab:function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},d4c3:function(e,t,n){"use strict";var r=n("342f");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},d5e0:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function f(e,t){function n(n){return t.tokenize=n,n(e,t)}var r,i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==i?(r=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),r?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=f,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=f,t.state=w,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=d(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e){var t=function(t,n){while(!t.eol())if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=f;break}n.next()}return e}}function m(e){return function(t,n){var r;while(null!=(r=t.next())){if("<"==r)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=f;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){var n;while(1){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(t)))return;y(e)}}function w(e,t,n){return"openTag"==e?(n.tagStart=t.column(),_):"closeTag"==e?x:w}function _(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",E):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",E(e,t,n)):(a="error",_)}function x(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",k):(a="tag error",S)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,t,n)):(a="error",S)}function k(e,t,n){return"endTag"!=e?(a="error",k):(y(n),w)}function S(e,t,n){return a="error",k(e,t,n)}function E(e,t,n){if("word"==e)return a="attribute",C;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(g(r))?b(n,r):(b(n,r),n.context=new v(n,r,i==n.indented)),w}return a="error",E}function C(e,t,n){return"equals"==e?A:(l.allowMissing||(a="error"),E(e,t,n))}function A(e,t,n){return"string"==e?O:"word"==e&&l.allowUnquoted?(a="string",E):(a="error",E(e,t,n))}function O(e,t,n){return"string"==e?O:E(e,t,n)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:w,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=h&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==A&&(e.state=E)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}))},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d6c7:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n("d4ab"),o=Object.keys,a=o?function(e){return o(e)}:n("b189"),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},d6d6:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e1?arguments[1]:void 0)}})},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9b5:function(e,t,n){"use strict";var r=n("d066"),i=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},d9e2:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=i[s],u=7!==new Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},f=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,u),r({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),f("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),f("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),f("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},d9f5:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("e330"),s=n("c430"),l=n("83ab"),u=n("04f8"),c=n("d039"),f=n("1a2d"),h=n("3a9b"),d=n("825a"),p=n("fc6a"),m=n("a04b"),g=n("577e"),v=n("5c6c"),y=n("7c73"),b=n("df75"),w=n("241c"),_=n("057f"),x=n("7418"),k=n("06cf"),S=n("9bf2"),E=n("37e8"),C=n("d1e7"),A=n("cb2d"),O=n("edd0"),L=n("5692"),T=n("f772"),M=n("d012"),j=n("90e3"),P=n("b622"),R=n("e538"),N=n("e065"),D=n("57b9"),F=n("d44e"),I=n("69f3"),z=n("b727").forEach,B=T("hidden"),U="Symbol",H="prototype",$=I.set,W=I.getterFor(U),q=Object[H],Z=i.Symbol,G=Z&&Z[H],V=i.RangeError,Y=i.TypeError,K=i.QObject,X=k.f,J=S.f,Q=_.f,ee=C.f,te=a([].push),ne=L("symbols"),re=L("op-symbols"),ie=L("wks"),oe=!K||!K[H]||!K[H].findChild,ae=function(e,t,n){var r=X(q,t);r&&delete q[t],J(e,t,n),r&&e!==q&&J(q,t,r)},se=l&&c((function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?ae:J,le=function(e,t){var n=ne[e]=y(G);return $(n,{type:U,tag:e,description:t}),l||(n.description=t),n},ue=function(e,t,n){e===q&&ue(re,t,n),d(e);var r=m(t);return d(n),f(ne,r)?(n.enumerable?(f(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:v(0,!1)})):(f(e,B)||J(e,B,v(1,y(null))),e[B][r]=!0),se(e,r,n)):J(e,r,n)},ce=function(e,t){d(e);var n=p(t),r=b(n).concat(me(n));return z(r,(function(t){l&&!o(he,n,t)||ue(e,t,n[t])})),e},fe=function(e,t){return void 0===t?y(e):ce(y(e),t)},he=function(e){var t=m(e),n=o(ee,this,t);return!(this===q&&f(ne,t)&&!f(re,t))&&(!(n||!f(this,t)||!f(ne,t)||f(this,B)&&this[B][t])||n)},de=function(e,t){var n=p(e),r=m(t);if(n!==q||!f(ne,r)||f(re,r)){var i=X(n,r);return!i||!f(ne,r)||f(n,B)&&n[B][r]||(i.enumerable=!0),i}},pe=function(e){var t=Q(p(e)),n=[];return z(t,(function(e){f(ne,e)||f(M,e)||te(n,e)})),n},me=function(e){var t=e===q,n=Q(t?re:p(e)),r=[];return z(n,(function(e){!f(ne,e)||t&&!f(q,e)||te(r,ne[e])})),r};u||(Z=function(){if(h(G,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=j(e),n=function(e){var r=void 0===this?i:this;r===q&&o(n,re,e),f(r,B)&&f(r[B],t)&&(r[B][t]=!1);var a=v(1,e);try{se(r,t,a)}catch(s){if(!(s instanceof V))throw s;ae(r,t,a)}};return l&&oe&&se(q,t,{configurable:!0,set:n}),le(t,e)},G=Z[H],A(G,"toString",(function(){return W(this).tag})),A(Z,"withoutSetter",(function(e){return le(j(e),e)})),C.f=he,S.f=ue,E.f=ce,k.f=de,w.f=_.f=pe,x.f=me,R.f=function(e){return le(P(e),e)},l&&(O(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||A(q,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Z}),z(b(ie),(function(e){N(e)})),r({target:U,stat:!0,forced:!u},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:fe,defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe}),D(),F(Z,U),M[B]=!0},da84:function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,u=o(r),c={},f=0;while(u.length>f)n=i(r,t=u[f++]),void 0!==n&&l(c,t,n);return c}})},dc14:function(e,t,n){"use strict";(function(t,r){var i=n("966d");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){D(t,e)}}e.exports=b;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=y;var l=Object.create(n("3a7c"));l.inherits=n("3fb5");var u={deprecate:n("b7d1")},c=n("429b"),f=n("8707").Buffer,h=("undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function d(e){return f.from(e)}function p(e){return f.isBuffer(e)||e instanceof h}var m,g=n("4681");function v(){}function y(e,t){a=a||n("b19a"),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){A(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(e){if(a=a||n("b19a"),!m.call(b,this)&&!(this instanceof a))return new b(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),c.call(this)}function w(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}function _(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}function x(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=f.from(t,n)),t}function k(e,t,n,r,i,o){if(!n){var a=x(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||N(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("4362"),n("c8ba"))},dc4a:function(e,t,n){"use strict";var r=n("59ed"),i=n("7234");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},dc99:function(e,t,n){"use strict";e.exports=RangeError},dcc3:function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},dd40:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},ddb0:function(e,t,n){"use strict";var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("e260"),s=n("9112"),l=n("d44e"),u=n("b622"),c=u("iterator"),f=a.values,h=function(e,t){if(e){if(e[c]!==f)try{s(e,c,f)}catch(r){e[c]=f}if(l(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(o,"DOMTokenList")},df75:function(e,t,n){"use strict";var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("e330"),s=n("1a2d"),l=n("1626"),u=n("3a9b"),c=n("577e"),f=n("edd0"),h=n("e893"),d=o.Symbol,p=d&&d.prototype;if(i&&l(d)&&(!("description"in p)||void 0!==d().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new d(e):void 0===e?d():d(e);return""===e&&(m[t]=!0),t};h(g,d),g.prototype=p,p.constructor=g;var v="Symbol(description detection)"===String(d("description detection")),y=a(p.valueOf),b=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),x=a("".slice);f(p,"description",{configurable:!0,get:function(){var e=y(this);if(s(m,e))return"";var t=b(e),n=v?x(t,7,-1):_(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},e065:function(e,t,n){"use strict";var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},e163:function(e,t,n){"use strict";var r=n("1a2d"),i=n("1626"),o=n("7b0b"),a=n("f772"),s=n("e177"),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},e177:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("9bf2").f,l=n("c6d2"),u=n("4754"),c=n("c430"),f=n("83ab"),h="Array Iterator",d=a.set,p=a.getterFor(h);e.exports=l(Array,"Array",(function(e,t){d(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&f&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(g){}},e267:function(e,t,n){"use strict";var r=n("e330"),i=n("e8b5"),o=n("1626"),a=n("c6b6"),s=n("577e"),l=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;ry&&h(r,arguments[y]),r}));if(S.prototype=x,"Error"!==w?s?s(S,k):l(S,k,{name:!0}):p&&v in _&&(u(S,_,v),u(S,_,"prepareStackTrace")),l(S,_),!m)try{x.name!==w&&o(x,"name",w),x.constructor=S}catch(E){}return S}}},e667:function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e893:function(e,t,n){"use strict";var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t,n){for(var s=i(t),l=a.f,u=o.f,c=0;c>>1:e>>>1;t[n]=e}return t}var i=r();function o(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s>>8^o[255&(e^t[s])];return-1^e}e.exports=o},efec:function(e,t,n){"use strict";var r=n("1a2d"),i=n("cb2d"),o=n("51eb"),a=n("b622"),s=a("toPrimitive"),l=Date.prototype;r(l,s)||i(l,s,o)},f040:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n * @license MIT - */function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;u--)if(c[u]!==f[u])return!1;for(u=c.length-1;u>=0;u--)if(s=c[u],!w(e[s],t[s],n,r))return!1;return!0}function k(e,t,n){w(e,t,!0)&&y(e,t,n,"notDeepStrictEqual",k)}function S(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e){var t;try{e()}catch(n){t=n}return t}function C(e,t,n,r){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=E(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&y(i,n,"Missing expected exception"+r);var o="string"===typeof r,s=!e&&a.isError(i),l=!e&&i&&!n;if((s&&o&&S(i,n)||l)&&y(i,n,"Got unwanted exception"+r),e&&i&&n&&!S(i,n)||!e&&i)throw i}function A(e,t){e||y(e,!0,t,"==",A)}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=v(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=p(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(h.AssertionError,Error),h.fail=y,h.ok=b,h.equal=function(e,t,n){e!=t&&y(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&y(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){w(e,t,!1)||y(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){w(e,t,!0)||y(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){w(e,t,!1)&&y(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=k,h.strictEqual=function(e,t,n){e!==t&&y(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&y(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){C(!0,e,t,n)},h.doesNotThrow=function(e,t,n){C(!1,e,t,n)},h.ifError=function(e){if(e)throw e},h.strict=r(A,h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var O=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n("c8ba"))},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f772:function(e,t,n){"use strict";var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},faa1:function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function a(e){console&&console.warn&&console.warn(e)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,e.exports.once=w,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function h(e,t,n,r){var i,o,s;if(c(n),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=f(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function g(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?b(i):v(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var u=l.length,c=v(l,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():y(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return g(this,e,!0)},l.prototype.rawListeners=function(e){return g(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("23cb"),l=n("07fa"),u=n("fc6a"),c=n("8418"),f=n("b622"),h=n("1dde"),d=n("f36a"),p=h("slice"),g=f("species"),m=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,f,h=u(this),p=l(h),y=s(e,p),b=s(void 0===t?p:t,p);if(i(h)&&(n=h.constructor,o(n)&&(n===m||i(n.prototype))?n=void 0:a(n)&&(n=n[g],null===n&&(n=void 0)),n===m||void 0===n))return d(h,y,b);for(r=new(void 0===n?m:n)(v(b-y,0)),f=0;y=0;u--)if(c[u]!==f[u])return!1;for(u=c.length-1;u>=0;u--)if(s=c[u],!w(e[s],t[s],n,r))return!1;return!0}function k(e,t,n){w(e,t,!0)&&y(e,t,n,"notDeepStrictEqual",k)}function S(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e){var t;try{e()}catch(n){t=n}return t}function C(e,t,n,r){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=E(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&y(i,n,"Missing expected exception"+r);var o="string"===typeof r,s=!e&&a.isError(i),l=!e&&i&&!n;if((s&&o&&S(i,n)||l)&&y(i,n,"Got unwanted exception"+r),e&&i&&n&&!S(i,n)||!e&&i)throw i}function A(e,t){e||y(e,!0,t,"==",A)}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=v(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=p(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(h.AssertionError,Error),h.fail=y,h.ok=b,h.equal=function(e,t,n){e!=t&&y(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&y(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){w(e,t,!1)||y(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){w(e,t,!0)||y(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){w(e,t,!1)&&y(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=k,h.strictEqual=function(e,t,n){e!==t&&y(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&y(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){C(!0,e,t,n)},h.doesNotThrow=function(e,t,n){C(!1,e,t,n)},h.ifError=function(e){if(e)throw e},h.strict=r(A,h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var O=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n("c8ba"))},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f772:function(e,t,n){"use strict";var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},faa1:function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function a(e){console&&console.warn&&console.warn(e)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,e.exports.once=w,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function h(e,t,n,r){var i,o,s;if(c(n),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=f(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?b(i):v(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var u=l.length,c=v(l,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():y(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("23cb"),l=n("07fa"),u=n("fc6a"),c=n("8418"),f=n("b622"),h=n("1dde"),d=n("f36a"),p=h("slice"),m=f("species"),g=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,f,h=u(this),p=l(h),y=s(e,p),b=s(void 0===t?p:t,p);if(i(h)&&(n=h.constructor,o(n)&&(n===g||i(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===g||void 0===n))return d(h,y,b);for(r=new(void 0===n?g:n)(v(b-y,0)),f=0;y 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","'use strict';\nvar Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\n/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) === 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/5/LICENSE\n\n/**\n * Tag-closer extension for CodeMirror.\n *\n * This extension adds an \"autoCloseTags\" option that can be set to\n * either true to get the default behavior, or an object to further\n * configure its behavior.\n *\n * These are supported options:\n *\n * `whenClosing` (default true)\n * Whether to autoclose when the '/' of a closing tag is typed.\n * `whenOpening` (default true)\n * Whether to autoclose the tag when the final '>' of an opening\n * tag is typed.\n * `dontCloseTags` (default is empty tags for HTML, none for XML)\n * An array of tag names that should not be autoclosed.\n * `indentTags` (default is block tags for HTML, none for XML)\n * An array of tag names that should, when opened, cause a\n * blank line to be added inside the tag, and the blank line and\n * closing line to be indented.\n * `emptyTags` (default is none)\n * An array of XML tag names that should be autoclosed with '/>'.\n *\n * See demos/closetag.html for a usage example.\n */\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"), require(\"../fold/xml-fold\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\", \"../fold/xml-fold\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n CodeMirror.defineOption(\"autoCloseTags\", false, function(cm, val, old) {\n if (old != CodeMirror.Init && old)\n cm.removeKeyMap(\"autoCloseTags\");\n if (!val) return;\n var map = {name: \"autoCloseTags\"};\n if (typeof val != \"object\" || val.whenClosing !== false)\n map[\"'/'\"] = function(cm) { return autoCloseSlash(cm); };\n if (typeof val != \"object\" || val.whenOpening !== false)\n map[\"'>'\"] = function(cm) { return autoCloseGT(cm); };\n cm.addKeyMap(map);\n });\n\n var htmlDontClose = [\"area\", \"base\", \"br\", \"col\", \"command\", \"embed\", \"hr\", \"img\", \"input\", \"keygen\", \"link\", \"meta\", \"param\",\n \"source\", \"track\", \"wbr\"];\n var htmlIndent = [\"applet\", \"blockquote\", \"body\", \"button\", \"div\", \"dl\", \"fieldset\", \"form\", \"frameset\", \"h1\", \"h2\", \"h3\", \"h4\",\n \"h5\", \"h6\", \"head\", \"html\", \"iframe\", \"layer\", \"legend\", \"object\", \"ol\", \"p\", \"select\", \"table\", \"ul\"];\n\n function autoCloseGT(cm) {\n if (cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n var ranges = cm.listSelections(), replacements = [];\n var opt = cm.getOption(\"autoCloseTags\");\n for (var i = 0; i < ranges.length; i++) {\n if (!ranges[i].empty()) return CodeMirror.Pass;\n var pos = ranges[i].head, tok = cm.getTokenAt(pos);\n var inner = CodeMirror.innerMode(cm.getMode(), tok.state), state = inner.state;\n var tagInfo = inner.mode.xmlCurrentTag && inner.mode.xmlCurrentTag(state)\n var tagName = tagInfo && tagInfo.name\n if (!tagName) return CodeMirror.Pass\n\n var html = inner.mode.configuration == \"html\";\n var dontCloseTags = (typeof opt == \"object\" && opt.dontCloseTags) || (html && htmlDontClose);\n var indentTags = (typeof opt == \"object\" && opt.indentTags) || (html && htmlIndent);\n\n if (tok.end > pos.ch) tagName = tagName.slice(0, tagName.length - tok.end + pos.ch);\n var lowerTagName = tagName.toLowerCase();\n // Don't process the '>' at the end of an end-tag or self-closing tag\n if (!tagName ||\n tok.type == \"string\" && (tok.end != pos.ch || !/[\\\"\\']/.test(tok.string.charAt(tok.string.length - 1)) || tok.string.length == 1) ||\n tok.type == \"tag\" && tagInfo.close ||\n tok.string.indexOf(\"/\") == (pos.ch - tok.start - 1) || // match something like \n dontCloseTags && indexOf(dontCloseTags, lowerTagName) > -1 ||\n closingTagExists(cm, inner.mode.xmlCurrentContext && inner.mode.xmlCurrentContext(state) || [], tagName, pos, true))\n return CodeMirror.Pass;\n\n var emptyTags = typeof opt == \"object\" && opt.emptyTags;\n if (emptyTags && indexOf(emptyTags, tagName) > -1) {\n replacements[i] = { text: \"/>\", newPos: CodeMirror.Pos(pos.line, pos.ch + 2) };\n continue;\n }\n\n var indent = indentTags && indexOf(indentTags, lowerTagName) > -1;\n replacements[i] = {indent: indent,\n text: \">\" + (indent ? \"\\n\\n\" : \"\") + \"\",\n newPos: indent ? CodeMirror.Pos(pos.line + 1, 0) : CodeMirror.Pos(pos.line, pos.ch + 1)};\n }\n\n var dontIndentOnAutoClose = (typeof opt == \"object\" && opt.dontIndentOnAutoClose);\n for (var i = ranges.length - 1; i >= 0; i--) {\n var info = replacements[i];\n cm.replaceRange(info.text, ranges[i].head, ranges[i].anchor, \"+insert\");\n var sel = cm.listSelections().slice(0);\n sel[i] = {head: info.newPos, anchor: info.newPos};\n cm.setSelections(sel);\n if (!dontIndentOnAutoClose && info.indent) {\n cm.indentLine(info.newPos.line, null, true);\n cm.indentLine(info.newPos.line + 1, null, true);\n }\n }\n }\n\n function autoCloseCurrent(cm, typingSlash) {\n var ranges = cm.listSelections(), replacements = [];\n var head = typingSlash ? \"/\" : \"\") replacement += \">\";\n replacements[i] = replacement;\n }\n cm.replaceSelections(replacements);\n ranges = cm.listSelections();\n if (!dontIndentOnAutoClose) {\n for (var i = 0; i < ranges.length; i++)\n if (i == ranges.length - 1 || ranges[i].head.line < ranges[i + 1].head.line)\n cm.indentLine(ranges[i].head.line);\n }\n }\n\n function autoCloseSlash(cm) {\n if (cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n return autoCloseCurrent(cm, true);\n }\n\n CodeMirror.commands.closeTag = function(cm) { return autoCloseCurrent(cm); };\n\n function indexOf(collection, elt) {\n if (collection.indexOf) return collection.indexOf(elt);\n for (var i = 0, e = collection.length; i < e; ++i)\n if (collection[i] == elt) return i;\n return -1;\n }\n\n // If xml-fold is loaded, we use its functionality to try and verify\n // whether a given tag is actually unclosed.\n function closingTagExists(cm, context, tagName, pos, newTag) {\n if (!CodeMirror.scanForClosingTag) return false;\n var end = Math.min(cm.lastLine() + 1, pos.line + 500);\n var nextClose = CodeMirror.scanForClosingTag(cm, pos, null, end);\n if (!nextClose || nextClose.tag != tagName) return false;\n // If the immediate wrapping context contains onCx instances of\n // the same tag, a closing tag only exists if there are at least\n // that many closing tags of that type following.\n var onCx = newTag ? 1 : 0\n for (var i = context.length - 1; i >= 0; i--) {\n if (context[i] == tagName) ++onCx\n else break\n }\n pos = nextClose.to;\n for (var i = 1; i < onCx; i++) {\n var next = CodeMirror.scanForClosingTag(cm, pos, null, end);\n if (!next || next.tag != tagName) return false;\n pos = next.to;\n }\n return true;\n }\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n/* eslint-disable space-unary-ops */\n\nvar utils = require('../utils/common');\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n//var Z_FILTERED = 1;\n//var Z_HUFFMAN_ONLY = 2;\n//var Z_RLE = 3;\nvar Z_FIXED = 4;\n//var Z_DEFAULT_STRATEGY = 0;\n\n/* Possible values of the data_type field (though see inflate()) */\nvar Z_BINARY = 0;\nvar Z_TEXT = 1;\n//var Z_ASCII = 1; // = Z_TEXT\nvar Z_UNKNOWN = 2;\n\n/*============================================================================*/\n\n\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\n\n// From zutil.h\n\nvar STORED_BLOCK = 0;\nvar STATIC_TREES = 1;\nvar DYN_TREES = 2;\n/* The three kinds of block type */\n\nvar MIN_MATCH = 3;\nvar MAX_MATCH = 258;\n/* The minimum and maximum match lengths */\n\n// From deflate.h\n/* ===========================================================================\n * Internal compression state.\n */\n\nvar LENGTH_CODES = 29;\n/* number of length codes, not counting the special END_BLOCK code */\n\nvar LITERALS = 256;\n/* number of literal bytes 0..255 */\n\nvar L_CODES = LITERALS + 1 + LENGTH_CODES;\n/* number of Literal or Length codes, including the END_BLOCK code */\n\nvar D_CODES = 30;\n/* number of distance codes */\n\nvar BL_CODES = 19;\n/* number of codes used to transfer the bit lengths */\n\nvar HEAP_SIZE = 2 * L_CODES + 1;\n/* maximum heap size */\n\nvar MAX_BITS = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nvar Buf_size = 16;\n/* size of bit buffer in bi_buf */\n\n\n/* ===========================================================================\n * Constants\n */\n\nvar MAX_BL_BITS = 7;\n/* Bit length codes must not exceed MAX_BL_BITS bits */\n\nvar END_BLOCK = 256;\n/* end of block literal code */\n\nvar REP_3_6 = 16;\n/* repeat previous bit length 3-6 times (2 bits of repeat count) */\n\nvar REPZ_3_10 = 17;\n/* repeat a zero length 3-10 times (3 bits of repeat count) */\n\nvar REPZ_11_138 = 18;\n/* repeat a zero length 11-138 times (7 bits of repeat count) */\n\n/* eslint-disable comma-spacing,array-bracket-spacing */\nvar extra_lbits = /* extra bits for each length code */\n [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];\n\nvar extra_dbits = /* extra bits for each distance code */\n [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];\n\nvar extra_blbits = /* extra bits for each bit length code */\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];\n\nvar bl_order =\n [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];\n/* eslint-enable comma-spacing,array-bracket-spacing */\n\n/* The lengths of the bit length codes are sent in order of decreasing\n * probability, to avoid transmitting the lengths for unused bit length codes.\n */\n\n/* ===========================================================================\n * Local data. These are initialized only once.\n */\n\n// We pre-fill arrays with 0 to avoid uninitialized gaps\n\nvar DIST_CODE_LEN = 512; /* see definition of array dist_code below */\n\n// !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1\nvar static_ltree = new Array((L_CODES + 2) * 2);\nzero(static_ltree);\n/* The static literal tree. Since the bit lengths are imposed, there is no\n * need for the L_CODES extra codes used during heap construction. However\n * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\n * below).\n */\n\nvar static_dtree = new Array(D_CODES * 2);\nzero(static_dtree);\n/* The static distance tree. (Actually a trivial tree since all codes use\n * 5 bits.)\n */\n\nvar _dist_code = new Array(DIST_CODE_LEN);\nzero(_dist_code);\n/* Distance codes. The first 256 values correspond to the distances\n * 3 .. 258, the last 256 values correspond to the top 8 bits of\n * the 15 bit distances.\n */\n\nvar _length_code = new Array(MAX_MATCH - MIN_MATCH + 1);\nzero(_length_code);\n/* length code for each normalized match length (0 == MIN_MATCH) */\n\nvar base_length = new Array(LENGTH_CODES);\nzero(base_length);\n/* First normalized length for each code (0 = MIN_MATCH) */\n\nvar base_dist = new Array(D_CODES);\nzero(base_dist);\n/* First normalized distance for each code (0 = distance of 1) */\n\n\nfunction StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {\n\n this.static_tree = static_tree; /* static tree or NULL */\n this.extra_bits = extra_bits; /* extra bits for each code or NULL */\n this.extra_base = extra_base; /* base index for extra_bits */\n this.elems = elems; /* max number of elements in the tree */\n this.max_length = max_length; /* max bit length for the codes */\n\n // show if `static_tree` has data or dummy - needed for monomorphic objects\n this.has_stree = static_tree && static_tree.length;\n}\n\n\nvar static_l_desc;\nvar static_d_desc;\nvar static_bl_desc;\n\n\nfunction TreeDesc(dyn_tree, stat_desc) {\n this.dyn_tree = dyn_tree; /* the dynamic tree */\n this.max_code = 0; /* largest code with non zero frequency */\n this.stat_desc = stat_desc; /* the corresponding static tree */\n}\n\n\n\nfunction d_code(dist) {\n return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];\n}\n\n\n/* ===========================================================================\n * Output a short LSB first on the stream.\n * IN assertion: there is enough room in pendingBuf.\n */\nfunction put_short(s, w) {\n// put_byte(s, (uch)((w) & 0xff));\n// put_byte(s, (uch)((ush)(w) >> 8));\n s.pending_buf[s.pending++] = (w) & 0xff;\n s.pending_buf[s.pending++] = (w >>> 8) & 0xff;\n}\n\n\n/* ===========================================================================\n * Send a value on a given number of bits.\n * IN assertion: length <= 16 and value fits in length bits.\n */\nfunction send_bits(s, value, length) {\n if (s.bi_valid > (Buf_size - length)) {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n put_short(s, s.bi_buf);\n s.bi_buf = value >> (Buf_size - s.bi_valid);\n s.bi_valid += length - Buf_size;\n } else {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n s.bi_valid += length;\n }\n}\n\n\nfunction send_code(s, c, tree) {\n send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/);\n}\n\n\n/* ===========================================================================\n * Reverse the first len bits of a code, using straightforward code (a faster\n * method would use a table)\n * IN assertion: 1 <= len <= 15\n */\nfunction bi_reverse(code, len) {\n var res = 0;\n do {\n res |= code & 1;\n code >>>= 1;\n res <<= 1;\n } while (--len > 0);\n return res >>> 1;\n}\n\n\n/* ===========================================================================\n * Flush the bit buffer, keeping at most 7 bits in it.\n */\nfunction bi_flush(s) {\n if (s.bi_valid === 16) {\n put_short(s, s.bi_buf);\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n } else if (s.bi_valid >= 8) {\n s.pending_buf[s.pending++] = s.bi_buf & 0xff;\n s.bi_buf >>= 8;\n s.bi_valid -= 8;\n }\n}\n\n\n/* ===========================================================================\n * Compute the optimal bit lengths for a tree and update the total bit length\n * for the current block.\n * IN assertion: the fields freq and dad are set, heap[heap_max] and\n * above are the tree nodes sorted by increasing frequency.\n * OUT assertions: the field len is set to the optimal bit length, the\n * array bl_count contains the frequencies for each bit length.\n * The length opt_len is updated; static_len is also updated if stree is\n * not null.\n */\nfunction gen_bitlen(s, desc)\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n{\n var tree = desc.dyn_tree;\n var max_code = desc.max_code;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var extra = desc.stat_desc.extra_bits;\n var base = desc.stat_desc.extra_base;\n var max_length = desc.stat_desc.max_length;\n var h; /* heap index */\n var n, m; /* iterate over the tree elements */\n var bits; /* bit length */\n var xbits; /* extra bits */\n var f; /* frequency */\n var overflow = 0; /* number of elements with bit length too large */\n\n for (bits = 0; bits <= MAX_BITS; bits++) {\n s.bl_count[bits] = 0;\n }\n\n /* In a first pass, compute the optimal bit lengths (which may\n * overflow in the case of the bit length tree).\n */\n tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */\n\n for (h = s.heap_max + 1; h < HEAP_SIZE; h++) {\n n = s.heap[h];\n bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;\n if (bits > max_length) {\n bits = max_length;\n overflow++;\n }\n tree[n * 2 + 1]/*.Len*/ = bits;\n /* We overwrite tree[n].Dad which is no longer needed */\n\n if (n > max_code) { continue; } /* not a leaf node */\n\n s.bl_count[bits]++;\n xbits = 0;\n if (n >= base) {\n xbits = extra[n - base];\n }\n f = tree[n * 2]/*.Freq*/;\n s.opt_len += f * (bits + xbits);\n if (has_stree) {\n s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits);\n }\n }\n if (overflow === 0) { return; }\n\n // Trace((stderr,\"\\nbit length overflow\\n\"));\n /* This happens for example on obj2 and pic of the Calgary corpus */\n\n /* Find the first bit length which could increase: */\n do {\n bits = max_length - 1;\n while (s.bl_count[bits] === 0) { bits--; }\n s.bl_count[bits]--; /* move one leaf down the tree */\n s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */\n s.bl_count[max_length]--;\n /* The brother of the overflow item also moves one step up,\n * but this does not affect bl_count[max_length]\n */\n overflow -= 2;\n } while (overflow > 0);\n\n /* Now recompute all bit lengths, scanning in increasing frequency.\n * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\n * lengths instead of fixing only the wrong ones. This idea is taken\n * from 'ar' written by Haruhiko Okumura.)\n */\n for (bits = max_length; bits !== 0; bits--) {\n n = s.bl_count[bits];\n while (n !== 0) {\n m = s.heap[--h];\n if (m > max_code) { continue; }\n if (tree[m * 2 + 1]/*.Len*/ !== bits) {\n // Trace((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\n s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/;\n tree[m * 2 + 1]/*.Len*/ = bits;\n }\n n--;\n }\n }\n}\n\n\n/* ===========================================================================\n * Generate the codes for a given tree and bit counts (which need not be\n * optimal).\n * IN assertion: the array bl_count contains the bit length statistics for\n * the given tree and the field len is set for all tree elements.\n * OUT assertion: the field code is set for all tree elements of non\n * zero code length.\n */\nfunction gen_codes(tree, max_code, bl_count)\n// ct_data *tree; /* the tree to decorate */\n// int max_code; /* largest code with non zero frequency */\n// ushf *bl_count; /* number of codes at each bit length */\n{\n var next_code = new Array(MAX_BITS + 1); /* next code value for each bit length */\n var code = 0; /* running code value */\n var bits; /* bit index */\n var n; /* code index */\n\n /* The distribution counts are first used to generate the code values\n * without bit reversal.\n */\n for (bits = 1; bits <= MAX_BITS; bits++) {\n next_code[bits] = code = (code + bl_count[bits - 1]) << 1;\n }\n /* Check that the bit counts in bl_count are consistent. The last code\n * must be all ones.\n */\n //Assert (code + bl_count[MAX_BITS]-1 == (1< length code (0..28) */\n length = 0;\n for (code = 0; code < LENGTH_CODES - 1; code++) {\n base_length[code] = length;\n for (n = 0; n < (1 << extra_lbits[code]); n++) {\n _length_code[length++] = code;\n }\n }\n //Assert (length == 256, \"tr_static_init: length != 256\");\n /* Note that the length 255 (match length 258) can be represented\n * in two different ways: code 284 + 5 bits or code 285, so we\n * overwrite length_code[255] to use the best encoding:\n */\n _length_code[length - 1] = code;\n\n /* Initialize the mapping dist (0..32K) -> dist code (0..29) */\n dist = 0;\n for (code = 0; code < 16; code++) {\n base_dist[code] = dist;\n for (n = 0; n < (1 << extra_dbits[code]); n++) {\n _dist_code[dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: dist != 256\");\n dist >>= 7; /* from now on, all distances are divided by 128 */\n for (; code < D_CODES; code++) {\n base_dist[code] = dist << 7;\n for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {\n _dist_code[256 + dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\n\n /* Construct the codes of the static literal tree */\n for (bits = 0; bits <= MAX_BITS; bits++) {\n bl_count[bits] = 0;\n }\n\n n = 0;\n while (n <= 143) {\n static_ltree[n * 2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n while (n <= 255) {\n static_ltree[n * 2 + 1]/*.Len*/ = 9;\n n++;\n bl_count[9]++;\n }\n while (n <= 279) {\n static_ltree[n * 2 + 1]/*.Len*/ = 7;\n n++;\n bl_count[7]++;\n }\n while (n <= 287) {\n static_ltree[n * 2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n /* Codes 286 and 287 do not exist, but we must include them in the\n * tree construction to get a canonical Huffman tree (longest code\n * all ones)\n */\n gen_codes(static_ltree, L_CODES + 1, bl_count);\n\n /* The static distance tree is trivial: */\n for (n = 0; n < D_CODES; n++) {\n static_dtree[n * 2 + 1]/*.Len*/ = 5;\n static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5);\n }\n\n // Now data ready and we can init static trees\n static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS);\n static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);\n static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS);\n\n //static_init_done = true;\n}\n\n\n/* ===========================================================================\n * Initialize a new block.\n */\nfunction init_block(s) {\n var n; /* iterates over tree elements */\n\n /* Initialize the trees. */\n for (n = 0; n < L_CODES; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }\n for (n = 0; n < D_CODES; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }\n for (n = 0; n < BL_CODES; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }\n\n s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1;\n s.opt_len = s.static_len = 0;\n s.last_lit = s.matches = 0;\n}\n\n\n/* ===========================================================================\n * Flush the bit buffer and align the output on a byte boundary\n */\nfunction bi_windup(s)\n{\n if (s.bi_valid > 8) {\n put_short(s, s.bi_buf);\n } else if (s.bi_valid > 0) {\n //put_byte(s, (Byte)s->bi_buf);\n s.pending_buf[s.pending++] = s.bi_buf;\n }\n s.bi_buf = 0;\n s.bi_valid = 0;\n}\n\n/* ===========================================================================\n * Copy a stored block, storing first the length and its\n * one's complement if requested.\n */\nfunction copy_block(s, buf, len, header)\n//DeflateState *s;\n//charf *buf; /* the input data */\n//unsigned len; /* its length */\n//int header; /* true if block header must be written */\n{\n bi_windup(s); /* align on byte boundary */\n\n if (header) {\n put_short(s, len);\n put_short(s, ~len);\n }\n// while (len--) {\n// put_byte(s, *buf++);\n// }\n utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);\n s.pending += len;\n}\n\n/* ===========================================================================\n * Compares to subtrees, using the tree depth as tie breaker when\n * the subtrees have equal frequency. This minimizes the worst case length.\n */\nfunction smaller(tree, n, m, depth) {\n var _n2 = n * 2;\n var _m2 = m * 2;\n return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||\n (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));\n}\n\n/* ===========================================================================\n * Restore the heap property by moving down the tree starting at node k,\n * exchanging a node with the smallest of its two sons if necessary, stopping\n * when the heap property is re-established (each father smaller than its\n * two sons).\n */\nfunction pqdownheap(s, tree, k)\n// deflate_state *s;\n// ct_data *tree; /* the tree to restore */\n// int k; /* node to move down */\n{\n var v = s.heap[k];\n var j = k << 1; /* left son of k */\n while (j <= s.heap_len) {\n /* Set j to the smallest of the two sons: */\n if (j < s.heap_len &&\n smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {\n j++;\n }\n /* Exit if v is smaller than both sons */\n if (smaller(tree, v, s.heap[j], s.depth)) { break; }\n\n /* Exchange v with the smallest son */\n s.heap[k] = s.heap[j];\n k = j;\n\n /* And continue down the tree, setting j to the left son of k */\n j <<= 1;\n }\n s.heap[k] = v;\n}\n\n\n// inlined manually\n// var SMALLEST = 1;\n\n/* ===========================================================================\n * Send the block data compressed using the given Huffman trees\n */\nfunction compress_block(s, ltree, dtree)\n// deflate_state *s;\n// const ct_data *ltree; /* literal tree */\n// const ct_data *dtree; /* distance tree */\n{\n var dist; /* distance of matched string */\n var lc; /* match length or unmatched char (if dist == 0) */\n var lx = 0; /* running index in l_buf */\n var code; /* the code to send */\n var extra; /* number of extra bits to send */\n\n if (s.last_lit !== 0) {\n do {\n dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]);\n lc = s.pending_buf[s.l_buf + lx];\n lx++;\n\n if (dist === 0) {\n send_code(s, lc, ltree); /* send a literal byte */\n //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\n } else {\n /* Here, lc is the match length - MIN_MATCH */\n code = _length_code[lc];\n send_code(s, code + LITERALS + 1, ltree); /* send the length code */\n extra = extra_lbits[code];\n if (extra !== 0) {\n lc -= base_length[code];\n send_bits(s, lc, extra); /* send the extra length bits */\n }\n dist--; /* dist is now the match distance - 1 */\n code = d_code(dist);\n //Assert (code < D_CODES, \"bad d_code\");\n\n send_code(s, code, dtree); /* send the distance code */\n extra = extra_dbits[code];\n if (extra !== 0) {\n dist -= base_dist[code];\n send_bits(s, dist, extra); /* send the extra distance bits */\n }\n } /* literal or match pair ? */\n\n /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */\n //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,\n // \"pendingBuf overflow\");\n\n } while (lx < s.last_lit);\n }\n\n send_code(s, END_BLOCK, ltree);\n}\n\n\n/* ===========================================================================\n * Construct one Huffman tree and assigns the code bit strings and lengths.\n * Update the total bit length for the current block.\n * IN assertion: the field freq is set for all tree elements.\n * OUT assertions: the fields len and code are set to the optimal bit length\n * and corresponding code. The length opt_len is updated; static_len is\n * also updated if stree is not null. The field max_code is set.\n */\nfunction build_tree(s, desc)\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n{\n var tree = desc.dyn_tree;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var elems = desc.stat_desc.elems;\n var n, m; /* iterate over heap elements */\n var max_code = -1; /* largest code with non zero frequency */\n var node; /* new node being created */\n\n /* Construct the initial heap, with least frequent element in\n * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\n * heap[0] is not used.\n */\n s.heap_len = 0;\n s.heap_max = HEAP_SIZE;\n\n for (n = 0; n < elems; n++) {\n if (tree[n * 2]/*.Freq*/ !== 0) {\n s.heap[++s.heap_len] = max_code = n;\n s.depth[n] = 0;\n\n } else {\n tree[n * 2 + 1]/*.Len*/ = 0;\n }\n }\n\n /* The pkzip format requires that at least one distance code exists,\n * and that at least one bit should be sent even if there is only one\n * possible code. So to avoid special checks later on we force at least\n * two codes of non zero frequency.\n */\n while (s.heap_len < 2) {\n node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);\n tree[node * 2]/*.Freq*/ = 1;\n s.depth[node] = 0;\n s.opt_len--;\n\n if (has_stree) {\n s.static_len -= stree[node * 2 + 1]/*.Len*/;\n }\n /* node is 0 or 1 so it does not have extra bits */\n }\n desc.max_code = max_code;\n\n /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\n * establish sub-heaps of increasing lengths:\n */\n for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }\n\n /* Construct the Huffman tree by repeatedly combining the least two\n * frequent nodes.\n */\n node = elems; /* next internal node of the tree */\n do {\n //pqremove(s, tree, n); /* n = node of least frequency */\n /*** pqremove ***/\n n = s.heap[1/*SMALLEST*/];\n s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];\n pqdownheap(s, tree, 1/*SMALLEST*/);\n /***/\n\n m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */\n\n s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */\n s.heap[--s.heap_max] = m;\n\n /* Create a new node father of n and m */\n tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;\n s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;\n tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node;\n\n /* and insert the new node in the heap */\n s.heap[1/*SMALLEST*/] = node++;\n pqdownheap(s, tree, 1/*SMALLEST*/);\n\n } while (s.heap_len >= 2);\n\n s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];\n\n /* At this point, the fields freq and dad are set. We can now\n * generate the bit lengths.\n */\n gen_bitlen(s, desc);\n\n /* The field len is now set, we can generate the bit codes */\n gen_codes(tree, max_code, s.bl_count);\n}\n\n\n/* ===========================================================================\n * Scan a literal or distance tree to determine the frequencies of the codes\n * in the bit length tree.\n */\nfunction scan_tree(s, tree, max_code)\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n{\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n s.bl_tree[curlen * 2]/*.Freq*/ += count;\n\n } else if (curlen !== 0) {\n\n if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }\n s.bl_tree[REP_3_6 * 2]/*.Freq*/++;\n\n } else if (count <= 10) {\n s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++;\n\n } else {\n s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++;\n }\n\n count = 0;\n prevlen = curlen;\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n}\n\n\n/* ===========================================================================\n * Send a literal or distance tree in compressed form, using the codes in\n * bl_tree.\n */\nfunction send_tree(s, tree, max_code)\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n{\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n /* tree[max_code+1].Len = -1; */ /* guard already set */\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);\n\n } else if (curlen !== 0) {\n if (curlen !== prevlen) {\n send_code(s, curlen, s.bl_tree);\n count--;\n }\n //Assert(count >= 3 && count <= 6, \" 3_6?\");\n send_code(s, REP_3_6, s.bl_tree);\n send_bits(s, count - 3, 2);\n\n } else if (count <= 10) {\n send_code(s, REPZ_3_10, s.bl_tree);\n send_bits(s, count - 3, 3);\n\n } else {\n send_code(s, REPZ_11_138, s.bl_tree);\n send_bits(s, count - 11, 7);\n }\n\n count = 0;\n prevlen = curlen;\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n}\n\n\n/* ===========================================================================\n * Construct the Huffman tree for the bit lengths and return the index in\n * bl_order of the last bit length code to send.\n */\nfunction build_bl_tree(s) {\n var max_blindex; /* index of last bit length code of non zero freq */\n\n /* Determine the bit length frequencies for literal and distance trees */\n scan_tree(s, s.dyn_ltree, s.l_desc.max_code);\n scan_tree(s, s.dyn_dtree, s.d_desc.max_code);\n\n /* Build the bit length tree: */\n build_tree(s, s.bl_desc);\n /* opt_len now includes the length of the tree representations, except\n * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\n */\n\n /* Determine the number of bit length codes to send. The pkzip format\n * requires that at least 4 bit length codes be sent. (appnote.txt says\n * 3 but the actual value used is 4.)\n */\n for (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) {\n if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) {\n break;\n }\n }\n /* Update opt_len to include the bit length tree and counts */\n s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;\n //Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\n // s->opt_len, s->static_len));\n\n return max_blindex;\n}\n\n\n/* ===========================================================================\n * Send the header for a block using dynamic Huffman trees: the counts, the\n * lengths of the bit length codes, the literal tree and the distance tree.\n * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\n */\nfunction send_all_trees(s, lcodes, dcodes, blcodes)\n// deflate_state *s;\n// int lcodes, dcodes, blcodes; /* number of codes for each tree */\n{\n var rank; /* index in bl_order */\n\n //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\n //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\n // \"too many codes\");\n //Tracev((stderr, \"\\nbl counts: \"));\n send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */\n send_bits(s, dcodes - 1, 5);\n send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */\n for (rank = 0; rank < blcodes; rank++) {\n //Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\n send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3);\n }\n //Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */\n //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */\n //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\n}\n\n\n/* ===========================================================================\n * Check if the data type is TEXT or BINARY, using the following algorithm:\n * - TEXT if the two conditions below are satisfied:\n * a) There are no non-portable control characters belonging to the\n * \"black list\" (0..6, 14..25, 28..31).\n * b) There is at least one printable character belonging to the\n * \"white list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\n * - BINARY otherwise.\n * - The following partially-portable control characters form a\n * \"gray list\" that is ignored in this detection algorithm:\n * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\n * IN assertion: the fields Freq of dyn_ltree are set.\n */\nfunction detect_data_type(s) {\n /* black_mask is the bit mask of black-listed bytes\n * set bits 0..6, 14..25, and 28..31\n * 0xf3ffc07f = binary 11110011111111111100000001111111\n */\n var black_mask = 0xf3ffc07f;\n var n;\n\n /* Check for non-textual (\"black-listed\") bytes. */\n for (n = 0; n <= 31; n++, black_mask >>>= 1) {\n if ((black_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) {\n return Z_BINARY;\n }\n }\n\n /* Check for textual (\"white-listed\") bytes. */\n if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||\n s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n for (n = 32; n < LITERALS; n++) {\n if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n }\n\n /* There are no \"black-listed\" or \"white-listed\" bytes:\n * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\n */\n return Z_BINARY;\n}\n\n\nvar static_init_done = false;\n\n/* ===========================================================================\n * Initialize the tree data structures for a new zlib stream.\n */\nfunction _tr_init(s)\n{\n\n if (!static_init_done) {\n tr_static_init();\n static_init_done = true;\n }\n\n s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);\n s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);\n s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);\n\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n /* Initialize the first block of the first file: */\n init_block(s);\n}\n\n\n/* ===========================================================================\n * Send a stored block\n */\nfunction _tr_stored_block(s, buf, stored_len, last)\n//DeflateState *s;\n//charf *buf; /* input block */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n{\n send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */\n copy_block(s, buf, stored_len, true); /* with header */\n}\n\n\n/* ===========================================================================\n * Send one empty static block to give enough lookahead for inflate.\n * This takes 10 bits, of which 7 may remain in the bit buffer.\n */\nfunction _tr_align(s) {\n send_bits(s, STATIC_TREES << 1, 3);\n send_code(s, END_BLOCK, static_ltree);\n bi_flush(s);\n}\n\n\n/* ===========================================================================\n * Determine the best encoding for the current block: dynamic trees, static\n * trees or store, and output the encoded block to the zip file.\n */\nfunction _tr_flush_block(s, buf, stored_len, last)\n//DeflateState *s;\n//charf *buf; /* input block, or NULL if too old */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n{\n var opt_lenb, static_lenb; /* opt_len and static_len in bytes */\n var max_blindex = 0; /* index of last bit length code of non zero freq */\n\n /* Build the Huffman trees unless a stored block is forced */\n if (s.level > 0) {\n\n /* Check if the file is binary or text */\n if (s.strm.data_type === Z_UNKNOWN) {\n s.strm.data_type = detect_data_type(s);\n }\n\n /* Construct the literal and distance trees */\n build_tree(s, s.l_desc);\n // Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n\n build_tree(s, s.d_desc);\n // Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n /* At this point, opt_len and static_len are the total bit lengths of\n * the compressed block data, excluding the tree representations.\n */\n\n /* Build the bit length tree for the above two trees, and get the index\n * in bl_order of the last bit length code to send.\n */\n max_blindex = build_bl_tree(s);\n\n /* Determine the best encoding. Compute the block lengths in bytes. */\n opt_lenb = (s.opt_len + 3 + 7) >>> 3;\n static_lenb = (s.static_len + 3 + 7) >>> 3;\n\n // Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\n // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\n // s->last_lit));\n\n if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }\n\n } else {\n // Assert(buf != (char*)0, \"lost buf\");\n opt_lenb = static_lenb = stored_len + 5; /* force a stored block */\n }\n\n if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) {\n /* 4: two words for the lengths */\n\n /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\n * Otherwise we can't have processed more than WSIZE input bytes since\n * the last block flush, because compression would have been\n * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\n * transform a block into a stored block.\n */\n _tr_stored_block(s, buf, stored_len, last);\n\n } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {\n\n send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);\n compress_block(s, static_ltree, static_dtree);\n\n } else {\n send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);\n send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);\n compress_block(s, s.dyn_ltree, s.dyn_dtree);\n }\n // Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\n /* The above check is made mod 2^32, for files larger than 512 MB\n * and uLong implemented on 32 bits.\n */\n init_block(s);\n\n if (last) {\n bi_windup(s);\n }\n // Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\n // s->compressed_len-7*last));\n}\n\n/* ===========================================================================\n * Save the match info and tally the frequency counts. Return true if\n * the current block must be flushed.\n */\nfunction _tr_tally(s, dist, lc)\n// deflate_state *s;\n// unsigned dist; /* distance of matched string */\n// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */\n{\n //var out_length, in_length, dcode;\n\n s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff;\n s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;\n\n s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;\n s.last_lit++;\n\n if (dist === 0) {\n /* lc is the unmatched char */\n s.dyn_ltree[lc * 2]/*.Freq*/++;\n } else {\n s.matches++;\n /* Here, lc is the match length - MIN_MATCH */\n dist--; /* dist = match distance - 1 */\n //Assert((ush)dist < (ush)MAX_DIST(s) &&\n // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\n // (ush)d_code(dist) < (ush)D_CODES, \"_tr_tally: bad match\");\n\n s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]/*.Freq*/++;\n s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;\n }\n\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n\n//#ifdef TRUNCATE_BLOCK\n// /* Try to guess if it is profitable to stop the current block here */\n// if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {\n// /* Compute an upper bound for the compressed length */\n// out_length = s.last_lit*8;\n// in_length = s.strstart - s.block_start;\n//\n// for (dcode = 0; dcode < D_CODES; dcode++) {\n// out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);\n// }\n// out_length >>>= 3;\n// //Tracev((stderr,\"\\nlast_lit %u, in %ld, out ~%ld(%ld%%) \",\n// // s->last_lit, in_length, out_length,\n// // 100L - out_length*100L/in_length));\n// if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {\n// return true;\n// }\n// }\n//#endif\n\n return (s.last_lit === s.lit_bufsize - 1);\n /* We avoid equality with lit_bufsize because of wraparound at 64K\n * on 16 bit machines and because stored blocks are restricted to\n * 64K-1 bytes.\n */\n}\n\nexports._tr_init = _tr_init;\nexports._tr_stored_block = _tr_stored_block;\nexports._tr_flush_block = _tr_flush_block;\nexports._tr_tally = _tr_tally;\nexports._tr_align = _tr_align;\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","module.exports = require('./lib/_stream_duplex.js');\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar test = {\n\t__proto__: null,\n\tfoo: {}\n};\n\nvar $Object = Object;\n\n/** @type {import('.')} */\nmodule.exports = function hasProto() {\n\t// @ts-expect-error: TS errors on an inherited property for some reason\n\treturn { __proto__: test }.foo === test.foo\n\t\t&& !(test instanceof $Object);\n};\n","'use strict';\nvar isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","'use strict';\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\n/* eslint-disable es/no-symbol -- safe */\nmodule.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n var re = $RegExp('(?b)', 'g');\n return re.exec('b').groups.a !== 'b' ||\n 'b'.replace(re, '$c') !== 'bc';\n});\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/5/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n var defaults = {\n pairs: \"()[]{}''\\\"\\\"\",\n closeBefore: \")]}'\\\":;>\",\n triples: \"\",\n explode: \"[]{}\"\n };\n\n var Pos = CodeMirror.Pos;\n\n CodeMirror.defineOption(\"autoCloseBrackets\", false, function(cm, val, old) {\n if (old && old != CodeMirror.Init) {\n cm.removeKeyMap(keyMap);\n cm.state.closeBrackets = null;\n }\n if (val) {\n ensureBound(getOption(val, \"pairs\"))\n cm.state.closeBrackets = val;\n cm.addKeyMap(keyMap);\n }\n });\n\n function getOption(conf, name) {\n if (name == \"pairs\" && typeof conf == \"string\") return conf;\n if (typeof conf == \"object\" && conf[name] != null) return conf[name];\n return defaults[name];\n }\n\n var keyMap = {Backspace: handleBackspace, Enter: handleEnter};\n function ensureBound(chars) {\n for (var i = 0; i < chars.length; i++) {\n var ch = chars.charAt(i), key = \"'\" + ch + \"'\"\n if (!keyMap[key]) keyMap[key] = handler(ch)\n }\n }\n ensureBound(defaults.pairs + \"`\")\n\n function handler(ch) {\n return function(cm) { return handleChar(cm, ch); };\n }\n\n function getConfig(cm) {\n var deflt = cm.state.closeBrackets;\n if (!deflt || deflt.override) return deflt;\n var mode = cm.getModeAt(cm.getCursor());\n return mode.closeBrackets || deflt;\n }\n\n function handleBackspace(cm) {\n var conf = getConfig(cm);\n if (!conf || cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n\n var pairs = getOption(conf, \"pairs\");\n var ranges = cm.listSelections();\n for (var i = 0; i < ranges.length; i++) {\n if (!ranges[i].empty()) return CodeMirror.Pass;\n var around = charsAround(cm, ranges[i].head);\n if (!around || pairs.indexOf(around) % 2 != 0) return CodeMirror.Pass;\n }\n for (var i = ranges.length - 1; i >= 0; i--) {\n var cur = ranges[i].head;\n cm.replaceRange(\"\", Pos(cur.line, cur.ch - 1), Pos(cur.line, cur.ch + 1), \"+delete\");\n }\n }\n\n function handleEnter(cm) {\n var conf = getConfig(cm);\n var explode = conf && getOption(conf, \"explode\");\n if (!explode || cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n\n var ranges = cm.listSelections();\n for (var i = 0; i < ranges.length; i++) {\n if (!ranges[i].empty()) return CodeMirror.Pass;\n var around = charsAround(cm, ranges[i].head);\n if (!around || explode.indexOf(around) % 2 != 0) return CodeMirror.Pass;\n }\n cm.operation(function() {\n var linesep = cm.lineSeparator() || \"\\n\";\n cm.replaceSelection(linesep + linesep, null);\n moveSel(cm, -1)\n ranges = cm.listSelections();\n for (var i = 0; i < ranges.length; i++) {\n var line = ranges[i].head.line;\n cm.indentLine(line, null, true);\n cm.indentLine(line + 1, null, true);\n }\n });\n }\n\n function moveSel(cm, dir) {\n var newRanges = [], ranges = cm.listSelections(), primary = 0\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i]\n if (range.head == cm.getCursor()) primary = i\n var pos = range.head.ch || dir > 0 ? {line: range.head.line, ch: range.head.ch + dir} : {line: range.head.line - 1}\n newRanges.push({anchor: pos, head: pos})\n }\n cm.setSelections(newRanges, primary)\n }\n\n function contractSelection(sel) {\n var inverted = CodeMirror.cmpPos(sel.anchor, sel.head) > 0;\n return {anchor: new Pos(sel.anchor.line, sel.anchor.ch + (inverted ? -1 : 1)),\n head: new Pos(sel.head.line, sel.head.ch + (inverted ? 1 : -1))};\n }\n\n function handleChar(cm, ch) {\n var conf = getConfig(cm);\n if (!conf || cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n\n var pairs = getOption(conf, \"pairs\");\n var pos = pairs.indexOf(ch);\n if (pos == -1) return CodeMirror.Pass;\n\n var closeBefore = getOption(conf,\"closeBefore\");\n\n var triples = getOption(conf, \"triples\");\n\n var identical = pairs.charAt(pos + 1) == ch;\n var ranges = cm.listSelections();\n var opening = pos % 2 == 0;\n\n var type;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i], cur = range.head, curType;\n var next = cm.getRange(cur, Pos(cur.line, cur.ch + 1));\n if (opening && !range.empty()) {\n curType = \"surround\";\n } else if ((identical || !opening) && next == ch) {\n if (identical && stringStartsAfter(cm, cur))\n curType = \"both\";\n else if (triples.indexOf(ch) >= 0 && cm.getRange(cur, Pos(cur.line, cur.ch + 3)) == ch + ch + ch)\n curType = \"skipThree\";\n else\n curType = \"skip\";\n } else if (identical && cur.ch > 1 && triples.indexOf(ch) >= 0 &&\n cm.getRange(Pos(cur.line, cur.ch - 2), cur) == ch + ch) {\n if (cur.ch > 2 && /\\bstring/.test(cm.getTokenTypeAt(Pos(cur.line, cur.ch - 2)))) return CodeMirror.Pass;\n curType = \"addFour\";\n } else if (identical) {\n var prev = cur.ch == 0 ? \" \" : cm.getRange(Pos(cur.line, cur.ch - 1), cur)\n if (!CodeMirror.isWordChar(next) && prev != ch && !CodeMirror.isWordChar(prev)) curType = \"both\";\n else return CodeMirror.Pass;\n } else if (opening && (next.length === 0 || /\\s/.test(next) || closeBefore.indexOf(next) > -1)) {\n curType = \"both\";\n } else {\n return CodeMirror.Pass;\n }\n if (!type) type = curType;\n else if (type != curType) return CodeMirror.Pass;\n }\n\n var left = pos % 2 ? pairs.charAt(pos - 1) : ch;\n var right = pos % 2 ? ch : pairs.charAt(pos + 1);\n cm.operation(function() {\n if (type == \"skip\") {\n moveSel(cm, 1)\n } else if (type == \"skipThree\") {\n moveSel(cm, 3)\n } else if (type == \"surround\") {\n var sels = cm.getSelections();\n for (var i = 0; i < sels.length; i++)\n sels[i] = left + sels[i] + right;\n cm.replaceSelections(sels, \"around\");\n sels = cm.listSelections().slice();\n for (var i = 0; i < sels.length; i++)\n sels[i] = contractSelection(sels[i]);\n cm.setSelections(sels);\n } else if (type == \"both\") {\n cm.replaceSelection(left + right, null);\n cm.triggerElectric(left + right);\n moveSel(cm, -1)\n } else if (type == \"addFour\") {\n cm.replaceSelection(left + left + left + left, \"before\");\n moveSel(cm, 1)\n }\n });\n }\n\n function charsAround(cm, pos) {\n var str = cm.getRange(Pos(pos.line, pos.ch - 1),\n Pos(pos.line, pos.ch + 1));\n return str.length == 2 ? str : null;\n }\n\n function stringStartsAfter(cm, pos) {\n var token = cm.getTokenAt(Pos(pos.line, pos.ch + 1))\n return /\\bstring/.test(token.type) && token.start == pos.ch &&\n (pos.ch == 0 || !/\\bstring/.test(cm.getTokenTypeAt(pos)))\n }\n});\n","'use strict';\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar fails = require('../internals/fails');\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\nvar MAX_UINT32 = 0xFFFFFFFF;\nvar min = Math.min;\nvar push = uncurryThis([].push);\nvar stringSlice = uncurryThis(''.slice);\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\nvar BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n 'test'.split(/(?:)/, -1).length !== 4 ||\n 'ab'.split(/(?:ab)*/).length !== 2 ||\n '.'.split(/(.?)(.?)/).length !== 4 ||\n // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing\n '.'.split(/()()/).length > 1 ||\n ''.split(/.?/).length;\n\n// @@split logic\nfixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {\n var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);\n } : nativeSplit;\n\n return [\n // `String.prototype.split` method\n // https://tc39.es/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = requireObjectCoercible(this);\n var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);\n return splitter\n ? call(splitter, separator, O, limit)\n : call(internalSplit, toString(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (string, limit) {\n var rx = anObject(this);\n var S = toString(string);\n\n if (!BUGGY) {\n var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);\n if (res.done) return res.value;\n }\n\n var C = speciesConstructor(rx, RegExp);\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (UNSUPPORTED_Y ? 'g' : 'y');\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return regExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;\n var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);\n var e;\n if (\n z === null ||\n (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n push(A, stringSlice(S, p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n push(A, z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n push(A, stringSlice(S, p));\n return A;\n }\n ];\n}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\).*$/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n","'use strict';\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof-raw');\nvar regexpExec = require('../internals/regexp-exec');\n\nvar $TypeError = TypeError;\n\n// `RegExpExec` abstract operation\n// https://tc39.es/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (isCallable(exec)) {\n var result = call(exec, R, S);\n if (result !== null) anObject(result);\n return result;\n }\n if (classof(R) === 'RegExp') return call(regexpExec, R, S);\n throw new $TypeError('RegExp#exec called on incompatible receiver');\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Avoid NodeJS experimental warning\nmodule.exports = function (name) {\n if (!DESCRIPTORS) return global[name];\n var descriptor = getOwnPropertyDescriptor(global, name);\n return descriptor && descriptor.value;\n};\n","'use strict';\nvar global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nvar handlePrototype = function (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n if (DOMIterables[COLLECTION_NAME]) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);\n }\n}\n\nhandlePrototype(DOMTokenListPrototype);\n","'use strict';\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar documentAll = typeof document == 'object' && document.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nmodule.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/5/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n\"use strict\";\n\nCodeMirror.registerGlobalHelper(\"fold\", \"comment\", function(mode) {\n return mode.blockCommentStart && mode.blockCommentEnd;\n}, function(cm, start) {\n var mode = cm.getModeAt(start), startToken = mode.blockCommentStart, endToken = mode.blockCommentEnd;\n if (!startToken || !endToken) return;\n var line = start.line, lineText = cm.getLine(line);\n\n var startCh;\n for (var at = start.ch, pass = 0;;) {\n var found = at <= 0 ? -1 : lineText.lastIndexOf(startToken, at - 1);\n if (found == -1) {\n if (pass == 1) return;\n pass = 1;\n at = lineText.length;\n continue;\n }\n if (pass == 1 && found < start.ch) return;\n if (/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1))) &&\n (found == 0 || lineText.slice(found - endToken.length, found) == endToken ||\n !/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found))))) {\n startCh = found + startToken.length;\n break;\n }\n at = found - 1;\n }\n\n var depth = 1, lastLine = cm.lastLine(), end, endCh;\n outer: for (var i = line; i <= lastLine; ++i) {\n var text = cm.getLine(i), pos = i == line ? startCh : 0;\n for (;;) {\n var nextOpen = text.indexOf(startToken, pos), nextClose = text.indexOf(endToken, pos);\n if (nextOpen < 0) nextOpen = text.length;\n if (nextClose < 0) nextClose = text.length;\n pos = Math.min(nextOpen, nextClose);\n if (pos == text.length) break;\n if (pos == nextOpen) ++depth;\n else if (!--depth) { end = i; endCh = pos; break outer; }\n ++pos;\n }\n }\n if (end == null || line == end && endCh == startCh) return;\n return {from: CodeMirror.Pos(line, startCh),\n to: CodeMirror.Pos(end, endCh)};\n});\n\n});\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\n// modified from https://github.com/es-shims/es6-shim\nvar objectKeys = require('object-keys');\nvar hasSymbols = require('has-symbols/shams')();\nvar callBound = require('call-bind/callBound');\nvar toObject = Object;\nvar $push = callBound('Array.prototype.push');\nvar $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');\nvar originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;\n\n// eslint-disable-next-line no-unused-vars\nmodule.exports = function assign(target, source1) {\n\tif (target == null) { throw new TypeError('target must be an object'); }\n\tvar to = toObject(target); // step 1\n\tif (arguments.length === 1) {\n\t\treturn to; // step 2\n\t}\n\tfor (var s = 1; s < arguments.length; ++s) {\n\t\tvar from = toObject(arguments[s]); // step 3.a.i\n\n\t\t// step 3.a.ii:\n\t\tvar keys = objectKeys(from);\n\t\tvar getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);\n\t\tif (getSymbols) {\n\t\t\tvar syms = getSymbols(from);\n\t\t\tfor (var j = 0; j < syms.length; ++j) {\n\t\t\t\tvar key = syms[j];\n\t\t\t\tif ($propIsEnumerable(from, key)) {\n\t\t\t\t\t$push(keys, key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// step 3.a.iii:\n\t\tfor (var i = 0; i < keys.length; ++i) {\n\t\t\tvar nextKey = keys[i];\n\t\t\tif ($propIsEnumerable(from, nextKey)) { // step 3.a.iii.2\n\t\t\t\tvar propValue = from[nextKey]; // step 3.a.iii.2.a\n\t\t\t\tto[nextKey] = propValue; // step 3.a.iii.2.b\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to; // step 4\n};\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nmodule.exports = function (argument) {\n return isObject(argument) || argument === null;\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.foreach\nmodule.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n// eslint-disable-next-line es/no-array-prototype-foreach -- safe\n} : [].forEach;\n","'use strict';\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw new $TypeError('Incorrect invocation');\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n try {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n } catch (error) { return false; } // workaround of old WebKit + `eval` bug\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","'use strict';\nvar userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/5/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n \"use strict\";\n\n var listRE = /^(\\s*)(>[> ]*|[*+-] \\[[x ]\\]\\s|[*+-]\\s|(\\d+)([.)]))(\\s*)/,\n emptyListRE = /^(\\s*)(>[> ]*|[*+-] \\[[x ]\\]|[*+-]|(\\d+)[.)])(\\s*)$/,\n unorderedListRE = /[*+-]\\s/;\n\n CodeMirror.commands.newlineAndIndentContinueMarkdownList = function(cm) {\n if (cm.getOption(\"disableInput\")) return CodeMirror.Pass;\n var ranges = cm.listSelections(), replacements = [];\n for (var i = 0; i < ranges.length; i++) {\n var pos = ranges[i].head;\n\n // If we're not in Markdown mode, fall back to normal newlineAndIndent\n var eolState = cm.getStateAfter(pos.line);\n var inner = CodeMirror.innerMode(cm.getMode(), eolState);\n if (inner.mode.name !== \"markdown\" && inner.mode.helperType !== \"markdown\") {\n cm.execCommand(\"newlineAndIndent\");\n return;\n } else {\n eolState = inner.state;\n }\n\n var inList = eolState.list !== false;\n var inQuote = eolState.quote !== 0;\n\n var line = cm.getLine(pos.line), match = listRE.exec(line);\n var cursorBeforeBullet = /^\\s*$/.test(line.slice(0, pos.ch));\n if (!ranges[i].empty() || (!inList && !inQuote) || !match || cursorBeforeBullet) {\n cm.execCommand(\"newlineAndIndent\");\n return;\n }\n if (emptyListRE.test(line)) {\n var endOfQuote = inQuote && />\\s*$/.test(line)\n var endOfList = !/>\\s*$/.test(line)\n if (endOfQuote || endOfList) cm.replaceRange(\"\", {\n line: pos.line, ch: 0\n }, {\n line: pos.line, ch: pos.ch + 1\n });\n replacements[i] = \"\\n\";\n } else {\n var indent = match[1], after = match[5];\n var numbered = !(unorderedListRE.test(match[2]) || match[2].indexOf(\">\") >= 0);\n var bullet = numbered ? (parseInt(match[3], 10) + 1) + match[4] : match[2].replace(\"x\", \" \");\n replacements[i] = \"\\n\" + indent + bullet + after;\n\n if (numbered) incrementRemainingMarkdownListNumbers(cm, pos);\n }\n }\n\n cm.replaceSelections(replacements);\n };\n\n // Auto-updating Markdown list numbers when a new item is added to the\n // middle of a list\n function incrementRemainingMarkdownListNumbers(cm, pos) {\n var startLine = pos.line, lookAhead = 0, skipCount = 0;\n var startItem = listRE.exec(cm.getLine(startLine)), startIndent = startItem[1];\n\n do {\n lookAhead += 1;\n var nextLineNumber = startLine + lookAhead;\n var nextLine = cm.getLine(nextLineNumber), nextItem = listRE.exec(nextLine);\n\n if (nextItem) {\n var nextIndent = nextItem[1];\n var newNumber = (parseInt(startItem[3], 10) + lookAhead - skipCount);\n var nextNumber = (parseInt(nextItem[3], 10)), itemNumber = nextNumber;\n\n if (startIndent === nextIndent && !isNaN(nextNumber)) {\n if (newNumber === nextNumber) itemNumber = nextNumber + 1;\n if (newNumber > nextNumber) itemNumber = newNumber + 1;\n cm.replaceRange(\n nextLine.replace(listRE, nextIndent + itemNumber + nextItem[4] + nextItem[5]),\n {\n line: nextLineNumber, ch: 0\n }, {\n line: nextLineNumber, ch: nextLine.length\n });\n } else {\n if (startIndent.length > nextIndent.length) return;\n // This doesn't run if the next line immediately indents, as it is\n // not clear of the users intention (new indented item or same level)\n if ((startIndent.length < nextIndent.length) && (lookAhead === 1)) return;\n skipCount += 1;\n }\n }\n } while (nextItem);\n }\n});\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = global[TARGET] && global[TARGET].prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\nvar PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER;\nvar defineBuiltIn = require('../internals/define-built-in');\nvar anObject = require('../internals/an-object');\nvar $toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\n\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\n\nvar NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.es/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {\n var R = anObject(this);\n var pattern = $toString(R.source);\n var flags = $toString(getRegExpFlags(R));\n return '/' + pattern + '/' + flags;\n }, { unsafe: true });\n}\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = require('./_stream_duplex');\n\n/**/\nvar util = Object.create(require('core-util-is'));\nutil.inherits = require('inherits');\n/**/\n\nutil.inherits(Transform, Duplex);\n\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) {\n return this.emit('error', new Error('write callback called multiple times'));\n }\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data != null) // single equals check for both `null` and `undefined`\n this.push(data);\n\n cb(er);\n\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\n\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\n\nfunction prefinish() {\n var _this = this;\n\n if (typeof this._flush === 'function') {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\n\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('_transform() is not implemented');\n};\n\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\nTransform.prototype._destroy = function (err, cb) {\n var _this2 = this;\n\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n _this2.emit('close');\n });\n};\n\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n\n if (data != null) // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n}","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n","/*!\n * showdowns.js v0.6.1\n * Copyright (c) 2019-present, Jhuix (Hui Jin) \n * Released under the MIT License.\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.showdowns = factory());\n})(this, (function () { 'use strict';\n\n function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n }\n function _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return _arrayLikeToArray(r);\n }\n function _defineProperty(e, r, t) {\n return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n }\n function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n }\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n function ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n }\n function _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n _defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n }\n function _toConsumableArray(r) {\n return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();\n }\n function _toPrimitive(t, r) {\n if (\"object\" != typeof t || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != typeof i) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n }\n function _toPropertyKey(t) {\n var i = _toPrimitive(t, \"string\");\n return \"symbol\" == typeof i ? i : i + \"\";\n }\n function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n }\n function _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return _arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;\n }\n }\n\n var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\n function getDefaultExportFromCjs (x) {\n \treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n }\n\n var showdown$1 = {exports: {}};\n\n (function (module) {\n \t(function(){\r\n \t/**\n \t * Created by Tivie on 13-07-2015.\n \t */\n\n \tfunction getDefaultOpts (simple) {\n\n \t var defaultOptions = {\n \t omitExtraWLInCodeBlocks: {\n \t defaultValue: false,\n \t describe: 'Omit the default extra whiteline added to code blocks',\n \t type: 'boolean'\n \t },\n \t noHeaderId: {\n \t defaultValue: false,\n \t describe: 'Turn on/off generated header id',\n \t type: 'boolean'\n \t },\n \t prefixHeaderId: {\n \t defaultValue: false,\n \t describe: 'Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic \\'section-\\' prefix',\n \t type: 'string'\n \t },\n \t rawPrefixHeaderId: {\n \t defaultValue: false,\n \t describe: 'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the \" char is used in the prefix)',\n \t type: 'boolean'\n \t },\n \t ghCompatibleHeaderId: {\n \t defaultValue: false,\n \t describe: 'Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)',\n \t type: 'boolean'\n \t },\n \t rawHeaderId: {\n \t defaultValue: false,\n \t describe: 'Remove only spaces, \\' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids',\n \t type: 'boolean'\n \t },\n \t headerLevelStart: {\n \t defaultValue: false,\n \t describe: 'The header blocks level start',\n \t type: 'integer'\n \t },\n \t parseImgDimensions: {\n \t defaultValue: false,\n \t describe: 'Turn on/off image dimension parsing',\n \t type: 'boolean'\n \t },\n \t simplifiedAutoLink: {\n \t defaultValue: false,\n \t describe: 'Turn on/off GFM autolink style',\n \t type: 'boolean'\n \t },\n \t excludeTrailingPunctuationFromURLs: {\n \t defaultValue: false,\n \t describe: 'Excludes trailing punctuation from links generated with autoLinking',\n \t type: 'boolean'\n \t },\n \t literalMidWordUnderscores: {\n \t defaultValue: false,\n \t describe: 'Parse midword underscores as literal underscores',\n \t type: 'boolean'\n \t },\n \t literalMidWordAsterisks: {\n \t defaultValue: false,\n \t describe: 'Parse midword asterisks as literal asterisks',\n \t type: 'boolean'\n \t },\n \t strikethrough: {\n \t defaultValue: false,\n \t describe: 'Turn on/off strikethrough support',\n \t type: 'boolean'\n \t },\n \t tables: {\n \t defaultValue: false,\n \t describe: 'Turn on/off tables support',\n \t type: 'boolean'\n \t },\n \t tablesHeaderId: {\n \t defaultValue: false,\n \t describe: 'Add an id to table headers',\n \t type: 'boolean'\n \t },\n \t ghCodeBlocks: {\n \t defaultValue: true,\n \t describe: 'Turn on/off GFM fenced code blocks support',\n \t type: 'boolean'\n \t },\n \t tasklists: {\n \t defaultValue: false,\n \t describe: 'Turn on/off GFM tasklist support',\n \t type: 'boolean'\n \t },\n \t smoothLivePreview: {\n \t defaultValue: false,\n \t describe: 'Prevents weird effects in live previews due to incomplete input',\n \t type: 'boolean'\n \t },\n \t smartIndentationFix: {\n \t defaultValue: false,\n \t describe: 'Tries to smartly fix indentation in es6 strings',\n \t type: 'boolean'\n \t },\n \t disableForced4SpacesIndentedSublists: {\n \t defaultValue: false,\n \t describe: 'Disables the requirement of indenting nested sublists by 4 spaces',\n \t type: 'boolean'\n \t },\n \t simpleLineBreaks: {\n \t defaultValue: false,\n \t describe: 'Parses simple line breaks as
(GFM Style)',\n \t type: 'boolean'\n \t },\n \t requireSpaceBeforeHeadingText: {\n \t defaultValue: false,\n \t describe: 'Makes adding a space between `#` and the header text mandatory (GFM Style)',\n \t type: 'boolean'\n \t },\n \t ghMentions: {\n \t defaultValue: false,\n \t describe: 'Enables github @mentions',\n \t type: 'boolean'\n \t },\n \t ghMentionsLink: {\n \t defaultValue: 'https://github.com/{u}',\n \t describe: 'Changes the link generated by @mentions. Only applies if ghMentions option is enabled.',\n \t type: 'string'\n \t },\n \t encodeEmails: {\n \t defaultValue: true,\n \t describe: 'Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities',\n \t type: 'boolean'\n \t },\n \t openLinksInNewWindow: {\n \t defaultValue: false,\n \t describe: 'Open all links in new windows',\n \t type: 'boolean'\n \t },\n \t backslashEscapesHTMLTags: {\n \t defaultValue: false,\n \t describe: 'Support for HTML Tag escaping. ex: \\
foo\\
',\n \t type: 'boolean'\n \t },\n \t emoji: {\n \t defaultValue: false,\n \t describe: 'Enable emoji support. Ex: `this is a :smile: emoji`',\n \t type: 'boolean'\n \t },\n \t underline: {\n \t defaultValue: false,\n \t describe: 'Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``',\n \t type: 'boolean'\n \t },\n \t ellipsis: {\n \t defaultValue: true,\n \t describe: 'Replaces three dots with the ellipsis unicode character',\n \t type: 'boolean'\n \t },\n \t completeHTMLDocument: {\n \t defaultValue: false,\n \t describe: 'Outputs a complete html document, including ``, `` and `` tags',\n \t type: 'boolean'\n \t },\n \t metadata: {\n \t defaultValue: false,\n \t describe: 'Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).',\n \t type: 'boolean'\n \t },\n \t splitAdjacentBlockquotes: {\n \t defaultValue: false,\n \t describe: 'Split adjacent blockquote blocks',\n \t type: 'boolean'\n \t }\n \t };\n \t if (simple === false) {\n \t return JSON.parse(JSON.stringify(defaultOptions));\n \t }\n \t var ret = {};\n \t for (var opt in defaultOptions) {\n \t if (defaultOptions.hasOwnProperty(opt)) {\n \t ret[opt] = defaultOptions[opt].defaultValue;\n \t }\n \t }\n \t return ret;\n \t}\n\n \tfunction allOptionsOn () {\n \t var options = getDefaultOpts(true),\n \t ret = {};\n \t for (var opt in options) {\n \t if (options.hasOwnProperty(opt)) {\n \t ret[opt] = true;\n \t }\n \t }\n \t return ret;\n \t}\n\r\n \t/**\n \t * Created by Tivie on 06-01-2015.\n \t */\n\n \t// Private properties\n \tvar showdown = {},\n \t parsers = {},\n \t extensions = {},\n \t globalOptions = getDefaultOpts(true),\n \t setFlavor = 'vanilla',\n \t flavor = {\n \t github: {\n \t omitExtraWLInCodeBlocks: true,\n \t simplifiedAutoLink: true,\n \t excludeTrailingPunctuationFromURLs: true,\n \t literalMidWordUnderscores: true,\n \t strikethrough: true,\n \t tables: true,\n \t tablesHeaderId: true,\n \t ghCodeBlocks: true,\n \t tasklists: true,\n \t disableForced4SpacesIndentedSublists: true,\n \t simpleLineBreaks: true,\n \t requireSpaceBeforeHeadingText: true,\n \t ghCompatibleHeaderId: true,\n \t ghMentions: true,\n \t backslashEscapesHTMLTags: true,\n \t emoji: true,\n \t splitAdjacentBlockquotes: true\n \t },\n \t original: {\n \t noHeaderId: true,\n \t ghCodeBlocks: false\n \t },\n \t ghost: {\n \t omitExtraWLInCodeBlocks: true,\n \t parseImgDimensions: true,\n \t simplifiedAutoLink: true,\n \t excludeTrailingPunctuationFromURLs: true,\n \t literalMidWordUnderscores: true,\n \t strikethrough: true,\n \t tables: true,\n \t tablesHeaderId: true,\n \t ghCodeBlocks: true,\n \t tasklists: true,\n \t smoothLivePreview: true,\n \t simpleLineBreaks: true,\n \t requireSpaceBeforeHeadingText: true,\n \t ghMentions: false,\n \t encodeEmails: true\n \t },\n \t vanilla: getDefaultOpts(true),\n \t allOn: allOptionsOn()\n \t };\n\n \t/**\n \t * helper namespace\n \t * @type {{}}\n \t */\n \tshowdown.helper = {};\n\n \t/**\n \t * TODO LEGACY SUPPORT CODE\n \t * @type {{}}\n \t */\n \tshowdown.extensions = {};\n\n \t/**\n \t * Set a global option\n \t * @static\n \t * @param {string} key\n \t * @param {*} value\n \t * @returns {showdown}\n \t */\n \tshowdown.setOption = function (key, value) {\n \t globalOptions[key] = value;\n \t return this;\n \t};\n\n \t/**\n \t * Get a global option\n \t * @static\n \t * @param {string} key\n \t * @returns {*}\n \t */\n \tshowdown.getOption = function (key) {\n \t return globalOptions[key];\n \t};\n\n \t/**\n \t * Get the global options\n \t * @static\n \t * @returns {{}}\n \t */\n \tshowdown.getOptions = function () {\n \t return globalOptions;\n \t};\n\n \t/**\n \t * Reset global options to the default values\n \t * @static\n \t */\n \tshowdown.resetOptions = function () {\n \t globalOptions = getDefaultOpts(true);\n \t};\n\n \t/**\n \t * Set the flavor showdown should use as default\n \t * @param {string} name\n \t */\n \tshowdown.setFlavor = function (name) {\n \t if (!flavor.hasOwnProperty(name)) {\n \t throw Error(name + ' flavor was not found');\n \t }\n \t showdown.resetOptions();\n \t var preset = flavor[name];\n \t setFlavor = name;\n \t for (var option in preset) {\n \t if (preset.hasOwnProperty(option)) {\n \t globalOptions[option] = preset[option];\n \t }\n \t }\n \t};\n\n \t/**\n \t * Get the currently set flavor\n \t * @returns {string}\n \t */\n \tshowdown.getFlavor = function () {\n \t return setFlavor;\n \t};\n\n \t/**\n \t * Get the options of a specified flavor. Returns undefined if the flavor was not found\n \t * @param {string} name Name of the flavor\n \t * @returns {{}|undefined}\n \t */\n \tshowdown.getFlavorOptions = function (name) {\n \t if (flavor.hasOwnProperty(name)) {\n \t return flavor[name];\n \t }\n \t};\n\n \t/**\n \t * Get the default options\n \t * @static\n \t * @param {boolean} [simple=true]\n \t * @returns {{}}\n \t */\n \tshowdown.getDefaultOptions = function (simple) {\n \t return getDefaultOpts(simple);\n \t};\n\n \t/**\n \t * Get or set a subParser\n \t *\n \t * subParser(name) - Get a registered subParser\n \t * subParser(name, func) - Register a subParser\n \t * @static\n \t * @param {string} name\n \t * @param {function} [func]\n \t * @returns {*}\n \t */\n \tshowdown.subParser = function (name, func) {\n \t if (showdown.helper.isString(name)) {\n \t if (typeof func !== 'undefined') {\n \t parsers[name] = func;\n \t } else {\n \t if (parsers.hasOwnProperty(name)) {\n \t return parsers[name];\n \t } else {\n \t throw Error('SubParser named ' + name + ' not registered!');\n \t }\n \t }\n \t }\n \t};\n\n \t/**\n \t * Gets or registers an extension\n \t * @static\n \t * @param {string} name\n \t * @param {object|object[]|function=} ext\n \t * @returns {*}\n \t */\n \tshowdown.extension = function (name, ext) {\n\n \t if (!showdown.helper.isString(name)) {\n \t throw Error('Extension \\'name\\' must be a string');\n \t }\n\n \t name = showdown.helper.stdExtName(name);\n\n \t // Getter\n \t if (showdown.helper.isUndefined(ext)) {\n \t if (!extensions.hasOwnProperty(name)) {\n \t throw Error('Extension named ' + name + ' is not registered!');\n \t }\n \t return extensions[name];\n\n \t // Setter\n \t } else {\n \t // Expand extension if it's wrapped in a function\n \t if (typeof ext === 'function') {\n \t ext = ext();\n \t }\n\n \t // Ensure extension is an array\n \t if (!showdown.helper.isArray(ext)) {\n \t ext = [ext];\n \t }\n\n \t var validExtension = validate(ext, name);\n\n \t if (validExtension.valid) {\n \t extensions[name] = ext;\n \t } else {\n \t throw Error(validExtension.error);\n \t }\n \t }\n \t};\n\n \t/**\n \t * Gets all extensions registered\n \t * @returns {{}}\n \t */\n \tshowdown.getAllExtensions = function () {\n \t return extensions;\n \t};\n\n \t/**\n \t * Remove an extension\n \t * @param {string} name\n \t */\n \tshowdown.removeExtension = function (name) {\n \t delete extensions[name];\n \t};\n\n \t/**\n \t * Removes all extensions\n \t */\n \tshowdown.resetExtensions = function () {\n \t extensions = {};\n \t};\n\n \t/**\n \t * Validate extension\n \t * @param {array} extension\n \t * @param {string} name\n \t * @returns {{valid: boolean, error: string}}\n \t */\n \tfunction validate (extension, name) {\n\n \t var errMsg = (name) ? 'Error in ' + name + ' extension->' : 'Error in unnamed extension',\n \t ret = {\n \t valid: true,\n \t error: ''\n \t };\n\n \t if (!showdown.helper.isArray(extension)) {\n \t extension = [extension];\n \t }\n\n \t for (var i = 0; i < extension.length; ++i) {\n \t var baseMsg = errMsg + ' sub-extension ' + i + ': ',\n \t ext = extension[i];\n \t if (typeof ext !== 'object') {\n \t ret.valid = false;\n \t ret.error = baseMsg + 'must be an object, but ' + typeof ext + ' given';\n \t return ret;\n \t }\n\n \t if (!showdown.helper.isString(ext.type)) {\n \t ret.valid = false;\n \t ret.error = baseMsg + 'property \"type\" must be a string, but ' + typeof ext.type + ' given';\n \t return ret;\n \t }\n\n \t var type = ext.type = ext.type.toLowerCase();\n\n \t // normalize extension type\n \t if (type === 'language') {\n \t type = ext.type = 'lang';\n \t }\n\n \t if (type === 'html') {\n \t type = ext.type = 'output';\n \t }\n\n \t if (type !== 'lang' && type !== 'output' && type !== 'listener') {\n \t ret.valid = false;\n \t ret.error = baseMsg + 'type ' + type + ' is not recognized. Valid values: \"lang/language\", \"output/html\" or \"listener\"';\n \t return ret;\n \t }\n\n \t if (type === 'listener') {\n \t if (showdown.helper.isUndefined(ext.listeners)) {\n \t ret.valid = false;\n \t ret.error = baseMsg + '. Extensions of type \"listener\" must have a property called \"listeners\"';\n \t return ret;\n \t }\n \t } else {\n \t if (showdown.helper.isUndefined(ext.filter) && showdown.helper.isUndefined(ext.regex)) {\n \t ret.valid = false;\n \t ret.error = baseMsg + type + ' extensions must define either a \"regex\" property or a \"filter\" method';\n \t return ret;\n \t }\n \t }\n\n \t if (ext.listeners) {\n \t if (typeof ext.listeners !== 'object') {\n \t ret.valid = false;\n \t ret.error = baseMsg + '\"listeners\" property must be an object but ' + typeof ext.listeners + ' given';\n \t return ret;\n \t }\n \t for (var ln in ext.listeners) {\n \t if (ext.listeners.hasOwnProperty(ln)) {\n \t if (typeof ext.listeners[ln] !== 'function') {\n \t ret.valid = false;\n \t ret.error = baseMsg + '\"listeners\" property must be an hash of [event name]: [callback]. listeners.' + ln +\n \t ' must be a function but ' + typeof ext.listeners[ln] + ' given';\n \t return ret;\n \t }\n \t }\n \t }\n \t }\n\n \t if (ext.filter) {\n \t if (typeof ext.filter !== 'function') {\n \t ret.valid = false;\n \t ret.error = baseMsg + '\"filter\" must be a function, but ' + typeof ext.filter + ' given';\n \t return ret;\n \t }\n \t } else if (ext.regex) {\n \t if (showdown.helper.isString(ext.regex)) {\n \t ext.regex = new RegExp(ext.regex, 'g');\n \t }\n \t if (!(ext.regex instanceof RegExp)) {\n \t ret.valid = false;\n \t ret.error = baseMsg + '\"regex\" property must either be a string or a RegExp object, but ' + typeof ext.regex + ' given';\n \t return ret;\n \t }\n \t if (showdown.helper.isUndefined(ext.replace)) {\n \t ret.valid = false;\n \t ret.error = baseMsg + '\"regex\" extensions must implement a replace string or function';\n \t return ret;\n \t }\n \t }\n \t }\n \t return ret;\n \t}\n\n \t/**\n \t * Validate extension\n \t * @param {object} ext\n \t * @returns {boolean}\n \t */\n \tshowdown.validateExtension = function (ext) {\n\n \t var validateExtension = validate(ext, null);\n \t if (!validateExtension.valid) {\n \t console.warn(validateExtension.error);\n \t return false;\n \t }\n \t return true;\n \t};\n\r\n \t/**\n \t * showdownjs helper functions\n \t */\n\n \tif (!showdown.hasOwnProperty('helper')) {\n \t showdown.helper = {};\n \t}\n\n \t/**\n \t * Check if var is string\n \t * @static\n \t * @param {string} a\n \t * @returns {boolean}\n \t */\n \tshowdown.helper.isString = function (a) {\n \t return (typeof a === 'string' || a instanceof String);\n \t};\n\n \t/**\n \t * Check if var is a function\n \t * @static\n \t * @param {*} a\n \t * @returns {boolean}\n \t */\n \tshowdown.helper.isFunction = function (a) {\n \t var getType = {};\n \t return a && getType.toString.call(a) === '[object Function]';\n \t};\n\n \t/**\n \t * isArray helper function\n \t * @static\n \t * @param {*} a\n \t * @returns {boolean}\n \t */\n \tshowdown.helper.isArray = function (a) {\n \t return Array.isArray(a);\n \t};\n\n \t/**\n \t * Check if value is undefined\n \t * @static\n \t * @param {*} value The value to check.\n \t * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n \t */\n \tshowdown.helper.isUndefined = function (value) {\n \t return typeof value === 'undefined';\n \t};\n\n \t/**\n \t * ForEach helper function\n \t * Iterates over Arrays and Objects (own properties only)\n \t * @static\n \t * @param {*} obj\n \t * @param {function} callback Accepts 3 params: 1. value, 2. key, 3. the original array/object\n \t */\n \tshowdown.helper.forEach = function (obj, callback) {\n \t // check if obj is defined\n \t if (showdown.helper.isUndefined(obj)) {\n \t throw new Error('obj param is required');\n \t }\n\n \t if (showdown.helper.isUndefined(callback)) {\n \t throw new Error('callback param is required');\n \t }\n\n \t if (!showdown.helper.isFunction(callback)) {\n \t throw new Error('callback param must be a function/closure');\n \t }\n\n \t if (typeof obj.forEach === 'function') {\n \t obj.forEach(callback);\n \t } else if (showdown.helper.isArray(obj)) {\n \t for (var i = 0; i < obj.length; i++) {\n \t callback(obj[i], i, obj);\n \t }\n \t } else if (typeof (obj) === 'object') {\n \t for (var prop in obj) {\n \t if (obj.hasOwnProperty(prop)) {\n \t callback(obj[prop], prop, obj);\n \t }\n \t }\n \t } else {\n \t throw new Error('obj does not seem to be an array or an iterable object');\n \t }\n \t};\n\n \t/**\n \t * Standardidize extension name\n \t * @static\n \t * @param {string} s extension name\n \t * @returns {string}\n \t */\n \tshowdown.helper.stdExtName = function (s) {\n \t return s.replace(/[_?*+\\/\\\\.^-]/g, '').replace(/\\s/g, '').toLowerCase();\n \t};\n\n \tfunction escapeCharactersCallback (wholeMatch, m1) {\n \t var charCodeToEscape = m1.charCodeAt(0);\n \t return '¨E' + charCodeToEscape + 'E';\n \t}\n\n \t/**\n \t * Callback used to escape characters when passing through String.replace\n \t * @static\n \t * @param {string} wholeMatch\n \t * @param {string} m1\n \t * @returns {string}\n \t */\n \tshowdown.helper.escapeCharactersCallback = escapeCharactersCallback;\n\n \t/**\n \t * Escape characters in a string\n \t * @static\n \t * @param {string} text\n \t * @param {string} charsToEscape\n \t * @param {boolean} afterBackslash\n \t * @returns {XML|string|void|*}\n \t */\n \tshowdown.helper.escapeCharacters = function (text, charsToEscape, afterBackslash) {\n \t // First we have to escape the escape characters so that\n \t // we can build a character class out of them\n \t var regexString = '([' + charsToEscape.replace(/([\\[\\]\\\\])/g, '\\\\$1') + '])';\n\n \t if (afterBackslash) {\n \t regexString = '\\\\\\\\' + regexString;\n \t }\n\n \t var regex = new RegExp(regexString, 'g');\n \t text = text.replace(regex, escapeCharactersCallback);\n\n \t return text;\n \t};\n\n \t/**\n \t * Unescape HTML entities\n \t * @param txt\n \t * @returns {string}\n \t */\n \tshowdown.helper.unescapeHTMLEntities = function (txt) {\n\n \t return txt\n \t .replace(/"/g, '\"')\n \t .replace(/</g, '<')\n \t .replace(/>/g, '>')\n \t .replace(/&/g, '&');\n \t};\n\n \tvar rgxFindMatchPos = function (str, left, right, flags) {\n \t var f = flags || '',\n \t g = f.indexOf('g') > -1,\n \t x = new RegExp(left + '|' + right, 'g' + f.replace(/g/g, '')),\n \t l = new RegExp(left, f.replace(/g/g, '')),\n \t pos = [],\n \t t, s, m, start, end;\n\n \t do {\n \t t = 0;\n \t while ((m = x.exec(str))) {\n \t if (l.test(m[0])) {\n \t if (!(t++)) {\n \t s = x.lastIndex;\n \t start = s - m[0].length;\n \t }\n \t } else if (t) {\n \t if (!--t) {\n \t end = m.index + m[0].length;\n \t var obj = {\n \t left: {start: start, end: s},\n \t match: {start: s, end: m.index},\n \t right: {start: m.index, end: end},\n \t wholeMatch: {start: start, end: end}\n \t };\n \t pos.push(obj);\n \t if (!g) {\n \t return pos;\n \t }\n \t }\n \t }\n \t }\n \t } while (t && (x.lastIndex = s));\n\n \t return pos;\n \t};\n\n \t/**\n \t * matchRecursiveRegExp\n \t *\n \t * (c) 2007 Steven Levithan \n \t * MIT License\n \t *\n \t * Accepts a string to search, a left and right format delimiter\n \t * as regex patterns, and optional regex flags. Returns an array\n \t * of matches, allowing nested instances of left/right delimiters.\n \t * Use the \"g\" flag to return all matches, otherwise only the\n \t * first is returned. Be careful to ensure that the left and\n \t * right format delimiters produce mutually exclusive matches.\n \t * Backreferences are not supported within the right delimiter\n \t * due to how it is internally combined with the left delimiter.\n \t * When matching strings whose format delimiters are unbalanced\n \t * to the left or right, the output is intentionally as a\n \t * conventional regex library with recursion support would\n \t * produce, e.g. \"<\" and \">\" both produce [\"x\"] when using\n \t * \"<\" and \">\" as the delimiters (both strings contain a single,\n \t * balanced instance of \"\").\n \t *\n \t * examples:\n \t * matchRecursiveRegExp(\"test\", \"\\\\(\", \"\\\\)\")\n \t * returns: []\n \t * matchRecursiveRegExp(\">>t<>\", \"<\", \">\", \"g\")\n \t * returns: [\"t<>\", \"\"]\n \t * matchRecursiveRegExp(\"
test
\", \"]*>\", \"\", \"gi\")\n \t * returns: [\"test\"]\n \t */\n \tshowdown.helper.matchRecursiveRegExp = function (str, left, right, flags) {\n\n \t var matchPos = rgxFindMatchPos (str, left, right, flags),\n \t results = [];\n\n \t for (var i = 0; i < matchPos.length; ++i) {\n \t results.push([\n \t str.slice(matchPos[i].wholeMatch.start, matchPos[i].wholeMatch.end),\n \t str.slice(matchPos[i].match.start, matchPos[i].match.end),\n \t str.slice(matchPos[i].left.start, matchPos[i].left.end),\n \t str.slice(matchPos[i].right.start, matchPos[i].right.end)\n \t ]);\n \t }\n \t return results;\n \t};\n\n \t/**\n \t *\n \t * @param {string} str\n \t * @param {string|function} replacement\n \t * @param {string} left\n \t * @param {string} right\n \t * @param {string} flags\n \t * @returns {string}\n \t */\n \tshowdown.helper.replaceRecursiveRegExp = function (str, replacement, left, right, flags) {\n\n \t if (!showdown.helper.isFunction(replacement)) {\n \t var repStr = replacement;\n \t replacement = function () {\n \t return repStr;\n \t };\n \t }\n\n \t var matchPos = rgxFindMatchPos(str, left, right, flags),\n \t finalStr = str,\n \t lng = matchPos.length;\n\n \t if (lng > 0) {\n \t var bits = [];\n \t if (matchPos[0].wholeMatch.start !== 0) {\n \t bits.push(str.slice(0, matchPos[0].wholeMatch.start));\n \t }\n \t for (var i = 0; i < lng; ++i) {\n \t bits.push(\n \t replacement(\n \t str.slice(matchPos[i].wholeMatch.start, matchPos[i].wholeMatch.end),\n \t str.slice(matchPos[i].match.start, matchPos[i].match.end),\n \t str.slice(matchPos[i].left.start, matchPos[i].left.end),\n \t str.slice(matchPos[i].right.start, matchPos[i].right.end)\n \t )\n \t );\n \t if (i < lng - 1) {\n \t bits.push(str.slice(matchPos[i].wholeMatch.end, matchPos[i + 1].wholeMatch.start));\n \t }\n \t }\n \t if (matchPos[lng - 1].wholeMatch.end < str.length) {\n \t bits.push(str.slice(matchPos[lng - 1].wholeMatch.end));\n \t }\n \t finalStr = bits.join('');\n \t }\n \t return finalStr;\n \t};\n\n \t/**\n \t * Returns the index within the passed String object of the first occurrence of the specified regex,\n \t * starting the search at fromIndex. Returns -1 if the value is not found.\n \t *\n \t * @param {string} str string to search\n \t * @param {RegExp} regex Regular expression to search\n \t * @param {int} [fromIndex = 0] Index to start the search\n \t * @returns {Number}\n \t * @throws InvalidArgumentError\n \t */\n \tshowdown.helper.regexIndexOf = function (str, regex, fromIndex) {\n \t if (!showdown.helper.isString(str)) {\n \t throw 'InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string';\n \t }\n \t if (regex instanceof RegExp === false) {\n \t throw 'InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp';\n \t }\n \t var indexOf = str.substring(fromIndex || 0).search(regex);\n \t return (indexOf >= 0) ? (indexOf + (fromIndex || 0)) : indexOf;\n \t};\n\n \t/**\n \t * Splits the passed string object at the defined index, and returns an array composed of the two substrings\n \t * @param {string} str string to split\n \t * @param {int} index index to split string at\n \t * @returns {[string,string]}\n \t * @throws InvalidArgumentError\n \t */\n \tshowdown.helper.splitAtIndex = function (str, index) {\n \t if (!showdown.helper.isString(str)) {\n \t throw 'InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string';\n \t }\n \t return [str.substring(0, index), str.substring(index)];\n \t};\n\n \t/**\n \t * Obfuscate an e-mail address through the use of Character Entities,\n \t * transforming ASCII characters into their equivalent decimal or hex entities.\n \t *\n \t * Since it has a random component, subsequent calls to this function produce different results\n \t *\n \t * @param {string} mail\n \t * @returns {string}\n \t */\n \tshowdown.helper.encodeEmailAddress = function (mail) {\n \t var encode = [\n \t function (ch) {\n \t return '&#' + ch.charCodeAt(0) + ';';\n \t },\n \t function (ch) {\n \t return '&#x' + ch.charCodeAt(0).toString(16) + ';';\n \t },\n \t function (ch) {\n \t return ch;\n \t }\n \t ];\n\n \t mail = mail.replace(/./g, function (ch) {\n \t if (ch === '@') {\n \t // this *must* be encoded. I insist.\n \t ch = encode[Math.floor(Math.random() * 2)](ch);\n \t } else {\n \t var r = Math.random();\n \t // roughly 10% raw, 45% hex, 45% dec\n \t ch = (\n \t r > 0.9 ? encode[2](ch) : r > 0.45 ? encode[1](ch) : encode[0](ch)\n \t );\n \t }\n \t return ch;\n \t });\n\n \t return mail;\n \t};\n\n \t/**\n \t *\n \t * @param str\n \t * @param targetLength\n \t * @param padString\n \t * @returns {string}\n \t */\n \tshowdown.helper.padEnd = function padEnd (str, targetLength, padString) {\n \t /*jshint bitwise: false*/\n \t // eslint-disable-next-line space-infix-ops\n \t targetLength = targetLength>>0; //floor if number or convert non-number to 0;\n \t /*jshint bitwise: true*/\n \t padString = String(padString || ' ');\n \t if (str.length > targetLength) {\n \t return String(str);\n \t } else {\n \t targetLength = targetLength - str.length;\n \t if (targetLength > padString.length) {\n \t padString += padString.repeat(targetLength / padString.length); //append to original to ensure we are longer than needed\n \t }\n \t return String(str) + padString.slice(0,targetLength);\n \t }\n \t};\n\n \t/**\n \t * POLYFILLS\n \t */\n \t// use this instead of builtin is undefined for IE8 compatibility\n \tif (typeof (console) === 'undefined') {\n \t console = {\n \t warn: function (msg) {\n \t alert(msg);\n \t },\n \t log: function (msg) {\n \t alert(msg);\n \t },\n \t error: function (msg) {\n \t throw msg;\n \t }\n \t };\n \t}\n\n \t/**\n \t * Common regexes.\n \t * We declare some common regexes to improve performance\n \t */\n \tshowdown.helper.regexes = {\n \t asteriskDashAndColon: /([*_:~])/g\n \t};\n\n \t/**\n \t * EMOJIS LIST\n \t */\n \tshowdown.helper.emojis = {\n \t '+1':'\\ud83d\\udc4d',\n \t '-1':'\\ud83d\\udc4e',\n \t '100':'\\ud83d\\udcaf',\n \t '1234':'\\ud83d\\udd22',\n \t '1st_place_medal':'\\ud83e\\udd47',\n \t '2nd_place_medal':'\\ud83e\\udd48',\n \t '3rd_place_medal':'\\ud83e\\udd49',\n \t '8ball':'\\ud83c\\udfb1',\n \t 'a':'\\ud83c\\udd70\\ufe0f',\n \t 'ab':'\\ud83c\\udd8e',\n \t 'abc':'\\ud83d\\udd24',\n \t 'abcd':'\\ud83d\\udd21',\n \t 'accept':'\\ud83c\\ude51',\n \t 'aerial_tramway':'\\ud83d\\udea1',\n \t 'airplane':'\\u2708\\ufe0f',\n \t 'alarm_clock':'\\u23f0',\n \t 'alembic':'\\u2697\\ufe0f',\n \t 'alien':'\\ud83d\\udc7d',\n \t 'ambulance':'\\ud83d\\ude91',\n \t 'amphora':'\\ud83c\\udffa',\n \t 'anchor':'\\u2693\\ufe0f',\n \t 'angel':'\\ud83d\\udc7c',\n \t 'anger':'\\ud83d\\udca2',\n \t 'angry':'\\ud83d\\ude20',\n \t 'anguished':'\\ud83d\\ude27',\n \t 'ant':'\\ud83d\\udc1c',\n \t 'apple':'\\ud83c\\udf4e',\n \t 'aquarius':'\\u2652\\ufe0f',\n \t 'aries':'\\u2648\\ufe0f',\n \t 'arrow_backward':'\\u25c0\\ufe0f',\n \t 'arrow_double_down':'\\u23ec',\n \t 'arrow_double_up':'\\u23eb',\n \t 'arrow_down':'\\u2b07\\ufe0f',\n \t 'arrow_down_small':'\\ud83d\\udd3d',\n \t 'arrow_forward':'\\u25b6\\ufe0f',\n \t 'arrow_heading_down':'\\u2935\\ufe0f',\n \t 'arrow_heading_up':'\\u2934\\ufe0f',\n \t 'arrow_left':'\\u2b05\\ufe0f',\n \t 'arrow_lower_left':'\\u2199\\ufe0f',\n \t 'arrow_lower_right':'\\u2198\\ufe0f',\n \t 'arrow_right':'\\u27a1\\ufe0f',\n \t 'arrow_right_hook':'\\u21aa\\ufe0f',\n \t 'arrow_up':'\\u2b06\\ufe0f',\n \t 'arrow_up_down':'\\u2195\\ufe0f',\n \t 'arrow_up_small':'\\ud83d\\udd3c',\n \t 'arrow_upper_left':'\\u2196\\ufe0f',\n \t 'arrow_upper_right':'\\u2197\\ufe0f',\n \t 'arrows_clockwise':'\\ud83d\\udd03',\n \t 'arrows_counterclockwise':'\\ud83d\\udd04',\n \t 'art':'\\ud83c\\udfa8',\n \t 'articulated_lorry':'\\ud83d\\ude9b',\n \t 'artificial_satellite':'\\ud83d\\udef0',\n \t 'astonished':'\\ud83d\\ude32',\n \t 'athletic_shoe':'\\ud83d\\udc5f',\n \t 'atm':'\\ud83c\\udfe7',\n \t 'atom_symbol':'\\u269b\\ufe0f',\n \t 'avocado':'\\ud83e\\udd51',\n \t 'b':'\\ud83c\\udd71\\ufe0f',\n \t 'baby':'\\ud83d\\udc76',\n \t 'baby_bottle':'\\ud83c\\udf7c',\n \t 'baby_chick':'\\ud83d\\udc24',\n \t 'baby_symbol':'\\ud83d\\udebc',\n \t 'back':'\\ud83d\\udd19',\n \t 'bacon':'\\ud83e\\udd53',\n \t 'badminton':'\\ud83c\\udff8',\n \t 'baggage_claim':'\\ud83d\\udec4',\n \t 'baguette_bread':'\\ud83e\\udd56',\n \t 'balance_scale':'\\u2696\\ufe0f',\n \t 'balloon':'\\ud83c\\udf88',\n \t 'ballot_box':'\\ud83d\\uddf3',\n \t 'ballot_box_with_check':'\\u2611\\ufe0f',\n \t 'bamboo':'\\ud83c\\udf8d',\n \t 'banana':'\\ud83c\\udf4c',\n \t 'bangbang':'\\u203c\\ufe0f',\n \t 'bank':'\\ud83c\\udfe6',\n \t 'bar_chart':'\\ud83d\\udcca',\n \t 'barber':'\\ud83d\\udc88',\n \t 'baseball':'\\u26be\\ufe0f',\n \t 'basketball':'\\ud83c\\udfc0',\n \t 'basketball_man':'\\u26f9\\ufe0f',\n \t 'basketball_woman':'\\u26f9\\ufe0f‍\\u2640\\ufe0f',\n \t 'bat':'\\ud83e\\udd87',\n \t 'bath':'\\ud83d\\udec0',\n \t 'bathtub':'\\ud83d\\udec1',\n \t 'battery':'\\ud83d\\udd0b',\n \t 'beach_umbrella':'\\ud83c\\udfd6',\n \t 'bear':'\\ud83d\\udc3b',\n \t 'bed':'\\ud83d\\udecf',\n \t 'bee':'\\ud83d\\udc1d',\n \t 'beer':'\\ud83c\\udf7a',\n \t 'beers':'\\ud83c\\udf7b',\n \t 'beetle':'\\ud83d\\udc1e',\n \t 'beginner':'\\ud83d\\udd30',\n \t 'bell':'\\ud83d\\udd14',\n \t 'bellhop_bell':'\\ud83d\\udece',\n \t 'bento':'\\ud83c\\udf71',\n \t 'biking_man':'\\ud83d\\udeb4',\n \t 'bike':'\\ud83d\\udeb2',\n \t 'biking_woman':'\\ud83d\\udeb4‍\\u2640\\ufe0f',\n \t 'bikini':'\\ud83d\\udc59',\n \t 'biohazard':'\\u2623\\ufe0f',\n \t 'bird':'\\ud83d\\udc26',\n \t 'birthday':'\\ud83c\\udf82',\n \t 'black_circle':'\\u26ab\\ufe0f',\n \t 'black_flag':'\\ud83c\\udff4',\n \t 'black_heart':'\\ud83d\\udda4',\n \t 'black_joker':'\\ud83c\\udccf',\n \t 'black_large_square':'\\u2b1b\\ufe0f',\n \t 'black_medium_small_square':'\\u25fe\\ufe0f',\n \t 'black_medium_square':'\\u25fc\\ufe0f',\n \t 'black_nib':'\\u2712\\ufe0f',\n \t 'black_small_square':'\\u25aa\\ufe0f',\n \t 'black_square_button':'\\ud83d\\udd32',\n \t 'blonde_man':'\\ud83d\\udc71',\n \t 'blonde_woman':'\\ud83d\\udc71‍\\u2640\\ufe0f',\n \t 'blossom':'\\ud83c\\udf3c',\n \t 'blowfish':'\\ud83d\\udc21',\n \t 'blue_book':'\\ud83d\\udcd8',\n \t 'blue_car':'\\ud83d\\ude99',\n \t 'blue_heart':'\\ud83d\\udc99',\n \t 'blush':'\\ud83d\\ude0a',\n \t 'boar':'\\ud83d\\udc17',\n \t 'boat':'\\u26f5\\ufe0f',\n \t 'bomb':'\\ud83d\\udca3',\n \t 'book':'\\ud83d\\udcd6',\n \t 'bookmark':'\\ud83d\\udd16',\n \t 'bookmark_tabs':'\\ud83d\\udcd1',\n \t 'books':'\\ud83d\\udcda',\n \t 'boom':'\\ud83d\\udca5',\n \t 'boot':'\\ud83d\\udc62',\n \t 'bouquet':'\\ud83d\\udc90',\n \t 'bowing_man':'\\ud83d\\ude47',\n \t 'bow_and_arrow':'\\ud83c\\udff9',\n \t 'bowing_woman':'\\ud83d\\ude47‍\\u2640\\ufe0f',\n \t 'bowling':'\\ud83c\\udfb3',\n \t 'boxing_glove':'\\ud83e\\udd4a',\n \t 'boy':'\\ud83d\\udc66',\n \t 'bread':'\\ud83c\\udf5e',\n \t 'bride_with_veil':'\\ud83d\\udc70',\n \t 'bridge_at_night':'\\ud83c\\udf09',\n \t 'briefcase':'\\ud83d\\udcbc',\n \t 'broken_heart':'\\ud83d\\udc94',\n \t 'bug':'\\ud83d\\udc1b',\n \t 'building_construction':'\\ud83c\\udfd7',\n \t 'bulb':'\\ud83d\\udca1',\n \t 'bullettrain_front':'\\ud83d\\ude85',\n \t 'bullettrain_side':'\\ud83d\\ude84',\n \t 'burrito':'\\ud83c\\udf2f',\n \t 'bus':'\\ud83d\\ude8c',\n \t 'business_suit_levitating':'\\ud83d\\udd74',\n \t 'busstop':'\\ud83d\\ude8f',\n \t 'bust_in_silhouette':'\\ud83d\\udc64',\n \t 'busts_in_silhouette':'\\ud83d\\udc65',\n \t 'butterfly':'\\ud83e\\udd8b',\n \t 'cactus':'\\ud83c\\udf35',\n \t 'cake':'\\ud83c\\udf70',\n \t 'calendar':'\\ud83d\\udcc6',\n \t 'call_me_hand':'\\ud83e\\udd19',\n \t 'calling':'\\ud83d\\udcf2',\n \t 'camel':'\\ud83d\\udc2b',\n \t 'camera':'\\ud83d\\udcf7',\n \t 'camera_flash':'\\ud83d\\udcf8',\n \t 'camping':'\\ud83c\\udfd5',\n \t 'cancer':'\\u264b\\ufe0f',\n \t 'candle':'\\ud83d\\udd6f',\n \t 'candy':'\\ud83c\\udf6c',\n \t 'canoe':'\\ud83d\\udef6',\n \t 'capital_abcd':'\\ud83d\\udd20',\n \t 'capricorn':'\\u2651\\ufe0f',\n \t 'car':'\\ud83d\\ude97',\n \t 'card_file_box':'\\ud83d\\uddc3',\n \t 'card_index':'\\ud83d\\udcc7',\n \t 'card_index_dividers':'\\ud83d\\uddc2',\n \t 'carousel_horse':'\\ud83c\\udfa0',\n \t 'carrot':'\\ud83e\\udd55',\n \t 'cat':'\\ud83d\\udc31',\n \t 'cat2':'\\ud83d\\udc08',\n \t 'cd':'\\ud83d\\udcbf',\n \t 'chains':'\\u26d3',\n \t 'champagne':'\\ud83c\\udf7e',\n \t 'chart':'\\ud83d\\udcb9',\n \t 'chart_with_downwards_trend':'\\ud83d\\udcc9',\n \t 'chart_with_upwards_trend':'\\ud83d\\udcc8',\n \t 'checkered_flag':'\\ud83c\\udfc1',\n \t 'cheese':'\\ud83e\\uddc0',\n \t 'cherries':'\\ud83c\\udf52',\n \t 'cherry_blossom':'\\ud83c\\udf38',\n \t 'chestnut':'\\ud83c\\udf30',\n \t 'chicken':'\\ud83d\\udc14',\n \t 'children_crossing':'\\ud83d\\udeb8',\n \t 'chipmunk':'\\ud83d\\udc3f',\n \t 'chocolate_bar':'\\ud83c\\udf6b',\n \t 'christmas_tree':'\\ud83c\\udf84',\n \t 'church':'\\u26ea\\ufe0f',\n \t 'cinema':'\\ud83c\\udfa6',\n \t 'circus_tent':'\\ud83c\\udfaa',\n \t 'city_sunrise':'\\ud83c\\udf07',\n \t 'city_sunset':'\\ud83c\\udf06',\n \t 'cityscape':'\\ud83c\\udfd9',\n \t 'cl':'\\ud83c\\udd91',\n \t 'clamp':'\\ud83d\\udddc',\n \t 'clap':'\\ud83d\\udc4f',\n \t 'clapper':'\\ud83c\\udfac',\n \t 'classical_building':'\\ud83c\\udfdb',\n \t 'clinking_glasses':'\\ud83e\\udd42',\n \t 'clipboard':'\\ud83d\\udccb',\n \t 'clock1':'\\ud83d\\udd50',\n \t 'clock10':'\\ud83d\\udd59',\n \t 'clock1030':'\\ud83d\\udd65',\n \t 'clock11':'\\ud83d\\udd5a',\n \t 'clock1130':'\\ud83d\\udd66',\n \t 'clock12':'\\ud83d\\udd5b',\n \t 'clock1230':'\\ud83d\\udd67',\n \t 'clock130':'\\ud83d\\udd5c',\n \t 'clock2':'\\ud83d\\udd51',\n \t 'clock230':'\\ud83d\\udd5d',\n \t 'clock3':'\\ud83d\\udd52',\n \t 'clock330':'\\ud83d\\udd5e',\n \t 'clock4':'\\ud83d\\udd53',\n \t 'clock430':'\\ud83d\\udd5f',\n \t 'clock5':'\\ud83d\\udd54',\n \t 'clock530':'\\ud83d\\udd60',\n \t 'clock6':'\\ud83d\\udd55',\n \t 'clock630':'\\ud83d\\udd61',\n \t 'clock7':'\\ud83d\\udd56',\n \t 'clock730':'\\ud83d\\udd62',\n \t 'clock8':'\\ud83d\\udd57',\n \t 'clock830':'\\ud83d\\udd63',\n \t 'clock9':'\\ud83d\\udd58',\n \t 'clock930':'\\ud83d\\udd64',\n \t 'closed_book':'\\ud83d\\udcd5',\n \t 'closed_lock_with_key':'\\ud83d\\udd10',\n \t 'closed_umbrella':'\\ud83c\\udf02',\n \t 'cloud':'\\u2601\\ufe0f',\n \t 'cloud_with_lightning':'\\ud83c\\udf29',\n \t 'cloud_with_lightning_and_rain':'\\u26c8',\n \t 'cloud_with_rain':'\\ud83c\\udf27',\n \t 'cloud_with_snow':'\\ud83c\\udf28',\n \t 'clown_face':'\\ud83e\\udd21',\n \t 'clubs':'\\u2663\\ufe0f',\n \t 'cocktail':'\\ud83c\\udf78',\n \t 'coffee':'\\u2615\\ufe0f',\n \t 'coffin':'\\u26b0\\ufe0f',\n \t 'cold_sweat':'\\ud83d\\ude30',\n \t 'comet':'\\u2604\\ufe0f',\n \t 'computer':'\\ud83d\\udcbb',\n \t 'computer_mouse':'\\ud83d\\uddb1',\n \t 'confetti_ball':'\\ud83c\\udf8a',\n \t 'confounded':'\\ud83d\\ude16',\n \t 'confused':'\\ud83d\\ude15',\n \t 'congratulations':'\\u3297\\ufe0f',\n \t 'construction':'\\ud83d\\udea7',\n \t 'construction_worker_man':'\\ud83d\\udc77',\n \t 'construction_worker_woman':'\\ud83d\\udc77‍\\u2640\\ufe0f',\n \t 'control_knobs':'\\ud83c\\udf9b',\n \t 'convenience_store':'\\ud83c\\udfea',\n \t 'cookie':'\\ud83c\\udf6a',\n \t 'cool':'\\ud83c\\udd92',\n \t 'policeman':'\\ud83d\\udc6e',\n \t 'copyright':'\\u00a9\\ufe0f',\n \t 'corn':'\\ud83c\\udf3d',\n \t 'couch_and_lamp':'\\ud83d\\udecb',\n \t 'couple':'\\ud83d\\udc6b',\n \t 'couple_with_heart_woman_man':'\\ud83d\\udc91',\n \t 'couple_with_heart_man_man':'\\ud83d\\udc68‍\\u2764\\ufe0f‍\\ud83d\\udc68',\n \t 'couple_with_heart_woman_woman':'\\ud83d\\udc69‍\\u2764\\ufe0f‍\\ud83d\\udc69',\n \t 'couplekiss_man_man':'\\ud83d\\udc68‍\\u2764\\ufe0f‍\\ud83d\\udc8b‍\\ud83d\\udc68',\n \t 'couplekiss_man_woman':'\\ud83d\\udc8f',\n \t 'couplekiss_woman_woman':'\\ud83d\\udc69‍\\u2764\\ufe0f‍\\ud83d\\udc8b‍\\ud83d\\udc69',\n \t 'cow':'\\ud83d\\udc2e',\n \t 'cow2':'\\ud83d\\udc04',\n \t 'cowboy_hat_face':'\\ud83e\\udd20',\n \t 'crab':'\\ud83e\\udd80',\n \t 'crayon':'\\ud83d\\udd8d',\n \t 'credit_card':'\\ud83d\\udcb3',\n \t 'crescent_moon':'\\ud83c\\udf19',\n \t 'cricket':'\\ud83c\\udfcf',\n \t 'crocodile':'\\ud83d\\udc0a',\n \t 'croissant':'\\ud83e\\udd50',\n \t 'crossed_fingers':'\\ud83e\\udd1e',\n \t 'crossed_flags':'\\ud83c\\udf8c',\n \t 'crossed_swords':'\\u2694\\ufe0f',\n \t 'crown':'\\ud83d\\udc51',\n \t 'cry':'\\ud83d\\ude22',\n \t 'crying_cat_face':'\\ud83d\\ude3f',\n \t 'crystal_ball':'\\ud83d\\udd2e',\n \t 'cucumber':'\\ud83e\\udd52',\n \t 'cupid':'\\ud83d\\udc98',\n \t 'curly_loop':'\\u27b0',\n \t 'currency_exchange':'\\ud83d\\udcb1',\n \t 'curry':'\\ud83c\\udf5b',\n \t 'custard':'\\ud83c\\udf6e',\n \t 'customs':'\\ud83d\\udec3',\n \t 'cyclone':'\\ud83c\\udf00',\n \t 'dagger':'\\ud83d\\udde1',\n \t 'dancer':'\\ud83d\\udc83',\n \t 'dancing_women':'\\ud83d\\udc6f',\n \t 'dancing_men':'\\ud83d\\udc6f‍\\u2642\\ufe0f',\n \t 'dango':'\\ud83c\\udf61',\n \t 'dark_sunglasses':'\\ud83d\\udd76',\n \t 'dart':'\\ud83c\\udfaf',\n \t 'dash':'\\ud83d\\udca8',\n \t 'date':'\\ud83d\\udcc5',\n \t 'deciduous_tree':'\\ud83c\\udf33',\n \t 'deer':'\\ud83e\\udd8c',\n \t 'department_store':'\\ud83c\\udfec',\n \t 'derelict_house':'\\ud83c\\udfda',\n \t 'desert':'\\ud83c\\udfdc',\n \t 'desert_island':'\\ud83c\\udfdd',\n \t 'desktop_computer':'\\ud83d\\udda5',\n \t 'male_detective':'\\ud83d\\udd75\\ufe0f',\n \t 'diamond_shape_with_a_dot_inside':'\\ud83d\\udca0',\n \t 'diamonds':'\\u2666\\ufe0f',\n \t 'disappointed':'\\ud83d\\ude1e',\n \t 'disappointed_relieved':'\\ud83d\\ude25',\n \t 'dizzy':'\\ud83d\\udcab',\n \t 'dizzy_face':'\\ud83d\\ude35',\n \t 'do_not_litter':'\\ud83d\\udeaf',\n \t 'dog':'\\ud83d\\udc36',\n \t 'dog2':'\\ud83d\\udc15',\n \t 'dollar':'\\ud83d\\udcb5',\n \t 'dolls':'\\ud83c\\udf8e',\n \t 'dolphin':'\\ud83d\\udc2c',\n \t 'door':'\\ud83d\\udeaa',\n \t 'doughnut':'\\ud83c\\udf69',\n \t 'dove':'\\ud83d\\udd4a',\n \t 'dragon':'\\ud83d\\udc09',\n \t 'dragon_face':'\\ud83d\\udc32',\n \t 'dress':'\\ud83d\\udc57',\n \t 'dromedary_camel':'\\ud83d\\udc2a',\n \t 'drooling_face':'\\ud83e\\udd24',\n \t 'droplet':'\\ud83d\\udca7',\n \t 'drum':'\\ud83e\\udd41',\n \t 'duck':'\\ud83e\\udd86',\n \t 'dvd':'\\ud83d\\udcc0',\n \t 'e-mail':'\\ud83d\\udce7',\n \t 'eagle':'\\ud83e\\udd85',\n \t 'ear':'\\ud83d\\udc42',\n \t 'ear_of_rice':'\\ud83c\\udf3e',\n \t 'earth_africa':'\\ud83c\\udf0d',\n \t 'earth_americas':'\\ud83c\\udf0e',\n \t 'earth_asia':'\\ud83c\\udf0f',\n \t 'egg':'\\ud83e\\udd5a',\n \t 'eggplant':'\\ud83c\\udf46',\n \t 'eight_pointed_black_star':'\\u2734\\ufe0f',\n \t 'eight_spoked_asterisk':'\\u2733\\ufe0f',\n \t 'electric_plug':'\\ud83d\\udd0c',\n \t 'elephant':'\\ud83d\\udc18',\n \t 'email':'\\u2709\\ufe0f',\n \t 'end':'\\ud83d\\udd1a',\n \t 'envelope_with_arrow':'\\ud83d\\udce9',\n \t 'euro':'\\ud83d\\udcb6',\n \t 'european_castle':'\\ud83c\\udff0',\n \t 'european_post_office':'\\ud83c\\udfe4',\n \t 'evergreen_tree':'\\ud83c\\udf32',\n \t 'exclamation':'\\u2757\\ufe0f',\n \t 'expressionless':'\\ud83d\\ude11',\n \t 'eye':'\\ud83d\\udc41',\n \t 'eye_speech_bubble':'\\ud83d\\udc41‍\\ud83d\\udde8',\n \t 'eyeglasses':'\\ud83d\\udc53',\n \t 'eyes':'\\ud83d\\udc40',\n \t 'face_with_head_bandage':'\\ud83e\\udd15',\n \t 'face_with_thermometer':'\\ud83e\\udd12',\n \t 'fist_oncoming':'\\ud83d\\udc4a',\n \t 'factory':'\\ud83c\\udfed',\n \t 'fallen_leaf':'\\ud83c\\udf42',\n \t 'family_man_woman_boy':'\\ud83d\\udc6a',\n \t 'family_man_boy':'\\ud83d\\udc68‍\\ud83d\\udc66',\n \t 'family_man_boy_boy':'\\ud83d\\udc68‍\\ud83d\\udc66‍\\ud83d\\udc66',\n \t 'family_man_girl':'\\ud83d\\udc68‍\\ud83d\\udc67',\n \t 'family_man_girl_boy':'\\ud83d\\udc68‍\\ud83d\\udc67‍\\ud83d\\udc66',\n \t 'family_man_girl_girl':'\\ud83d\\udc68‍\\ud83d\\udc67‍\\ud83d\\udc67',\n \t 'family_man_man_boy':'\\ud83d\\udc68‍\\ud83d\\udc68‍\\ud83d\\udc66',\n \t 'family_man_man_boy_boy':'\\ud83d\\udc68‍\\ud83d\\udc68‍\\ud83d\\udc66‍\\ud83d\\udc66',\n \t 'family_man_man_girl':'\\ud83d\\udc68‍\\ud83d\\udc68‍\\ud83d\\udc67',\n \t 'family_man_man_girl_boy':'\\ud83d\\udc68‍\\ud83d\\udc68‍\\ud83d\\udc67‍\\ud83d\\udc66',\n \t 'family_man_man_girl_girl':'\\ud83d\\udc68‍\\ud83d\\udc68‍\\ud83d\\udc67‍\\ud83d\\udc67',\n \t 'family_man_woman_boy_boy':'\\ud83d\\udc68‍\\ud83d\\udc69‍\\ud83d\\udc66‍\\ud83d\\udc66',\n \t 'family_man_woman_girl':'\\ud83d\\udc68‍\\ud83d\\udc69‍\\ud83d\\udc67',\n \t 'family_man_woman_girl_boy':'\\ud83d\\udc68‍\\ud83d\\udc69‍\\ud83d\\udc67‍\\ud83d\\udc66',\n \t 'family_man_woman_girl_girl':'\\ud83d\\udc68‍\\ud83d\\udc69‍\\ud83d\\udc67‍\\ud83d\\udc67',\n \t 'family_woman_boy':'\\ud83d\\udc69‍\\ud83d\\udc66',\n \t 'family_woman_boy_boy':'\\ud83d\\udc69‍\\ud83d\\udc66‍\\ud83d\\udc66',\n \t 'family_woman_girl':'\\ud83d\\udc69‍\\ud83d\\udc67',\n \t 'family_woman_girl_boy':'\\ud83d\\udc69‍\\ud83d\\udc67‍\\ud83d\\udc66',\n \t 'family_woman_girl_girl':'\\ud83d\\udc69‍\\ud83d\\udc67‍\\ud83d\\udc67',\n \t 'family_woman_woman_boy':'\\ud83d\\udc69‍\\ud83d\\udc69‍\\ud83d\\udc66',\n \t 'family_woman_woman_boy_boy':'\\ud83d\\udc69‍\\ud83d\\udc69‍\\ud83d\\udc66‍\\ud83d\\udc66',\n \t 'family_woman_woman_girl':'\\ud83d\\udc69‍\\ud83d\\udc69‍\\ud83d\\udc67',\n \t 'family_woman_woman_girl_boy':'\\ud83d\\udc69‍\\ud83d\\udc69‍\\ud83d\\udc67‍\\ud83d\\udc66',\n \t 'family_woman_woman_girl_girl':'\\ud83d\\udc69‍\\ud83d\\udc69‍\\ud83d\\udc67‍\\ud83d\\udc67',\n \t 'fast_forward':'\\u23e9',\n \t 'fax':'\\ud83d\\udce0',\n \t 'fearful':'\\ud83d\\ude28',\n \t 'feet':'\\ud83d\\udc3e',\n \t 'female_detective':'\\ud83d\\udd75\\ufe0f‍\\u2640\\ufe0f',\n \t 'ferris_wheel':'\\ud83c\\udfa1',\n \t 'ferry':'\\u26f4',\n \t 'field_hockey':'\\ud83c\\udfd1',\n \t 'file_cabinet':'\\ud83d\\uddc4',\n \t 'file_folder':'\\ud83d\\udcc1',\n \t 'film_projector':'\\ud83d\\udcfd',\n \t 'film_strip':'\\ud83c\\udf9e',\n \t 'fire':'\\ud83d\\udd25',\n \t 'fire_engine':'\\ud83d\\ude92',\n \t 'fireworks':'\\ud83c\\udf86',\n \t 'first_quarter_moon':'\\ud83c\\udf13',\n \t 'first_quarter_moon_with_face':'\\ud83c\\udf1b',\n \t 'fish':'\\ud83d\\udc1f',\n \t 'fish_cake':'\\ud83c\\udf65',\n \t 'fishing_pole_and_fish':'\\ud83c\\udfa3',\n \t 'fist_raised':'\\u270a',\n \t 'fist_left':'\\ud83e\\udd1b',\n \t 'fist_right':'\\ud83e\\udd1c',\n \t 'flags':'\\ud83c\\udf8f',\n \t 'flashlight':'\\ud83d\\udd26',\n \t 'fleur_de_lis':'\\u269c\\ufe0f',\n \t 'flight_arrival':'\\ud83d\\udeec',\n \t 'flight_departure':'\\ud83d\\udeeb',\n \t 'floppy_disk':'\\ud83d\\udcbe',\n \t 'flower_playing_cards':'\\ud83c\\udfb4',\n \t 'flushed':'\\ud83d\\ude33',\n \t 'fog':'\\ud83c\\udf2b',\n \t 'foggy':'\\ud83c\\udf01',\n \t 'football':'\\ud83c\\udfc8',\n \t 'footprints':'\\ud83d\\udc63',\n \t 'fork_and_knife':'\\ud83c\\udf74',\n \t 'fountain':'\\u26f2\\ufe0f',\n \t 'fountain_pen':'\\ud83d\\udd8b',\n \t 'four_leaf_clover':'\\ud83c\\udf40',\n \t 'fox_face':'\\ud83e\\udd8a',\n \t 'framed_picture':'\\ud83d\\uddbc',\n \t 'free':'\\ud83c\\udd93',\n \t 'fried_egg':'\\ud83c\\udf73',\n \t 'fried_shrimp':'\\ud83c\\udf64',\n \t 'fries':'\\ud83c\\udf5f',\n \t 'frog':'\\ud83d\\udc38',\n \t 'frowning':'\\ud83d\\ude26',\n \t 'frowning_face':'\\u2639\\ufe0f',\n \t 'frowning_man':'\\ud83d\\ude4d‍\\u2642\\ufe0f',\n \t 'frowning_woman':'\\ud83d\\ude4d',\n \t 'middle_finger':'\\ud83d\\udd95',\n \t 'fuelpump':'\\u26fd\\ufe0f',\n \t 'full_moon':'\\ud83c\\udf15',\n \t 'full_moon_with_face':'\\ud83c\\udf1d',\n \t 'funeral_urn':'\\u26b1\\ufe0f',\n \t 'game_die':'\\ud83c\\udfb2',\n \t 'gear':'\\u2699\\ufe0f',\n \t 'gem':'\\ud83d\\udc8e',\n \t 'gemini':'\\u264a\\ufe0f',\n \t 'ghost':'\\ud83d\\udc7b',\n \t 'gift':'\\ud83c\\udf81',\n \t 'gift_heart':'\\ud83d\\udc9d',\n \t 'girl':'\\ud83d\\udc67',\n \t 'globe_with_meridians':'\\ud83c\\udf10',\n \t 'goal_net':'\\ud83e\\udd45',\n \t 'goat':'\\ud83d\\udc10',\n \t 'golf':'\\u26f3\\ufe0f',\n \t 'golfing_man':'\\ud83c\\udfcc\\ufe0f',\n \t 'golfing_woman':'\\ud83c\\udfcc\\ufe0f‍\\u2640\\ufe0f',\n \t 'gorilla':'\\ud83e\\udd8d',\n \t 'grapes':'\\ud83c\\udf47',\n \t 'green_apple':'\\ud83c\\udf4f',\n \t 'green_book':'\\ud83d\\udcd7',\n \t 'green_heart':'\\ud83d\\udc9a',\n \t 'green_salad':'\\ud83e\\udd57',\n \t 'grey_exclamation':'\\u2755',\n \t 'grey_question':'\\u2754',\n \t 'grimacing':'\\ud83d\\ude2c',\n \t 'grin':'\\ud83d\\ude01',\n \t 'grinning':'\\ud83d\\ude00',\n \t 'guardsman':'\\ud83d\\udc82',\n \t 'guardswoman':'\\ud83d\\udc82‍\\u2640\\ufe0f',\n \t 'guitar':'\\ud83c\\udfb8',\n \t 'gun':'\\ud83d\\udd2b',\n \t 'haircut_woman':'\\ud83d\\udc87',\n \t 'haircut_man':'\\ud83d\\udc87‍\\u2642\\ufe0f',\n \t 'hamburger':'\\ud83c\\udf54',\n \t 'hammer':'\\ud83d\\udd28',\n \t 'hammer_and_pick':'\\u2692',\n \t 'hammer_and_wrench':'\\ud83d\\udee0',\n \t 'hamster':'\\ud83d\\udc39',\n \t 'hand':'\\u270b',\n \t 'handbag':'\\ud83d\\udc5c',\n \t 'handshake':'\\ud83e\\udd1d',\n \t 'hankey':'\\ud83d\\udca9',\n \t 'hatched_chick':'\\ud83d\\udc25',\n \t 'hatching_chick':'\\ud83d\\udc23',\n \t 'headphones':'\\ud83c\\udfa7',\n \t 'hear_no_evil':'\\ud83d\\ude49',\n \t 'heart':'\\u2764\\ufe0f',\n \t 'heart_decoration':'\\ud83d\\udc9f',\n \t 'heart_eyes':'\\ud83d\\ude0d',\n \t 'heart_eyes_cat':'\\ud83d\\ude3b',\n \t 'heartbeat':'\\ud83d\\udc93',\n \t 'heartpulse':'\\ud83d\\udc97',\n \t 'hearts':'\\u2665\\ufe0f',\n \t 'heavy_check_mark':'\\u2714\\ufe0f',\n \t 'heavy_division_sign':'\\u2797',\n \t 'heavy_dollar_sign':'\\ud83d\\udcb2',\n \t 'heavy_heart_exclamation':'\\u2763\\ufe0f',\n \t 'heavy_minus_sign':'\\u2796',\n \t 'heavy_multiplication_x':'\\u2716\\ufe0f',\n \t 'heavy_plus_sign':'\\u2795',\n \t 'helicopter':'\\ud83d\\ude81',\n \t 'herb':'\\ud83c\\udf3f',\n \t 'hibiscus':'\\ud83c\\udf3a',\n \t 'high_brightness':'\\ud83d\\udd06',\n \t 'high_heel':'\\ud83d\\udc60',\n \t 'hocho':'\\ud83d\\udd2a',\n \t 'hole':'\\ud83d\\udd73',\n \t 'honey_pot':'\\ud83c\\udf6f',\n \t 'horse':'\\ud83d\\udc34',\n \t 'horse_racing':'\\ud83c\\udfc7',\n \t 'hospital':'\\ud83c\\udfe5',\n \t 'hot_pepper':'\\ud83c\\udf36',\n \t 'hotdog':'\\ud83c\\udf2d',\n \t 'hotel':'\\ud83c\\udfe8',\n \t 'hotsprings':'\\u2668\\ufe0f',\n \t 'hourglass':'\\u231b\\ufe0f',\n \t 'hourglass_flowing_sand':'\\u23f3',\n \t 'house':'\\ud83c\\udfe0',\n \t 'house_with_garden':'\\ud83c\\udfe1',\n \t 'houses':'\\ud83c\\udfd8',\n \t 'hugs':'\\ud83e\\udd17',\n \t 'hushed':'\\ud83d\\ude2f',\n \t 'ice_cream':'\\ud83c\\udf68',\n \t 'ice_hockey':'\\ud83c\\udfd2',\n \t 'ice_skate':'\\u26f8',\n \t 'icecream':'\\ud83c\\udf66',\n \t 'id':'\\ud83c\\udd94',\n \t 'ideograph_advantage':'\\ud83c\\ude50',\n \t 'imp':'\\ud83d\\udc7f',\n \t 'inbox_tray':'\\ud83d\\udce5',\n \t 'incoming_envelope':'\\ud83d\\udce8',\n \t 'tipping_hand_woman':'\\ud83d\\udc81',\n \t 'information_source':'\\u2139\\ufe0f',\n \t 'innocent':'\\ud83d\\ude07',\n \t 'interrobang':'\\u2049\\ufe0f',\n \t 'iphone':'\\ud83d\\udcf1',\n \t 'izakaya_lantern':'\\ud83c\\udfee',\n \t 'jack_o_lantern':'\\ud83c\\udf83',\n \t 'japan':'\\ud83d\\uddfe',\n \t 'japanese_castle':'\\ud83c\\udfef',\n \t 'japanese_goblin':'\\ud83d\\udc7a',\n \t 'japanese_ogre':'\\ud83d\\udc79',\n \t 'jeans':'\\ud83d\\udc56',\n \t 'joy':'\\ud83d\\ude02',\n \t 'joy_cat':'\\ud83d\\ude39',\n \t 'joystick':'\\ud83d\\udd79',\n \t 'kaaba':'\\ud83d\\udd4b',\n \t 'key':'\\ud83d\\udd11',\n \t 'keyboard':'\\u2328\\ufe0f',\n \t 'keycap_ten':'\\ud83d\\udd1f',\n \t 'kick_scooter':'\\ud83d\\udef4',\n \t 'kimono':'\\ud83d\\udc58',\n \t 'kiss':'\\ud83d\\udc8b',\n \t 'kissing':'\\ud83d\\ude17',\n \t 'kissing_cat':'\\ud83d\\ude3d',\n \t 'kissing_closed_eyes':'\\ud83d\\ude1a',\n \t 'kissing_heart':'\\ud83d\\ude18',\n \t 'kissing_smiling_eyes':'\\ud83d\\ude19',\n \t 'kiwi_fruit':'\\ud83e\\udd5d',\n \t 'koala':'\\ud83d\\udc28',\n \t 'koko':'\\ud83c\\ude01',\n \t 'label':'\\ud83c\\udff7',\n \t 'large_blue_circle':'\\ud83d\\udd35',\n \t 'large_blue_diamond':'\\ud83d\\udd37',\n \t 'large_orange_diamond':'\\ud83d\\udd36',\n \t 'last_quarter_moon':'\\ud83c\\udf17',\n \t 'last_quarter_moon_with_face':'\\ud83c\\udf1c',\n \t 'latin_cross':'\\u271d\\ufe0f',\n \t 'laughing':'\\ud83d\\ude06',\n \t 'leaves':'\\ud83c\\udf43',\n \t 'ledger':'\\ud83d\\udcd2',\n \t 'left_luggage':'\\ud83d\\udec5',\n \t 'left_right_arrow':'\\u2194\\ufe0f',\n \t 'leftwards_arrow_with_hook':'\\u21a9\\ufe0f',\n \t 'lemon':'\\ud83c\\udf4b',\n \t 'leo':'\\u264c\\ufe0f',\n \t 'leopard':'\\ud83d\\udc06',\n \t 'level_slider':'\\ud83c\\udf9a',\n \t 'libra':'\\u264e\\ufe0f',\n \t 'light_rail':'\\ud83d\\ude88',\n \t 'link':'\\ud83d\\udd17',\n \t 'lion':'\\ud83e\\udd81',\n \t 'lips':'\\ud83d\\udc44',\n \t 'lipstick':'\\ud83d\\udc84',\n \t 'lizard':'\\ud83e\\udd8e',\n \t 'lock':'\\ud83d\\udd12',\n \t 'lock_with_ink_pen':'\\ud83d\\udd0f',\n \t 'lollipop':'\\ud83c\\udf6d',\n \t 'loop':'\\u27bf',\n \t 'loud_sound':'\\ud83d\\udd0a',\n \t 'loudspeaker':'\\ud83d\\udce2',\n \t 'love_hotel':'\\ud83c\\udfe9',\n \t 'love_letter':'\\ud83d\\udc8c',\n \t 'low_brightness':'\\ud83d\\udd05',\n \t 'lying_face':'\\ud83e\\udd25',\n \t 'm':'\\u24c2\\ufe0f',\n \t 'mag':'\\ud83d\\udd0d',\n \t 'mag_right':'\\ud83d\\udd0e',\n \t 'mahjong':'\\ud83c\\udc04\\ufe0f',\n \t 'mailbox':'\\ud83d\\udceb',\n \t 'mailbox_closed':'\\ud83d\\udcea',\n \t 'mailbox_with_mail':'\\ud83d\\udcec',\n \t 'mailbox_with_no_mail':'\\ud83d\\udced',\n \t 'man':'\\ud83d\\udc68',\n \t 'man_artist':'\\ud83d\\udc68‍\\ud83c\\udfa8',\n \t 'man_astronaut':'\\ud83d\\udc68‍\\ud83d\\ude80',\n \t 'man_cartwheeling':'\\ud83e\\udd38‍\\u2642\\ufe0f',\n \t 'man_cook':'\\ud83d\\udc68‍\\ud83c\\udf73',\n \t 'man_dancing':'\\ud83d\\udd7a',\n \t 'man_facepalming':'\\ud83e\\udd26‍\\u2642\\ufe0f',\n \t 'man_factory_worker':'\\ud83d\\udc68‍\\ud83c\\udfed',\n \t 'man_farmer':'\\ud83d\\udc68‍\\ud83c\\udf3e',\n \t 'man_firefighter':'\\ud83d\\udc68‍\\ud83d\\ude92',\n \t 'man_health_worker':'\\ud83d\\udc68‍\\u2695\\ufe0f',\n \t 'man_in_tuxedo':'\\ud83e\\udd35',\n \t 'man_judge':'\\ud83d\\udc68‍\\u2696\\ufe0f',\n \t 'man_juggling':'\\ud83e\\udd39‍\\u2642\\ufe0f',\n \t 'man_mechanic':'\\ud83d\\udc68‍\\ud83d\\udd27',\n \t 'man_office_worker':'\\ud83d\\udc68‍\\ud83d\\udcbc',\n \t 'man_pilot':'\\ud83d\\udc68‍\\u2708\\ufe0f',\n \t 'man_playing_handball':'\\ud83e\\udd3e‍\\u2642\\ufe0f',\n \t 'man_playing_water_polo':'\\ud83e\\udd3d‍\\u2642\\ufe0f',\n \t 'man_scientist':'\\ud83d\\udc68‍\\ud83d\\udd2c',\n \t 'man_shrugging':'\\ud83e\\udd37‍\\u2642\\ufe0f',\n \t 'man_singer':'\\ud83d\\udc68‍\\ud83c\\udfa4',\n \t 'man_student':'\\ud83d\\udc68‍\\ud83c\\udf93',\n \t 'man_teacher':'\\ud83d\\udc68‍\\ud83c\\udfeb',\n \t 'man_technologist':'\\ud83d\\udc68‍\\ud83d\\udcbb',\n \t 'man_with_gua_pi_mao':'\\ud83d\\udc72',\n \t 'man_with_turban':'\\ud83d\\udc73',\n \t 'tangerine':'\\ud83c\\udf4a',\n \t 'mans_shoe':'\\ud83d\\udc5e',\n \t 'mantelpiece_clock':'\\ud83d\\udd70',\n \t 'maple_leaf':'\\ud83c\\udf41',\n \t 'martial_arts_uniform':'\\ud83e\\udd4b',\n \t 'mask':'\\ud83d\\ude37',\n \t 'massage_woman':'\\ud83d\\udc86',\n \t 'massage_man':'\\ud83d\\udc86‍\\u2642\\ufe0f',\n \t 'meat_on_bone':'\\ud83c\\udf56',\n \t 'medal_military':'\\ud83c\\udf96',\n \t 'medal_sports':'\\ud83c\\udfc5',\n \t 'mega':'\\ud83d\\udce3',\n \t 'melon':'\\ud83c\\udf48',\n \t 'memo':'\\ud83d\\udcdd',\n \t 'men_wrestling':'\\ud83e\\udd3c‍\\u2642\\ufe0f',\n \t 'menorah':'\\ud83d\\udd4e',\n \t 'mens':'\\ud83d\\udeb9',\n \t 'metal':'\\ud83e\\udd18',\n \t 'metro':'\\ud83d\\ude87',\n \t 'microphone':'\\ud83c\\udfa4',\n \t 'microscope':'\\ud83d\\udd2c',\n \t 'milk_glass':'\\ud83e\\udd5b',\n \t 'milky_way':'\\ud83c\\udf0c',\n \t 'minibus':'\\ud83d\\ude90',\n \t 'minidisc':'\\ud83d\\udcbd',\n \t 'mobile_phone_off':'\\ud83d\\udcf4',\n \t 'money_mouth_face':'\\ud83e\\udd11',\n \t 'money_with_wings':'\\ud83d\\udcb8',\n \t 'moneybag':'\\ud83d\\udcb0',\n \t 'monkey':'\\ud83d\\udc12',\n \t 'monkey_face':'\\ud83d\\udc35',\n \t 'monorail':'\\ud83d\\ude9d',\n \t 'moon':'\\ud83c\\udf14',\n \t 'mortar_board':'\\ud83c\\udf93',\n \t 'mosque':'\\ud83d\\udd4c',\n \t 'motor_boat':'\\ud83d\\udee5',\n \t 'motor_scooter':'\\ud83d\\udef5',\n \t 'motorcycle':'\\ud83c\\udfcd',\n \t 'motorway':'\\ud83d\\udee3',\n \t 'mount_fuji':'\\ud83d\\uddfb',\n \t 'mountain':'\\u26f0',\n \t 'mountain_biking_man':'\\ud83d\\udeb5',\n \t 'mountain_biking_woman':'\\ud83d\\udeb5‍\\u2640\\ufe0f',\n \t 'mountain_cableway':'\\ud83d\\udea0',\n \t 'mountain_railway':'\\ud83d\\ude9e',\n \t 'mountain_snow':'\\ud83c\\udfd4',\n \t 'mouse':'\\ud83d\\udc2d',\n \t 'mouse2':'\\ud83d\\udc01',\n \t 'movie_camera':'\\ud83c\\udfa5',\n \t 'moyai':'\\ud83d\\uddff',\n \t 'mrs_claus':'\\ud83e\\udd36',\n \t 'muscle':'\\ud83d\\udcaa',\n \t 'mushroom':'\\ud83c\\udf44',\n \t 'musical_keyboard':'\\ud83c\\udfb9',\n \t 'musical_note':'\\ud83c\\udfb5',\n \t 'musical_score':'\\ud83c\\udfbc',\n \t 'mute':'\\ud83d\\udd07',\n \t 'nail_care':'\\ud83d\\udc85',\n \t 'name_badge':'\\ud83d\\udcdb',\n \t 'national_park':'\\ud83c\\udfde',\n \t 'nauseated_face':'\\ud83e\\udd22',\n \t 'necktie':'\\ud83d\\udc54',\n \t 'negative_squared_cross_mark':'\\u274e',\n \t 'nerd_face':'\\ud83e\\udd13',\n \t 'neutral_face':'\\ud83d\\ude10',\n \t 'new':'\\ud83c\\udd95',\n \t 'new_moon':'\\ud83c\\udf11',\n \t 'new_moon_with_face':'\\ud83c\\udf1a',\n \t 'newspaper':'\\ud83d\\udcf0',\n \t 'newspaper_roll':'\\ud83d\\uddde',\n \t 'next_track_button':'\\u23ed',\n \t 'ng':'\\ud83c\\udd96',\n \t 'no_good_man':'\\ud83d\\ude45‍\\u2642\\ufe0f',\n \t 'no_good_woman':'\\ud83d\\ude45',\n \t 'night_with_stars':'\\ud83c\\udf03',\n \t 'no_bell':'\\ud83d\\udd15',\n \t 'no_bicycles':'\\ud83d\\udeb3',\n \t 'no_entry':'\\u26d4\\ufe0f',\n \t 'no_entry_sign':'\\ud83d\\udeab',\n \t 'no_mobile_phones':'\\ud83d\\udcf5',\n \t 'no_mouth':'\\ud83d\\ude36',\n \t 'no_pedestrians':'\\ud83d\\udeb7',\n \t 'no_smoking':'\\ud83d\\udead',\n \t 'non-potable_water':'\\ud83d\\udeb1',\n \t 'nose':'\\ud83d\\udc43',\n \t 'notebook':'\\ud83d\\udcd3',\n \t 'notebook_with_decorative_cover':'\\ud83d\\udcd4',\n \t 'notes':'\\ud83c\\udfb6',\n \t 'nut_and_bolt':'\\ud83d\\udd29',\n \t 'o':'\\u2b55\\ufe0f',\n \t 'o2':'\\ud83c\\udd7e\\ufe0f',\n \t 'ocean':'\\ud83c\\udf0a',\n \t 'octopus':'\\ud83d\\udc19',\n \t 'oden':'\\ud83c\\udf62',\n \t 'office':'\\ud83c\\udfe2',\n \t 'oil_drum':'\\ud83d\\udee2',\n \t 'ok':'\\ud83c\\udd97',\n \t 'ok_hand':'\\ud83d\\udc4c',\n \t 'ok_man':'\\ud83d\\ude46‍\\u2642\\ufe0f',\n \t 'ok_woman':'\\ud83d\\ude46',\n \t 'old_key':'\\ud83d\\udddd',\n \t 'older_man':'\\ud83d\\udc74',\n \t 'older_woman':'\\ud83d\\udc75',\n \t 'om':'\\ud83d\\udd49',\n \t 'on':'\\ud83d\\udd1b',\n \t 'oncoming_automobile':'\\ud83d\\ude98',\n \t 'oncoming_bus':'\\ud83d\\ude8d',\n \t 'oncoming_police_car':'\\ud83d\\ude94',\n \t 'oncoming_taxi':'\\ud83d\\ude96',\n \t 'open_file_folder':'\\ud83d\\udcc2',\n \t 'open_hands':'\\ud83d\\udc50',\n \t 'open_mouth':'\\ud83d\\ude2e',\n \t 'open_umbrella':'\\u2602\\ufe0f',\n \t 'ophiuchus':'\\u26ce',\n \t 'orange_book':'\\ud83d\\udcd9',\n \t 'orthodox_cross':'\\u2626\\ufe0f',\n \t 'outbox_tray':'\\ud83d\\udce4',\n \t 'owl':'\\ud83e\\udd89',\n \t 'ox':'\\ud83d\\udc02',\n \t 'package':'\\ud83d\\udce6',\n \t 'page_facing_up':'\\ud83d\\udcc4',\n \t 'page_with_curl':'\\ud83d\\udcc3',\n \t 'pager':'\\ud83d\\udcdf',\n \t 'paintbrush':'\\ud83d\\udd8c',\n \t 'palm_tree':'\\ud83c\\udf34',\n \t 'pancakes':'\\ud83e\\udd5e',\n \t 'panda_face':'\\ud83d\\udc3c',\n \t 'paperclip':'\\ud83d\\udcce',\n \t 'paperclips':'\\ud83d\\udd87',\n \t 'parasol_on_ground':'\\u26f1',\n \t 'parking':'\\ud83c\\udd7f\\ufe0f',\n \t 'part_alternation_mark':'\\u303d\\ufe0f',\n \t 'partly_sunny':'\\u26c5\\ufe0f',\n \t 'passenger_ship':'\\ud83d\\udef3',\n \t 'passport_control':'\\ud83d\\udec2',\n \t 'pause_button':'\\u23f8',\n \t 'peace_symbol':'\\u262e\\ufe0f',\n \t 'peach':'\\ud83c\\udf51',\n \t 'peanuts':'\\ud83e\\udd5c',\n \t 'pear':'\\ud83c\\udf50',\n \t 'pen':'\\ud83d\\udd8a',\n \t 'pencil2':'\\u270f\\ufe0f',\n \t 'penguin':'\\ud83d\\udc27',\n \t 'pensive':'\\ud83d\\ude14',\n \t 'performing_arts':'\\ud83c\\udfad',\n \t 'persevere':'\\ud83d\\ude23',\n \t 'person_fencing':'\\ud83e\\udd3a',\n \t 'pouting_woman':'\\ud83d\\ude4e',\n \t 'phone':'\\u260e\\ufe0f',\n \t 'pick':'\\u26cf',\n \t 'pig':'\\ud83d\\udc37',\n \t 'pig2':'\\ud83d\\udc16',\n \t 'pig_nose':'\\ud83d\\udc3d',\n \t 'pill':'\\ud83d\\udc8a',\n \t 'pineapple':'\\ud83c\\udf4d',\n \t 'ping_pong':'\\ud83c\\udfd3',\n \t 'pisces':'\\u2653\\ufe0f',\n \t 'pizza':'\\ud83c\\udf55',\n \t 'place_of_worship':'\\ud83d\\uded0',\n \t 'plate_with_cutlery':'\\ud83c\\udf7d',\n \t 'play_or_pause_button':'\\u23ef',\n \t 'point_down':'\\ud83d\\udc47',\n \t 'point_left':'\\ud83d\\udc48',\n \t 'point_right':'\\ud83d\\udc49',\n \t 'point_up':'\\u261d\\ufe0f',\n \t 'point_up_2':'\\ud83d\\udc46',\n \t 'police_car':'\\ud83d\\ude93',\n \t 'policewoman':'\\ud83d\\udc6e‍\\u2640\\ufe0f',\n \t 'poodle':'\\ud83d\\udc29',\n \t 'popcorn':'\\ud83c\\udf7f',\n \t 'post_office':'\\ud83c\\udfe3',\n \t 'postal_horn':'\\ud83d\\udcef',\n \t 'postbox':'\\ud83d\\udcee',\n \t 'potable_water':'\\ud83d\\udeb0',\n \t 'potato':'\\ud83e\\udd54',\n \t 'pouch':'\\ud83d\\udc5d',\n \t 'poultry_leg':'\\ud83c\\udf57',\n \t 'pound':'\\ud83d\\udcb7',\n \t 'rage':'\\ud83d\\ude21',\n \t 'pouting_cat':'\\ud83d\\ude3e',\n \t 'pouting_man':'\\ud83d\\ude4e‍\\u2642\\ufe0f',\n \t 'pray':'\\ud83d\\ude4f',\n \t 'prayer_beads':'\\ud83d\\udcff',\n \t 'pregnant_woman':'\\ud83e\\udd30',\n \t 'previous_track_button':'\\u23ee',\n \t 'prince':'\\ud83e\\udd34',\n \t 'princess':'\\ud83d\\udc78',\n \t 'printer':'\\ud83d\\udda8',\n \t 'purple_heart':'\\ud83d\\udc9c',\n \t 'purse':'\\ud83d\\udc5b',\n \t 'pushpin':'\\ud83d\\udccc',\n \t 'put_litter_in_its_place':'\\ud83d\\udeae',\n \t 'question':'\\u2753',\n \t 'rabbit':'\\ud83d\\udc30',\n \t 'rabbit2':'\\ud83d\\udc07',\n \t 'racehorse':'\\ud83d\\udc0e',\n \t 'racing_car':'\\ud83c\\udfce',\n \t 'radio':'\\ud83d\\udcfb',\n \t 'radio_button':'\\ud83d\\udd18',\n \t 'radioactive':'\\u2622\\ufe0f',\n \t 'railway_car':'\\ud83d\\ude83',\n \t 'railway_track':'\\ud83d\\udee4',\n \t 'rainbow':'\\ud83c\\udf08',\n \t 'rainbow_flag':'\\ud83c\\udff3\\ufe0f‍\\ud83c\\udf08',\n \t 'raised_back_of_hand':'\\ud83e\\udd1a',\n \t 'raised_hand_with_fingers_splayed':'\\ud83d\\udd90',\n \t 'raised_hands':'\\ud83d\\ude4c',\n \t 'raising_hand_woman':'\\ud83d\\ude4b',\n \t 'raising_hand_man':'\\ud83d\\ude4b‍\\u2642\\ufe0f',\n \t 'ram':'\\ud83d\\udc0f',\n \t 'ramen':'\\ud83c\\udf5c',\n \t 'rat':'\\ud83d\\udc00',\n \t 'record_button':'\\u23fa',\n \t 'recycle':'\\u267b\\ufe0f',\n \t 'red_circle':'\\ud83d\\udd34',\n \t 'registered':'\\u00ae\\ufe0f',\n \t 'relaxed':'\\u263a\\ufe0f',\n \t 'relieved':'\\ud83d\\ude0c',\n \t 'reminder_ribbon':'\\ud83c\\udf97',\n \t 'repeat':'\\ud83d\\udd01',\n \t 'repeat_one':'\\ud83d\\udd02',\n \t 'rescue_worker_helmet':'\\u26d1',\n \t 'restroom':'\\ud83d\\udebb',\n \t 'revolving_hearts':'\\ud83d\\udc9e',\n \t 'rewind':'\\u23ea',\n \t 'rhinoceros':'\\ud83e\\udd8f',\n \t 'ribbon':'\\ud83c\\udf80',\n \t 'rice':'\\ud83c\\udf5a',\n \t 'rice_ball':'\\ud83c\\udf59',\n \t 'rice_cracker':'\\ud83c\\udf58',\n \t 'rice_scene':'\\ud83c\\udf91',\n \t 'right_anger_bubble':'\\ud83d\\uddef',\n \t 'ring':'\\ud83d\\udc8d',\n \t 'robot':'\\ud83e\\udd16',\n \t 'rocket':'\\ud83d\\ude80',\n \t 'rofl':'\\ud83e\\udd23',\n \t 'roll_eyes':'\\ud83d\\ude44',\n \t 'roller_coaster':'\\ud83c\\udfa2',\n \t 'rooster':'\\ud83d\\udc13',\n \t 'rose':'\\ud83c\\udf39',\n \t 'rosette':'\\ud83c\\udff5',\n \t 'rotating_light':'\\ud83d\\udea8',\n \t 'round_pushpin':'\\ud83d\\udccd',\n \t 'rowing_man':'\\ud83d\\udea3',\n \t 'rowing_woman':'\\ud83d\\udea3‍\\u2640\\ufe0f',\n \t 'rugby_football':'\\ud83c\\udfc9',\n \t 'running_man':'\\ud83c\\udfc3',\n \t 'running_shirt_with_sash':'\\ud83c\\udfbd',\n \t 'running_woman':'\\ud83c\\udfc3‍\\u2640\\ufe0f',\n \t 'sa':'\\ud83c\\ude02\\ufe0f',\n \t 'sagittarius':'\\u2650\\ufe0f',\n \t 'sake':'\\ud83c\\udf76',\n \t 'sandal':'\\ud83d\\udc61',\n \t 'santa':'\\ud83c\\udf85',\n \t 'satellite':'\\ud83d\\udce1',\n \t 'saxophone':'\\ud83c\\udfb7',\n \t 'school':'\\ud83c\\udfeb',\n \t 'school_satchel':'\\ud83c\\udf92',\n \t 'scissors':'\\u2702\\ufe0f',\n \t 'scorpion':'\\ud83e\\udd82',\n \t 'scorpius':'\\u264f\\ufe0f',\n \t 'scream':'\\ud83d\\ude31',\n \t 'scream_cat':'\\ud83d\\ude40',\n \t 'scroll':'\\ud83d\\udcdc',\n \t 'seat':'\\ud83d\\udcba',\n \t 'secret':'\\u3299\\ufe0f',\n \t 'see_no_evil':'\\ud83d\\ude48',\n \t 'seedling':'\\ud83c\\udf31',\n \t 'selfie':'\\ud83e\\udd33',\n \t 'shallow_pan_of_food':'\\ud83e\\udd58',\n \t 'shamrock':'\\u2618\\ufe0f',\n \t 'shark':'\\ud83e\\udd88',\n \t 'shaved_ice':'\\ud83c\\udf67',\n \t 'sheep':'\\ud83d\\udc11',\n \t 'shell':'\\ud83d\\udc1a',\n \t 'shield':'\\ud83d\\udee1',\n \t 'shinto_shrine':'\\u26e9',\n \t 'ship':'\\ud83d\\udea2',\n \t 'shirt':'\\ud83d\\udc55',\n \t 'shopping':'\\ud83d\\udecd',\n \t 'shopping_cart':'\\ud83d\\uded2',\n \t 'shower':'\\ud83d\\udebf',\n \t 'shrimp':'\\ud83e\\udd90',\n \t 'signal_strength':'\\ud83d\\udcf6',\n \t 'six_pointed_star':'\\ud83d\\udd2f',\n \t 'ski':'\\ud83c\\udfbf',\n \t 'skier':'\\u26f7',\n \t 'skull':'\\ud83d\\udc80',\n \t 'skull_and_crossbones':'\\u2620\\ufe0f',\n \t 'sleeping':'\\ud83d\\ude34',\n \t 'sleeping_bed':'\\ud83d\\udecc',\n \t 'sleepy':'\\ud83d\\ude2a',\n \t 'slightly_frowning_face':'\\ud83d\\ude41',\n \t 'slightly_smiling_face':'\\ud83d\\ude42',\n \t 'slot_machine':'\\ud83c\\udfb0',\n \t 'small_airplane':'\\ud83d\\udee9',\n \t 'small_blue_diamond':'\\ud83d\\udd39',\n \t 'small_orange_diamond':'\\ud83d\\udd38',\n \t 'small_red_triangle':'\\ud83d\\udd3a',\n \t 'small_red_triangle_down':'\\ud83d\\udd3b',\n \t 'smile':'\\ud83d\\ude04',\n \t 'smile_cat':'\\ud83d\\ude38',\n \t 'smiley':'\\ud83d\\ude03',\n \t 'smiley_cat':'\\ud83d\\ude3a',\n \t 'smiling_imp':'\\ud83d\\ude08',\n \t 'smirk':'\\ud83d\\ude0f',\n \t 'smirk_cat':'\\ud83d\\ude3c',\n \t 'smoking':'\\ud83d\\udeac',\n \t 'snail':'\\ud83d\\udc0c',\n \t 'snake':'\\ud83d\\udc0d',\n \t 'sneezing_face':'\\ud83e\\udd27',\n \t 'snowboarder':'\\ud83c\\udfc2',\n \t 'snowflake':'\\u2744\\ufe0f',\n \t 'snowman':'\\u26c4\\ufe0f',\n \t 'snowman_with_snow':'\\u2603\\ufe0f',\n \t 'sob':'\\ud83d\\ude2d',\n \t 'soccer':'\\u26bd\\ufe0f',\n \t 'soon':'\\ud83d\\udd1c',\n \t 'sos':'\\ud83c\\udd98',\n \t 'sound':'\\ud83d\\udd09',\n \t 'space_invader':'\\ud83d\\udc7e',\n \t 'spades':'\\u2660\\ufe0f',\n \t 'spaghetti':'\\ud83c\\udf5d',\n \t 'sparkle':'\\u2747\\ufe0f',\n \t 'sparkler':'\\ud83c\\udf87',\n \t 'sparkles':'\\u2728',\n \t 'sparkling_heart':'\\ud83d\\udc96',\n \t 'speak_no_evil':'\\ud83d\\ude4a',\n \t 'speaker':'\\ud83d\\udd08',\n \t 'speaking_head':'\\ud83d\\udde3',\n \t 'speech_balloon':'\\ud83d\\udcac',\n \t 'speedboat':'\\ud83d\\udea4',\n \t 'spider':'\\ud83d\\udd77',\n \t 'spider_web':'\\ud83d\\udd78',\n \t 'spiral_calendar':'\\ud83d\\uddd3',\n \t 'spiral_notepad':'\\ud83d\\uddd2',\n \t 'spoon':'\\ud83e\\udd44',\n \t 'squid':'\\ud83e\\udd91',\n \t 'stadium':'\\ud83c\\udfdf',\n \t 'star':'\\u2b50\\ufe0f',\n \t 'star2':'\\ud83c\\udf1f',\n \t 'star_and_crescent':'\\u262a\\ufe0f',\n \t 'star_of_david':'\\u2721\\ufe0f',\n \t 'stars':'\\ud83c\\udf20',\n \t 'station':'\\ud83d\\ude89',\n \t 'statue_of_liberty':'\\ud83d\\uddfd',\n \t 'steam_locomotive':'\\ud83d\\ude82',\n \t 'stew':'\\ud83c\\udf72',\n \t 'stop_button':'\\u23f9',\n \t 'stop_sign':'\\ud83d\\uded1',\n \t 'stopwatch':'\\u23f1',\n \t 'straight_ruler':'\\ud83d\\udccf',\n \t 'strawberry':'\\ud83c\\udf53',\n \t 'stuck_out_tongue':'\\ud83d\\ude1b',\n \t 'stuck_out_tongue_closed_eyes':'\\ud83d\\ude1d',\n \t 'stuck_out_tongue_winking_eye':'\\ud83d\\ude1c',\n \t 'studio_microphone':'\\ud83c\\udf99',\n \t 'stuffed_flatbread':'\\ud83e\\udd59',\n \t 'sun_behind_large_cloud':'\\ud83c\\udf25',\n \t 'sun_behind_rain_cloud':'\\ud83c\\udf26',\n \t 'sun_behind_small_cloud':'\\ud83c\\udf24',\n \t 'sun_with_face':'\\ud83c\\udf1e',\n \t 'sunflower':'\\ud83c\\udf3b',\n \t 'sunglasses':'\\ud83d\\ude0e',\n \t 'sunny':'\\u2600\\ufe0f',\n \t 'sunrise':'\\ud83c\\udf05',\n \t 'sunrise_over_mountains':'\\ud83c\\udf04',\n \t 'surfing_man':'\\ud83c\\udfc4',\n \t 'surfing_woman':'\\ud83c\\udfc4‍\\u2640\\ufe0f',\n \t 'sushi':'\\ud83c\\udf63',\n \t 'suspension_railway':'\\ud83d\\ude9f',\n \t 'sweat':'\\ud83d\\ude13',\n \t 'sweat_drops':'\\ud83d\\udca6',\n \t 'sweat_smile':'\\ud83d\\ude05',\n \t 'sweet_potato':'\\ud83c\\udf60',\n \t 'swimming_man':'\\ud83c\\udfca',\n \t 'swimming_woman':'\\ud83c\\udfca‍\\u2640\\ufe0f',\n \t 'symbols':'\\ud83d\\udd23',\n \t 'synagogue':'\\ud83d\\udd4d',\n \t 'syringe':'\\ud83d\\udc89',\n \t 'taco':'\\ud83c\\udf2e',\n \t 'tada':'\\ud83c\\udf89',\n \t 'tanabata_tree':'\\ud83c\\udf8b',\n \t 'taurus':'\\u2649\\ufe0f',\n \t 'taxi':'\\ud83d\\ude95',\n \t 'tea':'\\ud83c\\udf75',\n \t 'telephone_receiver':'\\ud83d\\udcde',\n \t 'telescope':'\\ud83d\\udd2d',\n \t 'tennis':'\\ud83c\\udfbe',\n \t 'tent':'\\u26fa\\ufe0f',\n \t 'thermometer':'\\ud83c\\udf21',\n \t 'thinking':'\\ud83e\\udd14',\n \t 'thought_balloon':'\\ud83d\\udcad',\n \t 'ticket':'\\ud83c\\udfab',\n \t 'tickets':'\\ud83c\\udf9f',\n \t 'tiger':'\\ud83d\\udc2f',\n \t 'tiger2':'\\ud83d\\udc05',\n \t 'timer_clock':'\\u23f2',\n \t 'tipping_hand_man':'\\ud83d\\udc81‍\\u2642\\ufe0f',\n \t 'tired_face':'\\ud83d\\ude2b',\n \t 'tm':'\\u2122\\ufe0f',\n \t 'toilet':'\\ud83d\\udebd',\n \t 'tokyo_tower':'\\ud83d\\uddfc',\n \t 'tomato':'\\ud83c\\udf45',\n \t 'tongue':'\\ud83d\\udc45',\n \t 'top':'\\ud83d\\udd1d',\n \t 'tophat':'\\ud83c\\udfa9',\n \t 'tornado':'\\ud83c\\udf2a',\n \t 'trackball':'\\ud83d\\uddb2',\n \t 'tractor':'\\ud83d\\ude9c',\n \t 'traffic_light':'\\ud83d\\udea5',\n \t 'train':'\\ud83d\\ude8b',\n \t 'train2':'\\ud83d\\ude86',\n \t 'tram':'\\ud83d\\ude8a',\n \t 'triangular_flag_on_post':'\\ud83d\\udea9',\n \t 'triangular_ruler':'\\ud83d\\udcd0',\n \t 'trident':'\\ud83d\\udd31',\n \t 'triumph':'\\ud83d\\ude24',\n \t 'trolleybus':'\\ud83d\\ude8e',\n \t 'trophy':'\\ud83c\\udfc6',\n \t 'tropical_drink':'\\ud83c\\udf79',\n \t 'tropical_fish':'\\ud83d\\udc20',\n \t 'truck':'\\ud83d\\ude9a',\n \t 'trumpet':'\\ud83c\\udfba',\n \t 'tulip':'\\ud83c\\udf37',\n \t 'tumbler_glass':'\\ud83e\\udd43',\n \t 'turkey':'\\ud83e\\udd83',\n \t 'turtle':'\\ud83d\\udc22',\n \t 'tv':'\\ud83d\\udcfa',\n \t 'twisted_rightwards_arrows':'\\ud83d\\udd00',\n \t 'two_hearts':'\\ud83d\\udc95',\n \t 'two_men_holding_hands':'\\ud83d\\udc6c',\n \t 'two_women_holding_hands':'\\ud83d\\udc6d',\n \t 'u5272':'\\ud83c\\ude39',\n \t 'u5408':'\\ud83c\\ude34',\n \t 'u55b6':'\\ud83c\\ude3a',\n \t 'u6307':'\\ud83c\\ude2f\\ufe0f',\n \t 'u6708':'\\ud83c\\ude37\\ufe0f',\n \t 'u6709':'\\ud83c\\ude36',\n \t 'u6e80':'\\ud83c\\ude35',\n \t 'u7121':'\\ud83c\\ude1a\\ufe0f',\n \t 'u7533':'\\ud83c\\ude38',\n \t 'u7981':'\\ud83c\\ude32',\n \t 'u7a7a':'\\ud83c\\ude33',\n \t 'umbrella':'\\u2614\\ufe0f',\n \t 'unamused':'\\ud83d\\ude12',\n \t 'underage':'\\ud83d\\udd1e',\n \t 'unicorn':'\\ud83e\\udd84',\n \t 'unlock':'\\ud83d\\udd13',\n \t 'up':'\\ud83c\\udd99',\n \t 'upside_down_face':'\\ud83d\\ude43',\n \t 'v':'\\u270c\\ufe0f',\n \t 'vertical_traffic_light':'\\ud83d\\udea6',\n \t 'vhs':'\\ud83d\\udcfc',\n \t 'vibration_mode':'\\ud83d\\udcf3',\n \t 'video_camera':'\\ud83d\\udcf9',\n \t 'video_game':'\\ud83c\\udfae',\n \t 'violin':'\\ud83c\\udfbb',\n \t 'virgo':'\\u264d\\ufe0f',\n \t 'volcano':'\\ud83c\\udf0b',\n \t 'volleyball':'\\ud83c\\udfd0',\n \t 'vs':'\\ud83c\\udd9a',\n \t 'vulcan_salute':'\\ud83d\\udd96',\n \t 'walking_man':'\\ud83d\\udeb6',\n \t 'walking_woman':'\\ud83d\\udeb6‍\\u2640\\ufe0f',\n \t 'waning_crescent_moon':'\\ud83c\\udf18',\n \t 'waning_gibbous_moon':'\\ud83c\\udf16',\n \t 'warning':'\\u26a0\\ufe0f',\n \t 'wastebasket':'\\ud83d\\uddd1',\n \t 'watch':'\\u231a\\ufe0f',\n \t 'water_buffalo':'\\ud83d\\udc03',\n \t 'watermelon':'\\ud83c\\udf49',\n \t 'wave':'\\ud83d\\udc4b',\n \t 'wavy_dash':'\\u3030\\ufe0f',\n \t 'waxing_crescent_moon':'\\ud83c\\udf12',\n \t 'wc':'\\ud83d\\udebe',\n \t 'weary':'\\ud83d\\ude29',\n \t 'wedding':'\\ud83d\\udc92',\n \t 'weight_lifting_man':'\\ud83c\\udfcb\\ufe0f',\n \t 'weight_lifting_woman':'\\ud83c\\udfcb\\ufe0f‍\\u2640\\ufe0f',\n \t 'whale':'\\ud83d\\udc33',\n \t 'whale2':'\\ud83d\\udc0b',\n \t 'wheel_of_dharma':'\\u2638\\ufe0f',\n \t 'wheelchair':'\\u267f\\ufe0f',\n \t 'white_check_mark':'\\u2705',\n \t 'white_circle':'\\u26aa\\ufe0f',\n \t 'white_flag':'\\ud83c\\udff3\\ufe0f',\n \t 'white_flower':'\\ud83d\\udcae',\n \t 'white_large_square':'\\u2b1c\\ufe0f',\n \t 'white_medium_small_square':'\\u25fd\\ufe0f',\n \t 'white_medium_square':'\\u25fb\\ufe0f',\n \t 'white_small_square':'\\u25ab\\ufe0f',\n \t 'white_square_button':'\\ud83d\\udd33',\n \t 'wilted_flower':'\\ud83e\\udd40',\n \t 'wind_chime':'\\ud83c\\udf90',\n \t 'wind_face':'\\ud83c\\udf2c',\n \t 'wine_glass':'\\ud83c\\udf77',\n \t 'wink':'\\ud83d\\ude09',\n \t 'wolf':'\\ud83d\\udc3a',\n \t 'woman':'\\ud83d\\udc69',\n \t 'woman_artist':'\\ud83d\\udc69‍\\ud83c\\udfa8',\n \t 'woman_astronaut':'\\ud83d\\udc69‍\\ud83d\\ude80',\n \t 'woman_cartwheeling':'\\ud83e\\udd38‍\\u2640\\ufe0f',\n \t 'woman_cook':'\\ud83d\\udc69‍\\ud83c\\udf73',\n \t 'woman_facepalming':'\\ud83e\\udd26‍\\u2640\\ufe0f',\n \t 'woman_factory_worker':'\\ud83d\\udc69‍\\ud83c\\udfed',\n \t 'woman_farmer':'\\ud83d\\udc69‍\\ud83c\\udf3e',\n \t 'woman_firefighter':'\\ud83d\\udc69‍\\ud83d\\ude92',\n \t 'woman_health_worker':'\\ud83d\\udc69‍\\u2695\\ufe0f',\n \t 'woman_judge':'\\ud83d\\udc69‍\\u2696\\ufe0f',\n \t 'woman_juggling':'\\ud83e\\udd39‍\\u2640\\ufe0f',\n \t 'woman_mechanic':'\\ud83d\\udc69‍\\ud83d\\udd27',\n \t 'woman_office_worker':'\\ud83d\\udc69‍\\ud83d\\udcbc',\n \t 'woman_pilot':'\\ud83d\\udc69‍\\u2708\\ufe0f',\n \t 'woman_playing_handball':'\\ud83e\\udd3e‍\\u2640\\ufe0f',\n \t 'woman_playing_water_polo':'\\ud83e\\udd3d‍\\u2640\\ufe0f',\n \t 'woman_scientist':'\\ud83d\\udc69‍\\ud83d\\udd2c',\n \t 'woman_shrugging':'\\ud83e\\udd37‍\\u2640\\ufe0f',\n \t 'woman_singer':'\\ud83d\\udc69‍\\ud83c\\udfa4',\n \t 'woman_student':'\\ud83d\\udc69‍\\ud83c\\udf93',\n \t 'woman_teacher':'\\ud83d\\udc69‍\\ud83c\\udfeb',\n \t 'woman_technologist':'\\ud83d\\udc69‍\\ud83d\\udcbb',\n \t 'woman_with_turban':'\\ud83d\\udc73‍\\u2640\\ufe0f',\n \t 'womans_clothes':'\\ud83d\\udc5a',\n \t 'womans_hat':'\\ud83d\\udc52',\n \t 'women_wrestling':'\\ud83e\\udd3c‍\\u2640\\ufe0f',\n \t 'womens':'\\ud83d\\udeba',\n \t 'world_map':'\\ud83d\\uddfa',\n \t 'worried':'\\ud83d\\ude1f',\n \t 'wrench':'\\ud83d\\udd27',\n \t 'writing_hand':'\\u270d\\ufe0f',\n \t 'x':'\\u274c',\n \t 'yellow_heart':'\\ud83d\\udc9b',\n \t 'yen':'\\ud83d\\udcb4',\n \t 'yin_yang':'\\u262f\\ufe0f',\n \t 'yum':'\\ud83d\\ude0b',\n \t 'zap':'\\u26a1\\ufe0f',\n \t 'zipper_mouth_face':'\\ud83e\\udd10',\n \t 'zzz':'\\ud83d\\udca4',\n\n \t /* special emojis :P */\n \t 'octocat': '\":octocat:\"',\n \t 'showdown': 'S'\n \t};\n\r\n \t/**\n \t * Created by Estevao on 31-05-2015.\n \t */\n\n \t/**\n \t * Showdown Converter class\n \t * @class\n \t * @param {object} [converterOptions]\n \t * @returns {Converter}\n \t */\n \tshowdown.Converter = function (converterOptions) {\n\n \t var\n \t /**\n \t * Options used by this converter\n \t * @private\n \t * @type {{}}\n \t */\n \t options = {},\n\n \t /**\n \t * Language extensions used by this converter\n \t * @private\n \t * @type {Array}\n \t */\n \t langExtensions = [],\n\n \t /**\n \t * Output modifiers extensions used by this converter\n \t * @private\n \t * @type {Array}\n \t */\n \t outputModifiers = [],\n\n \t /**\n \t * Event listeners\n \t * @private\n \t * @type {{}}\n \t */\n \t listeners = {},\n\n \t /**\n \t * The flavor set in this converter\n \t */\n \t setConvFlavor = setFlavor,\n\n \t /**\n \t * Metadata of the document\n \t * @type {{parsed: {}, raw: string, format: string}}\n \t */\n \t metadata = {\n \t parsed: {},\n \t raw: '',\n \t format: ''\n \t };\n\n \t _constructor();\n\n \t /**\n \t * Converter constructor\n \t * @private\n \t */\n \t function _constructor () {\n \t converterOptions = converterOptions || {};\n\n \t for (var gOpt in globalOptions) {\n \t if (globalOptions.hasOwnProperty(gOpt)) {\n \t options[gOpt] = globalOptions[gOpt];\n \t }\n \t }\n\n \t // Merge options\n \t if (typeof converterOptions === 'object') {\n \t for (var opt in converterOptions) {\n \t if (converterOptions.hasOwnProperty(opt)) {\n \t options[opt] = converterOptions[opt];\n \t }\n \t }\n \t } else {\n \t throw Error('Converter expects the passed parameter to be an object, but ' + typeof converterOptions +\n \t ' was passed instead.');\n \t }\n\n \t if (options.extensions) {\n \t showdown.helper.forEach(options.extensions, _parseExtension);\n \t }\n \t }\n\n \t /**\n \t * Parse extension\n \t * @param {*} ext\n \t * @param {string} [name='']\n \t * @private\n \t */\n \t function _parseExtension (ext, name) {\n\n \t name = name || null;\n \t // If it's a string, the extension was previously loaded\n \t if (showdown.helper.isString(ext)) {\n \t ext = showdown.helper.stdExtName(ext);\n \t name = ext;\n\n \t // LEGACY_SUPPORT CODE\n \t if (showdown.extensions[ext]) {\n \t console.warn('DEPRECATION WARNING: ' + ext + ' is an old extension that uses a deprecated loading method.' +\n \t 'Please inform the developer that the extension should be updated!');\n \t legacyExtensionLoading(showdown.extensions[ext], ext);\n \t return;\n \t // END LEGACY SUPPORT CODE\n\n \t } else if (!showdown.helper.isUndefined(extensions[ext])) {\n \t ext = extensions[ext];\n\n \t } else {\n \t throw Error('Extension \"' + ext + '\" could not be loaded. It was either not found or is not a valid extension.');\n \t }\n \t }\n\n \t if (typeof ext === 'function') {\n \t ext = ext();\n \t }\n\n \t if (!showdown.helper.isArray(ext)) {\n \t ext = [ext];\n \t }\n\n \t var validExt = validate(ext, name);\n \t if (!validExt.valid) {\n \t throw Error(validExt.error);\n \t }\n\n \t for (var i = 0; i < ext.length; ++i) {\n \t switch (ext[i].type) {\n\n \t case 'lang':\n \t langExtensions.push(ext[i]);\n \t break;\n\n \t case 'output':\n \t outputModifiers.push(ext[i]);\n \t break;\n \t }\n \t if (ext[i].hasOwnProperty('listeners')) {\n \t for (var ln in ext[i].listeners) {\n \t if (ext[i].listeners.hasOwnProperty(ln)) {\n \t listen(ln, ext[i].listeners[ln]);\n \t }\n \t }\n \t }\n \t }\n\n \t }\n\n \t /**\n \t * LEGACY_SUPPORT\n \t * @param {*} ext\n \t * @param {string} name\n \t */\n \t function legacyExtensionLoading (ext, name) {\n \t if (typeof ext === 'function') {\n \t ext = ext(new showdown.Converter());\n \t }\n \t if (!showdown.helper.isArray(ext)) {\n \t ext = [ext];\n \t }\n \t var valid = validate(ext, name);\n\n \t if (!valid.valid) {\n \t throw Error(valid.error);\n \t }\n\n \t for (var i = 0; i < ext.length; ++i) {\n \t switch (ext[i].type) {\n \t case 'lang':\n \t langExtensions.push(ext[i]);\n \t break;\n \t case 'output':\n \t outputModifiers.push(ext[i]);\n \t break;\n \t default:// should never reach here\n \t throw Error('Extension loader error: Type unrecognized!!!');\n \t }\n \t }\n \t }\n\n \t /**\n \t * Listen to an event\n \t * @param {string} name\n \t * @param {function} callback\n \t */\n \t function listen (name, callback) {\n \t if (!showdown.helper.isString(name)) {\n \t throw Error('Invalid argument in converter.listen() method: name must be a string, but ' + typeof name + ' given');\n \t }\n\n \t if (typeof callback !== 'function') {\n \t throw Error('Invalid argument in converter.listen() method: callback must be a function, but ' + typeof callback + ' given');\n \t }\n\n \t if (!listeners.hasOwnProperty(name)) {\n \t listeners[name] = [];\n \t }\n \t listeners[name].push(callback);\n \t }\n\n \t function rTrimInputText (text) {\n \t var rsp = text.match(/^\\s*/)[0].length,\n \t rgx = new RegExp('^\\\\s{0,' + rsp + '}', 'gm');\n \t return text.replace(rgx, '');\n \t }\n\n \t /**\n \t * Dispatch an event\n \t * @private\n \t * @param {string} evtName Event name\n \t * @param {string} text Text\n \t * @param {{}} options Converter Options\n \t * @param {{}} globals\n \t * @returns {string}\n \t */\n \t this._dispatch = function dispatch (evtName, text, options, globals) {\n \t if (listeners.hasOwnProperty(evtName)) {\n \t for (var ei = 0; ei < listeners[evtName].length; ++ei) {\n \t var nText = listeners[evtName][ei](evtName, text, this, options, globals);\n \t if (nText && typeof nText !== 'undefined') {\n \t text = nText;\n \t }\n \t }\n \t }\n \t return text;\n \t };\n\n \t /**\n \t * Listen to an event\n \t * @param {string} name\n \t * @param {function} callback\n \t * @returns {showdown.Converter}\n \t */\n \t this.listen = function (name, callback) {\n \t listen(name, callback);\n \t return this;\n \t };\n\n \t /**\n \t * Converts a markdown string into HTML\n \t * @param {string} text\n \t * @returns {*}\n \t */\n \t this.makeHtml = function (text) {\n \t //check if text is not falsy\n \t if (!text) {\n \t return text;\n \t }\n\n \t var globals = {\n \t gHtmlBlocks: [],\n \t gHtmlMdBlocks: [],\n \t gHtmlSpans: [],\n \t gUrls: {},\n \t gTitles: {},\n \t gDimensions: {},\n \t gListLevel: 0,\n \t hashLinkCounts: {},\n \t langExtensions: langExtensions,\n \t outputModifiers: outputModifiers,\n \t converter: this,\n \t ghCodeBlocks: [],\n \t metadata: {\n \t parsed: {},\n \t raw: '',\n \t format: ''\n \t }\n \t };\n\n \t // This lets us use ¨ trema as an escape char to avoid md5 hashes\n \t // The choice of character is arbitrary; anything that isn't\n \t // magic in Markdown will work.\n \t text = text.replace(/¨/g, '¨T');\n\n \t // Replace $ with ¨D\n \t // RegExp interprets $ as a special character\n \t // when it's in a replacement string\n \t text = text.replace(/\\$/g, '¨D');\n\n \t // Standardize line endings\n \t text = text.replace(/\\r\\n/g, '\\n'); // DOS to Unix\n \t text = text.replace(/\\r/g, '\\n'); // Mac to Unix\n\n \t // Stardardize line spaces\n \t text = text.replace(/\\u00A0/g, ' ');\n\n \t if (options.smartIndentationFix) {\n \t text = rTrimInputText(text);\n \t }\n\n \t // Make sure text begins and ends with a couple of newlines:\n \t text = '\\n\\n' + text + '\\n\\n';\n\n \t // detab\n \t text = showdown.subParser('detab')(text, options, globals);\n\n \t /**\n \t * Strip any lines consisting only of spaces and tabs.\n \t * This makes subsequent regexs easier to write, because we can\n \t * match consecutive blank lines with /\\n+/ instead of something\n \t * contorted like /[ \\t]*\\n+/\n \t */\n \t text = text.replace(/^[ \\t]+$/mg, '');\n\n \t //run languageExtensions\n \t showdown.helper.forEach(langExtensions, function (ext) {\n \t text = showdown.subParser('runExtension')(ext, text, options, globals);\n \t });\n\n \t // run the sub parsers\n \t text = showdown.subParser('metadata')(text, options, globals);\n \t text = showdown.subParser('hashPreCodeTags')(text, options, globals);\n \t text = showdown.subParser('githubCodeBlocks')(text, options, globals);\n \t text = showdown.subParser('hashHTMLBlocks')(text, options, globals);\n \t text = showdown.subParser('hashCodeTags')(text, options, globals);\n \t text = showdown.subParser('stripLinkDefinitions')(text, options, globals);\n \t text = showdown.subParser('blockGamut')(text, options, globals);\n \t text = showdown.subParser('unhashHTMLSpans')(text, options, globals);\n \t text = showdown.subParser('unescapeSpecialChars')(text, options, globals);\n\n \t // attacklab: Restore dollar signs\n \t text = text.replace(/¨D/g, '$$');\n\n \t // attacklab: Restore tremas\n \t text = text.replace(/¨T/g, '¨');\n\n \t // render a complete html document instead of a partial if the option is enabled\n \t text = showdown.subParser('completeHTMLDocument')(text, options, globals);\n\n \t // Run output modifiers\n \t showdown.helper.forEach(outputModifiers, function (ext) {\n \t text = showdown.subParser('runExtension')(ext, text, options, globals);\n \t });\n\n \t // update metadata\n \t metadata = globals.metadata;\n \t return text;\n \t };\n\n \t /**\n \t * Converts an HTML string into a markdown string\n \t * @param src\n \t * @param [HTMLParser] A WHATWG DOM and HTML parser, such as JSDOM. If none is supplied, window.document will be used.\n \t * @returns {string}\n \t */\n \t this.makeMarkdown = this.makeMd = function (src, HTMLParser) {\n\n \t // replace \\r\\n with \\n\n \t src = src.replace(/\\r\\n/g, '\\n');\n \t src = src.replace(/\\r/g, '\\n'); // old macs\n\n \t // due to an edge case, we need to find this: > <\n \t // to prevent removing of non silent white spaces\n \t // ex: this is sparta\n \t src = src.replace(/>[ \\t]+¨NBSP;<');\n\n \t if (!HTMLParser) {\n \t if (window && window.document) {\n \t HTMLParser = window.document;\n \t } else {\n \t throw new Error('HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM');\n \t }\n \t }\n\n \t var doc = HTMLParser.createElement('div');\n \t doc.innerHTML = src;\n\n \t var globals = {\n \t preList: substitutePreCodeTags(doc)\n \t };\n\n \t // remove all newlines and collapse spaces\n \t clean(doc);\n\n \t // some stuff, like accidental reference links must now be escaped\n \t // TODO\n \t // doc.innerHTML = doc.innerHTML.replace(/\\[[\\S\\t ]]/);\n\n \t var nodes = doc.childNodes,\n \t mdDoc = '';\n\n \t for (var i = 0; i < nodes.length; i++) {\n \t mdDoc += showdown.subParser('makeMarkdown.node')(nodes[i], globals);\n \t }\n\n \t function clean (node) {\n \t for (var n = 0; n < node.childNodes.length; ++n) {\n \t var child = node.childNodes[n];\n \t if (child.nodeType === 3) {\n \t if (!/\\S/.test(child.nodeValue) && !/^[ ]+$/.test(child.nodeValue)) {\n \t node.removeChild(child);\n \t --n;\n \t } else {\n \t child.nodeValue = child.nodeValue.split('\\n').join(' ');\n \t child.nodeValue = child.nodeValue.replace(/(\\s)+/g, '$1');\n \t }\n \t } else if (child.nodeType === 1) {\n \t clean(child);\n \t }\n \t }\n \t }\n\n \t // find all pre tags and replace contents with placeholder\n \t // we need this so that we can remove all indentation from html\n \t // to ease up parsing\n \t function substitutePreCodeTags (doc) {\n\n \t var pres = doc.querySelectorAll('pre'),\n \t presPH = [];\n\n \t for (var i = 0; i < pres.length; ++i) {\n\n \t if (pres[i].childElementCount === 1 && pres[i].firstChild.tagName.toLowerCase() === 'code') {\n \t var content = pres[i].firstChild.innerHTML.trim(),\n \t language = pres[i].firstChild.getAttribute('data-language') || '';\n\n \t // if data-language attribute is not defined, then we look for class language-*\n \t if (language === '') {\n \t var classes = pres[i].firstChild.className.split(' ');\n \t for (var c = 0; c < classes.length; ++c) {\n \t var matches = classes[c].match(/^language-(.+)$/);\n \t if (matches !== null) {\n \t language = matches[1];\n \t break;\n \t }\n \t }\n \t }\n\n \t // unescape html entities in content\n \t content = showdown.helper.unescapeHTMLEntities(content);\n\n \t presPH.push(content);\n \t pres[i].outerHTML = '';\n \t } else {\n \t presPH.push(pres[i].innerHTML);\n \t pres[i].innerHTML = '';\n \t pres[i].setAttribute('prenum', i.toString());\n \t }\n \t }\n \t return presPH;\n \t }\n\n \t return mdDoc;\n \t };\n\n \t /**\n \t * Set an option of this Converter instance\n \t * @param {string} key\n \t * @param {*} value\n \t */\n \t this.setOption = function (key, value) {\n \t options[key] = value;\n \t };\n\n \t /**\n \t * Get the option of this Converter instance\n \t * @param {string} key\n \t * @returns {*}\n \t */\n \t this.getOption = function (key) {\n \t return options[key];\n \t };\n\n \t /**\n \t * Get the options of this Converter instance\n \t * @returns {{}}\n \t */\n \t this.getOptions = function () {\n \t return options;\n \t };\n\n \t /**\n \t * Add extension to THIS converter\n \t * @param {{}} extension\n \t * @param {string} [name=null]\n \t */\n \t this.addExtension = function (extension, name) {\n \t name = name || null;\n \t _parseExtension(extension, name);\n \t };\n\n \t /**\n \t * Use a global registered extension with THIS converter\n \t * @param {string} extensionName Name of the previously registered extension\n \t */\n \t this.useExtension = function (extensionName) {\n \t _parseExtension(extensionName);\n \t };\n\n \t /**\n \t * Set the flavor THIS converter should use\n \t * @param {string} name\n \t */\n \t this.setFlavor = function (name) {\n \t if (!flavor.hasOwnProperty(name)) {\n \t throw Error(name + ' flavor was not found');\n \t }\n \t var preset = flavor[name];\n \t setConvFlavor = name;\n \t for (var option in preset) {\n \t if (preset.hasOwnProperty(option)) {\n \t options[option] = preset[option];\n \t }\n \t }\n \t };\n\n \t /**\n \t * Get the currently set flavor of this converter\n \t * @returns {string}\n \t */\n \t this.getFlavor = function () {\n \t return setConvFlavor;\n \t };\n\n \t /**\n \t * Remove an extension from THIS converter.\n \t * Note: This is a costly operation. It's better to initialize a new converter\n \t * and specify the extensions you wish to use\n \t * @param {Array} extension\n \t */\n \t this.removeExtension = function (extension) {\n \t if (!showdown.helper.isArray(extension)) {\n \t extension = [extension];\n \t }\n \t for (var a = 0; a < extension.length; ++a) {\n \t var ext = extension[a];\n \t for (var i = 0; i < langExtensions.length; ++i) {\n \t if (langExtensions[i] === ext) {\n \t langExtensions.splice(i, 1);\n \t }\n \t }\n \t for (var ii = 0; ii < outputModifiers.length; ++ii) {\n \t if (outputModifiers[ii] === ext) {\n \t outputModifiers.splice(ii, 1);\n \t }\n \t }\n \t }\n \t };\n\n \t /**\n \t * Get all extension of THIS converter\n \t * @returns {{language: Array, output: Array}}\n \t */\n \t this.getAllExtensions = function () {\n \t return {\n \t language: langExtensions,\n \t output: outputModifiers\n \t };\n \t };\n\n \t /**\n \t * Get the metadata of the previously parsed document\n \t * @param raw\n \t * @returns {string|{}}\n \t */\n \t this.getMetadata = function (raw) {\n \t if (raw) {\n \t return metadata.raw;\n \t } else {\n \t return metadata.parsed;\n \t }\n \t };\n\n \t /**\n \t * Get the metadata format of the previously parsed document\n \t * @returns {string}\n \t */\n \t this.getMetadataFormat = function () {\n \t return metadata.format;\n \t };\n\n \t /**\n \t * Private: set a single key, value metadata pair\n \t * @param {string} key\n \t * @param {string} value\n \t */\n \t this._setMetadataPair = function (key, value) {\n \t metadata.parsed[key] = value;\n \t };\n\n \t /**\n \t * Private: set metadata format\n \t * @param {string} format\n \t */\n \t this._setMetadataFormat = function (format) {\n \t metadata.format = format;\n \t };\n\n \t /**\n \t * Private: set metadata raw text\n \t * @param {string} raw\n \t */\n \t this._setMetadataRaw = function (raw) {\n \t metadata.raw = raw;\n \t };\n \t};\n\r\n \t/**\n \t * Turn Markdown link shortcuts into XHTML
tags.\n \t */\n \tshowdown.subParser('anchors', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('anchors.before', text, options, globals);\n\n \t var writeAnchorTag = function (wholeMatch, linkText, linkId, url, m5, m6, title) {\n \t if (showdown.helper.isUndefined(title)) {\n \t title = '';\n \t }\n \t linkId = linkId.toLowerCase();\n\n \t // Special case for explicit empty url\n \t if (wholeMatch.search(/\\(? ?(['\"].*['\"])?\\)$/m) > -1) {\n \t url = '';\n \t } else if (!url) {\n \t if (!linkId) {\n \t // lower-case and turn embedded newlines into spaces\n \t linkId = linkText.toLowerCase().replace(/ ?\\n/g, ' ');\n \t }\n \t url = '#' + linkId;\n\n \t if (!showdown.helper.isUndefined(globals.gUrls[linkId])) {\n \t url = globals.gUrls[linkId];\n \t if (!showdown.helper.isUndefined(globals.gTitles[linkId])) {\n \t title = globals.gTitles[linkId];\n \t }\n \t } else {\n \t return wholeMatch;\n \t }\n \t }\n\n \t //url = showdown.helper.escapeCharacters(url, '*_', false); // replaced line to improve performance\n \t url = url.replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback);\n\n \t var result = '';\n\n \t return result;\n \t };\n\n \t // First, handle reference-style links: [link text] [id]\n \t text = text.replace(/\\[((?:\\[[^\\]]*]|[^\\[\\]])*)] ?(?:\\n *)?\\[(.*?)]()()()()/g, writeAnchorTag);\n\n \t // Next, inline-style links: [link text](url \"optional title\")\n \t // cases with crazy urls like ./image/cat1).png\n \t text = text.replace(/\\[((?:\\[[^\\]]*]|[^\\[\\]])*)]()[ \\t]*\\([ \\t]?<([^>]*)>(?:[ \\t]*(([\"'])([^\"]*?)\\5))?[ \\t]?\\)/g,\n \t writeAnchorTag);\n\n \t // normal cases\n \t text = text.replace(/\\[((?:\\[[^\\]]*]|[^\\[\\]])*)]()[ \\t]*\\([ \\t]??(?:[ \\t]*(([\"'])([^\"]*?)\\5))?[ \\t]?\\)/g,\n \t writeAnchorTag);\n\n \t // handle reference-style shortcuts: [link text]\n \t // These must come last in case you've also got [link test][1]\n \t // or [link test](/foo)\n \t text = text.replace(/\\[([^\\[\\]]+)]()()()()()/g, writeAnchorTag);\n\n \t // Lastly handle GithubMentions if option is enabled\n \t if (options.ghMentions) {\n \t text = text.replace(/(^|\\s)(\\\\)?(@([a-z\\d]+(?:[a-z\\d.-]+?[a-z\\d]+)*))/gmi, function (wm, st, escape, mentions, username) {\n \t if (escape === '\\\\') {\n \t return st + mentions;\n \t }\n\n \t //check if options.ghMentionsLink is a string\n \t if (!showdown.helper.isString(options.ghMentionsLink)) {\n \t throw new Error('ghMentionsLink option must be a string');\n \t }\n \t var lnk = options.ghMentionsLink.replace(/\\{u}/g, username),\n \t target = '';\n \t if (options.openLinksInNewWindow) {\n \t target = ' rel=\"noopener noreferrer\" target=\"¨E95Eblank\"';\n \t }\n \t return st + '' + mentions + '';\n \t });\n \t }\n\n \t text = globals.converter._dispatch('anchors.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t// url allowed chars [a-z\\d_.~:/?#[]@!$&'()*+,;=-]\n\n \tvar simpleURLRegex = /([*~_]+|\\b)(((https?|ftp|dict):\\/\\/|www\\.)[^'\">\\s]+?\\.[^'\">\\s]+?)()(\\1)?(?=\\s|$)(?![\"<>])/gi,\n \t simpleURLRegex2 = /([*~_]+|\\b)(((https?|ftp|dict):\\/\\/|www\\.)[^'\">\\s]+\\.[^'\">\\s]+?)([.!?,()\\[\\]])?(\\1)?(?=\\s|$)(?![\"<>])/gi,\n \t delimUrlRegex = /()<(((https?|ftp|dict):\\/\\/|www\\.)[^'\">\\s]+)()>()/gi,\n \t simpleMailRegex = /(^|\\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\\.[-a-z0-9]+)*\\.[a-z]+)(?=$|\\s)/gmi,\n \t delimMailRegex = /<()(?:mailto:)?([-.\\w]+@[-a-z0-9]+(\\.[-a-z0-9]+)*\\.[a-z]+)>/gi,\n\n \t replaceLink = function (options) {\n \t return function (wm, leadingMagicChars, link, m2, m3, trailingPunctuation, trailingMagicChars) {\n \t link = link.replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback);\n \t var lnkTxt = link,\n \t append = '',\n \t target = '',\n \t lmc = leadingMagicChars || '',\n \t tmc = trailingMagicChars || '';\n \t if (/^www\\./i.test(link)) {\n \t link = link.replace(/^www\\./i, 'http://www.');\n \t }\n \t if (options.excludeTrailingPunctuationFromURLs && trailingPunctuation) {\n \t append = trailingPunctuation;\n \t }\n \t if (options.openLinksInNewWindow) {\n \t target = ' rel=\"noopener noreferrer\" target=\"¨E95Eblank\"';\n \t }\n \t return lmc + '' + lnkTxt + '' + append + tmc;\n \t };\n \t },\n\n \t replaceMail = function (options, globals) {\n \t return function (wholeMatch, b, mail) {\n \t var href = 'mailto:';\n \t b = b || '';\n \t mail = showdown.subParser('unescapeSpecialChars')(mail, options, globals);\n \t if (options.encodeEmails) {\n \t href = showdown.helper.encodeEmailAddress(href + mail);\n \t mail = showdown.helper.encodeEmailAddress(mail);\n \t } else {\n \t href = href + mail;\n \t }\n \t return b + '' + mail + '';\n \t };\n \t };\n\n \tshowdown.subParser('autoLinks', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('autoLinks.before', text, options, globals);\n\n \t text = text.replace(delimUrlRegex, replaceLink(options));\n \t text = text.replace(delimMailRegex, replaceMail(options, globals));\n\n \t text = globals.converter._dispatch('autoLinks.after', text, options, globals);\n\n \t return text;\n \t});\n\n \tshowdown.subParser('simplifiedAutoLinks', function (text, options, globals) {\n\n \t if (!options.simplifiedAutoLink) {\n \t return text;\n \t }\n\n \t text = globals.converter._dispatch('simplifiedAutoLinks.before', text, options, globals);\n\n \t if (options.excludeTrailingPunctuationFromURLs) {\n \t text = text.replace(simpleURLRegex2, replaceLink(options));\n \t } else {\n \t text = text.replace(simpleURLRegex, replaceLink(options));\n \t }\n \t text = text.replace(simpleMailRegex, replaceMail(options, globals));\n\n \t text = globals.converter._dispatch('simplifiedAutoLinks.after', text, options, globals);\n\n \t return text;\n \t});\n\r\n \t/**\n \t * These are all the transformations that form block-level\n \t * tags like paragraphs, headers, and list items.\n \t */\n \tshowdown.subParser('blockGamut', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('blockGamut.before', text, options, globals);\n\n \t // we parse blockquotes first so that we can have headings and hrs\n \t // inside blockquotes\n \t text = showdown.subParser('blockQuotes')(text, options, globals);\n \t text = showdown.subParser('headers')(text, options, globals);\n\n \t // Do Horizontal Rules:\n \t text = showdown.subParser('horizontalRule')(text, options, globals);\n\n \t text = showdown.subParser('lists')(text, options, globals);\n \t text = showdown.subParser('codeBlocks')(text, options, globals);\n \t text = showdown.subParser('tables')(text, options, globals);\n\n \t // We already ran _HashHTMLBlocks() before, in Markdown(), but that\n \t // was to escape raw HTML in the original Markdown source. This time,\n \t // we're escaping the markup we've just created, so that we don't wrap\n \t //

tags around block-level tags.\n \t text = showdown.subParser('hashHTMLBlocks')(text, options, globals);\n \t text = showdown.subParser('paragraphs')(text, options, globals);\n\n \t text = globals.converter._dispatch('blockGamut.after', text, options, globals);\n\n \t return text;\n \t});\n\r\n \tshowdown.subParser('blockQuotes', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('blockQuotes.before', text, options, globals);\n\n \t // add a couple extra lines after the text and endtext mark\n \t text = text + '\\n\\n';\n\n \t var rgx = /(^ {0,3}>[ \\t]?.+\\n(.+\\n)*\\n*)+/gm;\n\n \t if (options.splitAdjacentBlockquotes) {\n \t rgx = /^ {0,3}>[\\s\\S]*?(?:\\n\\n)/gm;\n \t }\n\n \t text = text.replace(rgx, function (bq) {\n \t // attacklab: hack around Konqueror 3.5.4 bug:\n \t // \"----------bug\".replace(/^-/g,\"\") == \"bug\"\n \t bq = bq.replace(/^[ \\t]*>[ \\t]?/gm, ''); // trim one level of quoting\n\n \t // attacklab: clean up hack\n \t bq = bq.replace(/¨0/g, '');\n\n \t bq = bq.replace(/^[ \\t]+$/gm, ''); // trim whitespace-only lines\n \t bq = showdown.subParser('githubCodeBlocks')(bq, options, globals);\n \t bq = showdown.subParser('blockGamut')(bq, options, globals); // recurse\n\n \t bq = bq.replace(/(^|\\n)/g, '$1 ');\n \t // These leading spaces screw with

 content, so we need to fix that:\n  \t    bq = bq.replace(/(\\s*
[^\\r]+?<\\/pre>)/gm, function (wholeMatch, m1) {\n  \t      var pre = m1;\n  \t      // attacklab: hack around Konqueror 3.5.4 bug:\n  \t      pre = pre.replace(/^  /mg, '¨0');\n  \t      pre = pre.replace(/¨0/g, '');\n  \t      return pre;\n  \t    });\n\n  \t    return showdown.subParser('hashBlock')('
\\n' + bq + '\\n
', options, globals);\n \t });\n\n \t text = globals.converter._dispatch('blockQuotes.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Process Markdown `
` blocks.\n  \t */\n  \tshowdown.subParser('codeBlocks', function (text, options, globals) {\n\n  \t  text = globals.converter._dispatch('codeBlocks.before', text, options, globals);\n\n  \t  // sentinel workarounds for lack of \\A and \\Z, safari\\khtml bug\n  \t  text += '¨0';\n\n  \t  var pattern = /(?:\\n\\n|^)((?:(?:[ ]{4}|\\t).*\\n+)+)(\\n*[ ]{0,3}[^ \\t\\n]|(?=¨0))/g;\n  \t  text = text.replace(pattern, function (wholeMatch, m1, m2) {\n  \t    var codeblock = m1,\n  \t        nextChar = m2,\n  \t        end = '\\n';\n\n  \t    codeblock = showdown.subParser('outdent')(codeblock, options, globals);\n  \t    codeblock = showdown.subParser('encodeCode')(codeblock, options, globals);\n  \t    codeblock = showdown.subParser('detab')(codeblock, options, globals);\n  \t    codeblock = codeblock.replace(/^\\n+/g, ''); // trim leading newlines\n  \t    codeblock = codeblock.replace(/\\n+$/g, ''); // trim trailing newlines\n\n  \t    if (options.omitExtraWLInCodeBlocks) {\n  \t      end = '';\n  \t    }\n\n  \t    codeblock = '
' + codeblock + end + '
';\n\n \t return showdown.subParser('hashBlock')(codeblock, options, globals) + nextChar;\n \t });\n\n \t // strip sentinel\n \t text = text.replace(/¨0/, '');\n\n \t text = globals.converter._dispatch('codeBlocks.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t *\n \t * * Backtick quotes are used for spans.\n \t *\n \t * * You can use multiple backticks as the delimiters if you want to\n \t * include literal backticks in the code span. So, this input:\n \t *\n \t * Just type ``foo `bar` baz`` at the prompt.\n \t *\n \t * Will translate to:\n \t *\n \t *

Just type foo `bar` baz at the prompt.

\n \t *\n \t * There's no arbitrary limit to the number of backticks you\n \t * can use as delimters. If you need three consecutive backticks\n \t * in your code, use four for delimiters, etc.\n \t *\n \t * * You can use spaces to get literal backticks at the edges:\n \t *\n \t * ... type `` `bar` `` ...\n \t *\n \t * Turns to:\n \t *\n \t * ... type `bar` ...\n \t */\n \tshowdown.subParser('codeSpans', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('codeSpans.before', text, options, globals);\n\n \t if (typeof (text) === 'undefined') {\n \t text = '';\n \t }\n \t text = text.replace(/(^|[^\\\\])(`+)([^\\r]*?[^`])\\2(?!`)/gm,\n \t function (wholeMatch, m1, m2, m3) {\n \t var c = m3;\n \t c = c.replace(/^([ \\t]*)/g, '');\t// leading whitespace\n \t c = c.replace(/[ \\t]*$/g, '');\t// trailing whitespace\n \t c = showdown.subParser('encodeCode')(c, options, globals);\n \t c = m1 + '' + c + '';\n \t c = showdown.subParser('hashHTMLSpans')(c, options, globals);\n \t return c;\n \t }\n \t );\n\n \t text = globals.converter._dispatch('codeSpans.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Create a full HTML document from the processed markdown\n \t */\n \tshowdown.subParser('completeHTMLDocument', function (text, options, globals) {\n\n \t if (!options.completeHTMLDocument) {\n \t return text;\n \t }\n\n \t text = globals.converter._dispatch('completeHTMLDocument.before', text, options, globals);\n\n \t var doctype = 'html',\n \t doctypeParsed = '\\n',\n \t title = '',\n \t charset = '\\n',\n \t lang = '',\n \t metadata = '';\n\n \t if (typeof globals.metadata.parsed.doctype !== 'undefined') {\n \t doctypeParsed = '\\n';\n \t doctype = globals.metadata.parsed.doctype.toString().toLowerCase();\n \t if (doctype === 'html' || doctype === 'html5') {\n \t charset = '';\n \t }\n \t }\n\n \t for (var meta in globals.metadata.parsed) {\n \t if (globals.metadata.parsed.hasOwnProperty(meta)) {\n \t switch (meta.toLowerCase()) {\n \t case 'doctype':\n \t break;\n\n \t case 'title':\n \t title = '' + globals.metadata.parsed.title + '\\n';\n \t break;\n\n \t case 'charset':\n \t if (doctype === 'html' || doctype === 'html5') {\n \t charset = '\\n';\n \t } else {\n \t charset = '\\n';\n \t }\n \t break;\n\n \t case 'language':\n \t case 'lang':\n \t lang = ' lang=\"' + globals.metadata.parsed[meta] + '\"';\n \t metadata += '\\n';\n \t break;\n\n \t default:\n \t metadata += '\\n';\n \t }\n \t }\n \t }\n\n \t text = doctypeParsed + '\\n\\n' + title + charset + metadata + '\\n\\n' + text.trim() + '\\n\\n';\n\n \t text = globals.converter._dispatch('completeHTMLDocument.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Convert all tabs to spaces\n \t */\n \tshowdown.subParser('detab', function (text, options, globals) {\n \t text = globals.converter._dispatch('detab.before', text, options, globals);\n\n \t // expand first n-1 tabs\n \t text = text.replace(/\\t(?=\\t)/g, ' '); // g_tab_width\n\n \t // replace the nth with two sentinels\n \t text = text.replace(/\\t/g, '¨A¨B');\n\n \t // use the sentinel to anchor our regex so it doesn't explode\n \t text = text.replace(/¨B(.+?)¨A/g, function (wholeMatch, m1) {\n \t var leadingText = m1,\n \t numSpaces = 4 - leadingText.length % 4; // g_tab_width\n\n \t // there *must* be a better way to do this:\n \t for (var i = 0; i < numSpaces; i++) {\n \t leadingText += ' ';\n \t }\n\n \t return leadingText;\n \t });\n\n \t // clean up sentinels\n \t text = text.replace(/¨A/g, ' '); // g_tab_width\n \t text = text.replace(/¨B/g, '');\n\n \t text = globals.converter._dispatch('detab.after', text, options, globals);\n \t return text;\n \t});\n\r\n \tshowdown.subParser('ellipsis', function (text, options, globals) {\n\n \t if (!options.ellipsis) {\n \t return text;\n \t }\n\n \t text = globals.converter._dispatch('ellipsis.before', text, options, globals);\n\n \t text = text.replace(/\\.\\.\\./g, '…');\n\n \t text = globals.converter._dispatch('ellipsis.after', text, options, globals);\n\n \t return text;\n \t});\n\r\n \t/**\n \t * Turn emoji codes into emojis\n \t *\n \t * List of supported emojis: https://github.com/showdownjs/showdown/wiki/Emojis\n \t */\n \tshowdown.subParser('emoji', function (text, options, globals) {\n\n \t if (!options.emoji) {\n \t return text;\n \t }\n\n \t text = globals.converter._dispatch('emoji.before', text, options, globals);\n\n \t var emojiRgx = /:([\\S]+?):/g;\n\n \t text = text.replace(emojiRgx, function (wm, emojiCode) {\n \t if (showdown.helper.emojis.hasOwnProperty(emojiCode)) {\n \t return showdown.helper.emojis[emojiCode];\n \t }\n \t return wm;\n \t });\n\n \t text = globals.converter._dispatch('emoji.after', text, options, globals);\n\n \t return text;\n \t});\n\r\n \t/**\n \t * Smart processing for ampersands and angle brackets that need to be encoded.\n \t */\n \tshowdown.subParser('encodeAmpsAndAngles', function (text, options, globals) {\n \t text = globals.converter._dispatch('encodeAmpsAndAngles.before', text, options, globals);\n\n \t // Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin:\n \t // http://bumppo.net/projects/amputator/\n \t text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\\w+);)/g, '&');\n\n \t // Encode naked <'s\n \t text = text.replace(/<(?![a-z\\/?$!])/gi, '<');\n\n \t // Encode <\n \t text = text.replace(/\n \t text = text.replace(/>/g, '>');\n\n \t text = globals.converter._dispatch('encodeAmpsAndAngles.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Returns the string, with after processing the following backslash escape sequences.\n \t *\n \t * attacklab: The polite way to do this is with the new escapeCharacters() function:\n \t *\n \t * text = escapeCharacters(text,\"\\\\\",true);\n \t * text = escapeCharacters(text,\"`*_{}[]()>#+-.!\",true);\n \t *\n \t * ...but we're sidestepping its use of the (slow) RegExp constructor\n \t * as an optimization for Firefox. This function gets called a LOT.\n \t */\n \tshowdown.subParser('encodeBackslashEscapes', function (text, options, globals) {\n \t text = globals.converter._dispatch('encodeBackslashEscapes.before', text, options, globals);\n\n \t text = text.replace(/\\\\(\\\\)/g, showdown.helper.escapeCharactersCallback);\n \t text = text.replace(/\\\\([`*_{}\\[\\]()>#+.!~=|:-])/g, showdown.helper.escapeCharactersCallback);\n\n \t text = globals.converter._dispatch('encodeBackslashEscapes.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Encode/escape certain characters inside Markdown code runs.\n \t * The point is that in code, these characters are literals,\n \t * and lose their special Markdown meanings.\n \t */\n \tshowdown.subParser('encodeCode', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('encodeCode.before', text, options, globals);\n\n \t // Encode all ampersands; HTML entities are not\n \t // entities within a Markdown code span.\n \t text = text\n \t .replace(/&/g, '&')\n \t // Do the angle bracket song and dance:\n \t .replace(//g, '>')\n \t // Now, escape characters that are magic in Markdown:\n \t .replace(/([*_{}\\[\\]\\\\=~-])/g, showdown.helper.escapeCharactersCallback);\n\n \t text = globals.converter._dispatch('encodeCode.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Within tags -- meaning between < and > -- encode [\\ ` * _ ~ =] so they\n \t * don't conflict with their use in Markdown for code, italics and strong.\n \t */\n \tshowdown.subParser('escapeSpecialCharsWithinTagAttributes', function (text, options, globals) {\n \t text = globals.converter._dispatch('escapeSpecialCharsWithinTagAttributes.before', text, options, globals);\n\n \t // Build a regex to find HTML tags.\n \t var tags = /<\\/?[a-z\\d_:-]+(?:[\\s]+[\\s\\S]+?)?>/gi,\n \t comments = /-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;\n\n \t text = text.replace(tags, function (wholeMatch) {\n \t return wholeMatch\n \t .replace(/(.)<\\/?code>(?=.)/g, '$1`')\n \t .replace(/([\\\\`*_~=|])/g, showdown.helper.escapeCharactersCallback);\n \t });\n\n \t text = text.replace(comments, function (wholeMatch) {\n \t return wholeMatch\n \t .replace(/([\\\\`*_~=|])/g, showdown.helper.escapeCharactersCallback);\n \t });\n\n \t text = globals.converter._dispatch('escapeSpecialCharsWithinTagAttributes.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Handle github codeblocks prior to running HashHTML so that\n \t * HTML contained within the codeblock gets escaped properly\n \t * Example:\n \t * ```ruby\n \t * def hello_world(x)\n \t * puts \"Hello, #{x}\"\n \t * end\n \t * ```\n \t */\n \tshowdown.subParser('githubCodeBlocks', function (text, options, globals) {\n\n \t // early exit if option is not enabled\n \t if (!options.ghCodeBlocks) {\n \t return text;\n \t }\n\n \t text = globals.converter._dispatch('githubCodeBlocks.before', text, options, globals);\n\n \t text += '¨0';\n\n \t text = text.replace(/(?:^|\\n)(?: {0,3})(```+|~~~+)(?: *)([^\\s`~]*)\\n([\\s\\S]*?)\\n(?: {0,3})\\1/g, function (wholeMatch, delim, language, codeblock) {\n \t var end = (options.omitExtraWLInCodeBlocks) ? '' : '\\n';\n\n \t // First parse the github code block\n \t codeblock = showdown.subParser('encodeCode')(codeblock, options, globals);\n \t codeblock = showdown.subParser('detab')(codeblock, options, globals);\n \t codeblock = codeblock.replace(/^\\n+/g, ''); // trim leading newlines\n \t codeblock = codeblock.replace(/\\n+$/g, ''); // trim trailing whitespace\n\n \t codeblock = '
' + codeblock + end + '
';\n\n \t codeblock = showdown.subParser('hashBlock')(codeblock, options, globals);\n\n \t // Since GHCodeblocks can be false positives, we need to\n \t // store the primitive text and the parsed text in a global var,\n \t // and then return a token\n \t return '\\n\\n¨G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\\n\\n';\n \t });\n\n \t // attacklab: strip sentinel\n \t text = text.replace(/¨0/, '');\n\n \t return globals.converter._dispatch('githubCodeBlocks.after', text, options, globals);\n \t});\n\r\n \tshowdown.subParser('hashBlock', function (text, options, globals) {\n \t text = globals.converter._dispatch('hashBlock.before', text, options, globals);\n \t text = text.replace(/(^\\n+|\\n+$)/g, '');\n \t text = '\\n\\n¨K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\\n\\n';\n \t text = globals.converter._dispatch('hashBlock.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Hash and escape elements that should not be parsed as markdown\n \t */\n \tshowdown.subParser('hashCodeTags', function (text, options, globals) {\n \t text = globals.converter._dispatch('hashCodeTags.before', text, options, globals);\n\n \t var repFunc = function (wholeMatch, match, left, right) {\n \t var codeblock = left + showdown.subParser('encodeCode')(match, options, globals) + right;\n \t return '¨C' + (globals.gHtmlSpans.push(codeblock) - 1) + 'C';\n \t };\n\n \t // Hash naked \n \t text = showdown.helper.replaceRecursiveRegExp(text, repFunc, ']*>', '', 'gim');\n\n \t text = globals.converter._dispatch('hashCodeTags.after', text, options, globals);\n \t return text;\n \t});\n\r\n \tshowdown.subParser('hashElement', function (text, options, globals) {\n\n \t return function (wholeMatch, m1) {\n \t var blockText = m1;\n\n \t // Undo double lines\n \t blockText = blockText.replace(/\\n\\n/g, '\\n');\n \t blockText = blockText.replace(/^\\n/, '');\n\n \t // strip trailing blank lines\n \t blockText = blockText.replace(/\\n+$/g, '');\n\n \t // Replace the element text with a marker (\"¨KxK\" where x is its key)\n \t blockText = '\\n\\n¨K' + (globals.gHtmlBlocks.push(blockText) - 1) + 'K\\n\\n';\n\n \t return blockText;\n \t };\n \t});\n\r\n \tshowdown.subParser('hashHTMLBlocks', function (text, options, globals) {\n \t text = globals.converter._dispatch('hashHTMLBlocks.before', text, options, globals);\n\n \t var blockTags = [\n \t 'pre',\n \t 'div',\n \t 'h1',\n \t 'h2',\n \t 'h3',\n \t 'h4',\n \t 'h5',\n \t 'h6',\n \t 'blockquote',\n \t 'table',\n \t 'dl',\n \t 'ol',\n \t 'ul',\n \t 'script',\n \t 'noscript',\n \t 'form',\n \t 'fieldset',\n \t 'iframe',\n \t 'math',\n \t 'style',\n \t 'section',\n \t 'header',\n \t 'footer',\n \t 'nav',\n \t 'article',\n \t 'aside',\n \t 'address',\n \t 'audio',\n \t 'canvas',\n \t 'figure',\n \t 'hgroup',\n \t 'output',\n \t 'video',\n \t 'p'\n \t ],\n \t repFunc = function (wholeMatch, match, left, right) {\n \t var txt = wholeMatch;\n \t // check if this html element is marked as markdown\n \t // if so, it's contents should be parsed as markdown\n \t if (left.search(/\\bmarkdown\\b/) !== -1) {\n \t txt = left + globals.converter.makeHtml(match) + right;\n \t }\n \t return '\\n\\n¨K' + (globals.gHtmlBlocks.push(txt) - 1) + 'K\\n\\n';\n \t };\n\n \t if (options.backslashEscapesHTMLTags) {\n \t // encode backslash escaped HTML tags\n \t text = text.replace(/\\\\<(\\/?[^>]+?)>/g, function (wm, inside) {\n \t return '<' + inside + '>';\n \t });\n \t }\n\n \t // hash HTML Blocks\n \t for (var i = 0; i < blockTags.length; ++i) {\n\n \t var opTagPos,\n \t rgx1 = new RegExp('^ {0,3}(<' + blockTags[i] + '\\\\b[^>]*>)', 'im'),\n \t patLeft = '<' + blockTags[i] + '\\\\b[^>]*>',\n \t patRight = '';\n \t // 1. Look for the first position of the first opening HTML tag in the text\n \t while ((opTagPos = showdown.helper.regexIndexOf(text, rgx1)) !== -1) {\n\n \t // if the HTML tag is \\ escaped, we need to escape it and break\n\n\n \t //2. Split the text in that position\n \t var subTexts = showdown.helper.splitAtIndex(text, opTagPos),\n \t //3. Match recursively\n \t newSubText1 = showdown.helper.replaceRecursiveRegExp(subTexts[1], repFunc, patLeft, patRight, 'im');\n\n \t // prevent an infinite loop\n \t if (newSubText1 === subTexts[1]) {\n \t break;\n \t }\n \t text = subTexts[0].concat(newSubText1);\n \t }\n \t }\n \t // HR SPECIAL CASE\n \t text = text.replace(/(\\n {0,3}(<(hr)\\b([^<>])*?\\/?>)[ \\t]*(?=\\n{2,}))/g,\n \t showdown.subParser('hashElement')(text, options, globals));\n\n \t // Special case for standalone HTML comments\n \t text = showdown.helper.replaceRecursiveRegExp(text, function (txt) {\n \t return '\\n\\n¨K' + (globals.gHtmlBlocks.push(txt) - 1) + 'K\\n\\n';\n \t }, '^ {0,3}', 'gm');\n\n \t // PHP and ASP-style processor instructions ( and <%...%>)\n \t text = text.replace(/(?:\\n\\n)( {0,3}(?:<([?%])[^\\r]*?\\2>)[ \\t]*(?=\\n{2,}))/g,\n \t showdown.subParser('hashElement')(text, options, globals));\n\n \t text = globals.converter._dispatch('hashHTMLBlocks.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Hash span elements that should not be parsed as markdown\n \t */\n \tshowdown.subParser('hashHTMLSpans', function (text, options, globals) {\n \t text = globals.converter._dispatch('hashHTMLSpans.before', text, options, globals);\n\n \t function hashHTMLSpan (html) {\n \t return '¨C' + (globals.gHtmlSpans.push(html) - 1) + 'C';\n \t }\n\n \t // Hash Self Closing tags\n \t text = text.replace(/<[^>]+?\\/>/gi, function (wm) {\n \t return hashHTMLSpan(wm);\n \t });\n\n \t // Hash tags without properties\n \t text = text.replace(/<([^>]+?)>[\\s\\S]*?<\\/\\1>/g, function (wm) {\n \t return hashHTMLSpan(wm);\n \t });\n\n \t // Hash tags with properties\n \t text = text.replace(/<([^>]+?)\\s[^>]+?>[\\s\\S]*?<\\/\\1>/g, function (wm) {\n \t return hashHTMLSpan(wm);\n \t });\n\n \t // Hash self closing tags without />\n \t text = text.replace(/<[^>]+?>/gi, function (wm) {\n \t return hashHTMLSpan(wm);\n \t });\n\n \t /*showdown.helper.matchRecursiveRegExp(text, ']*>', '', 'gi');*/\n\n \t text = globals.converter._dispatch('hashHTMLSpans.after', text, options, globals);\n \t return text;\n \t});\n\n \t/**\n \t * Unhash HTML spans\n \t */\n \tshowdown.subParser('unhashHTMLSpans', function (text, options, globals) {\n \t text = globals.converter._dispatch('unhashHTMLSpans.before', text, options, globals);\n\n \t for (var i = 0; i < globals.gHtmlSpans.length; ++i) {\n \t var repText = globals.gHtmlSpans[i],\n \t // limiter to prevent infinite loop (assume 10 as limit for recurse)\n \t limit = 0;\n\n \t while (/¨C(\\d+)C/.test(repText)) {\n \t var num = RegExp.$1;\n \t repText = repText.replace('¨C' + num + 'C', globals.gHtmlSpans[num]);\n \t if (limit === 10) {\n \t console.error('maximum nesting of 10 spans reached!!!');\n \t break;\n \t }\n \t ++limit;\n \t }\n \t text = text.replace('¨C' + i + 'C', repText);\n \t }\n\n \t text = globals.converter._dispatch('unhashHTMLSpans.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Hash and escape
 elements that should not be parsed as markdown\n  \t */\n  \tshowdown.subParser('hashPreCodeTags', function (text, options, globals) {\n  \t  text = globals.converter._dispatch('hashPreCodeTags.before', text, options, globals);\n\n  \t  var repFunc = function (wholeMatch, match, left, right) {\n  \t    // encode html entities\n  \t    var codeblock = left + showdown.subParser('encodeCode')(match, options, globals) + right;\n  \t    return '\\n\\n¨G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\\n\\n';\n  \t  };\n\n  \t  // Hash 
\n  \t  text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^ {0,3}]*>\\\\s*]*>', '^ {0,3}\\\\s*
', 'gim');\n\n \t text = globals.converter._dispatch('hashPreCodeTags.after', text, options, globals);\n \t return text;\n \t});\n\r\n \tshowdown.subParser('headers', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('headers.before', text, options, globals);\n\n \t var headerLevelStart = (isNaN(parseInt(options.headerLevelStart))) ? 1 : parseInt(options.headerLevelStart),\n\n \t // Set text-style headers:\n \t //\tHeader 1\n \t //\t========\n \t //\n \t //\tHeader 2\n \t //\t--------\n \t //\n \t setextRegexH1 = (options.smoothLivePreview) ? /^(.+)[ \\t]*\\n={2,}[ \\t]*\\n+/gm : /^(.+)[ \\t]*\\n=+[ \\t]*\\n+/gm,\n \t setextRegexH2 = (options.smoothLivePreview) ? /^(.+)[ \\t]*\\n-{2,}[ \\t]*\\n+/gm : /^(.+)[ \\t]*\\n-+[ \\t]*\\n+/gm;\n\n \t text = text.replace(setextRegexH1, function (wholeMatch, m1) {\n\n \t var spanGamut = showdown.subParser('spanGamut')(m1, options, globals),\n \t hID = (options.noHeaderId) ? '' : ' id=\"' + headerId(m1) + '\"',\n \t hLevel = headerLevelStart,\n \t hashBlock = '' + spanGamut + '';\n \t return showdown.subParser('hashBlock')(hashBlock, options, globals);\n \t });\n\n \t text = text.replace(setextRegexH2, function (matchFound, m1) {\n \t var spanGamut = showdown.subParser('spanGamut')(m1, options, globals),\n \t hID = (options.noHeaderId) ? '' : ' id=\"' + headerId(m1) + '\"',\n \t hLevel = headerLevelStart + 1,\n \t hashBlock = '' + spanGamut + '';\n \t return showdown.subParser('hashBlock')(hashBlock, options, globals);\n \t });\n\n \t // atx-style headers:\n \t // # Header 1\n \t // ## Header 2\n \t // ## Header 2 with closing hashes ##\n \t // ...\n \t // ###### Header 6\n \t //\n \t var atxStyle = (options.requireSpaceBeforeHeadingText) ? /^(#{1,6})[ \\t]+(.+?)[ \\t]*#*\\n+/gm : /^(#{1,6})[ \\t]*(.+?)[ \\t]*#*\\n+/gm;\n\n \t text = text.replace(atxStyle, function (wholeMatch, m1, m2) {\n \t var hText = m2;\n \t if (options.customizedHeaderId) {\n \t hText = m2.replace(/\\s?\\{([^{]+?)}\\s*$/, '');\n \t }\n\n \t var span = showdown.subParser('spanGamut')(hText, options, globals),\n \t hID = (options.noHeaderId) ? '' : ' id=\"' + headerId(m2) + '\"',\n \t hLevel = headerLevelStart - 1 + m1.length,\n \t header = '' + span + '';\n\n \t return showdown.subParser('hashBlock')(header, options, globals);\n \t });\n\n \t function headerId (m) {\n \t var title,\n \t prefix;\n\n \t // It is separate from other options to allow combining prefix and customized\n \t if (options.customizedHeaderId) {\n \t var match = m.match(/\\{([^{]+?)}\\s*$/);\n \t if (match && match[1]) {\n \t m = match[1];\n \t }\n \t }\n\n \t title = m;\n\n \t // Prefix id to prevent causing inadvertent pre-existing style matches.\n \t if (showdown.helper.isString(options.prefixHeaderId)) {\n \t prefix = options.prefixHeaderId;\n \t } else if (options.prefixHeaderId === true) {\n \t prefix = 'section-';\n \t } else {\n \t prefix = '';\n \t }\n\n \t if (!options.rawPrefixHeaderId) {\n \t title = prefix + title;\n \t }\n\n \t if (options.ghCompatibleHeaderId) {\n \t title = title\n \t .replace(/ /g, '-')\n \t // replace previously escaped chars (&, ¨ and $)\n \t .replace(/&/g, '')\n \t .replace(/¨T/g, '')\n \t .replace(/¨D/g, '')\n \t // replace rest of the chars (&~$ are repeated as they might have been escaped)\n \t // borrowed from github's redcarpet (some they should produce similar results)\n \t .replace(/[&+$,\\/:;=?@\"#{}|^¨~\\[\\]`\\\\*)(%.!'<>]/g, '')\n \t .toLowerCase();\n \t } else if (options.rawHeaderId) {\n \t title = title\n \t .replace(/ /g, '-')\n \t // replace previously escaped chars (&, ¨ and $)\n \t .replace(/&/g, '&')\n \t .replace(/¨T/g, '¨')\n \t .replace(/¨D/g, '$')\n \t // replace \" and '\n \t .replace(/[\"']/g, '-')\n \t .toLowerCase();\n \t } else {\n \t title = title\n \t .replace(/[^\\w]/g, '')\n \t .toLowerCase();\n \t }\n\n \t if (options.rawPrefixHeaderId) {\n \t title = prefix + title;\n \t }\n\n \t if (globals.hashLinkCounts[title]) {\n \t title = title + '-' + (globals.hashLinkCounts[title]++);\n \t } else {\n \t globals.hashLinkCounts[title] = 1;\n \t }\n \t return title;\n \t }\n\n \t text = globals.converter._dispatch('headers.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Turn Markdown link shortcuts into XHTML tags.\n \t */\n \tshowdown.subParser('horizontalRule', function (text, options, globals) {\n \t text = globals.converter._dispatch('horizontalRule.before', text, options, globals);\n\n \t var key = showdown.subParser('hashBlock')('
', options, globals);\n \t text = text.replace(/^ {0,2}( ?-){3,}[ \\t]*$/gm, key);\n \t text = text.replace(/^ {0,2}( ?\\*){3,}[ \\t]*$/gm, key);\n \t text = text.replace(/^ {0,2}( ?_){3,}[ \\t]*$/gm, key);\n\n \t text = globals.converter._dispatch('horizontalRule.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Turn Markdown image shortcuts into tags.\n \t */\n \tshowdown.subParser('images', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('images.before', text, options, globals);\n\n \t var inlineRegExp = /!\\[([^\\]]*?)][ \\t]*()\\([ \\t]??(?: =([*\\d]+[A-Za-z%]{0,4})x([*\\d]+[A-Za-z%]{0,4}))?[ \\t]*(?:([\"'])([^\"]*?)\\6)?[ \\t]?\\)/g,\n \t crazyRegExp = /!\\[([^\\]]*?)][ \\t]*()\\([ \\t]?<([^>]*)>(?: =([*\\d]+[A-Za-z%]{0,4})x([*\\d]+[A-Za-z%]{0,4}))?[ \\t]*(?:(?:([\"'])([^\"]*?)\\6))?[ \\t]?\\)/g,\n \t base64RegExp = /!\\[([^\\]]*?)][ \\t]*()\\([ \\t]??(?: =([*\\d]+[A-Za-z%]{0,4})x([*\\d]+[A-Za-z%]{0,4}))?[ \\t]*(?:([\"'])([^\"]*?)\\6)?[ \\t]?\\)/g,\n \t referenceRegExp = /!\\[([^\\]]*?)] ?(?:\\n *)?\\[([\\s\\S]*?)]()()()()()/g,\n \t refShortcutRegExp = /!\\[([^\\[\\]]+)]()()()()()/g;\n\n \t function writeImageTagBase64 (wholeMatch, altText, linkId, url, width, height, m5, title) {\n \t url = url.replace(/\\s/g, '');\n \t return writeImageTag (wholeMatch, altText, linkId, url, width, height, m5, title);\n \t }\n\n \t function writeImageTag (wholeMatch, altText, linkId, url, width, height, m5, title) {\n\n \t var gUrls = globals.gUrls,\n \t gTitles = globals.gTitles,\n \t gDims = globals.gDimensions;\n\n \t linkId = linkId.toLowerCase();\n\n \t if (!title) {\n \t title = '';\n \t }\n \t // Special case for explicit empty url\n \t if (wholeMatch.search(/\\(? ?(['\"].*['\"])?\\)$/m) > -1) {\n \t url = '';\n\n \t } else if (url === '' || url === null) {\n \t if (linkId === '' || linkId === null) {\n \t // lower-case and turn embedded newlines into spaces\n \t linkId = altText.toLowerCase().replace(/ ?\\n/g, ' ');\n \t }\n \t url = '#' + linkId;\n\n \t if (!showdown.helper.isUndefined(gUrls[linkId])) {\n \t url = gUrls[linkId];\n \t if (!showdown.helper.isUndefined(gTitles[linkId])) {\n \t title = gTitles[linkId];\n \t }\n \t if (!showdown.helper.isUndefined(gDims[linkId])) {\n \t width = gDims[linkId].width;\n \t height = gDims[linkId].height;\n \t }\n \t } else {\n \t return wholeMatch;\n \t }\n \t }\n\n \t altText = altText\n \t .replace(/\"/g, '"')\n \t //altText = showdown.helper.escapeCharacters(altText, '*_', false);\n \t .replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback);\n \t //url = showdown.helper.escapeCharacters(url, '*_', false);\n \t url = url.replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback);\n \t var result = '\"'x \"optional title\")\n\n \t // base64 encoded images\n \t text = text.replace(base64RegExp, writeImageTagBase64);\n\n \t // cases with crazy urls like ./image/cat1).png\n \t text = text.replace(crazyRegExp, writeImageTag);\n\n \t // normal cases\n \t text = text.replace(inlineRegExp, writeImageTag);\n\n \t // handle reference-style shortcuts: ![img text]\n \t text = text.replace(refShortcutRegExp, writeImageTag);\n\n \t text = globals.converter._dispatch('images.after', text, options, globals);\n \t return text;\n \t});\n\r\n \tshowdown.subParser('italicsAndBold', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('italicsAndBold.before', text, options, globals);\n\n \t // it's faster to have 3 separate regexes for each case than have just one\n \t // because of backtracing, in some cases, it could lead to an exponential effect\n \t // called \"catastrophic backtrace\". Ominous!\n\n \t function parseInside (txt, left, right) {\n \t /*\n \t if (options.simplifiedAutoLink) {\n \t txt = showdown.subParser('simplifiedAutoLinks')(txt, options, globals);\n \t }\n \t */\n \t return left + txt + right;\n \t }\n\n \t // Parse underscores\n \t if (options.literalMidWordUnderscores) {\n \t text = text.replace(/\\b___(\\S[\\s\\S]*?)___\\b/g, function (wm, txt) {\n \t return parseInside (txt, '', '');\n \t });\n \t text = text.replace(/\\b__(\\S[\\s\\S]*?)__\\b/g, function (wm, txt) {\n \t return parseInside (txt, '', '');\n \t });\n \t text = text.replace(/\\b_(\\S[\\s\\S]*?)_\\b/g, function (wm, txt) {\n \t return parseInside (txt, '', '');\n \t });\n \t } else {\n \t text = text.replace(/___(\\S[\\s\\S]*?)___/g, function (wm, m) {\n \t return (/\\S$/.test(m)) ? parseInside (m, '', '') : wm;\n \t });\n \t text = text.replace(/__(\\S[\\s\\S]*?)__/g, function (wm, m) {\n \t return (/\\S$/.test(m)) ? parseInside (m, '', '') : wm;\n \t });\n \t text = text.replace(/_([^\\s_][\\s\\S]*?)_/g, function (wm, m) {\n \t // !/^_[^_]/.test(m) - test if it doesn't start with __ (since it seems redundant, we removed it)\n \t return (/\\S$/.test(m)) ? parseInside (m, '', '') : wm;\n \t });\n \t }\n\n \t // Now parse asterisks\n \t if (options.literalMidWordAsterisks) {\n \t text = text.replace(/([^*]|^)\\B\\*\\*\\*(\\S[\\s\\S]*?)\\*\\*\\*\\B(?!\\*)/g, function (wm, lead, txt) {\n \t return parseInside (txt, lead + '', '');\n \t });\n \t text = text.replace(/([^*]|^)\\B\\*\\*(\\S[\\s\\S]*?)\\*\\*\\B(?!\\*)/g, function (wm, lead, txt) {\n \t return parseInside (txt, lead + '', '');\n \t });\n \t text = text.replace(/([^*]|^)\\B\\*(\\S[\\s\\S]*?)\\*\\B(?!\\*)/g, function (wm, lead, txt) {\n \t return parseInside (txt, lead + '', '');\n \t });\n \t } else {\n \t text = text.replace(/\\*\\*\\*(\\S[\\s\\S]*?)\\*\\*\\*/g, function (wm, m) {\n \t return (/\\S$/.test(m)) ? parseInside (m, '', '') : wm;\n \t });\n \t text = text.replace(/\\*\\*(\\S[\\s\\S]*?)\\*\\*/g, function (wm, m) {\n \t return (/\\S$/.test(m)) ? parseInside (m, '', '') : wm;\n \t });\n \t text = text.replace(/\\*([^\\s*][\\s\\S]*?)\\*/g, function (wm, m) {\n \t // !/^\\*[^*]/.test(m) - test if it doesn't start with ** (since it seems redundant, we removed it)\n \t return (/\\S$/.test(m)) ? parseInside (m, '', '') : wm;\n \t });\n \t }\n\n\n \t text = globals.converter._dispatch('italicsAndBold.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Form HTML ordered (numbered) and unordered (bulleted) lists.\n \t */\n \tshowdown.subParser('lists', function (text, options, globals) {\n\n \t /**\n \t * Process the contents of a single ordered or unordered list, splitting it\n \t * into individual list items.\n \t * @param {string} listStr\n \t * @param {boolean} trimTrailing\n \t * @returns {string}\n \t */\n \t function processListItems (listStr, trimTrailing) {\n \t // The $g_list_level global keeps track of when we're inside a list.\n \t // Each time we enter a list, we increment it; when we leave a list,\n \t // we decrement. If it's zero, we're not in a list anymore.\n \t //\n \t // We do this because when we're not inside a list, we want to treat\n \t // something like this:\n \t //\n \t // I recommend upgrading to version\n \t // 8. Oops, now this line is treated\n \t // as a sub-list.\n \t //\n \t // As a single paragraph, despite the fact that the second line starts\n \t // with a digit-period-space sequence.\n \t //\n \t // Whereas when we're inside a list (or sub-list), that line will be\n \t // treated as the start of a sub-list. What a kludge, huh? This is\n \t // an aspect of Markdown's syntax that's hard to parse perfectly\n \t // without resorting to mind-reading. Perhaps the solution is to\n \t // change the syntax rules such that sub-lists must start with a\n \t // starting cardinal number; e.g. \"1.\" or \"a.\".\n \t globals.gListLevel++;\n\n \t // trim trailing blank lines:\n \t listStr = listStr.replace(/\\n{2,}$/, '\\n');\n\n \t // attacklab: add sentinel to emulate \\z\n \t listStr += '¨0';\n\n \t var rgx = /(\\n)?(^ {0,3})([*+-]|\\d+[.])[ \\t]+((\\[(x|X| )?])?[ \\t]*[^\\r]+?(\\n{1,2}))(?=\\n*(¨0| {0,3}([*+-]|\\d+[.])[ \\t]+))/gm,\n \t isParagraphed = (/\\n[ \\t]*\\n(?!¨0)/.test(listStr));\n\n \t // Since version 1.5, nesting sublists requires 4 spaces (or 1 tab) indentation,\n \t // which is a syntax breaking change\n \t // activating this option reverts to old behavior\n \t if (options.disableForced4SpacesIndentedSublists) {\n \t rgx = /(\\n)?(^ {0,3})([*+-]|\\d+[.])[ \\t]+((\\[(x|X| )?])?[ \\t]*[^\\r]+?(\\n{1,2}))(?=\\n*(¨0|\\2([*+-]|\\d+[.])[ \\t]+))/gm;\n \t }\n\n \t listStr = listStr.replace(rgx, function (wholeMatch, m1, m2, m3, m4, taskbtn, checked) {\n \t checked = (checked && checked.trim() !== '');\n\n \t var item = showdown.subParser('outdent')(m4, options, globals),\n \t bulletStyle = '';\n\n \t // Support for github tasklists\n \t if (taskbtn && options.tasklists) {\n \t bulletStyle = ' class=\"task-list-item\" style=\"list-style-type: none;\"';\n \t item = item.replace(/^[ \\t]*\\[(x|X| )?]/m, function () {\n \t var otp = '
  • a
  • \n \t // instead of:\n \t //
    • - - a
    \n \t // So, to prevent it, we will put a marker (¨A)in the beginning of the line\n \t // Kind of hackish/monkey patching, but seems more effective than overcomplicating the list parser\n \t item = item.replace(/^([-*+]|\\d\\.)[ \\t]+[\\S\\n ]*/g, function (wm2) {\n \t return '¨A' + wm2;\n \t });\n\n \t // m1 - Leading line or\n \t // Has a double return (multi paragraph) or\n \t // Has sublist\n \t if (m1 || (item.search(/\\n{2,}/) > -1)) {\n \t item = showdown.subParser('githubCodeBlocks')(item, options, globals);\n \t item = showdown.subParser('blockGamut')(item, options, globals);\n \t } else {\n \t // Recursion for sub-lists:\n \t item = showdown.subParser('lists')(item, options, globals);\n \t item = item.replace(/\\n$/, ''); // chomp(item)\n \t item = showdown.subParser('hashHTMLBlocks')(item, options, globals);\n\n \t // Colapse double linebreaks\n \t item = item.replace(/\\n\\n+/g, '\\n\\n');\n \t if (isParagraphed) {\n \t item = showdown.subParser('paragraphs')(item, options, globals);\n \t } else {\n \t item = showdown.subParser('spanGamut')(item, options, globals);\n \t }\n \t }\n\n \t // now we need to remove the marker (¨A)\n \t item = item.replace('¨A', '');\n \t // we can finally wrap the line in list item tags\n \t item = '' + item + '\\n';\n\n \t return item;\n \t });\n\n \t // attacklab: strip sentinel\n \t listStr = listStr.replace(/¨0/g, '');\n\n \t globals.gListLevel--;\n\n \t if (trimTrailing) {\n \t listStr = listStr.replace(/\\s+$/, '');\n \t }\n\n \t return listStr;\n \t }\n\n \t function styleStartNumber (list, listType) {\n \t // check if ol and starts by a number different than 1\n \t if (listType === 'ol') {\n \t var res = list.match(/^ *(\\d+)\\./);\n \t if (res && res[1] !== '1') {\n \t return ' start=\"' + res[1] + '\"';\n \t }\n \t }\n \t return '';\n \t }\n\n \t /**\n \t * Check and parse consecutive lists (better fix for issue #142)\n \t * @param {string} list\n \t * @param {string} listType\n \t * @param {boolean} trimTrailing\n \t * @returns {string}\n \t */\n \t function parseConsecutiveLists (list, listType, trimTrailing) {\n \t // check if we caught 2 or more consecutive lists by mistake\n \t // we use the counterRgx, meaning if listType is UL we look for OL and vice versa\n \t var olRgx = (options.disableForced4SpacesIndentedSublists) ? /^ ?\\d+\\.[ \\t]/gm : /^ {0,3}\\d+\\.[ \\t]/gm,\n \t ulRgx = (options.disableForced4SpacesIndentedSublists) ? /^ ?[*+-][ \\t]/gm : /^ {0,3}[*+-][ \\t]/gm,\n \t counterRxg = (listType === 'ul') ? olRgx : ulRgx,\n \t result = '';\n\n \t if (list.search(counterRxg) !== -1) {\n \t (function parseCL (txt) {\n \t var pos = txt.search(counterRxg),\n \t style = styleStartNumber(list, listType);\n \t if (pos !== -1) {\n \t // slice\n \t result += '\\n\\n<' + listType + style + '>\\n' + processListItems(txt.slice(0, pos), !!trimTrailing) + '\\n';\n\n \t // invert counterType and listType\n \t listType = (listType === 'ul') ? 'ol' : 'ul';\n \t counterRxg = (listType === 'ul') ? olRgx : ulRgx;\n\n \t //recurse\n \t parseCL(txt.slice(pos));\n \t } else {\n \t result += '\\n\\n<' + listType + style + '>\\n' + processListItems(txt, !!trimTrailing) + '\\n';\n \t }\n \t })(list);\n \t } else {\n \t var style = styleStartNumber(list, listType);\n \t result = '\\n\\n<' + listType + style + '>\\n' + processListItems(list, !!trimTrailing) + '\\n';\n \t }\n\n \t return result;\n \t }\n\n \t /** Start of list parsing **/\n \t text = globals.converter._dispatch('lists.before', text, options, globals);\n \t // add sentinel to hack around khtml/safari bug:\n \t // http://bugs.webkit.org/show_bug.cgi?id=11231\n \t text += '¨0';\n\n \t if (globals.gListLevel) {\n \t text = text.replace(/^(( {0,3}([*+-]|\\d+[.])[ \\t]+)[^\\r]+?(¨0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.])[ \\t]+)))/gm,\n \t function (wholeMatch, list, m2) {\n \t var listType = (m2.search(/[*+-]/g) > -1) ? 'ul' : 'ol';\n \t return parseConsecutiveLists(list, listType, true);\n \t }\n \t );\n \t } else {\n \t text = text.replace(/(\\n\\n|^\\n?)(( {0,3}([*+-]|\\d+[.])[ \\t]+)[^\\r]+?(¨0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.])[ \\t]+)))/gm,\n \t function (wholeMatch, m1, list, m3) {\n \t var listType = (m3.search(/[*+-]/g) > -1) ? 'ul' : 'ol';\n \t return parseConsecutiveLists(list, listType, false);\n \t }\n \t );\n \t }\n\n \t // strip sentinel\n \t text = text.replace(/¨0/, '');\n \t text = globals.converter._dispatch('lists.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Parse metadata at the top of the document\n \t */\n \tshowdown.subParser('metadata', function (text, options, globals) {\n\n \t if (!options.metadata) {\n \t return text;\n \t }\n\n \t text = globals.converter._dispatch('metadata.before', text, options, globals);\n\n \t function parseMetadataContents (content) {\n \t // raw is raw so it's not changed in any way\n \t globals.metadata.raw = content;\n\n \t // escape chars forbidden in html attributes\n \t // double quotes\n \t content = content\n \t // ampersand first\n \t .replace(/&/g, '&')\n \t // double quotes\n \t .replace(/\"/g, '"');\n\n \t content = content.replace(/\\n {4}/g, ' ');\n \t content.replace(/^([\\S ]+): +([\\s\\S]+?)$/gm, function (wm, key, value) {\n \t globals.metadata.parsed[key] = value;\n \t return '';\n \t });\n \t }\n\n \t text = text.replace(/^\\s*«««+(\\S*?)\\n([\\s\\S]+?)\\n»»»+\\n/, function (wholematch, format, content) {\n \t parseMetadataContents(content);\n \t return '¨M';\n \t });\n\n \t text = text.replace(/^\\s*---+(\\S*?)\\n([\\s\\S]+?)\\n---+\\n/, function (wholematch, format, content) {\n \t if (format) {\n \t globals.metadata.format = format;\n \t }\n \t parseMetadataContents(content);\n \t return '¨M';\n \t });\n\n \t text = text.replace(/¨M/g, '');\n\n \t text = globals.converter._dispatch('metadata.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t * Remove one level of line-leading tabs or spaces\n \t */\n \tshowdown.subParser('outdent', function (text, options, globals) {\n \t text = globals.converter._dispatch('outdent.before', text, options, globals);\n\n \t // attacklab: hack around Konqueror 3.5.4 bug:\n \t // \"----------bug\".replace(/^-/g,\"\") == \"bug\"\n \t text = text.replace(/^(\\t|[ ]{1,4})/gm, '¨0'); // attacklab: g_tab_width\n\n \t // attacklab: clean up hack\n \t text = text.replace(/¨0/g, '');\n\n \t text = globals.converter._dispatch('outdent.after', text, options, globals);\n \t return text;\n \t});\n\r\n \t/**\n \t *\n \t */\n \tshowdown.subParser('paragraphs', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('paragraphs.before', text, options, globals);\n \t // Strip leading and trailing lines:\n \t text = text.replace(/^\\n+/g, '');\n \t text = text.replace(/\\n+$/g, '');\n\n \t var grafs = text.split(/\\n{2,}/g),\n \t grafsOut = [],\n \t end = grafs.length; // Wrap

    tags\n\n \t for (var i = 0; i < end; i++) {\n \t var str = grafs[i];\n \t // if this is an HTML marker, copy it\n \t if (str.search(/¨(K|G)(\\d+)\\1/g) >= 0) {\n \t grafsOut.push(str);\n\n \t // test for presence of characters to prevent empty lines being parsed\n \t // as paragraphs (resulting in undesired extra empty paragraphs)\n \t } else if (str.search(/\\S/) >= 0) {\n \t str = showdown.subParser('spanGamut')(str, options, globals);\n \t str = str.replace(/^([ \\t]*)/g, '

    ');\n \t str += '

    ';\n \t grafsOut.push(str);\n \t }\n \t }\n\n \t /** Unhashify HTML blocks */\n \t end = grafsOut.length;\n \t for (i = 0; i < end; i++) {\n \t var blockText = '',\n \t grafsOutIt = grafsOut[i],\n \t codeFlag = false;\n \t // if this is a marker for an html block...\n \t // use RegExp.test instead of string.search because of QML bug\n \t while (/¨(K|G)(\\d+)\\1/.test(grafsOutIt)) {\n \t var delim = RegExp.$1,\n \t num = RegExp.$2;\n\n \t if (delim === 'K') {\n \t blockText = globals.gHtmlBlocks[num];\n \t } else {\n \t // we need to check if ghBlock is a false positive\n \t if (codeFlag) {\n \t // use encoded version of all text\n \t blockText = showdown.subParser('encodeCode')(globals.ghCodeBlocks[num].text, options, globals);\n \t } else {\n \t blockText = globals.ghCodeBlocks[num].codeblock;\n \t }\n \t }\n \t blockText = blockText.replace(/\\$/g, '$$$$'); // Escape any dollar signs\n\n \t grafsOutIt = grafsOutIt.replace(/(\\n\\n)?¨(K|G)\\d+\\2(\\n\\n)?/, blockText);\n \t // Check if grafsOutIt is a pre->code\n \t if (/^]*>\\s*]*>/.test(grafsOutIt)) {\n \t codeFlag = true;\n \t }\n \t }\n \t grafsOut[i] = grafsOutIt;\n \t }\n \t text = grafsOut.join('\\n');\n \t // Strip leading and trailing lines:\n \t text = text.replace(/^\\n+/g, '');\n \t text = text.replace(/\\n+$/g, '');\n \t return globals.converter._dispatch('paragraphs.after', text, options, globals);\n \t});\n\r\n \t/**\n \t * Run extension\n \t */\n \tshowdown.subParser('runExtension', function (ext, text, options, globals) {\n\n \t if (ext.filter) {\n \t text = ext.filter(text, globals.converter, options);\n\n \t } else if (ext.regex) {\n \t // TODO remove this when old extension loading mechanism is deprecated\n \t var re = ext.regex;\n \t if (!(re instanceof RegExp)) {\n \t re = new RegExp(re, 'g');\n \t }\n \t text = text.replace(re, ext.replace);\n \t }\n\n \t return text;\n \t});\n\r\n \t/**\n \t * These are all the transformations that occur *within* block-level\n \t * tags like paragraphs, headers, and list items.\n \t */\n \tshowdown.subParser('spanGamut', function (text, options, globals) {\n\n \t text = globals.converter._dispatch('spanGamut.before', text, options, globals);\n \t text = showdown.subParser('codeSpans')(text, options, globals);\n \t text = showdown.subParser('escapeSpecialCharsWithinTagAttributes')(text, options, globals);\n \t text = showdown.subParser('encodeBackslashEscapes')(text, options, globals);\n\n \t // Process anchor and image tags. Images must come first,\n \t // because ![foo][f] looks like an anchor.\n \t text = showdown.subParser('images')(text, options, globals);\n \t text = showdown.subParser('anchors')(text, options, globals);\n\n \t // Make links out of things like ``\n \t // Must come after anchors, because you can use < and >\n \t // delimiters in inline links like [this]().\n \t text = showdown.subParser('autoLinks')(text, options, globals);\n \t text = showdown.subParser('simplifiedAutoLinks')(text, options, globals);\n \t text = showdown.subParser('emoji')(text, options, globals);\n \t text = showdown.subParser('underline')(text, options, globals);\n \t text = showdown.subParser('italicsAndBold')(text, options, globals);\n \t text = showdown.subParser('strikethrough')(text, options, globals);\n \t text = showdown.subParser('ellipsis')(text, options, globals);\n\n \t // we need to hash HTML tags inside spans\n \t text = showdown.subParser('hashHTMLSpans')(text, options, globals);\n\n \t // now we encode amps and angles\n \t text = showdown.subParser('encodeAmpsAndAngles')(text, options, globals);\n\n \t // Do hard breaks\n \t if (options.simpleLineBreaks) {\n \t // GFM style hard breaks\n \t // only add line breaks if the text does not contain a block (special case for lists)\n \t if (!/\\n\\n¨K/.test(text)) {\n \t text = text.replace(/\\n+/g, '
    \\n');\n \t }\n \t } else {\n \t // Vanilla hard breaks\n \t text = text.replace(/ +\\n/g, '
    \\n');\n \t }\n\n \t text = globals.converter._dispatch('spanGamut.after', text, options, globals);\n \t return text;\n \t});\n\r\n \tshowdown.subParser('strikethrough', function (text, options, globals) {\n\n \t function parseInside (txt) {\n \t if (options.simplifiedAutoLink) {\n \t txt = showdown.subParser('simplifiedAutoLinks')(txt, options, globals);\n \t }\n \t return '' + txt + '';\n \t }\n\n \t if (options.strikethrough) {\n \t text = globals.converter._dispatch('strikethrough.before', text, options, globals);\n \t text = text.replace(/(?:~){2}([\\s\\S]+?)(?:~){2}/g, function (wm, txt) { return parseInside(txt); });\n \t text = globals.converter._dispatch('strikethrough.after', text, options, globals);\n \t }\n\n \t return text;\n \t});\n\r\n \t/**\n \t * Strips link definitions from text, stores the URLs and titles in\n \t * hash references.\n \t * Link defs are in the form: ^[id]: url \"optional title\"\n \t */\n \tshowdown.subParser('stripLinkDefinitions', function (text, options, globals) {\n\n \t var regex = /^ {0,3}\\[([^\\]]+)]:[ \\t]*\\n?[ \\t]*\\s]+)>?(?: =([*\\d]+[A-Za-z%]{0,4})x([*\\d]+[A-Za-z%]{0,4}))?[ \\t]*\\n?[ \\t]*(?:(\\n*)[\"|'(](.+?)[\"|')][ \\t]*)?(?:\\n+|(?=¨0))/gm,\n \t base64Regex = /^ {0,3}\\[([^\\]]+)]:[ \\t]*\\n?[ \\t]*?(?: =([*\\d]+[A-Za-z%]{0,4})x([*\\d]+[A-Za-z%]{0,4}))?[ \\t]*\\n?[ \\t]*(?:(\\n*)[\"|'(](.+?)[\"|')][ \\t]*)?(?:\\n\\n|(?=¨0)|(?=\\n\\[))/gm;\n\n \t // attacklab: sentinel workarounds for lack of \\A and \\Z, safari\\khtml bug\n \t text += '¨0';\n\n \t var replaceFunc = function (wholeMatch, linkId, url, width, height, blankLines, title) {\n\n \t // if there aren't two instances of linkId it must not be a reference link so back out\n \t linkId = linkId.toLowerCase();\n \t if (text.toLowerCase().split(linkId).length - 1 < 2) {\n \t return wholeMatch;\n \t }\n \t if (url.match(/^data:.+?\\/.+?;base64,/)) {\n \t // remove newlines\n \t globals.gUrls[linkId] = url.replace(/\\s/g, '');\n \t } else {\n \t globals.gUrls[linkId] = showdown.subParser('encodeAmpsAndAngles')(url, options, globals); // Link IDs are case-insensitive\n \t }\n\n \t if (blankLines) {\n \t // Oops, found blank lines, so it's not a title.\n \t // Put back the parenthetical statement we stole.\n \t return blankLines + title;\n\n \t } else {\n \t if (title) {\n \t globals.gTitles[linkId] = title.replace(/\"|'/g, '"');\n \t }\n \t if (options.parseImgDimensions && width && height) {\n \t globals.gDimensions[linkId] = {\n \t width: width,\n \t height: height\n \t };\n \t }\n \t }\n \t // Completely remove the definition from the text\n \t return '';\n \t };\n\n \t // first we try to find base64 link references\n \t text = text.replace(base64Regex, replaceFunc);\n\n \t text = text.replace(regex, replaceFunc);\n\n \t // attacklab: strip sentinel\n \t text = text.replace(/¨0/, '');\n\n \t return text;\n \t});\n\r\n \tshowdown.subParser('tables', function (text, options, globals) {\n\n \t if (!options.tables) {\n \t return text;\n \t }\n\n \t var tableRgx = /^ {0,3}\\|?.+\\|.+\\n {0,3}\\|?[ \\t]*:?[ \\t]*(?:[-=]){2,}[ \\t]*:?[ \\t]*\\|[ \\t]*:?[ \\t]*(?:[-=]){2,}[\\s\\S]+?(?:\\n\\n|¨0)/gm,\n \t //singeColTblRgx = /^ {0,3}\\|.+\\|\\n {0,3}\\|[ \\t]*:?[ \\t]*(?:[-=]){2,}[ \\t]*:?[ \\t]*\\|[ \\t]*\\n(?: {0,3}\\|.+\\|\\n)+(?:\\n\\n|¨0)/gm;\n \t singeColTblRgx = /^ {0,3}\\|.+\\|[ \\t]*\\n {0,3}\\|[ \\t]*:?[ \\t]*(?:[-=]){2,}[ \\t]*:?[ \\t]*\\|[ \\t]*\\n( {0,3}\\|.+\\|[ \\t]*\\n)*(?:\\n|¨0)/gm;\n\n \t function parseStyles (sLine) {\n \t if (/^:[ \\t]*--*$/.test(sLine)) {\n \t return ' style=\"text-align:left;\"';\n \t } else if (/^--*[ \\t]*:[ \\t]*$/.test(sLine)) {\n \t return ' style=\"text-align:right;\"';\n \t } else if (/^:[ \\t]*--*[ \\t]*:$/.test(sLine)) {\n \t return ' style=\"text-align:center;\"';\n \t } else {\n \t return '';\n \t }\n \t }\n\n \t function parseHeaders (header, style) {\n \t var id = '';\n \t header = header.trim();\n \t // support both tablesHeaderId and tableHeaderId due to error in documentation so we don't break backwards compatibility\n \t if (options.tablesHeaderId || options.tableHeaderId) {\n \t id = ' id=\"' + header.replace(/ /g, '_').toLowerCase() + '\"';\n \t }\n \t header = showdown.subParser('spanGamut')(header, options, globals);\n\n \t return '' + header + '\\n';\n \t }\n\n \t function parseCells (cell, style) {\n \t var subText = showdown.subParser('spanGamut')(cell, options, globals);\n \t return '' + subText + '\\n';\n \t }\n\n \t function buildTable (headers, cells) {\n \t var tb = '\\n\\n\\n',\n \t tblLgn = headers.length;\n\n \t for (var i = 0; i < tblLgn; ++i) {\n \t tb += headers[i];\n \t }\n \t tb += '\\n\\n\\n';\n\n \t for (i = 0; i < cells.length; ++i) {\n \t tb += '\\n';\n \t for (var ii = 0; ii < tblLgn; ++ii) {\n \t tb += cells[i][ii];\n \t }\n \t tb += '\\n';\n \t }\n \t tb += '\\n
    \\n';\n \t return tb;\n \t }\n\n \t function parseTable (rawTable) {\n \t var i, tableLines = rawTable.split('\\n');\n\n \t for (i = 0; i < tableLines.length; ++i) {\n \t // strip wrong first and last column if wrapped tables are used\n \t if (/^ {0,3}\\|/.test(tableLines[i])) {\n \t tableLines[i] = tableLines[i].replace(/^ {0,3}\\|/, '');\n \t }\n \t if (/\\|[ \\t]*$/.test(tableLines[i])) {\n \t tableLines[i] = tableLines[i].replace(/\\|[ \\t]*$/, '');\n \t }\n \t // parse code spans first, but we only support one line code spans\n \t tableLines[i] = showdown.subParser('codeSpans')(tableLines[i], options, globals);\n \t }\n\n \t var rawHeaders = tableLines[0].split('|').map(function (s) { return s.trim();}),\n \t rawStyles = tableLines[1].split('|').map(function (s) { return s.trim();}),\n \t rawCells = [],\n \t headers = [],\n \t styles = [],\n \t cells = [];\n\n \t tableLines.shift();\n \t tableLines.shift();\n\n \t for (i = 0; i < tableLines.length; ++i) {\n \t if (tableLines[i].trim() === '') {\n \t continue;\n \t }\n \t rawCells.push(\n \t tableLines[i]\n \t .split('|')\n \t .map(function (s) {\n \t return s.trim();\n \t })\n \t );\n \t }\n\n \t if (rawHeaders.length < rawStyles.length) {\n \t return rawTable;\n \t }\n\n \t for (i = 0; i < rawStyles.length; ++i) {\n \t styles.push(parseStyles(rawStyles[i]));\n \t }\n\n \t for (i = 0; i < rawHeaders.length; ++i) {\n \t if (showdown.helper.isUndefined(styles[i])) {\n \t styles[i] = '';\n \t }\n \t headers.push(parseHeaders(rawHeaders[i], styles[i]));\n \t }\n\n \t for (i = 0; i < rawCells.length; ++i) {\n \t var row = [];\n \t for (var ii = 0; ii < headers.length; ++ii) {\n \t if (showdown.helper.isUndefined(rawCells[i][ii])) ;\n \t row.push(parseCells(rawCells[i][ii], styles[ii]));\n \t }\n \t cells.push(row);\n \t }\n\n \t return buildTable(headers, cells);\n \t }\n\n \t text = globals.converter._dispatch('tables.before', text, options, globals);\n\n \t // find escaped pipe characters\n \t text = text.replace(/\\\\(\\|)/g, showdown.helper.escapeCharactersCallback);\n\n \t // parse multi column tables\n \t text = text.replace(tableRgx, parseTable);\n\n \t // parse one column tables\n \t text = text.replace(singeColTblRgx, parseTable);\n\n \t text = globals.converter._dispatch('tables.after', text, options, globals);\n\n \t return text;\n \t});\n\r\n \tshowdown.subParser('underline', function (text, options, globals) {\n\n \t if (!options.underline) {\n \t return text;\n \t }\n\n \t text = globals.converter._dispatch('underline.before', text, options, globals);\n\n \t if (options.literalMidWordUnderscores) {\n \t text = text.replace(/\\b___(\\S[\\s\\S]*?)___\\b/g, function (wm, txt) {\n \t return '' + txt + '';\n \t });\n \t text = text.replace(/\\b__(\\S[\\s\\S]*?)__\\b/g, function (wm, txt) {\n \t return '' + txt + '';\n \t });\n \t } else {\n \t text = text.replace(/___(\\S[\\s\\S]*?)___/g, function (wm, m) {\n \t return (/\\S$/.test(m)) ? '' + m + '' : wm;\n \t });\n \t text = text.replace(/__(\\S[\\s\\S]*?)__/g, function (wm, m) {\n \t return (/\\S$/.test(m)) ? '' + m + '' : wm;\n \t });\n \t }\n\n \t // escape remaining underscores to prevent them being parsed by italic and bold\n \t text = text.replace(/(_)/g, showdown.helper.escapeCharactersCallback);\n\n \t text = globals.converter._dispatch('underline.after', text, options, globals);\n\n \t return text;\n \t});\n\r\n \t/**\n \t * Swap back in all the special characters we've hidden.\n \t */\n \tshowdown.subParser('unescapeSpecialChars', function (text, options, globals) {\n \t text = globals.converter._dispatch('unescapeSpecialChars.before', text, options, globals);\n\n \t text = text.replace(/¨E(\\d+)E/g, function (wholeMatch, m1) {\n \t var charCodeToReplace = parseInt(m1);\n \t return String.fromCharCode(charCodeToReplace);\n \t });\n\n \t text = globals.converter._dispatch('unescapeSpecialChars.after', text, options, globals);\n \t return text;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.blockquote', function (node, globals) {\n\n \t var txt = '';\n \t if (node.hasChildNodes()) {\n \t var children = node.childNodes,\n \t childrenLength = children.length;\n\n \t for (var i = 0; i < childrenLength; ++i) {\n \t var innerTxt = showdown.subParser('makeMarkdown.node')(children[i], globals);\n\n \t if (innerTxt === '') {\n \t continue;\n \t }\n \t txt += innerTxt;\n \t }\n \t }\n \t // cleanup\n \t txt = txt.trim();\n \t txt = '> ' + txt.split('\\n').join('\\n> ');\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.codeBlock', function (node, globals) {\n\n \t var lang = node.getAttribute('language'),\n \t num = node.getAttribute('precodenum');\n \t return '```' + lang + '\\n' + globals.preList[num] + '\\n```';\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.codeSpan', function (node) {\n\n \t return '`' + node.innerHTML + '`';\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.emphasis', function (node, globals) {\n\n \t var txt = '';\n \t if (node.hasChildNodes()) {\n \t txt += '*';\n \t var children = node.childNodes,\n \t childrenLength = children.length;\n \t for (var i = 0; i < childrenLength; ++i) {\n \t txt += showdown.subParser('makeMarkdown.node')(children[i], globals);\n \t }\n \t txt += '*';\n \t }\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.header', function (node, globals, headerLevel) {\n\n \t var headerMark = new Array(headerLevel + 1).join('#'),\n \t txt = '';\n\n \t if (node.hasChildNodes()) {\n \t txt = headerMark + ' ';\n \t var children = node.childNodes,\n \t childrenLength = children.length;\n\n \t for (var i = 0; i < childrenLength; ++i) {\n \t txt += showdown.subParser('makeMarkdown.node')(children[i], globals);\n \t }\n \t }\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.hr', function () {\n\n \t return '---';\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.image', function (node) {\n\n \t var txt = '';\n \t if (node.hasAttribute('src')) {\n \t txt += '![' + node.getAttribute('alt') + '](';\n \t txt += '<' + node.getAttribute('src') + '>';\n \t if (node.hasAttribute('width') && node.hasAttribute('height')) {\n \t txt += ' =' + node.getAttribute('width') + 'x' + node.getAttribute('height');\n \t }\n\n \t if (node.hasAttribute('title')) {\n \t txt += ' \"' + node.getAttribute('title') + '\"';\n \t }\n \t txt += ')';\n \t }\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.links', function (node, globals) {\n\n \t var txt = '';\n \t if (node.hasChildNodes() && node.hasAttribute('href')) {\n \t var children = node.childNodes,\n \t childrenLength = children.length;\n \t txt = '[';\n \t for (var i = 0; i < childrenLength; ++i) {\n \t txt += showdown.subParser('makeMarkdown.node')(children[i], globals);\n \t }\n \t txt += '](';\n \t txt += '<' + node.getAttribute('href') + '>';\n \t if (node.hasAttribute('title')) {\n \t txt += ' \"' + node.getAttribute('title') + '\"';\n \t }\n \t txt += ')';\n \t }\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.list', function (node, globals, type) {\n\n \t var txt = '';\n \t if (!node.hasChildNodes()) {\n \t return '';\n \t }\n \t var listItems = node.childNodes,\n \t listItemsLenght = listItems.length,\n \t listNum = node.getAttribute('start') || 1;\n\n \t for (var i = 0; i < listItemsLenght; ++i) {\n \t if (typeof listItems[i].tagName === 'undefined' || listItems[i].tagName.toLowerCase() !== 'li') {\n \t continue;\n \t }\n\n \t // define the bullet to use in list\n \t var bullet = '';\n \t if (type === 'ol') {\n \t bullet = listNum.toString() + '. ';\n \t } else {\n \t bullet = '- ';\n \t }\n\n \t // parse list item\n \t txt += bullet + showdown.subParser('makeMarkdown.listItem')(listItems[i], globals);\n \t ++listNum;\n \t }\n\n \t // add comment at the end to prevent consecutive lists to be parsed as one\n \t txt += '\\n\\n';\n \t return txt.trim();\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.listItem', function (node, globals) {\n\n \t var listItemTxt = '';\n\n \t var children = node.childNodes,\n \t childrenLenght = children.length;\n\n \t for (var i = 0; i < childrenLenght; ++i) {\n \t listItemTxt += showdown.subParser('makeMarkdown.node')(children[i], globals);\n \t }\n \t // if it's only one liner, we need to add a newline at the end\n \t if (!/\\n$/.test(listItemTxt)) {\n \t listItemTxt += '\\n';\n \t } else {\n \t // it's multiparagraph, so we need to indent\n \t listItemTxt = listItemTxt\n \t .split('\\n')\n \t .join('\\n ')\n \t .replace(/^ {4}$/gm, '')\n \t .replace(/\\n\\n+/g, '\\n\\n');\n \t }\n\n \t return listItemTxt;\n \t});\n\r\n\n\n \tshowdown.subParser('makeMarkdown.node', function (node, globals, spansOnly) {\n\n \t spansOnly = spansOnly || false;\n\n \t var txt = '';\n\n \t // edge case of text without wrapper paragraph\n \t if (node.nodeType === 3) {\n \t return showdown.subParser('makeMarkdown.txt')(node, globals);\n \t }\n\n \t // HTML comment\n \t if (node.nodeType === 8) {\n \t return '\\n\\n';\n \t }\n\n \t // process only node elements\n \t if (node.nodeType !== 1) {\n \t return '';\n \t }\n\n \t var tagName = node.tagName.toLowerCase();\n\n \t switch (tagName) {\n\n \t //\n \t // BLOCKS\n \t //\n \t case 'h1':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.header')(node, globals, 1) + '\\n\\n'; }\n \t break;\n \t case 'h2':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.header')(node, globals, 2) + '\\n\\n'; }\n \t break;\n \t case 'h3':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.header')(node, globals, 3) + '\\n\\n'; }\n \t break;\n \t case 'h4':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.header')(node, globals, 4) + '\\n\\n'; }\n \t break;\n \t case 'h5':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.header')(node, globals, 5) + '\\n\\n'; }\n \t break;\n \t case 'h6':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.header')(node, globals, 6) + '\\n\\n'; }\n \t break;\n\n \t case 'p':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.paragraph')(node, globals) + '\\n\\n'; }\n \t break;\n\n \t case 'blockquote':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.blockquote')(node, globals) + '\\n\\n'; }\n \t break;\n\n \t case 'hr':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.hr')(node, globals) + '\\n\\n'; }\n \t break;\n\n \t case 'ol':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.list')(node, globals, 'ol') + '\\n\\n'; }\n \t break;\n\n \t case 'ul':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.list')(node, globals, 'ul') + '\\n\\n'; }\n \t break;\n\n \t case 'precode':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.codeBlock')(node, globals) + '\\n\\n'; }\n \t break;\n\n \t case 'pre':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.pre')(node, globals) + '\\n\\n'; }\n \t break;\n\n \t case 'table':\n \t if (!spansOnly) { txt = showdown.subParser('makeMarkdown.table')(node, globals) + '\\n\\n'; }\n \t break;\n\n \t //\n \t // SPANS\n \t //\n \t case 'code':\n \t txt = showdown.subParser('makeMarkdown.codeSpan')(node, globals);\n \t break;\n\n \t case 'em':\n \t case 'i':\n \t txt = showdown.subParser('makeMarkdown.emphasis')(node, globals);\n \t break;\n\n \t case 'strong':\n \t case 'b':\n \t txt = showdown.subParser('makeMarkdown.strong')(node, globals);\n \t break;\n\n \t case 'del':\n \t txt = showdown.subParser('makeMarkdown.strikethrough')(node, globals);\n \t break;\n\n \t case 'a':\n \t txt = showdown.subParser('makeMarkdown.links')(node, globals);\n \t break;\n\n \t case 'img':\n \t txt = showdown.subParser('makeMarkdown.image')(node, globals);\n \t break;\n\n \t default:\n \t txt = node.outerHTML + '\\n\\n';\n \t }\n\n \t // common normalization\n \t // TODO eventually\n\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.paragraph', function (node, globals) {\n\n \t var txt = '';\n \t if (node.hasChildNodes()) {\n \t var children = node.childNodes,\n \t childrenLength = children.length;\n \t for (var i = 0; i < childrenLength; ++i) {\n \t txt += showdown.subParser('makeMarkdown.node')(children[i], globals);\n \t }\n \t }\n\n \t // some text normalization\n \t txt = txt.trim();\n\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.pre', function (node, globals) {\n\n \t var num = node.getAttribute('prenum');\n \t return '
    ' + globals.preList[num] + '
    ';\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.strikethrough', function (node, globals) {\n\n \t var txt = '';\n \t if (node.hasChildNodes()) {\n \t txt += '~~';\n \t var children = node.childNodes,\n \t childrenLength = children.length;\n \t for (var i = 0; i < childrenLength; ++i) {\n \t txt += showdown.subParser('makeMarkdown.node')(children[i], globals);\n \t }\n \t txt += '~~';\n \t }\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.strong', function (node, globals) {\n\n \t var txt = '';\n \t if (node.hasChildNodes()) {\n \t txt += '**';\n \t var children = node.childNodes,\n \t childrenLength = children.length;\n \t for (var i = 0; i < childrenLength; ++i) {\n \t txt += showdown.subParser('makeMarkdown.node')(children[i], globals);\n \t }\n \t txt += '**';\n \t }\n \t return txt;\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.table', function (node, globals) {\n\n \t var txt = '',\n \t tableArray = [[], []],\n \t headings = node.querySelectorAll('thead>tr>th'),\n \t rows = node.querySelectorAll('tbody>tr'),\n \t i, ii;\n \t for (i = 0; i < headings.length; ++i) {\n \t var headContent = showdown.subParser('makeMarkdown.tableCell')(headings[i], globals),\n \t allign = '---';\n\n \t if (headings[i].hasAttribute('style')) {\n \t var style = headings[i].getAttribute('style').toLowerCase().replace(/\\s/g, '');\n \t switch (style) {\n \t case 'text-align:left;':\n \t allign = ':---';\n \t break;\n \t case 'text-align:right;':\n \t allign = '---:';\n \t break;\n \t case 'text-align:center;':\n \t allign = ':---:';\n \t break;\n \t }\n \t }\n \t tableArray[0][i] = headContent.trim();\n \t tableArray[1][i] = allign;\n \t }\n\n \t for (i = 0; i < rows.length; ++i) {\n \t var r = tableArray.push([]) - 1,\n \t cols = rows[i].getElementsByTagName('td');\n\n \t for (ii = 0; ii < headings.length; ++ii) {\n \t var cellContent = ' ';\n \t if (typeof cols[ii] !== 'undefined') {\n \t cellContent = showdown.subParser('makeMarkdown.tableCell')(cols[ii], globals);\n \t }\n \t tableArray[r].push(cellContent);\n \t }\n \t }\n\n \t var cellSpacesCount = 3;\n \t for (i = 0; i < tableArray.length; ++i) {\n \t for (ii = 0; ii < tableArray[i].length; ++ii) {\n \t var strLen = tableArray[i][ii].length;\n \t if (strLen > cellSpacesCount) {\n \t cellSpacesCount = strLen;\n \t }\n \t }\n \t }\n\n \t for (i = 0; i < tableArray.length; ++i) {\n \t for (ii = 0; ii < tableArray[i].length; ++ii) {\n \t if (i === 1) {\n \t if (tableArray[i][ii].slice(-1) === ':') {\n \t tableArray[i][ii] = showdown.helper.padEnd(tableArray[i][ii].slice(-1), cellSpacesCount - 1, '-') + ':';\n \t } else {\n \t tableArray[i][ii] = showdown.helper.padEnd(tableArray[i][ii], cellSpacesCount, '-');\n \t }\n \t } else {\n \t tableArray[i][ii] = showdown.helper.padEnd(tableArray[i][ii], cellSpacesCount);\n \t }\n \t }\n \t txt += '| ' + tableArray[i].join(' | ') + ' |\\n';\n \t }\n\n \t return txt.trim();\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.tableCell', function (node, globals) {\n\n \t var txt = '';\n \t if (!node.hasChildNodes()) {\n \t return '';\n \t }\n \t var children = node.childNodes,\n \t childrenLength = children.length;\n\n \t for (var i = 0; i < childrenLength; ++i) {\n \t txt += showdown.subParser('makeMarkdown.node')(children[i], globals, true);\n \t }\n \t return txt.trim();\n \t});\n\r\n \tshowdown.subParser('makeMarkdown.txt', function (node) {\n\n \t var txt = node.nodeValue;\n\n \t // multiple spaces are collapsed\n \t txt = txt.replace(/ +/g, ' ');\n\n \t // replace the custom ¨NBSP; with a space\n \t txt = txt.replace(/¨NBSP;/g, ' ');\n\n \t // \", <, > and & should replace escaped html entities\n \t txt = showdown.helper.unescapeHTMLEntities(txt);\n\n \t // escape markdown magic characters\n \t // emphasis, strong and strikethrough - can appear everywhere\n \t // we also escape pipe (|) because of tables\n \t // and escape ` because of code blocks and spans\n \t txt = txt.replace(/([*_~|`])/g, '\\\\$1');\n\n \t // escape > because of blockquotes\n \t txt = txt.replace(/^(\\s*)>/g, '\\\\$1>');\n\n \t // hash character, only troublesome at the beginning of a line because of headers\n \t txt = txt.replace(/^#/gm, '\\\\#');\n\n \t // horizontal rules\n \t txt = txt.replace(/^(\\s*)([-=]{3,})(\\s*)$/, '$1\\\\$2$3');\n\n \t // dot, because of ordered lists, only troublesome at the beginning of a line when preceded by an integer\n \t txt = txt.replace(/^( {0,3}\\d+)\\./gm, '$1\\\\.');\n\n \t // +, * and -, at the beginning of a line becomes a list, so we need to escape them also (asterisk was already escaped)\n \t txt = txt.replace(/^( {0,3})([+-])/gm, '$1\\\\$2');\n\n \t // images and links, ] followed by ( is problematic, so we escape it\n \t txt = txt.replace(/]([\\s]*)\\(/g, '\\\\]$1\\\\(');\n\n \t // reference URIs must also be escaped\n \t txt = txt.replace(/^ {0,3}\\[([\\S \\t]*?)]:/gm, '\\\\[$1]:');\n\n \t return txt;\n \t});\n\r\n \tvar root = this;\n\n \t// AMD Loader\n \tif (module.exports) {\n \t module.exports = showdown;\n\n \t// Regular Browser loader\n \t} else {\n \t root.showdown = showdown;\n \t}\n \t}).call(commonjsGlobal);\r\n\n \t\n } (showdown$1));\n\n var showdownExports = showdown$1.exports;\n var showdown = /*@__PURE__*/getDefaultExportFromCjs(showdownExports);\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n */\n showdown.ConverterExtObj = function (flavor, asyncExtensions) {\n\n var outputAsyncModifiers = [],\n /**\n * The flavor set in this converter\n */\n currConvFlavor = flavor;\n _constructor();\n\n /**\n * Converter constructor\n * @private\n */\n function _constructor() {\n if (asyncExtensions) {\n showdown.helper.forEach(asyncExtensions, _parseAsyncExtension);\n }\n }\n\n /**\n * Parse async extension\n * @param {*} ext\n * @param {string} [name='']\n * @private\n */\n function _parseAsyncExtension(ext, name) {\n name = name || null;\n // If it's a string, the extension was previously loaded\n if (showdown.helper.isString(ext)) {\n name = showdown.helper.stdExtName(ext);\n ext = showdown.asyncExtension(name);\n if (showdown.helper.isUndefined(ext)) {\n throw Error('Extension \"' + name + '\" could not be loaded. It was either not found or is not a valid aync extension.');\n }\n }\n if (typeof ext === 'function') {\n ext = ext();\n }\n if (!showdown.helper.isArray(ext)) {\n ext = [ext];\n }\n if (showdown.validateExtension(ext)) {\n for (var i = 0; i < ext.length; ++i) {\n switch (ext[i].type) {\n case 'output':\n outputAsyncModifiers.push(ext[i]);\n break;\n }\n }\n }\n }\n this.addAsyncExtension = function (extension, name) {\n name = name || null;\n _parseAsyncExtension(extension, name);\n };\n this.removeAsyncExtension = function (extension) {\n if (!showdown.helper.isArray(extension)) {\n extension = [extension];\n }\n for (var a = 0; a < extension.length; ++a) {\n var ext = extension[a];\n for (var j = 0; j < outputAsyncModifiers.length; ++j) {\n if (outputAsyncModifiers[j] === ext) {\n outputAsyncModifiers.splice(j, 1);\n }\n }\n }\n };\n this.getAsyncExtensions = function () {\n return outputAsyncModifiers;\n };\n\n /**\n * Get the currently flavor name of this converter\n * @returns {string}\n */\n this.getCurrFlavor = function () {\n return currConvFlavor;\n };\n\n /**\n * Set the currently flavor name of this converter\n * @param {string} flavor name\n */\n this.setCurrFlavor = function (name) {\n currConvFlavor = name;\n };\n };\n showdown.Converter.prototype.initConvertExtObj = function (flavor, asyncExtensions) {\n this.extObj = new showdown.ConverterExtObj(flavor, asyncExtensions);\n this.resetOptions = function (converterOptions) {\n converterOptions = converterOptions || {};\n var globalOptions = showdown.getOptions();\n var options = this.getOptions();\n for (var gOpt in globalOptions) {\n if (globalOptions.hasOwnProperty(gOpt)) {\n options[gOpt] = globalOptions[gOpt];\n }\n }\n\n // Merge options\n if (_typeof(converterOptions) === 'object') {\n for (var opt in converterOptions) {\n if (converterOptions.hasOwnProperty(opt)) {\n options[opt] = converterOptions[opt];\n }\n }\n }\n };\n\n /**\n * Set the flavor THIS converter should use\n * @param {string} name\n */\n this.setFlavor = function (name) {\n var preset = showdown.getFlavorOptions(name);\n if (showdown.helper.isUndefined(preset)) return;\n this.extObj.setCurrFlavor(name);\n var defaultOptions = showdown.getDefaultOptions(true);\n for (var option in defaultOptions) {\n if (defaultOptions.hasOwnProperty(option)) {\n this.getOptions()[option] = defaultOptions[option];\n }\n }\n for (var option in preset) {\n if (preset.hasOwnProperty(option)) {\n this.getOptions()[option] = preset[option];\n }\n }\n };\n\n /**\n * Get the currently set flavor of this converter\n * @returns {string}\n */\n this.getFlavor = function () {\n return this.extObj.getCurrFlavor();\n };\n this.addAsyncExtension = function (extension, name) {\n this.extObj.addAsyncExtension(extension, name);\n };\n this.removeAsyncExtension = function (extension) {\n this.extObj.removeAsyncExtension(extension);\n };\n\n // Because removeExtension function of converter has bug in showdown.js,\n // it needs to be overrode.\n this.removeExtension = function (extension) {\n if (!showdown.helper.isArray(extension)) {\n extension = [extension];\n }\n var exts = this.getAllExtensions();\n var langExtensions = exts.language;\n var outputModifiers = exts.output;\n for (var a = 0; a < extension.length; ++a) {\n var ext = extension[a];\n for (var i = 0; i < langExtensions.length; ++i) {\n if (langExtensions[i] === ext) {\n langExtensions.splice(i, 1);\n }\n }\n for (var j = 0; j < outputModifiers.length; ++j) {\n if (outputModifiers[j] === ext) {\n outputModifiers.splice(j, 1);\n }\n }\n }\n };\n\n /**\n * Async converts a markdown string into HTML\n * @param {string} text\n * @returns {*}\n */\n this.asyncMakeHtml = function (text, callback) {\n var content = this.makeHtml(text);\n var outputs = this.extObj.getAsyncExtensions();\n if (!outputs.length) {\n return Promise.resolve({\n html: content\n });\n }\n var globals = {\n outputs: outputs,\n converter: this\n };\n var parser = new DOMParser();\n var doc = parser.parseFromString(content, 'text/html');\n var wrapper = typeof doc.body !== 'undefined' ? doc.body : doc;\n var options = this.getOptions();\n var scripts = [];\n var result = Promise.resolve({\n wrapper: wrapper,\n options: options,\n globals: globals,\n scripts: scripts\n });\n //forEach写法\n outputs.forEach(function (ext) {\n result = result.then(function (obj) {\n var filter = ext.filter(obj);\n return filter ? filter : obj;\n });\n });\n return result.then(function (obj) {\n if (typeof callback === 'function' && callback) {\n var promise = callback(obj);\n if (promise instanceof Promise) {\n return promise.then(function (obj) {\n return {\n html: obj.wrapper.innerHTML,\n scripts: obj.scripts\n };\n });\n }\n }\n return {\n html: obj.wrapper.innerHTML,\n scripts: obj.scripts\n };\n });\n };\n return this;\n };\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Override githubCodeBlocks parser;\n * Support language attribute, see the following format:\n * ```lang {\"theme\": \"github\", \"align\": \"center\"}\n * code block\n * ```\n * OR\n * ```lang [\"theme\": \"vox\", \"align\": \"right\"]\n * code block\n * ```\n */\n showdown.subParser('githubCodeBlocks', function (text, options, globals) {\n\n // early exit if option is not enabled\n if (!options.ghCodeBlocks) {\n return text;\n }\n text = globals.converter._dispatch('githubCodeBlocks.before', text, options, globals);\n text += '¨0';\n text = text.replace(/(?:^|\\n)(?: {0,3})(```+|~~~+)(?: *)([^\\s`~]*?)(?:[ \\t]*?)((?:\\{[\\S\\t ]*\\}|\\[[\\S\\t ]*\\])?)\\n([\\s\\S]*?)\\n(?: {0,3})\\1/g, function (wholeMatch, delim, language, langattr, codeblock) {\n var end = options.omitExtraWLInCodeBlocks ? '' : '\\n';\n\n // First parse the github code block\n codeblock = showdown.subParser('encodeCode')(codeblock, options, globals);\n codeblock = showdown.subParser('detab')(codeblock, options, globals);\n codeblock = codeblock.replace(/^\\n+/g, ''); // trim leading newlines\n codeblock = codeblock.replace(/\\n+$/g, ''); // trim trailing whitespace\n\n codeblock = '
    ';\n codeblock = showdown.subParser('hashBlock')(codeblock, options, globals);\n\n // Since GHCodeblocks can be false positives, we need to\n // store the primitive text and the parsed text in a global var,\n // and then return a token\n return '\\n\\n¨G' + (globals.ghCodeBlocks.push({\n text: wholeMatch,\n codeblock: codeblock\n }) - 1) + 'G\\n\\n';\n });\n\n // attacklab: strip sentinel\n text = text.replace(/¨0/, '');\n return globals.converter._dispatch('githubCodeBlocks.after', text, options, globals);\n });\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n */\n\n // Override tables parser;\n showdown.subParser('tables', function (text, options, globals) {\n\n if (!options.tables) {\n return text;\n }\n var tableRgx = /^ {0,3}\\|?.+\\|.+\\n {0,3}\\|?[ \\t]*:?[ \\t]*(?:[-=]){2,}[ \\t]*:?[ \\t]*\\|[ \\t]*:?[ \\t]*(?:[-=]){2,}[\\s\\S]+?(?:\\n\\n|¨0)/gm,\n singeColTblRgx = /^ {0,3}\\|.+\\|[ \\t]*\\n {0,3}\\|[ \\t]*:?[ \\t]*(?:[-=]){2,}[ \\t]*:?[ \\t]*\\|[ \\t]*\\n( {0,3}\\|.+\\|[ \\t]*\\n)*(?:\\n|¨0)/gm,\n headerlessTableRgx = /^ {0,3}\\|?[ \\t]*:?[ \\t]*(?:[-=]){2,}[ \\t]*:?[ \\t]*\\|[ \\t]*:?[ \\t]*(?:[-=]){2,}[\\s\\S]+?(?:\\n\\n|¨0)/gm,\n headerlessSingeColTblRgx = /^ {0,3}\\|[ \\t]*:?[ \\t]*(?:[-=]){2,}[ \\t]*:?[ \\t]*\\|[ \\t]*\\n( {0,3}\\|.+\\|[ \\t]*\\n)*(?:\\n|¨0)/gm;\n function parseStyles(sLine) {\n if (/^:[ \\t]*--*$/.test(sLine)) {\n return ' style=\"text-align:left;\"';\n } else if (/^--*[ \\t]*:[ \\t]*$/.test(sLine)) {\n return ' style=\"text-align:right;\"';\n } else if (/^:[ \\t]*--*[ \\t]*:$/.test(sLine)) {\n return ' style=\"text-align:center;\"';\n } else {\n return '';\n }\n }\n function parseHeaders(header, style) {\n var id = '';\n header = header.trim();\n // support both tablesHeaderId and tableHeaderId due to error in documentation so we don't break backwards compatibility\n if (options.tablesHeaderId || options.tableHeaderId) {\n id = ' id=\"' + header.replace(/ /g, '_').toLowerCase() + '\"';\n }\n header = showdown.subParser('spanGamut')(header, options, globals);\n return '' + header + '\\n';\n }\n function mergeCells(cells, row, col, cell) {\n if (cell) {\n if (!options.tablesRowspan || cell !== '^^' || !row) {\n return;\n }\n\n // up merge except for first row cells\n for (var i = row - 1; i >= 0; --i) {\n if (!cells[i][col]) {\n for (var ii = col - 1; ii >= 0; -ii) {\n if (cells[i + 1][ii] && cells[i + 1][ii] !== '^^') {\n return;\n }\n if (cells[i][ii]) {\n if (!cells[i + 1][ii]) {\n return;\n }\n cells[i][ii] = cells[i][ii].replace(/rowspan=\"[0-9]*\"/g, '').replace(/^(\\n\\r]*?)(>.*<\\/td>\\n)/, function (str, left, right) {\n return left + ' rowspan=\"' + (row - i + 1) + '\"' + right;\n });\n return cell;\n }\n }\n } else if (cells[i][col] !== '^^') {\n cells[i][col] = cells[i][col].replace(/rowspan=\"[0-9]*\"/g, '').replace(/^(\\n\\r]*?)(>.*<\\/td>\\n)/, function (str, left, right) {\n return left + ' rowspan=\"' + (row - i + 1) + '\"' + right;\n });\n return cell;\n } else if (i === 0) {\n cells[i][col] = '\\n';\n return cell;\n }\n }\n return;\n }\n\n // left merge except for first column cells\n if (!col) {\n return;\n }\n for (var ii = col - 1; ii >= 0; --ii) {\n if (cells[row][ii]) {\n if (cells[row][ii] === '^^') {\n for (var i = row - 1; i >= 0; --i) {\n if (cells[i][ii + 1]) {\n return;\n }\n if (cells[i][ii] !== '^^') {\n cells[i][ii] = cells[i][ii].replace(/colspan=\"[0-9]*\"/g, '').replace(/^(\\n\\r]*?)(>.*<\\/td>\\n)/, function (str, left, right) {\n return left + ' colspan=\"' + (col - ii + 1) + '\"' + right;\n });\n return cell;\n }\n }\n } else {\n cells[row][ii] = cells[row][ii].replace(/colspan=\"[0-9]*\"/g, '').replace(/^(\\n\\r]*?)(>.*<\\/td>\\n)/, function (str, left, right) {\n return left + ' colspan=\"' + (col - ii + 1) + '\"' + right;\n });\n return cell;\n }\n } else if (ii === 0) {\n cells[row][ii] = '\\n';\n return cell;\n }\n }\n return;\n }\n function parseCells(cells, row, col, cell, style) {\n if (options.tablesMerge) {\n var direct = mergeCells(cells, row, col, cell);\n if (!showdown.helper.isUndefined(direct)) {\n return direct;\n }\n }\n cell = cell.trim();\n var subText = showdown.subParser('spanGamut')(cell, options, globals);\n return '' + subText + '\\n';\n }\n function buildTable(headers, styles, cells) {\n var tb = '\\n',\n tblLgn = styles.length;\n if (headers.length) {\n tb += '\\n\\n';\n for (var i = 0; i < headers.length; ++i) {\n tb += headers[i];\n }\n tb += '\\n\\n';\n }\n tb += '\\n';\n for (i = 0; i < cells.length; ++i) {\n tb += '\\n';\n for (var ii = 0; ii < tblLgn; ++ii) {\n if (!options.tablesMerge || cells[i][ii] !== '^^') {\n tb += cells[i][ii];\n }\n }\n tb += '\\n';\n }\n tb += '\\n
    \\n';\n return tb;\n }\n function parseTableContent(rawTable, headerless) {\n var i,\n tableLines = rawTable.split('\\n');\n for (i = 0; i < tableLines.length; ++i) {\n // strip wrong first and last column if wrapped tables are used\n if (/^ {0,3}\\|/.test(tableLines[i])) {\n tableLines[i] = tableLines[i].replace(/^ {0,3}\\|/, '');\n }\n if (/\\|[ \\t]*$/.test(tableLines[i])) {\n tableLines[i] = tableLines[i].replace(/\\|[ \\t]*$/, '');\n }\n // parse code spans first, but we only support one line code spans\n tableLines[i] = showdown.subParser('codeSpans')(tableLines[i], options, globals);\n }\n var rawStyles = [],\n rawCells = [],\n headers = [],\n styles = [],\n cells = [];\n if (headerless) {\n rawStyles = tableLines[0].split('|').map(function (s) {\n return s.trim();\n });\n tableLines.shift();\n for (i = 0; i < rawStyles.length; ++i) {\n styles.push(parseStyles(rawStyles[i]));\n }\n } else {\n var rawHeaders = tableLines[0].split('|').map(function (s) {\n return s.trim();\n });\n rawStyles = tableLines[1].split('|').map(function (s) {\n return s.trim();\n });\n tableLines.shift();\n tableLines.shift();\n if (rawHeaders.length < rawStyles.length) {\n return rawTable;\n }\n for (i = 0; i < rawStyles.length; ++i) {\n styles.push(parseStyles(rawStyles[i]));\n }\n for (i = 0; i < rawHeaders.length; ++i) {\n if (showdown.helper.isUndefined(styles[i])) {\n styles[i] = '';\n }\n headers.push(parseHeaders(rawHeaders[i], styles[i]));\n }\n }\n for (i = 0; i < tableLines.length; ++i) {\n if (tableLines[i].trim() === '') {\n continue;\n }\n rawCells.push(tableLines[i].split('|').map(function (s) {\n var cell = s.trim();\n if (cell === '' && s.length > 0) return s;\n return cell;\n }));\n }\n for (i = 0; i < rawCells.length; ++i) {\n var row = [];\n cells.push(row);\n for (var ii = 0; ii < styles.length; ++ii) {\n if (showdown.helper.isUndefined(rawCells[i][ii])) {\n rawCells[i][ii] = '';\n }\n row.push(parseCells(cells, i, ii, rawCells[i][ii], styles[ii]));\n }\n }\n return buildTable(headers, styles, cells);\n }\n function parseTable(rawTable) {\n return parseTableContent(rawTable, false);\n }\n function parseHeaderlessTable(rawTable) {\n return parseTableContent(rawTable, true);\n }\n text = globals.converter._dispatch('tables.before', text, options, globals);\n\n // find escaped pipe characters\n text = text.replace(/\\\\(\\|)/g, showdown.helper.escapeCharactersCallback);\n\n // parse multi column tables\n text = text.replace(tableRgx, parseTable);\n\n // parse one column tables\n text = text.replace(singeColTblRgx, parseTable);\n if (options.tablesHeaderless) {\n // parse multi column headerless tables\n text = text.replace(headerlessTableRgx, parseHeaderlessTable);\n\n // parse one column headerless tables\n text = text.replace(headerlessSingeColTblRgx, parseHeaderlessTable);\n }\n text = globals.converter._dispatch('tables.after', text, options, globals);\n return text;\n });\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n */\n var currFlavor = 'vanilla',\n flavors = {\n github: {\n ghCompatibleHeaderId: false,\n underline: true,\n rawHeaderId: true,\n tablesHeaderless: true,\n tablesMerge: true,\n tablesRowspan: true\n },\n ghost: {\n tablesHeaderless: true,\n tablesMerge: true,\n tablesRowspan: true\n },\n allOn: {\n tablesHeaderless: true,\n tablesMerge: true,\n tablesRowspan: true\n }\n },\n _asyncExtensions = {};\n\n /**\n * Gets or registers an async extension\n * @static\n * @param {string} name\n * @param {object|function=} ext\n * @returns {*}\n */\n showdown.asyncExtension = function (name, ext) {\n\n if (!showdown.helper.isString(name)) {\n throw Error(\"Extension 'name' must be a string\");\n }\n name = showdown.helper.stdExtName(name);\n\n // Getter\n if (showdown.helper.isUndefined(ext)) {\n if (!_asyncExtensions.hasOwnProperty(name)) {\n throw Error('Async Extension named ' + name + ' is not registered!');\n }\n return _asyncExtensions[name];\n\n // Setter\n } else {\n // Expand extension if it's wrapped in a function\n if (typeof ext === 'function') {\n ext = ext();\n }\n\n // Ensure extension is an array\n if (!showdown.helper.isArray(ext)) {\n ext = [ext];\n }\n if (showdown.validateExtension(ext)) {\n _asyncExtensions[name] = ext;\n }\n }\n };\n\n /**\n * Remove an async extension\n * @param {string} name\n */\n showdown.removeAsyncExtension = function (name) {\n\n name = showdown.helper.stdExtName(name);\n delete _asyncExtensions[name];\n };\n\n /**\n * Removes all async extensions\n */\n showdown.resetAsyncExtensions = function () {\n\n _asyncExtensions = {};\n };\n\n /**\n * Remove an extension\n * @param {string} name\n */\n showdown.removeExtension = function (name) {\n\n name = showdown.helper.stdExtName(name);\n delete showdown.getAllExtensions[name];\n };\n var orgSetFlavor = showdown.setFlavor;\n var orgGetFlavorOptions = showdown.getFlavorOptions;\n\n /**\n * Set the flavor showdown should use as default\n * @param {string} name\n */\n showdown.setFlavor = function (name) {\n\n try {\n orgSetFlavor(name);\n currFlavor = name;\n if (!flavors.hasOwnProperty(name)) return;\n } catch (_unused) {\n if (!flavors.hasOwnProperty(name)) return;\n showdown.resetOptions();\n currFlavor = name;\n }\n var preset = flavors[name];\n for (var option in preset) {\n if (preset.hasOwnProperty(option)) {\n showdown.getOptions()[option] = preset[option];\n }\n }\n };\n\n /**\n * Get the currently set flavor\n * @returns {string}\n */\n showdown.getFlavor = function () {\n\n return currFlavor;\n };\n showdown.setFlavorOptions = function (name, options) {\n if (options) {\n flavors[name] = Object.assign(flavors[name] || {}, options);\n }\n };\n\n /**\n * Get the options of a specified flavor. Returns undefined if the flavor was not found\n * @param {string} name Name of the flavor\n * @returns {{}|undefined}\n */\n showdown.getFlavorOptions = function (name) {\n\n var flavor = orgGetFlavorOptions(name);\n if (!showdown.helper.isUndefined(flavor)) {\n if (!flavors.hasOwnProperty(name)) {\n return flavor;\n }\n return Object.assign(flavor, flavors[name]);\n }\n if (flavors.hasOwnProperty(name)) {\n return flavors[name];\n }\n };\n\n /*\r\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\r\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\r\n * Description: Date format extension\r\n */\n\n // 对Date的扩展,将 Date 转化为指定格式的String\n // 月(M)、日(d)、小时(h/H)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,\n // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)\n // 例子:\n // (new Date()).Format(\"yyyy-MM-dd hh:mm:ss.S\") ==> 1970-01-01 08:09:04.423\n // (new Date()).Format(\"yyyy-M-d h:m:s.S\") ==> 1970-1-1 8:9:4.18\n Date.prototype.Format = function (fmt) {\n var o = {\n 'M+': this.getMonth() + 1,\n //月份\n 'd+': this.getDate(),\n //日\n 'h+': this.getHours(),\n //小时\n 'H+': this.getHours(),\n //小时\n 'm+': this.getMinutes(),\n //分\n 's+': this.getSeconds(),\n //秒\n 'q+': Math.floor((this.getMonth() + 3) / 3),\n //季度\n S: this.getMilliseconds() //毫秒\n };\n if (!fmt) fmt = 'yyyy-MM-dd hh:mm:ss.S';\n var matches = /(y+)/.exec(fmt);\n if (matches) fmt = fmt.replace(matches[1], (this.getFullYear() + '').substring(4 - matches[1].length));\n for (var k in o) {\n var m = new RegExp('(' + k + ')').exec(fmt);\n if (m) {\n var n = o[k];\n if (m[1].length == 1) n = ('000' + o[k]).substring(('' + o[k]).length);else if (m[1].length == 2) n = ('00' + o[k]).substring(('' + o[k]).length);\n fmt = fmt.replace(m[1], n);\n }\n }\n return fmt;\n };\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: dynamic loading js libs for local or cdnjs or jsdelivr\n */\n function format$1(s) {\n return \"\".concat(new Date().Format('yyyy-MM-dd HH:mm:ss.S'), \" \").concat(s);\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: dynamic loading js libs for local or cdnjs or jsdelivr\n */\n var cdnName = 'jsdelivr';\n var scheme = document.location.protocol === 'file:' ? 'https://' : document.location.protocol + '//';\n var defScheme = '';\n var distScheme = '';\n var cdnSrc = {\n local: {\n ABCJS: '../node_modules/abcjs/dist/abcjs-basic.js',\n ABCJSCSS: '../node_modules/abcjs/abcjs-audio.css',\n echarts: '../node_modules/echarts/dist/echarts.js',\n Viz: '../node_modules/@viz-js/viz/lib/viz-standalone.js',\n Raphael: '../node_modules/raphael/raphael.min.js',\n flowchart: '../dist/diagrams/flowchart/flowchart.min.js',\n mermaid: '../node_modules/mermaid/dist/mermaid.js',\n katex: '../node_modules/katex/dist/katex.min.js',\n katexCSS: '../node_modules/katex/dist/katex.min.css',\n renderMathInElement: '../node_modules/katex/dist/contrib/auto-render.js',\n railroad: '../node_modules/railroad-diagrams/railroad-diagrams.js',\n railroadCSS: '../node_modules/railroad-diagrams/railroad-diagrams.css',\n Snap: '../node_modules/snapsvg/dist/snap.svg-min.js',\n WebFont: '../node_modules/webfontloader/webfontloader.js',\n underscore: '../node_modules/underscore/underscore-min.js',\n sequence: '../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js',\n sequenceCSS: '../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css',\n WaveDrom: '../node_modules/wavedrom/wavedrom.min.js',\n WaveDromSkin: {\n \"default\": '../node_modules/wavedrom/skins/default.js',\n lowkey: '../node_modules/wavedrom/skins/lowkey.js',\n narrow: '../node_modules/wavedrom/skins/narrow.js'\n },\n vega: '../node_modules/vega/build/vega.js',\n vegaLite: '../node_modules/vega-lite/build/vega-lite.js',\n vegaEmbed: '../node_modules/vega-embed/build/vega-embed.js'\n },\n cdnjs: {\n ABCJS: scheme + 'cdnjs.cloudflare.com/ajax/libs/abcjs/6.4.1/abcjs-basic-min.js',\n ABCJSCSS: scheme + 'cdnjs.cloudflare.com/ajax/libs/abcjs/abcjs-audio.css',\n echarts: scheme + 'cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js',\n Viz: scheme + 'cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js',\n Raphael: scheme + 'cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js',\n flowchart: scheme + 'cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js',\n mermaid: scheme + 'cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.1/mermaid.min.js',\n katex: scheme + 'cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.js',\n katexCSS: scheme + 'cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/katex.min.css',\n renderMathInElement: scheme + 'cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.11/contrib/auto-render.js',\n railroad: scheme + 'cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js',\n railroadCSS: scheme + 'cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css',\n Snap: scheme + 'cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js',\n WebFont: scheme + 'cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js',\n underscore: scheme + 'cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js',\n sequence: scheme + 'cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js',\n sequenceCSS: scheme + 'cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css',\n WaveDrom: scheme + 'cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js',\n WaveDromSkin: {\n \"default\": scheme + 'cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js',\n lowkey: scheme + 'cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js',\n narrow: scheme + 'cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js'\n },\n vega: scheme + 'cdnjs.cloudflare.com/ajax/libs/vega/5.30.0/vega.min.js',\n vegaLite: scheme + 'cdnjs.cloudflare.com/ajax/libs/vega-lite/5.19.0/vega-lite.min.js',\n vegaEmbed: scheme + 'cdnjs.cloudflare.com/ajax/libs/vega-embed/6.26.0/vega-embed.min.js'\n },\n jsdelivr: {\n ABCJS: scheme + 'cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js',\n ABCJSCSS: scheme + 'cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css',\n echarts: scheme + 'cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js',\n Viz: scheme + 'cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js',\n Raphael: scheme + 'cdn.jsdelivr.net/npm/raphael@2/raphael.min.js',\n flowchart: scheme + 'cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js',\n mermaid: scheme + 'cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js',\n katex: scheme + 'cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js',\n katexCSS: scheme + 'cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css',\n renderMathInElement: scheme + 'cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js',\n railroad: scheme + 'cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js',\n railroadCSS: scheme + 'cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css',\n Snap: scheme + 'cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js',\n WebFont: scheme + 'cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js',\n underscore: scheme + 'cdn.jsdelivr.net/npm/underscore@1/underscore-min.js',\n sequence: scheme + 'cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js',\n sequenceCSS: scheme + 'cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css',\n WaveDrom: scheme + 'cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js',\n WaveDromSkin: {\n \"default\": scheme + 'cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js',\n lowkey: scheme + 'cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js',\n narrow: scheme + 'cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js'\n },\n vega: scheme + 'cdn.jsdelivr.net/npm/vega@5/build/vega.js',\n vegaLite: scheme + 'cdn.jsdelivr.net/npm/vega-lite@5/build/vega-lite.js',\n vegaEmbed: scheme + 'cdn.jsdelivr.net/npm/vega-embed@6/build/vega-embed.js'\n }\n };\n function setCDN(name, scheme_default, scheme_dist) {\n if (name in cdnSrc) {\n cdnName = name;\n }\n if (typeof scheme_default === 'string' && scheme_default) {\n defScheme = scheme_default;\n }\n if (typeof scheme_dist === 'string' && scheme_dist) {\n distScheme = scheme_dist;\n }\n }\n function getCDN() {\n return cdnName;\n }\n function getName(name) {\n if (_typeof(name) === 'object') {\n var key = Object.keys(name)[0];\n var val = name[key];\n if (typeof val === 'string') {\n return key + \"-\" + val;\n }\n }\n return name;\n }\n function getSrc(name, def) {\n if (cdnSrc.hasOwnProperty(cdnName)) {\n var cdn = cdnSrc[cdnName];\n var url = '';\n if (_typeof(name) === 'object') {\n var key = Object.keys(name)[0];\n var val = name[key];\n if (cdn[key] && typeof val === 'string' && val && cdn[key][val]) {\n url = cdn[key][val];\n }\n } else if (cdn[name]) {\n url = cdn[name];\n }\n if (url) {\n if (url.substring(0, scheme.length) === scheme) {\n def = url;\n } else if (url.substring(0, 8) === '../dist/') {\n def = distScheme + url;\n } else {\n def = defScheme + url;\n }\n }\n }\n return def;\n }\n function loadScript$2(name, src) {\n return new Promise(function (resovle, reject) {\n if (!name || typeof document === 'undefined') {\n reject('Args is invaild!');\n }\n if (typeof src === 'undefined') {\n src = '';\n }\n src = getSrc(name, src);\n if (!src) {\n reject(name + ' script source invaild!');\n }\n var id = 'script-' + getName(name).toLowerCase();\n var script = document.getElementById(id);\n if (script) {\n return resovle(name);\n }\n var head = document.head || document.getElementsByTagName('head')[0];\n script = document.createElement('script');\n script.src = src;\n script.id = id;\n script.onload = function () {\n resovle(name);\n };\n head.appendChild(script);\n });\n }\n function unloadScript(name) {\n name = getName(name);\n var e = document.getElementById('script-' + name.toLowerCase());\n if (e) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.removeChild(e);\n }\n }\n function loadStyleSheet(name, css) {\n if (!name || typeof document === 'undefined') {\n return '';\n }\n if (typeof css === 'undefined') {\n css = '';\n }\n css = getSrc(name, css);\n if (!css) {\n return '';\n }\n var id = 'css-' + getName(name).toLowerCase();\n var script = document.getElementById(id);\n if (!script) {\n var head = document.head || document.getElementsByTagName('head')[0];\n var link = document.createElement('link');\n link.rel = 'stylesheet';\n link.href = css;\n link.id = id;\n head.appendChild(link);\n }\n return cdnName === 'local' ? '' : css;\n }\n function unloadStyleSheet(name) {\n name = getName(name);\n var e = document.getElementById('css-' + name.toLowerCase());\n if (e) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.removeChild(e);\n }\n }\n var cdnjs = {\n setCDN: setCDN,\n getCDN: getCDN,\n getSrc: getSrc,\n loadScript: loadScript$2,\n unloadScript: unloadScript,\n loadStyleSheet: loadStyleSheet,\n unloadStyleSheet: unloadStyleSheet\n };\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n */\n function loadStyle(name, css) {\n if (!name || !css || typeof document === 'undefined') {\n return false;\n }\n var id = 'css-' + name.toLowerCase();\n var script = document.getElementById(id);\n if (!script) {\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.id = id;\n style.innerText = css;\n head.appendChild(style);\n }\n return true;\n }\n function loadScript$1(id, code) {\n return new Promise(function (res, rej) {\n if (!code || typeof document === 'undefined') {\n rej('Args is invaild!');\n }\n var body = document.body;\n var script = document.getElementById(id);\n if (script) {\n body.removeChild(script);\n } else {\n script = document.createElement('script');\n script.id = id;\n }\n script.type = \"text/javascript\";\n script.text = code;\n body.appendChild(script);\n res(true);\n });\n }\n function interopDefault(ex) {\n return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;\n }\n function renderCacheElement(doc, id, name, callback) {\n if (typeof window !== 'undefined' && window.document) {\n doc = window.document;\n }\n var el = doc.createElement('div');\n el.id = id;\n el.className = name;\n el.style.display = 'none';\n doc.body.appendChild(el);\n if (typeof callback === 'function' && callback) {\n var result = callback(el);\n if (result instanceof Promise) {\n result.then(function (el) {\n doc.body.removeChild(el);\n el.style.display = '';\n });\n return el.outerHTML;\n }\n }\n doc.body.removeChild(el);\n el.style.display = '';\n return el.outerHTML;\n }\n function renderElement(doc, id, name) {\n if (typeof window !== 'undefined' && window.document) {\n doc = window.document;\n }\n var el = doc.createElement('div');\n el.id = id;\n el.className = name;\n doc.body.appendChild(el);\n return el;\n }\n function createElementMeta(name, element, callback) {\n var langattr = element.dataset.lang;\n var langobj = langattr ? JSON.parse(langattr) : null;\n var diagramClass = '';\n if (langobj) {\n if (typeof langobj.codeblock === 'boolean' && langobj.codeblock || typeof langobj.codeblock === 'string' && langobj.codeblock.toLowerCase() === 'true') {\n return false;\n }\n if (langobj.align) {\n //default left\n if (langobj.align === 'center') {\n diagramClass = 'diagram-center';\n } else if (langobj.align === 'right') {\n diagramClass = 'diagram-right';\n }\n }\n }\n var code = element.textContent.trim();\n if (callback && typeof callback === 'function') {\n code = callback(code);\n }\n var className = (element.classList.length > 0 ? element.classList[0] : '') + (!element.className || !diagramClass ? '' : ' ') + diagramClass;\n var id = name + '-' + Date.now() + '-' + Math.floor(Math.random() * 10000);\n element.id = id;\n return {\n id: id,\n className: className,\n data: code,\n element: element\n };\n }\n var utils = {\n interopDefault: interopDefault,\n loadStyle: loadStyle,\n loadScript: loadScript$1,\n renderCacheElement: renderCacheElement,\n renderElement: renderElement,\n createElementMeta: createElementMeta\n };\n\n /*\n * Copyright (c) 2024-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown abc extension for markdown\n */\n\n var extName$4 = 'abc';\n var cssCdnName$3 = 'ABCJSCSS';\n if (typeof window === 'undefined') {\n throw Error('The showdown abcjs extension can only be used in browser environment!');\n }\n if (typeof ABCJS === 'undefined') {\n var ABCJS = window.ABCJS || undefined;\n }\n function hasAbc() {\n return !!ABCJS;\n }\n var dync$9 = false;\n function dyncLoadScript$9() {\n var sync = hasAbc();\n if (typeof window !== 'undefined') {\n if (dync$9) {\n return sync;\n }\n if (!sync) {\n dync$9 = true;\n cdnjs.loadStyleSheet(cssCdnName$3);\n utils.loadStyle('abc-audio', '.highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;}' + ' .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;}' + ' .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}');\n cdnjs.loadScript('ABCJS').then(function (name) {\n ABCJS = utils.interopDefault(window[name]);\n });\n }\n }\n return sync;\n }\n var abcOptions = {\n add_classes: true,\n responsive: \"resize\"\n };\n function CursorControl(id) {\n var self = this;\n self.onReady = function () {};\n self.onStart = function () {\n var svg = document.querySelector(\"#\".concat(id, \" svg\"));\n var cursor = document.createElementNS(\"http://www.w3.org/2000/svg\", \"line\");\n cursor.setAttribute(\"class\", \"abcjs-cursor\");\n cursor.setAttributeNS(null, 'x1', 0);\n cursor.setAttributeNS(null, 'y1', 0);\n cursor.setAttributeNS(null, 'x2', 0);\n cursor.setAttributeNS(null, 'y2', 0);\n svg.appendChild(cursor);\n };\n self.beatSubdivisions = 2;\n self.onBeat = function (beatNumber, totalBeats, totalTime) {};\n self.onEvent = function (ev) {\n if (ev.measureStart && ev.left === null) return; // this was the second part of a tie across a measure line. Just ignore it.\n\n var lastSelection = document.querySelectorAll(\"#\".concat(id, \" svg .highlight\"));\n for (var k = 0; k < lastSelection.length; k++) lastSelection[k].classList.remove(\"highlight\");\n for (var i = 0; i < ev.elements.length; i++) {\n var note = ev.elements[i];\n for (var j = 0; j < note.length; j++) {\n note[j].classList.add(\"highlight\");\n }\n }\n var cursor = document.querySelector(\"#\".concat(id, \" svg .abcjs-cursor\"));\n if (cursor) {\n cursor.setAttribute(\"x1\", ev.left - 2);\n cursor.setAttribute(\"x2\", ev.left - 2);\n cursor.setAttribute(\"y1\", ev.top);\n cursor.setAttribute(\"y2\", ev.top + ev.height);\n }\n };\n self.onFinished = function () {\n var els = document.querySelectorAll(\"#\".concat(id, \" svg .highlight\"));\n for (var i = 0; i < els.length; i++) {\n els[i].classList.remove(\"highlight\");\n }\n var cursor = document.querySelector(\"#\".concat(id, \" svg .abcjs-cursor\"));\n if (cursor) {\n cursor.setAttribute(\"x1\", 0);\n cursor.setAttribute(\"x2\", 0);\n cursor.setAttribute(\"y1\", 0);\n cursor.setAttribute(\"y2\", 0);\n }\n };\n }\n var synthControl;\n function load(audio, render, abc) {\n if (ABCJS.synth.supportsAudio()) {\n synthControl = new ABCJS.synth.SynthController();\n synthControl.load(\"#\".concat(audio), new CursorControl(render), {\n displayLoop: true,\n displayRestart: true,\n displayPlay: true,\n displayProgress: true,\n displayWarp: true\n });\n } else {\n document.querySelector(\"#\".concat(audio)).innerHTML = \"
    Audio is not supported in this browser.
    \";\n }\n setTune(render, false, abc);\n }\n function setTune(render, userAction, abc) {\n synthControl.disable(true);\n var visualObj = ABCJS.renderAbc(\"\".concat(render), abc, abcOptions)[0];\n var midiBuffer = new ABCJS.synth.CreateSynth();\n midiBuffer.init({\n visualObj: visualObj\n }).then(function (response) {\n // console.log(response);\n if (synthControl) {\n synthControl.setTune(visualObj, userAction).then(function (response) {\n console.log(format$1(\"Audio successfully loaded.\"));\n })[\"catch\"](function (error) {\n console.warn(\"Audio problem:\", error);\n });\n }\n })[\"catch\"](function (error) {\n console.warn(\"Audio problem:\", error);\n });\n }\n function onRenderAbc(resolve, scripts, res) {\n if (hasAbc()) {\n var id = res.id;\n var name = res.className;\n var data = btoa(res.data);\n var cssLink = res.cssLink;\n // const doc = res.element.ownerDocument;\n var audio = id + '-audio';\n var html = cssLink ? \"
    \") : \"
    \");\n html += \"
    \");\n res.element.parentNode.outerHTML = html;\n // const renderElement = doc.getElementById(id);\n // ABCJS.renderAbc(element, data);\n var script = {\n id: id,\n code: \"(function() {\\n if (typeof window !== 'undefined' && window.dispatchEvent) {\\n window.dispatchEvent(new CustomEvent('abcjs',{\\n detail: {\\n audio: '\".concat(audio, \"',\\n render: '\").concat(id, \"',\\n data: '\").concat(data, \"'\\n }\\n }));\\n }\\n })();\")\n };\n scripts.push(script);\n return resolve(true);\n }\n setTimeout(function () {\n onRenderAbc(resolve, scripts, res);\n }, 10);\n }\n\n /**\n * render abc graphs\n */\n function renderAbc(element, scripts) {\n return new Promise(function (resolve) {\n var meta = utils.createElementMeta(extName$4, element);\n if (!meta) {\n return resolve(false);\n }\n meta.cssLink = cdnjs.getSrc(cssCdnName$3);\n onRenderAbc(resolve, scripts, meta);\n });\n }\n\n //
    \n function renderAbcElements(elements, scripts) {\n dyncLoadScript$9();\n return new Promise(function (resolve) {\n var promiseArray = [];\n elements.forEach(function (element) {\n promiseArray.push(renderAbc(element, scripts));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n function showdownAbc() {\n var hasEvent = false;\n return [{\n type: 'output',\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n // find the abc in code blocks\n var elements = wrapper.querySelectorAll(\"code.\".concat(extName$4, \".language-\").concat(extName$4));\n if (!elements.length) {\n return false;\n }\n if (!hasEvent) {\n if (typeof window !== 'undefined' && window.dispatchEvent) {\n hasEvent = true;\n // Listen sequence custom event\n window.addEventListener('abcjs', function (event) {\n if (event.detail) {\n load(event.detail.audio, event.detail.render, atob(event.detail.data));\n }\n });\n }\n }\n this.config = {\n cssLink: cdnjs.getSrc(cssCdnName$3)\n };\n console.log(format$1(\"Begin render \".concat(extName$4, \" elements.\")));\n return renderAbcElements(elements, obj.scripts).then(function () {\n console.log(format$1(\"End render \".concat(extName$4, \" elements.\")));\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown toc extension for markdown\n */\n function createHeadingElement(wrapper, element, toc, nexthead) {\n try {\n if (nexthead) {\n toc = toc.appendChild(wrapper.ownerDocument.createElement('ul'));\n }\n var child = toc.appendChild(wrapper.ownerDocument.createElement('li')).appendChild(wrapper.ownerDocument.createElement('a'));\n if (element) {\n child.appendChild(wrapper.ownerDocument.createTextNode(element.textContent));\n child.href = '#' + element.id;\n }\n } catch (_unused) {\n console.warn(format$1('append child error:'), wrapper);\n }\n return toc;\n }\n function appendTocElement(wrapper, element, currTocNode, headingLevel) {\n // If the current heading level is not greater than the heading level of current toc node,\n // return the toc node whose heading level is less than the current heading level in the toc node list.\n // At the same time, clearing the invalid toc node.\n if (headingLevel <= currTocNode.headingLevel) {\n var tempTocNode = null;\n while (currTocNode) {\n if (headingLevel > currTocNode.headingLevel) break;\n tempTocNode = currTocNode;\n currTocNode = tempTocNode.parentNode;\n // Remove toc node from node list and clean it.\n tempTocNode.parentNode = null;\n tempTocNode.toc = null;\n tempTocNode.headingLevel = null;\n tempTocNode.preLevel = null;\n }\n if (currTocNode) appendTocElement(wrapper, element, currTocNode, headingLevel);\n return currTocNode;\n }\n\n // If the current heading level is greater than the heading level of\n // the latest heading of the current toc node,\n // you need to create a new level heading with out list.\n // Otherwise add a heading of the same heading level.\n if (headingLevel > currTocNode.preLevel) {\n currTocNode.preLevel++;\n while (headingLevel > currTocNode.preLevel) {\n currTocNode.toc = createHeadingElement(wrapper, null, currTocNode.toc, true);\n currTocNode.preLevel++;\n }\n currTocNode.toc = createHeadingElement(wrapper, element, currTocNode.toc, true);\n } else {\n while (headingLevel < currTocNode.preLevel) {\n currTocNode.toc = currTocNode.toc.parentNode;\n currTocNode.preLevel--;\n }\n createHeadingElement(wrapper, element, currTocNode.toc, false);\n }\n if (currTocNode.parentNode) appendTocElement(wrapper, element, currTocNode.parentNode, headingLevel);\n return currTocNode;\n }\n function renderTocElements(wrapper) {\n var element = null;\n var headingLevel = 0;\n var currTocNode = null;\n var result = false;\n var elements = wrapper.querySelectorAll('p,h1,h2,h3,h4,h5,h6');\n for (var i = 0; i < elements.length; i++) {\n element = elements[i];\n\n // Match the element text is [toc].\n // And replace this element with out list that classname is 'showdown-toc'.\n if (element.textContent.trim().toLowerCase() == '[toc]') {\n // New table of contents container.\n var toc = wrapper.ownerDocument.createElement('ul');\n toc.className = 'showdown-toc';\n element.parentNode.replaceChild(toc, element);\n var tocNode = {\n parentNode: null,\n toc: toc,\n headingLevel: headingLevel,\n preLevel: 0\n };\n if (currTocNode) {\n // If the heading level of the TOC node is higher than\n // that of the previous TOC node,\n // the TOC node is a child of the previous TOC node.\n // Otherwise, look up the TOC node in the node list\n // whose heading level is not greater than the TOC node.\n if (headingLevel > currTocNode.headingLevel) {\n tocNode.parentNode = currTocNode;\n } else {\n // The code will never be executed, just to prevent logic loss.\n // Because invalid nodes have been cleared in appendTocElement method.\n var prev = currTocNode;\n while (headingLevel < prev.headingLevel) {\n prev = prev.parentNode;\n }\n if (prev) {\n if (headingLevel === prev.headingLevel) {\n tocNode.parentNode = prev.parentNode;\n } else {\n tocNode.parentNode = prev;\n }\n }\n }\n }\n currTocNode = tocNode;\n result = true;\n }\n // That's going to be what we use as contents entries\n // for this table of contents.\n else if (element['tagName']) {\n switch (element['tagName']) {\n case 'H1':\n case 'H2':\n case 'H3':\n case 'H4':\n case 'H5':\n case 'H6':\n headingLevel = parseInt(element['tagName'].substr(1));\n if (currTocNode) {\n if (!currTocNode.preLevel) {\n currTocNode.preLevel = headingLevel;\n }\n currTocNode = appendTocElement(wrapper, element, currTocNode, headingLevel);\n }\n break;\n }\n }\n }\n\n // Final, clear all toc node in node list.\n while (currTocNode) {\n var tempTocNode = currTocNode;\n currTocNode = tempTocNode.parentNode;\n // Clean toc node.\n tempTocNode.parentNode = null;\n tempTocNode.toc = null;\n tempTocNode.headingLevel = null;\n tempTocNode.preLevel = null;\n }\n return result;\n }\n function showdownToc() {\n var parser = new DOMParser();\n return [{\n type: 'output',\n filter: function filter(html) {\n // parse html\n var doc = parser.parseFromString(html, 'text/html');\n var wrapper = typeof doc.body !== 'undefined' ? doc.body : doc;\n if (!renderTocElements(wrapper)) {\n return html;\n }\n // return html text content\n return wrapper.innerHTML;\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown viz extension for markdown\n */\n\n if (typeof window === 'undefined') {\n throw Error('The showdown viz extension can only be used in browser environment!');\n }\n if (typeof Viz === 'undefined') {\n var Viz = window.Viz || undefined;\n }\n var engines = ['circo', 'dot', 'neato', 'osage', 'twopi'];\n function hasViz() {\n return typeof Viz !== 'undefined' && Viz && typeof Viz.instance !== 'undefined' ? true : false;\n }\n var dync$8 = false;\n function dyncLoadScript$8() {\n var sync = hasViz();\n if (typeof window !== 'undefined') {\n if (dync$8) {\n return sync;\n }\n if (!sync) {\n dync$8 = true;\n cdnjs.loadScript('Viz').then(function (name) {\n Viz = utils.interopDefault(window[name]);\n });\n }\n }\n return sync;\n }\n function onRenderViz(resolve, res) {\n if (hasViz()) {\n var id = res.id;\n var name = res.className;\n var data = res.data;\n var el = res.element;\n var langattr = res.element.dataset.lang;\n var engine = 'dot';\n if (langattr) {\n var obj = JSON.parse(langattr);\n if (obj && obj.engine && engines.indexOf(obj.engine) != -1) {\n engine = obj.engine;\n }\n }\n Viz.instance().then(function (viz) {\n var svg = viz.renderString(data, {\n format: 'svg',\n engine: engine\n });\n el.parentNode.outerHTML = \"
    \").concat(svg, \"
    \");\n resolve(true);\n });\n return;\n }\n setTimeout(function () {\n onRenderViz(resolve, res);\n }, 10);\n }\n\n /**\n * render Viz graphs\n */\n function renderViz(element) {\n return new Promise(function (resolve) {\n var meta = utils.createElementMeta(\"viz\", element);\n if (!meta) {\n return resolve(false);\n }\n onRenderViz(resolve, meta);\n });\n }\n\n //
    \n function renderVizElements(elements) {\n dyncLoadScript$8();\n return new Promise(function (resolve) {\n var promiseArray = [];\n elements.forEach(function (element) {\n promiseArray.push(renderViz(element));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n function showdownViz() {\n return [{\n type: 'output',\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n // find the Viz in code blocks\n var elements = wrapper.querySelectorAll('code.dot.language-dot');\n if (!elements.length) {\n return false;\n }\n console.log(format$1(\"Begin render dot elements.\"));\n return renderVizElements(elements).then(function () {\n console.log(format$1(\"End render dot elements.\"));\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown vega extension for markdown\n */\n var extName$3 = \"vega\";\n if (typeof window === 'undefined') {\n throw Error('The showdown vega extension can only be used in browser environment!');\n }\n if (typeof vegaEmbed === 'undefined') {\n var vegaEmbed = window.vegaEmbed || undefined;\n }\n function hasVegaEmbed() {\n return typeof vegaEmbed !== 'undefined' && vegaEmbed ? true : false;\n }\n var dync$7 = false;\n function dyncLoadScript$7() {\n var sync = hasVegaEmbed();\n if (typeof window !== 'undefined') {\n if (dync$7) {\n return sync;\n }\n if (!sync) {\n dync$7 = true;\n cdnjs.loadScript(extName$3).then(function () {\n return cdnjs.loadScript('vegaLite');\n }).then(function () {\n return cdnjs.loadScript('vegaEmbed');\n }).then(function (name) {\n vegaEmbed = utils.interopDefault(window[name]);\n });\n }\n }\n return sync;\n }\n\n /**\n * render VegaEmbed graphs\n */\n function renderVega(element, options, scripts, isVegaLite) {\n var meta = utils.createElementMeta(extName$3, element);\n if (!meta) {\n return Promise.resolve(false);\n }\n var config = JSON.stringify(options);\n var data = JSON.stringify(JSON.parse(meta.data));\n var id = meta.id;\n var script = {\n id: id,\n code: \"(function() {\\n let el = document.getElementById('\".concat(id, \"');\\n if (el){\\n vegaEmbed(el, JSON.parse('\").concat(data, \"'), JSON.parse('\").concat(config, \"'));\\n }\\n })();\")\n };\n scripts.push(script);\n return new Promise(function (resolve) {\n onRenderVega(resolve, meta);\n });\n }\n\n //
    \n function renderVegaElements(vegaElements, vegaLiteElements, scripts, options) {\n dyncLoadScript$7();\n return new Promise(function (resolve) {\n var promiseArray = [];\n vegaElements.forEach(function (element) {\n promiseArray.push(renderVega(element, options, scripts));\n });\n vegaLiteElements.forEach(function (element) {\n promiseArray.push(renderVega(element, options, scripts));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n\n // theme: 'excel' | 'ggplot2' | 'quartz' | 'vox' | 'dark'\n var getOptions$2 = function getOptions() {\n var userOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _objectSpread2({\n actions: {\n editor: false\n },\n theme: 'vox',\n tooltip: false,\n renderer: 'svg'\n }, userOptions);\n };\n function onRenderVega(resolve, res) {\n if (hasVegaEmbed()) {\n var id = res.id;\n var name = res.className;\n var node = res.element.parentNode;\n node.outerHTML = \"
    \");\n return resolve(true);\n }\n setTimeout(function () {\n onRenderVega(resolve, res);\n }, 10);\n }\n function showdownVega(userOptions) {\n var options = getOptions$2(userOptions);\n return [{\n type: 'output',\n config: options,\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n\n // find the VegaEmbed in code blocks\n var vegaElements = wrapper.querySelectorAll('code.vega.language-vega');\n var vegaLiteElements = wrapper.querySelectorAll('code.vega-lite.language-vega-lite');\n if (!vegaElements.length && !vegaLiteElements.length) {\n return false;\n }\n console.log(format$1(\"Begin render vega elements.\"));\n return renderVegaElements(vegaElements, vegaLiteElements, obj.scripts, this.config).then(function () {\n console.log(format$1(\"End render vega elements.\"));\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown align extension for markdown\n */\n\n function renderAlignElements(wrapper) {\n var element = null;\n var childNode = null;\n var result = false;\n var elements = wrapper.querySelectorAll('p, li, h1, h2, h3, h4, h5, h6, div.paragraph');\n for (var i = 0; i < elements.length; i++) {\n element = elements[i];\n childNode = element.firstChild;\n while (childNode) {\n // Text node type is 3.\n if (childNode.nodeType === 3) {\n // Does the element consist of ':-:' or '--:'\n var results = childNode.nodeValue.match(/^([\\s\\S]*?)([:-]-:)(?:[\\s]?)([\\s\\S]*)$/);\n if (results) {\n if (results[2] === ':-:') {\n // align-center\n childNode.nodeValue = results[3];\n if (element.className) {\n element.className += \" align-center\";\n } else {\n element.className = \"align-center\";\n }\n result = true;\n } else if (results[2] === '--:') {\n //align-right\n childNode.nodeValue = results[3];\n if (element.className) {\n element.className += \" align-right\";\n } else {\n element.className = \"align-right\";\n }\n result = true;\n }\n //default algin-left\n }\n break;\n }\n childNode = childNode.nextSibling;\n }\n }\n return result;\n }\n function showdownAlign() {\n var parser = new DOMParser();\n return [{\n type: 'output',\n filter: function filter(html) {\n // parse html\n var doc = parser.parseFromString(html, 'text/html');\n var wrapper = typeof doc.body !== 'undefined' ? doc.body : doc;\n if (!renderAlignElements(wrapper)) {\n return html;\n }\n // return html text content\n return wrapper.innerHTML;\n }\n }];\n }\n\n /*\n Based on ASCIIMathTeXImg.js but now part of https://github.com/jhuix/showdowns.git\n\n Based on ASCIIMathML, Version 1.4.7 Aug 30, 2005, (c) Peter Jipsen http://www.chapman.edu/~jipsen\n Modified with TeX conversion for IMG rendering Sept 6, 2006 (c) David Lippman http://www.pierce.ctc.edu/dlippman\n Updated to match ver 2.2 Mar 3, 2014\n Latest at https://github.com/mathjax/asciimathml\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n */\n\n var config$1 = {\n decimalsign: \".\" // change to \",\" if you like, beware of `(1,2)`!\n };\n var CONST = 0,\n UNARY = 1,\n BINARY = 2,\n INFIX = 3,\n LEFTBRACKET = 4,\n RIGHTBRACKET = 5,\n SPACE = 6,\n UNDEROVER = 7,\n DEFINITION = 8,\n LEFTRIGHT = 9,\n TEXT = 10; // token types\n\n var AMsqrt = {\n input: 'sqrt',\n tag: 'msqrt',\n output: 'sqrt',\n tex: null,\n ttype: UNARY\n },\n AMroot = {\n input: 'root',\n tag: 'mroot',\n output: 'root',\n tex: null,\n ttype: BINARY\n },\n AMfrac = {\n input: 'frac',\n tag: 'mfrac',\n output: '/',\n tex: null,\n ttype: BINARY\n },\n AMdiv = {\n input: '/',\n tag: 'mfrac',\n output: '/',\n tex: null,\n ttype: INFIX\n },\n AMover = {\n input: 'stackrel',\n tag: 'mover',\n output: 'stackrel',\n tex: null,\n ttype: BINARY\n },\n AMsub = {\n input: '_',\n tag: 'msub',\n output: '_',\n tex: null,\n ttype: INFIX\n },\n AMsup = {\n input: '^',\n tag: 'msup',\n output: '^',\n tex: null,\n ttype: INFIX\n },\n AMtext = {\n input: 'text',\n tag: 'mtext',\n output: 'text',\n tex: null,\n ttype: TEXT\n },\n AMmbox = {\n input: 'mbox',\n tag: 'mtext',\n output: 'mbox',\n tex: null,\n ttype: TEXT\n },\n AMquote = {\n input: '\"',\n tag: 'mtext',\n output: 'mbox',\n tex: null,\n ttype: TEXT\n };\n var AMsymbols = [\n //some greek symbols\n {\n input: 'alpha',\n tag: 'mi',\n output: \"\\u03B1\",\n tex: null,\n ttype: CONST\n }, {\n input: 'beta',\n tag: 'mi',\n output: \"\\u03B2\",\n tex: null,\n ttype: CONST\n }, {\n input: 'chi',\n tag: 'mi',\n output: \"\\u03C7\",\n tex: null,\n ttype: CONST\n }, {\n input: 'delta',\n tag: 'mi',\n output: \"\\u03B4\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Delta',\n tag: 'mo',\n output: \"\\u0394\",\n tex: null,\n ttype: CONST\n }, {\n input: 'epsi',\n tag: 'mi',\n output: \"\\u03B5\",\n tex: 'epsilon',\n ttype: CONST\n }, {\n input: 'varepsilon',\n tag: 'mi',\n output: \"\\u025B\",\n tex: null,\n ttype: CONST\n }, {\n input: 'eta',\n tag: 'mi',\n output: \"\\u03B7\",\n tex: null,\n ttype: CONST\n }, {\n input: 'gamma',\n tag: 'mi',\n output: \"\\u03B3\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Gamma',\n tag: 'mo',\n output: \"\\u0393\",\n tex: null,\n ttype: CONST\n }, {\n input: 'iota',\n tag: 'mi',\n output: \"\\u03B9\",\n tex: null,\n ttype: CONST\n }, {\n input: 'kappa',\n tag: 'mi',\n output: \"\\u03BA\",\n tex: null,\n ttype: CONST\n }, {\n input: 'lambda',\n tag: 'mi',\n output: \"\\u03BB\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Lambda',\n tag: 'mo',\n output: \"\\u039B\",\n tex: null,\n ttype: CONST\n }, {\n input: 'lamda',\n tag: 'mi',\n output: 'lambda',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'Lamda',\n tag: 'mi',\n output: 'Lambda',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'mu',\n tag: 'mi',\n output: \"\\u03BC\",\n tex: null,\n ttype: CONST\n }, {\n input: 'nu',\n tag: 'mi',\n output: \"\\u03BD\",\n tex: null,\n ttype: CONST\n }, {\n input: 'omega',\n tag: 'mi',\n output: \"\\u03C9\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Omega',\n tag: 'mo',\n output: \"\\u03A9\",\n tex: null,\n ttype: CONST\n }, {\n input: 'phi',\n tag: 'mi',\n output: \"\\u03C6\",\n tex: null,\n ttype: CONST\n }, {\n input: 'varphi',\n tag: 'mi',\n output: \"\\u03D5\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Phi',\n tag: 'mo',\n output: \"\\u03A6\",\n tex: null,\n ttype: CONST\n }, {\n input: 'pi',\n tag: 'mi',\n output: \"\\u03C0\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Pi',\n tag: 'mo',\n output: \"\\u03A0\",\n tex: null,\n ttype: CONST\n }, {\n input: 'psi',\n tag: 'mi',\n output: \"\\u03C8\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Psi',\n tag: 'mi',\n output: \"\\u03A8\",\n tex: null,\n ttype: CONST\n }, {\n input: 'rho',\n tag: 'mi',\n output: \"\\u03C1\",\n tex: null,\n ttype: CONST\n }, {\n input: 'sigma',\n tag: 'mi',\n output: \"\\u03C3\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Sigma',\n tag: 'mo',\n output: \"\\u03A3\",\n tex: null,\n ttype: CONST\n }, {\n input: 'tau',\n tag: 'mi',\n output: \"\\u03C4\",\n tex: null,\n ttype: CONST\n }, {\n input: 'theta',\n tag: 'mi',\n output: \"\\u03B8\",\n tex: null,\n ttype: CONST\n }, {\n input: 'vartheta',\n tag: 'mi',\n output: \"\\u03D1\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Theta',\n tag: 'mo',\n output: \"\\u0398\",\n tex: null,\n ttype: CONST\n }, {\n input: 'upsilon',\n tag: 'mi',\n output: \"\\u03C5\",\n tex: null,\n ttype: CONST\n }, {\n input: 'xi',\n tag: 'mi',\n output: \"\\u03BE\",\n tex: null,\n ttype: CONST\n }, {\n input: 'Xi',\n tag: 'mo',\n output: \"\\u039E\",\n tex: null,\n ttype: CONST\n }, {\n input: 'zeta',\n tag: 'mi',\n output: \"\\u03B6\",\n tex: null,\n ttype: CONST\n },\n //binary operation symbols\n {\n input: '*',\n tag: 'mo',\n output: \"\\u22C5\",\n tex: 'cdot',\n ttype: CONST\n }, {\n input: '**',\n tag: 'mo',\n output: \"\\u2217\",\n tex: 'ast',\n ttype: CONST\n }, {\n input: '***',\n tag: 'mo',\n output: \"\\u22C6\",\n tex: 'star',\n ttype: CONST\n }, {\n input: '//',\n tag: 'mo',\n output: '/',\n tex: '/',\n ttype: CONST,\n val: true,\n notexcopy: true\n }, {\n input: '\\\\\\\\',\n tag: 'mo',\n output: '\\\\',\n tex: 'backslash',\n ttype: CONST\n }, {\n input: 'setminus',\n tag: 'mo',\n output: '\\\\',\n tex: null,\n ttype: CONST\n }, {\n input: 'xx',\n tag: 'mo',\n output: \"\\xD7\",\n tex: 'times',\n ttype: CONST\n }, {\n input: '|><',\n tag: 'mo',\n output: \"\\u22C9\",\n tex: 'ltimes',\n ttype: CONST\n }, {\n input: '><|',\n tag: 'mo',\n output: \"\\u22CA\",\n tex: 'rtimes',\n ttype: CONST\n }, {\n input: '|><|',\n tag: 'mo',\n output: \"\\u22C8\",\n tex: 'bowtie',\n ttype: CONST\n }, {\n input: '-:',\n tag: 'mo',\n output: \"\\xF7\",\n tex: 'div',\n ttype: CONST\n }, {\n input: 'divide',\n tag: 'mo',\n output: '-:',\n tex: null,\n ttype: DEFINITION\n }, {\n input: '@',\n tag: 'mo',\n output: \"\\u2218\",\n tex: 'circ',\n ttype: CONST\n }, {\n input: 'o+',\n tag: 'mo',\n output: \"\\u2295\",\n tex: 'oplus',\n ttype: CONST\n }, {\n input: 'ox',\n tag: 'mo',\n output: \"\\u2297\",\n tex: 'otimes',\n ttype: CONST\n }, {\n input: 'o.',\n tag: 'mo',\n output: \"\\u2299\",\n tex: 'odot',\n ttype: CONST\n }, {\n input: 'sum',\n tag: 'mo',\n output: \"\\u2211\",\n tex: null,\n ttype: UNDEROVER\n }, {\n input: 'prod',\n tag: 'mo',\n output: \"\\u220F\",\n tex: null,\n ttype: UNDEROVER\n }, {\n input: '^^',\n tag: 'mo',\n output: \"\\u2227\",\n tex: 'wedge',\n ttype: CONST\n }, {\n input: '^^^',\n tag: 'mo',\n output: \"\\u22C0\",\n tex: 'bigwedge',\n ttype: UNDEROVER\n }, {\n input: 'vv',\n tag: 'mo',\n output: \"\\u2228\",\n tex: 'vee',\n ttype: CONST\n }, {\n input: 'vvv',\n tag: 'mo',\n output: \"\\u22C1\",\n tex: 'bigvee',\n ttype: UNDEROVER\n }, {\n input: 'nn',\n tag: 'mo',\n output: \"\\u2229\",\n tex: 'cap',\n ttype: CONST\n }, {\n input: 'nnn',\n tag: 'mo',\n output: \"\\u22C2\",\n tex: 'bigcap',\n ttype: UNDEROVER\n }, {\n input: 'uu',\n tag: 'mo',\n output: \"\\u222A\",\n tex: 'cup',\n ttype: CONST\n }, {\n input: 'uuu',\n tag: 'mo',\n output: \"\\u22C3\",\n tex: 'bigcup',\n ttype: UNDEROVER\n }, {\n input: 'overset',\n tag: 'mover',\n output: 'stackrel',\n tex: null,\n ttype: BINARY\n }, {\n input: 'underset',\n tag: 'munder',\n output: 'stackrel',\n tex: null,\n ttype: BINARY\n },\n //binary relation symbols\n {\n input: '!=',\n tag: 'mo',\n output: \"\\u2260\",\n tex: 'ne',\n ttype: CONST\n }, {\n input: ':=',\n tag: 'mo',\n output: ':=',\n tex: null,\n ttype: CONST\n }, {\n input: 'lt',\n tag: 'mo',\n output: '<',\n tex: null,\n ttype: CONST\n }, {\n input: 'gt',\n tag: 'mo',\n output: '>',\n tex: null,\n ttype: CONST\n }, {\n input: '<=',\n tag: 'mo',\n output: \"\\u2264\",\n tex: 'le',\n ttype: CONST\n }, {\n input: 'lt=',\n tag: 'mo',\n output: \"\\u2264\",\n tex: 'leq',\n ttype: CONST\n }, {\n input: 'gt=',\n tag: 'mo',\n output: \"\\u2265\",\n tex: 'geq',\n ttype: CONST\n }, {\n input: '>=',\n tag: 'mo',\n output: \"\\u2265\",\n tex: 'ge',\n ttype: CONST\n }, {\n input: '-<',\n tag: 'mo',\n output: \"\\u227A\",\n tex: 'prec',\n ttype: CONST\n }, {\n input: '-lt',\n tag: 'mo',\n output: \"\\u227A\",\n tex: null,\n ttype: CONST\n }, {\n input: '>-',\n tag: 'mo',\n output: \"\\u227B\",\n tex: 'succ',\n ttype: CONST\n }, {\n input: '-<=',\n tag: 'mo',\n output: \"\\u2AAF\",\n tex: 'preceq',\n ttype: CONST\n }, {\n input: '>-=',\n tag: 'mo',\n output: \"\\u2AB0\",\n tex: 'succeq',\n ttype: CONST\n }, {\n input: 'in',\n tag: 'mo',\n output: \"\\u2208\",\n tex: null,\n ttype: CONST\n }, {\n input: '!in',\n tag: 'mo',\n output: \"\\u2209\",\n tex: 'notin',\n ttype: CONST\n }, {\n input: 'sub',\n tag: 'mo',\n output: \"\\u2282\",\n tex: 'subset',\n ttype: CONST\n }, {\n input: 'sup',\n tag: 'mo',\n output: \"\\u2283\",\n tex: 'supset',\n ttype: CONST\n }, {\n input: 'sube',\n tag: 'mo',\n output: \"\\u2286\",\n tex: 'subseteq',\n ttype: CONST\n }, {\n input: 'supe',\n tag: 'mo',\n output: \"\\u2287\",\n tex: 'supseteq',\n ttype: CONST\n }, {\n input: '-=',\n tag: 'mo',\n output: \"\\u2261\",\n tex: 'equiv',\n ttype: CONST\n }, {\n input: '~=',\n tag: 'mo',\n output: \"\\u2245\",\n tex: 'stackrel{\\\\sim}{=}',\n notexcopy: true,\n ttype: CONST\n },\n //back hack b/c mimetex doesn't support /cong\n {\n input: 'cong',\n tag: 'mo',\n output: '~=',\n tex: null,\n ttype: DEFINITION\n }, {\n input: '~~',\n tag: 'mo',\n output: \"\\u2248\",\n tex: 'approx',\n ttype: CONST\n }, {\n input: 'prop',\n tag: 'mo',\n output: \"\\u221D\",\n tex: 'propto',\n ttype: CONST\n },\n //logical symbols\n {\n input: 'and',\n tag: 'mtext',\n output: 'and',\n tex: null,\n ttype: SPACE\n }, {\n input: 'or',\n tag: 'mtext',\n output: 'or',\n tex: null,\n ttype: SPACE\n }, {\n input: 'not',\n tag: 'mo',\n output: \"\\xAC\",\n tex: 'neg',\n ttype: CONST\n }, {\n input: '=>',\n tag: 'mo',\n output: \"\\u21D2\",\n tex: 'Rightarrow',\n ttype: CONST\n }, {\n input: 'implies',\n tag: 'mo',\n output: '=>',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'if',\n tag: 'mo',\n output: 'if',\n tex: null,\n ttype: SPACE\n }, {\n input: '<=>',\n tag: 'mo',\n output: \"\\u21D4\",\n tex: 'Leftrightarrow',\n ttype: CONST\n }, {\n input: 'iff',\n tag: 'mo',\n output: '<=>',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'AA',\n tag: 'mo',\n output: \"\\u2200\",\n tex: 'forall',\n ttype: CONST\n }, {\n input: 'EE',\n tag: 'mo',\n output: \"\\u2203\",\n tex: 'exists',\n ttype: CONST\n }, {\n input: '_|_',\n tag: 'mo',\n output: \"\\u22A5\",\n tex: 'bot',\n ttype: CONST\n }, {\n input: 'TT',\n tag: 'mo',\n output: \"\\u22A4\",\n tex: 'top',\n ttype: CONST\n }, {\n input: '|--',\n tag: 'mo',\n output: \"\\u22A2\",\n tex: 'vdash',\n ttype: CONST\n }, {\n input: '|==',\n tag: 'mo',\n output: \"\\u22A8\",\n tex: 'models',\n ttype: CONST\n },\n //mimetex doesn't support\n\n //grouping brackets\n {\n input: '(',\n tag: 'mo',\n output: '(',\n tex: null,\n ttype: LEFTBRACKET,\n val: true\n }, {\n input: ')',\n tag: 'mo',\n output: ')',\n tex: null,\n ttype: RIGHTBRACKET,\n val: true\n }, {\n input: '[',\n tag: 'mo',\n output: '[',\n tex: null,\n ttype: LEFTBRACKET,\n val: true\n }, {\n input: ']',\n tag: 'mo',\n output: ']',\n tex: null,\n ttype: RIGHTBRACKET,\n val: true\n }, {\n input: 'left(',\n tag: 'mo',\n output: '(',\n tex: '(',\n notexcopy: true,\n ttype: LEFTBRACKET,\n val: true\n }, {\n input: 'right)',\n tag: 'mo',\n output: ')',\n tex: ')',\n notexcopy: true,\n ttype: RIGHTBRACKET,\n val: true\n }, {\n input: 'left[',\n tag: 'mo',\n output: '[',\n tex: '[',\n notexcopy: true,\n ttype: LEFTBRACKET,\n val: true\n }, {\n input: 'right]',\n tag: 'mo',\n output: ']',\n tex: ']',\n notexcopy: true,\n ttype: RIGHTBRACKET,\n val: true\n }, {\n input: '{',\n tag: 'mo',\n output: '{',\n tex: 'lbrace',\n ttype: LEFTBRACKET\n }, {\n input: '}',\n tag: 'mo',\n output: '}',\n tex: 'rbrace',\n ttype: RIGHTBRACKET\n }, {\n input: '|',\n tag: 'mo',\n output: '|',\n tex: null,\n ttype: LEFTRIGHT,\n val: true\n }, {\n input: '|:',\n tag: 'mo',\n output: '|',\n tex: '|',\n ttype: LEFTBRACKET,\n notexcopy: true,\n val: true\n }, {\n input: ':|',\n tag: 'mo',\n output: '|',\n tex: '|',\n ttype: RIGHTBRACKET,\n notexcopy: true,\n val: true\n }, {\n input: ':|:',\n tag: 'mo',\n output: '|',\n tex: '|',\n ttype: CONST,\n notexcopy: true,\n val: true\n },\n //{input:\"||\", tag:\"mo\", output:\"||\", tex:null, ttype:LEFTRIGHT},\n {\n input: '(:',\n tag: 'mo',\n output: \"\\u2329\",\n tex: 'langle',\n ttype: LEFTBRACKET\n }, {\n input: ':)',\n tag: 'mo',\n output: \"\\u232A\",\n tex: 'rangle',\n ttype: RIGHTBRACKET\n }, {\n input: '<<',\n tag: 'mo',\n output: \"\\u2329\",\n tex: 'langle',\n ttype: LEFTBRACKET\n }, {\n input: '>>',\n tag: 'mo',\n output: \"\\u232A\",\n tex: 'rangle',\n ttype: RIGHTBRACKET\n }, {\n input: '{:',\n tag: 'mo',\n output: '{:',\n tex: null,\n ttype: LEFTBRACKET,\n invisible: true\n }, {\n input: ':}',\n tag: 'mo',\n output: ':}',\n tex: null,\n ttype: RIGHTBRACKET,\n invisible: true\n },\n //miscellaneous symbols\n {\n input: 'int',\n tag: 'mo',\n output: \"\\u222B\",\n tex: null,\n ttype: CONST\n }, {\n input: 'dx',\n tag: 'mi',\n output: '{:d x:}',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'dy',\n tag: 'mi',\n output: '{:d y:}',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'dz',\n tag: 'mi',\n output: '{:d z:}',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'dt',\n tag: 'mi',\n output: '{:d t:}',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'oint',\n tag: 'mo',\n output: \"\\u222E\",\n tex: null,\n ttype: CONST\n }, {\n input: 'del',\n tag: 'mo',\n output: \"\\u2202\",\n tex: 'partial',\n ttype: CONST\n }, {\n input: 'grad',\n tag: 'mo',\n output: \"\\u2207\",\n tex: 'nabla',\n ttype: CONST\n }, {\n input: '+-',\n tag: 'mo',\n output: \"\\xB1\",\n tex: 'pm',\n ttype: CONST\n }, {\n input: 'O/',\n tag: 'mo',\n output: \"\\u2205\",\n tex: 'emptyset',\n ttype: CONST\n }, {\n input: 'oo',\n tag: 'mo',\n output: \"\\u221E\",\n tex: 'infty',\n ttype: CONST\n }, {\n input: 'aleph',\n tag: 'mo',\n output: \"\\u2135\",\n tex: null,\n ttype: CONST\n }, {\n input: '...',\n tag: 'mo',\n output: '...',\n tex: 'ldots',\n ttype: CONST\n }, {\n input: ':.',\n tag: 'mo',\n output: \"\\u2234\",\n tex: 'therefore',\n ttype: CONST\n }, {\n input: \":'\",\n tag: 'mo',\n output: \"\\u2235\",\n tex: 'because',\n ttype: CONST\n }, {\n input: '/_',\n tag: 'mo',\n output: \"\\u2220\",\n tex: 'angle',\n ttype: CONST\n }, {\n input: '/_\\\\',\n tag: 'mo',\n output: \"\\u25B3\",\n tex: 'triangle',\n ttype: CONST\n }, {\n input: '\\\\ ',\n tag: 'mo',\n output: \"\\xA0\",\n tex: null,\n ttype: CONST,\n val: true\n }, {\n input: 'frown',\n tag: 'mo',\n output: \"\\u2322\",\n tex: null,\n ttype: CONST\n }, {\n input: '%',\n tag: 'mo',\n output: '%',\n tex: '%',\n ttype: CONST,\n notexcopy: true\n }, {\n input: 'quad',\n tag: 'mo',\n output: \"\\xA0\\xA0\",\n tex: null,\n ttype: CONST\n }, {\n input: 'qquad',\n tag: 'mo',\n output: \"\\xA0\\xA0\\xA0\\xA0\",\n tex: null,\n ttype: CONST\n }, {\n input: 'cdots',\n tag: 'mo',\n output: \"\\u22EF\",\n tex: null,\n ttype: CONST\n }, {\n input: 'vdots',\n tag: 'mo',\n output: \"\\u22EE\",\n tex: null,\n ttype: CONST\n }, {\n input: 'ddots',\n tag: 'mo',\n output: \"\\u22F1\",\n tex: null,\n ttype: CONST\n }, {\n input: 'diamond',\n tag: 'mo',\n output: \"\\u22C4\",\n tex: null,\n ttype: CONST\n }, {\n input: 'square',\n tag: 'mo',\n output: \"\\u25A1\",\n tex: 'boxempty',\n ttype: CONST\n }, {\n input: '|__',\n tag: 'mo',\n output: \"\\u230A\",\n tex: 'lfloor',\n ttype: CONST\n }, {\n input: '__|',\n tag: 'mo',\n output: \"\\u230B\",\n tex: 'rfloor',\n ttype: CONST\n }, {\n input: '|~',\n tag: 'mo',\n output: \"\\u2308\",\n tex: 'lceil',\n ttype: CONST\n }, {\n input: 'lceiling',\n tag: 'mo',\n output: '|~',\n tex: null,\n ttype: DEFINITION\n }, {\n input: '~|',\n tag: 'mo',\n output: \"\\u2309\",\n tex: 'rceil',\n ttype: CONST\n }, {\n input: 'rceiling',\n tag: 'mo',\n output: '~|',\n tex: null,\n ttype: DEFINITION\n }, {\n input: 'CC',\n tag: 'mo',\n output: \"\\u2102\",\n tex: 'mathbb{C}',\n ttype: CONST,\n notexcopy: true\n }, {\n input: 'NN',\n tag: 'mo',\n output: \"\\u2115\",\n tex: 'mathbb{N}',\n ttype: CONST,\n notexcopy: true\n }, {\n input: 'QQ',\n tag: 'mo',\n output: \"\\u211A\",\n tex: 'mathbb{Q}',\n ttype: CONST,\n notexcopy: true\n }, {\n input: 'RR',\n tag: 'mo',\n output: \"\\u211D\",\n tex: 'mathbb{R}',\n ttype: CONST,\n notexcopy: true\n }, {\n input: 'ZZ',\n tag: 'mo',\n output: \"\\u2124\",\n tex: 'mathbb{Z}',\n ttype: CONST,\n notexcopy: true\n }, {\n input: 'f',\n tag: 'mi',\n output: 'f',\n tex: null,\n ttype: UNARY,\n func: true,\n val: true\n }, {\n input: 'g',\n tag: 'mi',\n output: 'g',\n tex: null,\n ttype: UNARY,\n func: true,\n val: true\n }, {\n input: \"''\",\n tag: 'mo',\n output: \"''\",\n tex: null,\n val: true\n }, {\n input: \"'''\",\n tag: 'mo',\n output: \"'''\",\n tex: null,\n val: true\n }, {\n input: \"''''\",\n tag: 'mo',\n output: \"''''\",\n tex: null,\n val: true\n },\n //standard functions\n {\n input: 'lim',\n tag: 'mo',\n output: 'lim',\n tex: null,\n ttype: UNDEROVER\n }, {\n input: 'Lim',\n tag: 'mo',\n output: 'Lim',\n tex: null,\n ttype: UNDEROVER\n }, {\n input: 'sin',\n tag: 'mo',\n output: 'sin',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'cos',\n tag: 'mo',\n output: 'cos',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'tan',\n tag: 'mo',\n output: 'tan',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'arcsin',\n tag: 'mo',\n output: 'arcsin',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'arccos',\n tag: 'mo',\n output: 'arccos',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'arctan',\n tag: 'mo',\n output: 'arctan',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'sinh',\n tag: 'mo',\n output: 'sinh',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'cosh',\n tag: 'mo',\n output: 'cosh',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'tanh',\n tag: 'mo',\n output: 'tanh',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'cot',\n tag: 'mo',\n output: 'cot',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'coth',\n tag: 'mo',\n output: 'coth',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'sech',\n tag: 'mo',\n output: 'sech',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'csch',\n tag: 'mo',\n output: 'csch',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'sec',\n tag: 'mo',\n output: 'sec',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'csc',\n tag: 'mo',\n output: 'csc',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'log',\n tag: 'mo',\n output: 'log',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'ln',\n tag: 'mo',\n output: 'ln',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'abs',\n tag: 'mo',\n output: 'abs',\n tex: null,\n ttype: UNARY,\n notexcopy: true,\n rewriteleftright: ['|', '|']\n }, {\n input: 'norm',\n tag: 'mo',\n output: 'norm',\n tex: null,\n ttype: UNARY,\n notexcopy: true,\n rewriteleftright: ['\\\\|', '\\\\|']\n }, {\n input: 'floor',\n tag: 'mo',\n output: 'floor',\n tex: null,\n ttype: UNARY,\n notexcopy: true,\n rewriteleftright: ['\\\\lfloor', '\\\\rfloor']\n }, {\n input: 'ceil',\n tag: 'mo',\n output: 'ceil',\n tex: null,\n ttype: UNARY,\n notexcopy: true,\n rewriteleftright: ['\\\\lceil', '\\\\rceil']\n }, {\n input: 'Sin',\n tag: 'mo',\n output: 'Sin',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Cos',\n tag: 'mo',\n output: 'Cos',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Tan',\n tag: 'mo',\n output: 'Tan',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Arcsin',\n tag: 'mo',\n output: 'Arcsin',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Arccos',\n tag: 'mo',\n output: 'Arccos',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Arctan',\n tag: 'mo',\n output: 'Arctan',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Sinh',\n tag: 'mo',\n output: 'Sinh',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Cosh',\n tag: 'mo',\n output: 'Cosh',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Tanh',\n tag: 'mo',\n output: 'Tanh',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Cot',\n tag: 'mo',\n output: 'Cot',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Sec',\n tag: 'mo',\n output: 'Sec',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Csc',\n tag: 'mo',\n output: 'Csc',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Log',\n tag: 'mo',\n output: 'Log',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Ln',\n tag: 'mo',\n output: 'Ln',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'Abs',\n tag: 'mo',\n output: 'abs',\n tex: null,\n ttype: UNARY,\n notexcopy: true,\n rewriteleftright: ['|', '|']\n }, {\n input: 'det',\n tag: 'mo',\n output: 'det',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'exp',\n tag: 'mo',\n output: 'exp',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'dim',\n tag: 'mo',\n output: 'dim',\n tex: null,\n ttype: CONST\n }, {\n input: 'mod',\n tag: 'mo',\n output: 'mod',\n tex: 'text{mod}',\n ttype: CONST,\n notexcopy: true\n }, {\n input: 'gcd',\n tag: 'mo',\n output: 'gcd',\n tex: null,\n ttype: UNARY,\n func: true\n }, {\n input: 'lcm',\n tag: 'mo',\n output: 'lcm',\n tex: 'text{lcm}',\n ttype: UNARY,\n func: true,\n notexcopy: true\n }, {\n input: 'lub',\n tag: 'mo',\n output: 'lub',\n tex: null,\n ttype: CONST\n }, {\n input: 'glb',\n tag: 'mo',\n output: 'glb',\n tex: null,\n ttype: CONST\n }, {\n input: 'min',\n tag: 'mo',\n output: 'min',\n tex: null,\n ttype: UNDEROVER\n }, {\n input: 'max',\n tag: 'mo',\n output: 'max',\n tex: null,\n ttype: UNDEROVER\n },\n //arrows\n {\n input: 'uarr',\n tag: 'mo',\n output: \"\\u2191\",\n tex: 'uparrow',\n ttype: CONST\n }, {\n input: 'darr',\n tag: 'mo',\n output: \"\\u2193\",\n tex: 'downarrow',\n ttype: CONST\n }, {\n input: 'rarr',\n tag: 'mo',\n output: \"\\u2192\",\n tex: 'rightarrow',\n ttype: CONST\n }, {\n input: '->',\n tag: 'mo',\n output: \"\\u2192\",\n tex: 'to',\n ttype: CONST\n }, {\n input: '>->',\n tag: 'mo',\n output: \"\\u21A3\",\n tex: 'rightarrowtail',\n ttype: CONST\n }, {\n input: '->>',\n tag: 'mo',\n output: \"\\u21A0\",\n tex: 'twoheadrightarrow',\n ttype: CONST\n }, {\n input: '>->>',\n tag: 'mo',\n output: \"\\u2916\",\n tex: 'twoheadrightarrowtail',\n ttype: CONST\n }, {\n input: '|->',\n tag: 'mo',\n output: \"\\u21A6\",\n tex: 'mapsto',\n ttype: CONST\n }, {\n input: 'larr',\n tag: 'mo',\n output: \"\\u2190\",\n tex: 'leftarrow',\n ttype: CONST\n }, {\n input: 'harr',\n tag: 'mo',\n output: \"\\u2194\",\n tex: 'leftrightarrow',\n ttype: CONST\n }, {\n input: 'rArr',\n tag: 'mo',\n output: \"\\u21D2\",\n tex: 'Rightarrow',\n ttype: CONST\n }, {\n input: 'lArr',\n tag: 'mo',\n output: \"\\u21D0\",\n tex: 'Leftarrow',\n ttype: CONST\n }, {\n input: 'hArr',\n tag: 'mo',\n output: \"\\u21D4\",\n tex: 'Leftrightarrow',\n ttype: CONST\n },\n //commands with argument\n AMsqrt, AMroot, AMfrac, AMdiv, AMover, AMsub, AMsup, {\n input: 'cancel',\n tag: 'menclose',\n output: 'cancel',\n tex: null,\n ttype: UNARY\n }, {\n input: 'Sqrt',\n tag: 'msqrt',\n output: 'sqrt',\n tex: null,\n ttype: UNARY\n }, {\n input: 'hat',\n tag: 'mover',\n output: \"^\",\n tex: null,\n ttype: UNARY,\n acc: true\n }, {\n input: 'bar',\n tag: 'mover',\n output: \"\\xAF\",\n tex: 'overline',\n ttype: UNARY,\n acc: true\n }, {\n input: 'vec',\n tag: 'mover',\n output: \"\\u2192\",\n tex: null,\n ttype: UNARY,\n acc: true\n }, {\n input: 'tilde',\n tag: 'mover',\n output: '~',\n tex: null,\n ttype: UNARY,\n acc: true\n }, {\n input: 'dot',\n tag: 'mover',\n output: '.',\n tex: null,\n ttype: UNARY,\n acc: true\n }, {\n input: 'ddot',\n tag: 'mover',\n output: '..',\n tex: null,\n ttype: UNARY,\n acc: true\n }, {\n input: 'overarc',\n tag: 'mover',\n output: \"\\u23DC\",\n tex: 'stackrel{\\\\frown}',\n notexcopy: true,\n ttype: UNARY,\n acc: true\n }, {\n input: 'overparen',\n tag: 'mover',\n output: \"\\u23DC\",\n tex: 'stackrel{\\\\frown}',\n notexcopy: true,\n ttype: UNARY,\n acc: true\n }, {\n input: 'ul',\n tag: 'munder',\n output: \"\\u0332\",\n tex: 'underline',\n ttype: UNARY,\n acc: true\n }, {\n input: 'ubrace',\n tag: 'munder',\n output: \"\\u23DF\",\n tex: 'underbrace',\n ttype: UNARY,\n acc: true\n }, {\n input: 'obrace',\n tag: 'mover',\n output: \"\\u23DE\",\n tex: 'overbrace',\n ttype: UNARY,\n acc: true\n }, AMtext, AMmbox, AMquote,\n //{input:\"var\", tag:\"mstyle\", atname:\"fontstyle\", atval:\"italic\", output:\"var\", tex:null, ttype:UNARY},\n {\n input: 'color',\n tag: 'mstyle',\n ttype: BINARY\n }, {\n input: 'bb',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'bold',\n output: 'bb',\n tex: 'mathbf',\n ttype: UNARY,\n notexcopy: true\n }, {\n input: 'mathbf',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'bold',\n output: 'mathbf',\n tex: null,\n ttype: UNARY\n }, {\n input: 'sf',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'sans-serif',\n output: 'sf',\n tex: 'mathsf',\n ttype: UNARY,\n notexcopy: true\n }, {\n input: 'mathsf',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'sans-serif',\n output: 'mathsf',\n tex: null,\n ttype: UNARY\n }, {\n input: 'bbb',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'double-struck',\n output: 'bbb',\n tex: 'mathbb',\n ttype: UNARY,\n notexcopy: true\n }, {\n input: 'mathbb',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'double-struck',\n output: 'mathbb',\n tex: null,\n ttype: UNARY\n }, {\n input: 'cc',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'script',\n output: 'cc',\n tex: 'mathcal',\n ttype: UNARY,\n notexcopy: true\n }, {\n input: 'mathcal',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'script',\n output: 'mathcal',\n tex: null,\n ttype: UNARY\n }, {\n input: 'tt',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'monospace',\n output: 'tt',\n tex: 'mathtt',\n ttype: UNARY,\n notexcopy: true\n }, {\n input: 'mathtt',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'monospace',\n output: 'mathtt',\n tex: null,\n ttype: UNARY\n }, {\n input: 'fr',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'fraktur',\n output: 'fr',\n tex: 'mathfrak',\n ttype: UNARY,\n notexcopy: true\n }, {\n input: 'mathfrak',\n tag: 'mstyle',\n atname: 'mathvariant',\n atval: 'fraktur',\n output: 'mathfrak',\n tex: null,\n ttype: UNARY\n }];\n function compareNames(s1, s2) {\n if (s1.input > s2.input) return 1;else return -1;\n }\n var AMnames = []; //list of input symbols\n\n function AMinitSymbols() {\n var i;\n var symlen = AMsymbols.length;\n for (i = 0; i < symlen; i++) {\n if (AMsymbols[i].tex && !(typeof AMsymbols[i].notexcopy == 'boolean' && AMsymbols[i].notexcopy)) {\n AMsymbols.push({\n input: AMsymbols[i].tex,\n tag: AMsymbols[i].tag,\n output: AMsymbols[i].output,\n ttype: AMsymbols[i].ttype,\n acc: AMsymbols[i].acc || false\n });\n }\n }\n refreshSymbols();\n }\n function refreshSymbols() {\n var i;\n AMsymbols.sort(compareNames);\n for (i = 0; i < AMsymbols.length; i++) AMnames[i] = AMsymbols[i].input;\n }\n function AMremoveCharsAndBlanks(str, n) {\n //remove n characters and any following blanks\n var st;\n if (str.charAt(n) == '\\\\' && str.charAt(n + 1) != '\\\\' && str.charAt(n + 1) != ' ') st = str.slice(n + 1);else st = str.slice(n);\n for (var i = 0; i < st.length && st.charCodeAt(i) <= 32; i = i + 1);\n return st.slice(i);\n }\n function AMposition(arr, str, n) {\n // return position >=n where str appears or would be inserted\n // assumes arr is sorted\n if (n == 0) {\n var h, m;\n n = -1;\n h = arr.length;\n while (n + 1 < h) {\n m = n + h >> 1;\n if (arr[m] < str) n = m;else h = m;\n }\n return h;\n } else for (var i = n; i < arr.length && arr[i] < str; i++);\n return i; // i=arr.length || arr[i]>=str\n }\n function AMgetSymbol(str) {\n //return maximal initial substring of str that appears in names\n //return null if there is none\n var k = 0; //new pos\n var j = 0; //old pos\n var mk; //match pos\n var st;\n var tagst;\n var match = '';\n var more = true;\n for (var i = 1; i <= str.length && more; i++) {\n st = str.slice(0, i); //initial substring of length i\n j = k;\n k = AMposition(AMnames, st, j);\n if (k < AMnames.length && str.slice(0, AMnames[k].length) == AMnames[k]) {\n match = AMnames[k];\n mk = k;\n i = match.length;\n }\n more = k < AMnames.length && str.slice(0, AMnames[k].length) >= AMnames[k];\n }\n AMpreviousSymbol = AMcurrentSymbol;\n if (match != '') {\n AMcurrentSymbol = AMsymbols[mk].ttype;\n return AMsymbols[mk];\n }\n // if str[0] is a digit or - return maxsubstring of digits.digits\n AMcurrentSymbol = CONST;\n k = 1;\n st = str.slice(0, 1);\n var integ = true;\n while ('0' <= st && st <= '9' && k <= str.length) {\n st = str.slice(k, k + 1);\n k++;\n }\n if (st == config$1.decimalsign) {\n st = str.slice(k, k + 1);\n if ('0' <= st && st <= '9') {\n integ = false;\n k++;\n while ('0' <= st && st <= '9' && k <= str.length) {\n st = str.slice(k, k + 1);\n k++;\n }\n }\n }\n if (integ && k > 1 || k > 2) {\n st = str.slice(0, k - 1);\n tagst = 'mn';\n } else {\n k = 2;\n st = str.slice(0, 1); //take 1 character\n tagst = ('A' > st || st > 'Z') && ('a' > st || st > 'z') ? 'mo' : 'mi';\n }\n if (st == '-' && AMpreviousSymbol == INFIX) {\n AMcurrentSymbol = INFIX;\n return {\n input: st,\n tag: tagst,\n output: st,\n ttype: UNARY,\n func: true,\n val: true\n };\n }\n return {\n input: st,\n tag: tagst,\n output: st,\n ttype: CONST,\n val: true\n }; //added val bit\n }\n function AMTremoveBrackets(node) {\n var st;\n if (node.charAt(0) == '{' && node.charAt(node.length - 1) == '}') {\n var leftchop = 0;\n st = node.substr(1, 5);\n if (st == '\\\\left') {\n st = node.charAt(6);\n if (st == '(' || st == '[' || st == '{') {\n leftchop = 7;\n } else {\n st = node.substr(6, 7);\n if (st == '\\\\lbrace') {\n leftchop = 13;\n }\n }\n } else {\n st = node.charAt(1);\n if (st == '(' || st == '[') {\n leftchop = 2;\n }\n }\n if (leftchop > 0) {\n //st = node.charAt(node.length-7);\n st = node.substr(node.length - 8);\n if (st == '\\\\right)}' || st == '\\\\right]}' || st == '\\\\right.}') {\n node = '{' + node.substr(leftchop);\n node = node.substr(0, node.length - 8) + '}';\n } else if (st == '\\\\rbrace}') {\n node = '{' + node.substr(leftchop);\n node = node.substr(0, node.length - 14) + '}';\n }\n }\n }\n return node;\n }\n\n /*Parsing ASCII math expressions with the following grammar\n v ::= [A-Za-z] | greek letters | numbers | other constant symbols\n u ::= sqrt | text | bb | other unary symbols for font commands\n b ::= frac | root | stackrel binary symbols\n l ::= ( | [ | { | (: | {: left brackets\n r ::= ) | ] | } | :) | :} right brackets\n S ::= v | lEr | uS | bSS Simple expression\n I ::= S_S | S^S | S_S^S | S Intermediate expression\n E ::= IE | I/I Expression\n Each terminal symbol is translated into a corresponding mathml node.*/\n\n var AMnestingDepth, AMpreviousSymbol, AMcurrentSymbol;\n function AMTgetTeXsymbol(symb) {\n var pre;\n if (typeof symb.val == 'boolean' && symb.val) {\n pre = '';\n } else {\n pre = '\\\\';\n }\n if (symb.tex == null) {\n //can't remember why this was here. Breaks /delta /Delta to removed\n //return (pre+(pre==''?symb.input:symb.input.toLowerCase()));\n return pre + symb.input;\n } else {\n return pre + symb.tex;\n }\n }\n function AMTparseSexpr(str) {\n //parses str and returns [node,tailstr]\n var symbol,\n node,\n result,\n i,\n st,\n // rightvert = false,\n newFrag = '';\n str = AMremoveCharsAndBlanks(str, 0);\n symbol = AMgetSymbol(str); //either a token or a bracket or empty\n if (symbol == null || symbol.ttype == RIGHTBRACKET && AMnestingDepth > 0) {\n return [null, str];\n }\n if (symbol.ttype == DEFINITION) {\n str = symbol.output + AMremoveCharsAndBlanks(str, symbol.input.length);\n symbol = AMgetSymbol(str);\n }\n switch (symbol.ttype) {\n case UNDEROVER:\n case CONST:\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n var texsymbol = AMTgetTeXsymbol(symbol);\n if (texsymbol.charAt(0) == '\\\\' || symbol.tag == 'mo') return [texsymbol, str];else return ['{' + texsymbol + '}', str];\n case LEFTBRACKET:\n //read (expr+)\n AMnestingDepth++;\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n result = AMTparseExpr(str, true);\n AMnestingDepth--;\n var leftchop = 0;\n if (result[0].substr(0, 6) == '\\\\right') {\n st = result[0].charAt(6);\n if (st == ')' || st == ']' || st == '}') {\n leftchop = 6;\n } else if (st == '.') {\n leftchop = 7;\n } else {\n st = result[0].substr(6, 7);\n if (st == '\\\\rbrace') {\n leftchop = 13;\n }\n }\n }\n if (leftchop > 0) {\n result[0] = result[0].substr(leftchop);\n if (typeof symbol.invisible == 'boolean' && symbol.invisible) node = '{' + result[0] + '}';else {\n node = '{' + AMTgetTeXsymbol(symbol) + result[0] + '}';\n }\n } else {\n if (typeof symbol.invisible == 'boolean' && symbol.invisible) node = '{\\\\left.' + result[0] + '}';else {\n node = '{\\\\left' + AMTgetTeXsymbol(symbol) + result[0] + '}';\n }\n }\n return [node, result[1]];\n case TEXT:\n if (symbol != AMquote) str = AMremoveCharsAndBlanks(str, symbol.input.length);\n if (str.charAt(0) == '{') i = str.indexOf('}');else if (str.charAt(0) == '(') i = str.indexOf(')');else if (str.charAt(0) == '[') i = str.indexOf(']');else if (symbol == AMquote) i = str.slice(1).indexOf('\"') + 1;else i = 0;\n if (i == -1) i = str.length;\n st = str.slice(1, i);\n if (st.charAt(0) == ' ') {\n newFrag = '\\\\ ';\n }\n newFrag += '\\\\text{' + st + '}';\n if (st.charAt(st.length - 1) == ' ') {\n newFrag += '\\\\ ';\n }\n str = AMremoveCharsAndBlanks(str, i + 1);\n return [newFrag, str];\n case UNARY:\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n result = AMTparseSexpr(str);\n if (result[0] == null) return ['{' + AMTgetTeXsymbol(symbol) + '}', str];\n if (typeof symbol.func == 'boolean' && symbol.func) {\n // functions hack\n st = str.charAt(0);\n if (st == '^' || st == '_' || st == '/' || st == '|' || st == ',' || symbol.input.length == 1 && symbol.input.match(/\\w/) && st != '(') {\n return ['{' + AMTgetTeXsymbol(symbol) + '}', str];\n } else {\n node = '{' + AMTgetTeXsymbol(symbol) + '{' + result[0] + '}}';\n return [node, result[1]];\n }\n }\n result[0] = AMTremoveBrackets(result[0]);\n if (symbol.input == 'sqrt') {\n // sqrt\n return ['\\\\sqrt{' + result[0] + '}', result[1]];\n } else if (symbol.input == 'cancel') {\n // cancel\n return ['\\\\cancel{' + result[0] + '}', result[1]];\n } else if (typeof symbol.rewriteleftright != 'undefined') {\n // abs, floor, ceil\n return ['{\\\\left' + symbol.rewriteleftright[0] + result[0] + '\\\\right' + symbol.rewriteleftright[1] + '}', result[1]];\n } else if (typeof symbol.acc == 'boolean' && symbol.acc) {\n // accent\n //return ['{'+AMTgetTeXsymbol(symbol)+'{'+result[0]+'}}',result[1]];\n return [AMTgetTeXsymbol(symbol) + '{' + result[0] + '}', result[1]];\n } else {\n // font change command\n return ['{' + AMTgetTeXsymbol(symbol) + '{' + result[0] + '}}', result[1]];\n }\n case BINARY:\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n result = AMTparseSexpr(str);\n if (result[0] == null) return ['{' + AMTgetTeXsymbol(symbol) + '}', str];\n result[0] = AMTremoveBrackets(result[0]);\n var result2 = AMTparseSexpr(result[1]);\n if (result2[0] == null) return ['{' + AMTgetTeXsymbol(symbol) + '}', str];\n result2[0] = AMTremoveBrackets(result2[0]);\n if (symbol.input == 'color') {\n newFrag = '{\\\\color{' + result[0].replace(/[\\{\\}]/g, '') + '}' + result2[0] + '}';\n } else if (symbol.input == 'root') {\n newFrag = '{\\\\sqrt[' + result[0] + ']{' + result2[0] + '}}';\n } else {\n newFrag = '{' + AMTgetTeXsymbol(symbol) + '{' + result[0] + '}{' + result2[0] + '}}';\n }\n return [newFrag, result2[1]];\n case INFIX:\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n return [symbol.output, str];\n case SPACE:\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n return ['{\\\\quad\\\\text{' + symbol.input + '}\\\\quad}', str];\n case LEFTRIGHT:\n // if (rightvert) return [null,str]; else rightvert = true;\n AMnestingDepth++;\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n result = AMTparseExpr(str, false);\n AMnestingDepth--;\n var st = '';\n st = result[0].charAt(result[0].length - 1);\n //alert(result[0].lastChild+\"***\"+st);\n if (st == '|' && str.charAt(0) !== ',') {\n // its an absolute value subterm\n node = '{\\\\left|' + result[0] + '}';\n return [node, result[1]];\n } else {\n // the \"|\" is a \\mid\n node = '{\\\\mid}';\n return [node, str];\n }\n default:\n //alert(\"default\");\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n return ['{' + AMTgetTeXsymbol(symbol) + '}', str];\n }\n }\n function AMTparseIexpr(str) {\n var symbol, sym1, sym2, node, result;\n str = AMremoveCharsAndBlanks(str, 0);\n sym1 = AMgetSymbol(str);\n result = AMTparseSexpr(str);\n node = result[0];\n str = result[1];\n symbol = AMgetSymbol(str);\n if (symbol.ttype == INFIX && symbol.input != '/') {\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n // if (symbol.input == \"/\") result = AMTparseIexpr(str); else\n result = AMTparseSexpr(str);\n if (result[0] == null)\n // show box in place of missing argument\n result[0] = '{}';else result[0] = AMTremoveBrackets(result[0]);\n str = result[1];\n // if (symbol.input == \"/\") AMTremoveBrackets(node);\n if (symbol.input == '_') {\n sym2 = AMgetSymbol(str);\n if (sym2.input == '^') {\n str = AMremoveCharsAndBlanks(str, sym2.input.length);\n var res2 = AMTparseSexpr(str);\n res2[0] = AMTremoveBrackets(res2[0]);\n str = res2[1];\n node = '{' + node;\n node += '_{' + result[0] + '}';\n node += '^{' + res2[0] + '}';\n node += '}';\n } else {\n node += '_{' + result[0] + '}';\n }\n } else {\n //must be ^\n //node = '{'+node+'}^{'+result[0]+'}';\n node = node + '^{' + result[0] + '}';\n }\n if (typeof sym1.func != 'undefined' && sym1.func) {\n sym2 = AMgetSymbol(str);\n if (sym2.ttype != INFIX && sym2.ttype != RIGHTBRACKET && (sym1.input.length > 1 || sym2.ttype == LEFTBRACKET)) {\n result = AMTparseIexpr(str);\n node = '{' + node + result[0] + '}';\n str = result[1];\n }\n }\n }\n return [node, str];\n }\n function AMTparseExpr(str, rightbracket) {\n var symbol,\n node,\n result,\n i,\n newFrag = '';\n var addedright = false;\n do {\n str = AMremoveCharsAndBlanks(str, 0);\n result = AMTparseIexpr(str);\n node = result[0];\n str = result[1];\n symbol = AMgetSymbol(str);\n if (symbol.ttype == INFIX && symbol.input == '/') {\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n result = AMTparseIexpr(str);\n if (result[0] == null)\n // show box in place of missing argument\n result[0] = '{}';else result[0] = AMTremoveBrackets(result[0]);\n str = result[1];\n node = AMTremoveBrackets(node);\n node = '\\\\frac' + '{' + node + '}';\n node += '{' + result[0] + '}';\n newFrag += node;\n symbol = AMgetSymbol(str);\n } else if (node != undefined) newFrag += node;\n } while ((symbol.ttype != RIGHTBRACKET && (symbol.ttype != LEFTRIGHT || rightbracket) || AMnestingDepth == 0) && symbol != null && symbol.output != '');\n if (symbol.ttype == RIGHTBRACKET || symbol.ttype == LEFTRIGHT) {\n // if (AMnestingDepth > 0) AMnestingDepth--;\n var len = newFrag.length;\n if (len > 2 && newFrag.charAt(0) == '{' && newFrag.indexOf(',') > 0) {\n //could be matrix (total rewrite from .js)\n var right = newFrag.charAt(len - 2);\n if (right == ')' || right == ']') {\n var left = newFrag.charAt(6);\n if (left == '(' && right == ')' && symbol.output != '}' || left == '[' && right == ']') {\n var mxout = '';\n var pos = new Array(); //position of commas\n pos.push(0);\n var matrix = true;\n var mxnestingd = 0;\n var subpos = [];\n subpos[0] = [0];\n var lastsubposstart = 0;\n var mxanynestingd = 0;\n var columnaligns = '';\n for (i = 1; i < len - 1; i++) {\n if (newFrag.charAt(i) == left) mxnestingd++;\n if (newFrag.charAt(i) == right) {\n mxnestingd--;\n if (mxnestingd == 0 && newFrag.charAt(i + 2) == ',' && newFrag.charAt(i + 3) == '{') {\n pos.push(i + 2);\n lastsubposstart = i + 2;\n subpos[lastsubposstart] = [i + 2];\n }\n }\n if (newFrag.charAt(i) == '[' || newFrag.charAt(i) == '(' || newFrag.charAt(i) == '{') {\n mxanynestingd++;\n }\n if (newFrag.charAt(i) == ']' || newFrag.charAt(i) == ')' || newFrag.charAt(i) == '}') {\n mxanynestingd--;\n }\n if (newFrag.charAt(i) == ',' && mxanynestingd == 1) {\n subpos[lastsubposstart].push(i);\n }\n if (mxanynestingd < 0) {\n //happens at the end of the row\n if (lastsubposstart == i + 1) {\n //if at end of row, skip to next row\n i++;\n } else {\n //misformed something - abandon treating as a matrix\n matrix = false;\n }\n }\n }\n pos.push(len);\n var lastmxsubcnt = -1;\n if (mxnestingd == 0 && pos.length > 0 && matrix) {\n for (i = 0; i < pos.length - 1; i++) {\n if (i > 0) mxout += '\\\\\\\\';\n if (i == 0) {\n //var subarr = newFrag.substr(pos[i]+7,pos[i+1]-pos[i]-15).split(',');\n if (subpos[pos[i]].length == 1) {\n var subarr = [newFrag.substr(pos[i] + 7, pos[i + 1] - pos[i] - 15)];\n } else {\n var subarr = [newFrag.substring(pos[i] + 7, subpos[pos[i]][1])];\n for (var j = 2; j < subpos[pos[i]].length; j++) {\n subarr.push(newFrag.substring(subpos[pos[i]][j - 1] + 1, subpos[pos[i]][j]));\n }\n subarr.push(newFrag.substring(subpos[pos[i]][subpos[pos[i]].length - 1] + 1, pos[i + 1] - 8));\n }\n } else {\n //var subarr = newFrag.substr(pos[i]+8,pos[i+1]-pos[i]-16).split(',');\n if (subpos[pos[i]].length == 1) {\n var subarr = [newFrag.substr(pos[i] + 8, pos[i + 1] - pos[i] - 16)];\n } else {\n var subarr = [newFrag.substring(pos[i] + 8, subpos[pos[i]][1])];\n for (var j = 2; j < subpos[pos[i]].length; j++) {\n subarr.push(newFrag.substring(subpos[pos[i]][j - 1] + 1, subpos[pos[i]][j]));\n }\n subarr.push(newFrag.substring(subpos[pos[i]][subpos[pos[i]].length - 1] + 1, pos[i + 1] - 8));\n }\n }\n for (j = subarr.length - 1; j >= 0; j--) {\n if (subarr[j] == '{\\\\mid}') {\n if (i == 0) {\n columnaligns = '|' + columnaligns;\n }\n subarr.splice(j, 1);\n } else if (i == 0) {\n columnaligns = 'c' + columnaligns;\n }\n }\n if (lastmxsubcnt > 0 && subarr.length != lastmxsubcnt) {\n matrix = false;\n } else if (lastmxsubcnt == -1) {\n lastmxsubcnt = subarr.length;\n }\n mxout += subarr.join('&');\n }\n }\n mxout = '\\\\begin{array}{' + columnaligns + '} ' + mxout + '\\\\end{array}';\n if (matrix) {\n newFrag = mxout;\n }\n }\n }\n }\n str = AMremoveCharsAndBlanks(str, symbol.input.length);\n if (typeof symbol.invisible != 'boolean' || !symbol.invisible) {\n node = '\\\\right' + AMTgetTeXsymbol(symbol); //AMcreateMmlNode(\"mo\",document.createTextNode(symbol.output));\n newFrag += node;\n addedright = true;\n } else {\n newFrag += '\\\\right.';\n addedright = true;\n }\n }\n if (AMnestingDepth > 0 && !addedright) {\n newFrag += '\\\\right.'; //adjust for non-matching left brackets\n //todo: adjust for non-matching right brackets\n }\n return [newFrag, str];\n }\n function AMTparseAMtoTeX(str) {\n AMnestingDepth = 0;\n str = str.replace(/( |\\u00a0| )/g, '');\n str = str.replace(/>/g, '>');\n str = str.replace(/</g, '<');\n if (str.match(/\\S/) == null) {\n return '';\n }\n return AMTparseExpr(str.replace(/^\\s+/g, ''), false)[0];\n }\n AMinitSymbols();\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown katex extension for markdown\n */\n\n if (typeof window === 'undefined') {\n throw Error('The showdown katex extension can only be used in browser environment!');\n }\n if (typeof katex === 'undefined') {\n var katex = window.katex || undefined;\n }\n if (typeof renderMathInElement === 'undefined') {\n var RenderMathInElement = window.renderMathInElement || undefined;\n }\n var katexElementCount = 0;\n function hasKatex() {\n return typeof RenderMathInElement !== 'undefined' && RenderMathInElement && typeof katex !== 'undefined' && katex ? true : false;\n }\n var dync$6 = false;\n var cssCdnName$2 = 'katexCSS';\n function dyncLoadScript$6(callback) {\n var sync = hasKatex();\n if (typeof window !== 'undefined') {\n if (dync$6) {\n return sync;\n }\n if (!sync) {\n dync$6 = true;\n cdnjs.loadStyleSheet(cssCdnName$2);\n cdnjs.loadScript('katex').then(function (name) {\n katex = utils.interopDefault(window[name]);\n return cdnjs.loadScript('renderMathInElement');\n }).then(function (name) {\n RenderMathInElement = utils.interopDefault(window[name]);\n if (typeof callback === 'function' && callback) {\n callback(RenderMathInElement);\n }\n })[\"catch\"](function (e) {\n console.log('load script error: ' + e);\n });\n return sync;\n }\n }\n if (typeof callback === 'function' && callback) {\n callback(RenderMathInElement);\n }\n return sync;\n }\n function onRenderKatex(resolve, res) {\n if (hasKatex()) {\n res.id;\n var name = res.className;\n var input = res.input;\n var data = res.data;\n var cssLink = res.cssLink;\n var config = res.options;\n var doc = res.element.ownerDocument;\n var html = '';\n if (data instanceof Array) {\n data.forEach(function (code) {\n if (code === '') {\n html += '
    ';\n } else {\n var math = katex.renderToString(code, config);\n html += cssLink ? \"
    \").concat(math, \"
    \") : \"
    \").concat(math, \"
    \");\n }\n });\n } else {\n var math = katex.renderToString(data, config);\n html = cssLink ? \"
    \").concat(math, \"
    \") : \"
    \").concat(math, \"
    \");\n }\n res.element.parentNode.outerHTML = html;\n --katexElementCount;\n if (!katexElementCount) {\n RenderMathInElement(doc.body, config);\n }\n resolve(true);\n } else {\n setTimeout(function () {\n onRenderKatex(resolve, res);\n }, 10);\n }\n }\n function renderKatex(element, config, isAsciimath) {\n return new Promise(function (resolve) {\n var latex;\n var meta = utils.createElementMeta('katex', element, function (code) {\n var data;\n latex = code;\n var codes = code.split(/\\n[ \\f\\r\\t\\v]*\\n/);\n if (codes.length > 1) {\n data = new Array();\n codes.forEach(function (code) {\n code = code.trim();\n if (code !== '') {\n code = isAsciimath ? AMTparseAMtoTeX(code) : code;\n }\n data.push(code);\n });\n } else {\n data = isAsciimath ? AMTparseAMtoTeX(latex) : latex;\n }\n return data;\n });\n if (!meta) {\n return resolve(false);\n }\n meta.cssLink = cdnjs.getSrc(cssCdnName$2);\n meta.input = latex;\n meta.options = config;\n onRenderKatex(resolve, meta);\n });\n }\n function renderBlockElements(latex, asciimath, config) {\n katexElementCount = latex.length + asciimath.length;\n dyncLoadScript$6();\n return new Promise(function (resolve) {\n var promiseArray = [];\n latex.forEach(function (element) {\n promiseArray.push(renderKatex(element, config, false));\n });\n asciimath.forEach(function (element) {\n promiseArray.push(renderKatex(element, config, true));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n\n /**\n * https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex\n * @param {string} str\n * @returns {string} regexp escaped string\n */\n function escapeRegExp(str) {\n return str.replace(/[-[\\]/{}()*+?.\\\\$^|]/g, '\\\\$&');\n }\n\n // katex config\n var getConfig$4 = function getConfig() {\n var userConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var config = _objectSpread2({\n displayMode: true,\n throwOnError: false,\n // fail silently\n errorColor: '#ff0000',\n delimiters: null\n }, userConfig);\n function _isEmptyArray(a) {\n if (!Array.isArray(a) || !a.length) {\n return false;\n }\n return true;\n }\n function _isObjectProperty(obj, prop) {\n if (!obj || _typeof(obj) !== 'object' || !obj.hasOwnProperty(prop)) {\n return false;\n }\n return true;\n }\n function _getDelimiter(obj, style, type) {\n if (!_isObjectProperty(obj, style) || !_isObjectProperty(obj[style], type) || !_isEmptyArray(obj[style][type])) {\n return false;\n }\n obj[style][type].forEach(function (delimiter) {\n delimiter.display = type === 'inline' ? false : true;\n if (style === 'asciimath') {\n delimiter.asciimath = true;\n }\n });\n return obj[style][type];\n }\n if (!Array.isArray(config.delimiters)) {\n config.delimiters = [].concat(_getDelimiter(config.delimiters, 'texmath', 'display') || [{\n left: '$$',\n right: '$$',\n display: true\n }, {\n left: '\\\\[',\n right: '\\\\]',\n display: true\n }, {\n left: \"\\\\begin{equation}\",\n right: \"\\\\end{equation}\",\n display: true\n }, {\n left: \"\\\\begin{align}\",\n right: \"\\\\end{align}\",\n display: true\n }, {\n left: \"\\\\begin{alignat}\",\n right: \"\\\\end{alignat}\",\n display: true\n }, {\n left: \"\\\\begin{gather}\",\n right: \"\\\\end{gather}\",\n display: true\n }, {\n left: \"\\\\begin{CD}\",\n right: \"\\\\end{CD}\",\n display: true\n }]).concat(_getDelimiter(config.delimiters, 'texmath', 'inline') || [{\n left: '\\\\(',\n right: '\\\\)',\n display: false\n }]).concat(_getDelimiter(config.delimiters, 'asciimath', 'display') || [{\n left: '@@',\n right: '@@',\n display: true,\n asciimath: true\n }]).concat(_getDelimiter(config.delimiters, 'asciimath', 'inline') || [{\n left: '@ ',\n right: ' @',\n display: false,\n asciimath: true\n }, {\n left: \"\\\\~\",\n right: \"\\\\~\",\n display: false,\n asciimath: true\n }]);\n } else if (!config.delimiters.length) {\n config.delimiters = [{\n left: '$$',\n right: '$$',\n display: true\n }, {\n left: '\\\\[',\n right: '\\\\]',\n display: true\n }, {\n left: \"\\\\begin{equation}\",\n right: \"\\\\end{equation}\",\n display: true\n }, {\n left: \"\\\\begin{align}\",\n right: \"\\\\end{align}\",\n display: true\n }, {\n left: \"\\\\begin{alignat}\",\n right: \"\\\\end{alignat}\",\n display: true\n }, {\n left: \"\\\\begin{gather}\",\n right: \"\\\\end{gather}\",\n display: true\n }, {\n left: \"\\\\begin{CD}\",\n right: \"\\\\end{CD}\",\n display: true\n }, {\n left: '\\\\(',\n right: '\\\\)',\n display: false\n }, {\n left: '@@',\n right: '@@',\n display: true,\n asciimath: true\n }, {\n left: '@ ',\n right: ' @',\n display: false,\n asciimath: true\n }, {\n left: \"\\\\~\",\n right: \"\\\\~\",\n display: false,\n asciimath: true\n }];\n }\n return config;\n };\n function showdownKatex(userConfig) {\n var inlineMathCount = 0;\n var config = getConfig$4(userConfig);\n var mathDelimiters = config.delimiters.map(function (_ref) {\n var left = _ref.left,\n right = _ref.right,\n display = _ref.display,\n asciimath = _ref.asciimath;\n var test = new RegExp(\"\".concat(escapeRegExp(left), \"(.+?)\").concat(escapeRegExp(right)), 'g');\n var replacer = function replacer(match, math) {\n ++inlineMathCount;\n if (asciimath) {\n math = AMTparseAMtoTeX(math);\n }\n if (display) {\n return \"\\\\[\".concat(math, \"\\\\]\");\n }\n return \"\\\\(\".concat(math, \"\\\\)\");\n };\n return {\n test: test,\n replacer: replacer\n };\n });\n return [{\n type: 'output',\n config: config,\n filter: function filter(obj) {\n inlineMathCount = 0;\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n if (mathDelimiters.length) {\n // convert inline math to inline latex\n // ignore anything in code and pre elements\n wrapper.querySelectorAll(':not(code):not(pre)').forEach(function (el) {\n /** @type Text[] */\n var textNodes = _toConsumableArray(el.childNodes).filter(\n // skip \"empty\" text nodes\n function (node) {\n return node.nodeName === '#text' && node.nodeValue.trim();\n });\n textNodes.forEach(function (node) {\n var newText = mathDelimiters.reduce(function (acc, _ref2) {\n var test = _ref2.test,\n replacer = _ref2.replacer;\n return acc.replace(test, replacer);\n }, node.nodeValue);\n node.nodeValue = newText;\n });\n });\n }\n\n // find the math in code blocks\n var latex = wrapper.querySelectorAll('code.latex.language-latex');\n var asciimath = wrapper.querySelectorAll('code.asciimath.language-asciimath');\n if (!latex.length && !asciimath.length) {\n if (inlineMathCount > 0) {\n var asyncRenderKatex = function asyncRenderKatex(resolve, render) {\n if (hasKatex()) {\n render(wrapper.ownerDocument.body, that.config);\n resolve(true);\n } else {\n setTimeout(function () {\n asyncRenderKatex(resolve, render);\n }, 10);\n }\n };\n this.config.cssLink = cdnjs.getSrc(cssCdnName$2);\n var that = this;\n console.log(format$1(\"Begin render inline katex elements.\"));\n return new Promise(function (resolve) {\n dyncLoadScript$6(function (render) {\n asyncRenderKatex(resolve, render);\n });\n }).then(function () {\n console.log(format$1(\"End render inline katex elements.\"));\n return obj;\n });\n }\n return false;\n }\n config.cssLink = cdnjs.getSrc(cssCdnName$2);\n console.log(format$1(\"Begin render katex elements.\"));\n return renderBlockElements(latex, asciimath, this.config).then(function () {\n console.log(format$1(\"End render katex elements.\"));\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2024-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown echarts extension for markdown\n */\n var extName$2 = \"echarts\";\n if (typeof window === 'undefined') {\n throw Error(\"The showdown \".concat(extName$2, \" extension can only be used in browser environment!\"));\n }\n if (typeof echarts === 'undefined') {\n var echarts = window.echarts || undefined;\n }\n function hasEcharts() {\n return !!echarts;\n }\n var dync$5 = false;\n function dyncLoadScript$5() {\n var sync = hasEcharts();\n if (typeof window !== 'undefined') {\n if (dync$5) {\n return sync;\n }\n if (!sync) {\n dync$5 = true;\n cdnjs.loadScript(extName$2).then(function (name) {\n echarts = utils.interopDefault(window[name]);\n });\n }\n }\n return sync;\n }\n function onRenderEcharts(resolve, res) {\n if (hasEcharts()) {\n var id = res.id;\n var name = res.className;\n var node = res.element.parentNode;\n // // 在 SSR 模式下第一个参数不需要再传入 DOM 对象\n // let chart = echarts.init(null, null, {\n // renderer: 'svg', // 必须使用 SVG 模式\n // ssr: true,\n // width: res.config.width, // 需要指明高和宽\n // height: res.config.height\n // });\n // // 像正常使用一样 setOption\n // const option = JSON.parse(data);\n // chart.setOption(option);\n // // 输出字符串\n // const svg = chart.renderToSVGString();\n // // 如果不再需要图表,调用 dispose 以释放内存\n // chart.dispose();\n // chart = null;\n node.outerHTML = \"
    \");\n return resolve(true);\n }\n setTimeout(function () {\n onRenderEcharts(resolve, res);\n }, 20);\n }\n\n /**\n * render echarts graphs\n */\n function renderEcharts(element, scripts, config) {\n var meta = utils.createElementMeta(extName$2, element);\n if (!meta) {\n return Promise.resolve(false);\n }\n config = JSON.stringify(_objectSpread2(_objectSpread2({}, config), {}, {\n ssr: false\n }));\n var data = JSON.stringify(JSON.parse(meta.data));\n var script = {\n id: meta.id,\n code: \"(function() {\\n let el = document.getElementById('\".concat(meta.id, \"');\\n if (el){\\n let config = JSON.parse('\").concat(config, \"');\\n let chart = echarts.init(el, null, config);\\n let option = JSON.parse('\").concat(data, \"');\\n chart.setOption(option);\\n }\\n })();\")\n };\n scripts.push(script);\n return new Promise(function (resolve) {\n onRenderEcharts(resolve, meta);\n });\n }\n\n //
    \n function renderEchartsElements(elements, scripts, config) {\n dyncLoadScript$5();\n return new Promise(function (resolve) {\n var promiseArray = [];\n elements.forEach(function (element) {\n promiseArray.push(renderEcharts(element, scripts, config));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n\n // echarts default config\n var getConfig$3 = function getConfig() {\n var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _objectSpread2({\n renderer: 'svg',\n ssr: false,\n width: 400,\n height: 300,\n tooltip: {\n show: true\n },\n animation: true\n }, config);\n };\n function showdownEcharts(userConfig) {\n var config = getConfig$3(userConfig);\n return [{\n type: 'output',\n config: config,\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n // find the echarts in code blocks\n var elements = wrapper.querySelectorAll(\"code.\".concat(extName$2, \".language-\").concat(extName$2));\n if (!elements.length) {\n return false;\n }\n console.log(format$1(\"Begin render \".concat(extName$2, \" elements.\")));\n return renderEchartsElements(elements, obj.scripts, this.config).then(function () {\n console.log(format$1(\"End render \".concat(extName$2, \" elements.\")));\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown mermaid extension for markdown\n */\n var extName$1 = \"mermaid\";\n if (typeof window === 'undefined') {\n throw Error('The showdown mermaid extension can only be used in browser environment!');\n }\n if (typeof mermaid === 'undefined') {\n var mermaid = window.mermaid || undefined;\n }\n function hasMermaid() {\n return typeof mermaid !== 'undefined' && mermaid ? true : false;\n }\n var dync$4 = false;\n function dyncLoadScript$4(config) {\n // When window object exists,\n // it means browser environment, otherwise node.js environment.\n // In browser environment, html need to be rendered asynchronously.\n var sync = hasMermaid();\n if (typeof window !== 'undefined') {\n if (dync$4) {\n return sync;\n }\n if (!sync) {\n dync$4 = true;\n cdnjs.loadScript(extName$1).then(function (name) {\n mermaid = utils.interopDefault(window[name]);\n mermaid.initialize(config);\n });\n return sync;\n }\n }\n mermaid.initialize(config);\n return sync;\n }\n function onRenderMermaid(resolve, res) {\n if (hasMermaid()) {\n var id = res.id;\n var name = res.className;\n var data = res.data;\n var node = res.element.parentNode;\n mermaid.render(id, data).then(function (m) {\n node.outerHTML = \"
    \").concat(m.svg, \"
    \");\n resolve(true);\n });\n return;\n }\n setTimeout(function () {\n onRenderMermaid(resolve, res);\n }, 10);\n }\n\n /**\n * render mermaid graphs\n */\n function renderMermaid(element) {\n return new Promise(function (resolve) {\n var meta = utils.createElementMeta(extName$1, element);\n if (!meta) {\n return resolve(false);\n }\n onRenderMermaid(resolve, meta);\n });\n }\n\n //
    \n function renderMermaidElements(elements, config) {\n dyncLoadScript$4(config);\n return new Promise(function (resolve) {\n var promiseArray = [];\n elements.forEach(function (element) {\n promiseArray.push(renderMermaid(element));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n\n // mermaid default config\n var getConfig$2 = function getConfig() {\n var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _objectSpread2({\n theme: 'forest',\n logLevel: 4,\n startOnLoad: false,\n arrowMarkerAbsolute: false,\n flowchart: {\n curve: 'basis'\n },\n gantt: {\n axisFormat: '%m/%d/%Y'\n },\n sequence: {\n actorMargin: 50\n }\n }, config);\n };\n function showdownMermaid(userConfig) {\n var config = getConfig$2(userConfig);\n return [{\n type: 'output',\n config: config,\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n // find the mermaid in code blocks\n var elements = wrapper.querySelectorAll('code.mermaid.language-mermaid');\n if (!elements.length) {\n return false;\n }\n console.log(format$1(\"Begin render mermaid elements.\"));\n return renderMermaidElements(elements, this.config).then(function () {\n console.log(format$1(\"End render mermaid elements.\"));\n return obj;\n });\n }\n }];\n }\n\n var global$1 = (typeof global !== \"undefined\" ? global :\n typeof self !== \"undefined\" ? self :\n typeof window !== \"undefined\" ? window : {});\n\n var lookup = [];\n var revLookup = [];\n var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array;\n var inited = false;\n function init () {\n inited = true;\n var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n for (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i];\n revLookup[code.charCodeAt(i)] = i;\n }\n\n revLookup['-'.charCodeAt(0)] = 62;\n revLookup['_'.charCodeAt(0)] = 63;\n }\n\n function toByteArray (b64) {\n if (!inited) {\n init();\n }\n var i, j, l, tmp, placeHolders, arr;\n var len = b64.length;\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // the number of equal signs (place holders)\n // if there are two placeholders, than the two characters before it\n // represent one byte\n // if there is only one, then the three characters before it represent 2 bytes\n // this is just a cheap hack to not do indexOf twice\n placeHolders = b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0;\n\n // base64 is 4/3 + up to two characters of the original data\n arr = new Arr(len * 3 / 4 - placeHolders);\n\n // if there are placeholders, only get up to the last complete 4 chars\n l = placeHolders > 0 ? len - 4 : len;\n\n var L = 0;\n\n for (i = 0, j = 0; i < l; i += 4, j += 3) {\n tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)];\n arr[L++] = (tmp >> 16) & 0xFF;\n arr[L++] = (tmp >> 8) & 0xFF;\n arr[L++] = tmp & 0xFF;\n }\n\n if (placeHolders === 2) {\n tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4);\n arr[L++] = tmp & 0xFF;\n } else if (placeHolders === 1) {\n tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2);\n arr[L++] = (tmp >> 8) & 0xFF;\n arr[L++] = tmp & 0xFF;\n }\n\n return arr\n }\n\n function tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]\n }\n\n function encodeChunk (uint8, start, end) {\n var tmp;\n var output = [];\n for (var i = start; i < end; i += 3) {\n tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]);\n output.push(tripletToBase64(tmp));\n }\n return output.join('')\n }\n\n function fromByteArray (uint8) {\n if (!inited) {\n init();\n }\n var tmp;\n var len = uint8.length;\n var extraBytes = len % 3; // if we have 1 byte left, pad 2 bytes\n var output = '';\n var parts = [];\n var maxChunkLength = 16383; // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)));\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1];\n output += lookup[tmp >> 2];\n output += lookup[(tmp << 4) & 0x3F];\n output += '==';\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + (uint8[len - 1]);\n output += lookup[tmp >> 10];\n output += lookup[(tmp >> 4) & 0x3F];\n output += lookup[(tmp << 2) & 0x3F];\n output += '=';\n }\n\n parts.push(output);\n\n return parts.join('')\n }\n\n function read (buffer, offset, isLE, mLen, nBytes) {\n var e, m;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var nBits = -7;\n var i = isLE ? (nBytes - 1) : 0;\n var d = isLE ? -1 : 1;\n var s = buffer[offset + i];\n\n i += d;\n\n e = s & ((1 << (-nBits)) - 1);\n s >>= (-nBits);\n nBits += eLen;\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1);\n e >>= (-nBits);\n nBits += mLen;\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias;\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen);\n e = e - eBias;\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n }\n\n function write (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0);\n var i = isLE ? 0 : (nBytes - 1);\n var d = isLE ? 1 : -1;\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0;\n\n value = Math.abs(value);\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0;\n e = eMax;\n } else {\n e = Math.floor(Math.log(value) / Math.LN2);\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--;\n c *= 2;\n }\n if (e + eBias >= 1) {\n value += rt / c;\n } else {\n value += rt * Math.pow(2, 1 - eBias);\n }\n if (value * c >= 2) {\n e++;\n c /= 2;\n }\n\n if (e + eBias >= eMax) {\n m = 0;\n e = eMax;\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n e = 0;\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m;\n eLen += mLen;\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128;\n }\n\n var toString = {}.toString;\n\n var isArray$1 = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n };\n\n var INSPECT_MAX_BYTES = 50;\n\n /**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\n Buffer.TYPED_ARRAY_SUPPORT = global$1.TYPED_ARRAY_SUPPORT !== undefined\n ? global$1.TYPED_ARRAY_SUPPORT\n : true;\n\n /*\n * Export kMaxLength after typed array support is determined.\n */\n kMaxLength();\n\n function kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n }\n\n function createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length);\n that.__proto__ = Buffer.prototype;\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length);\n }\n that.length = length;\n }\n\n return that\n }\n\n /**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\n function Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n }\n\n Buffer.poolSize = 8192; // not used by this implementation\n\n // TODO: Legacy, not needed anymore. Remove in next major version.\n Buffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype;\n return arr\n };\n\n function from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n }\n\n /**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\n Buffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n };\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype;\n Buffer.__proto__ = Uint8Array;\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) ;\n }\n\n function assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n }\n\n function alloc (that, size, fill, encoding) {\n assertSize(size);\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n }\n\n /**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\n Buffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n };\n\n function allocUnsafe (that, size) {\n assertSize(size);\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0;\n }\n }\n return that\n }\n\n /**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\n Buffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n };\n /**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\n Buffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n };\n\n function fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8';\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0;\n that = createBuffer(that, length);\n\n var actual = that.write(string, encoding);\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual);\n }\n\n return that\n }\n\n function fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0;\n that = createBuffer(that, length);\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255;\n }\n return that\n }\n\n function fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength; // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array);\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset);\n } else {\n array = new Uint8Array(array, byteOffset, length);\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array;\n that.__proto__ = Buffer.prototype;\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array);\n }\n return that\n }\n\n function fromObject (that, obj) {\n if (internalIsBuffer(obj)) {\n var len = checked(obj.length) | 0;\n that = createBuffer(that, len);\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len);\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray$1(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n }\n\n function checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n }\n Buffer.isBuffer = isBuffer;\n function internalIsBuffer (b) {\n return !!(b != null && b._isBuffer)\n }\n\n Buffer.compare = function compare (a, b) {\n if (!internalIsBuffer(a) || !internalIsBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n };\n\n Buffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n };\n\n Buffer.concat = function concat (list, length) {\n if (!isArray$1(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i;\n if (length === undefined) {\n length = 0;\n for (i = 0; i < list.length; ++i) {\n length += list[i].length;\n }\n }\n\n var buffer = Buffer.allocUnsafe(length);\n var pos = 0;\n for (i = 0; i < list.length; ++i) {\n var buf = list[i];\n if (!internalIsBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos);\n pos += buf.length;\n }\n return buffer\n };\n\n function byteLength (string, encoding) {\n if (internalIsBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string;\n }\n\n var len = string.length;\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false;\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase();\n loweredCase = true;\n }\n }\n }\n Buffer.byteLength = byteLength;\n\n function slowToString (encoding, start, end) {\n var loweredCase = false;\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0;\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length;\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0;\n start >>>= 0;\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8';\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase();\n loweredCase = true;\n }\n }\n }\n\n // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n // Buffer instances.\n Buffer.prototype._isBuffer = true;\n\n function swap (b, n, m) {\n var i = b[n];\n b[n] = b[m];\n b[m] = i;\n }\n\n Buffer.prototype.swap16 = function swap16 () {\n var len = this.length;\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1);\n }\n return this\n };\n\n Buffer.prototype.swap32 = function swap32 () {\n var len = this.length;\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3);\n swap(this, i + 1, i + 2);\n }\n return this\n };\n\n Buffer.prototype.swap64 = function swap64 () {\n var len = this.length;\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7);\n swap(this, i + 1, i + 6);\n swap(this, i + 2, i + 5);\n swap(this, i + 3, i + 4);\n }\n return this\n };\n\n Buffer.prototype.toString = function toString () {\n var length = this.length | 0;\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n };\n\n Buffer.prototype.equals = function equals (b) {\n if (!internalIsBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n };\n\n Buffer.prototype.inspect = function inspect () {\n var str = '';\n var max = INSPECT_MAX_BYTES;\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ');\n if (this.length > max) str += ' ... ';\n }\n return ''\n };\n\n Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!internalIsBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0;\n }\n if (end === undefined) {\n end = target ? target.length : 0;\n }\n if (thisStart === undefined) {\n thisStart = 0;\n }\n if (thisEnd === undefined) {\n thisEnd = this.length;\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0;\n end >>>= 0;\n thisStart >>>= 0;\n thisEnd >>>= 0;\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart;\n var y = end - start;\n var len = Math.min(x, y);\n\n var thisCopy = this.slice(thisStart, thisEnd);\n var targetCopy = target.slice(start, end);\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i];\n y = targetCopy[i];\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n };\n\n // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n // OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n //\n // Arguments:\n // - buffer - a Buffer to search\n // - val - a string, Buffer, or number\n // - byteOffset - an index into `buffer`; will be clamped to an int32\n // - encoding - an optional encoding, relevant is val is a string\n // - dir - true for indexOf, false for lastIndexOf\n function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset;\n byteOffset = 0;\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff;\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000;\n }\n byteOffset = +byteOffset; // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1);\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset;\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1;\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0;\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding);\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (internalIsBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF; // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n }\n\n function arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1;\n var arrLength = arr.length;\n var valLength = val.length;\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase();\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2;\n arrLength /= 2;\n valLength /= 2;\n byteOffset /= 2;\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i;\n if (dir) {\n var foundIndex = -1;\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i;\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex;\n foundIndex = -1;\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;\n for (i = byteOffset; i >= 0; i--) {\n var found = true;\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false;\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n }\n\n Buffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n };\n\n Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n };\n\n Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n };\n\n function hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0;\n var remaining = buf.length - offset;\n if (!length) {\n length = remaining;\n } else {\n length = Number(length);\n if (length > remaining) {\n length = remaining;\n }\n }\n\n // must be an even number of digits\n var strLen = string.length;\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2;\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16);\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed;\n }\n return i\n }\n\n function utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n }\n\n function asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n }\n\n function latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n }\n\n function base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n }\n\n function ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n }\n\n Buffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8';\n length = this.length;\n offset = 0;\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset;\n length = this.length;\n offset = 0;\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0;\n if (isFinite(length)) {\n length = length | 0;\n if (encoding === undefined) encoding = 'utf8';\n } else {\n encoding = length;\n length = undefined;\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset;\n if (length === undefined || length > remaining) length = remaining;\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8';\n\n var loweredCase = false;\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase();\n loweredCase = true;\n }\n }\n };\n\n Buffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n };\n\n function base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return fromByteArray(buf)\n } else {\n return fromByteArray(buf.slice(start, end))\n }\n }\n\n function utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end);\n var res = [];\n\n var i = start;\n while (i < end) {\n var firstByte = buf[i];\n var codePoint = null;\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1;\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint;\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte;\n }\n break\n case 2:\n secondByte = buf[i + 1];\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F);\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint;\n }\n }\n break\n case 3:\n secondByte = buf[i + 1];\n thirdByte = buf[i + 2];\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F);\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint;\n }\n }\n break\n case 4:\n secondByte = buf[i + 1];\n thirdByte = buf[i + 2];\n fourthByte = buf[i + 3];\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F);\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint;\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD;\n bytesPerSequence = 1;\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000;\n res.push(codePoint >>> 10 & 0x3FF | 0xD800);\n codePoint = 0xDC00 | codePoint & 0x3FF;\n }\n\n res.push(codePoint);\n i += bytesPerSequence;\n }\n\n return decodeCodePointsArray(res)\n }\n\n // Based on http://stackoverflow.com/a/22747272/680742, the browser with\n // the lowest limit is Chrome, with 0x10000 args.\n // We go 1 magnitude less, for safety\n var MAX_ARGUMENTS_LENGTH = 0x1000;\n\n function decodeCodePointsArray (codePoints) {\n var len = codePoints.length;\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = '';\n var i = 0;\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n );\n }\n return res\n }\n\n function asciiSlice (buf, start, end) {\n var ret = '';\n end = Math.min(buf.length, end);\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F);\n }\n return ret\n }\n\n function latin1Slice (buf, start, end) {\n var ret = '';\n end = Math.min(buf.length, end);\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i]);\n }\n return ret\n }\n\n function hexSlice (buf, start, end) {\n var len = buf.length;\n\n if (!start || start < 0) start = 0;\n if (!end || end < 0 || end > len) end = len;\n\n var out = '';\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i]);\n }\n return out\n }\n\n function utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end);\n var res = '';\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);\n }\n return res\n }\n\n Buffer.prototype.slice = function slice (start, end) {\n var len = this.length;\n start = ~~start;\n end = end === undefined ? len : ~~end;\n\n if (start < 0) {\n start += len;\n if (start < 0) start = 0;\n } else if (start > len) {\n start = len;\n }\n\n if (end < 0) {\n end += len;\n if (end < 0) end = 0;\n } else if (end > len) {\n end = len;\n }\n\n if (end < start) end = start;\n\n var newBuf;\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end);\n newBuf.__proto__ = Buffer.prototype;\n } else {\n var sliceLen = end - start;\n newBuf = new Buffer(sliceLen, undefined);\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start];\n }\n }\n\n return newBuf\n };\n\n /*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\n function checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n }\n\n Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n\n var val = this[offset];\n var mul = 1;\n var i = 0;\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul;\n }\n\n return val\n };\n\n Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length);\n }\n\n var val = this[offset + --byteLength];\n var mul = 1;\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul;\n }\n\n return val\n };\n\n Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length);\n return this[offset]\n };\n\n Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length);\n return this[offset] | (this[offset + 1] << 8)\n };\n\n Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length);\n return (this[offset] << 8) | this[offset + 1]\n };\n\n Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n };\n\n Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n };\n\n Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n\n var val = this[offset];\n var mul = 1;\n var i = 0;\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul;\n }\n mul *= 0x80;\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n\n return val\n };\n\n Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) checkOffset(offset, byteLength, this.length);\n\n var i = byteLength;\n var mul = 1;\n var val = this[offset + --i];\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul;\n }\n mul *= 0x80;\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength);\n\n return val\n };\n\n Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length);\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n };\n\n Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length);\n var val = this[offset] | (this[offset + 1] << 8);\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n };\n\n Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length);\n var val = this[offset + 1] | (this[offset] << 8);\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n };\n\n Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n };\n\n Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n };\n\n Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n return read(this, offset, true, 23, 4)\n };\n\n Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length);\n return read(this, offset, false, 23, 4)\n };\n\n Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length);\n return read(this, offset, true, 52, 8)\n };\n\n Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length);\n return read(this, offset, false, 52, 8)\n };\n\n function checkInt (buf, value, offset, ext, max, min) {\n if (!internalIsBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n }\n\n Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1;\n checkInt(this, value, offset, byteLength, maxBytes, 0);\n }\n\n var mul = 1;\n var i = 0;\n this[offset] = value & 0xFF;\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF;\n }\n\n return offset + byteLength\n };\n\n Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset | 0;\n byteLength = byteLength | 0;\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1;\n checkInt(this, value, offset, byteLength, maxBytes, 0);\n }\n\n var i = byteLength - 1;\n var mul = 1;\n this[offset + i] = value & 0xFF;\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF;\n }\n\n return offset + byteLength\n };\n\n Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0);\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value);\n this[offset] = (value & 0xff);\n return offset + 1\n };\n\n function objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1;\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8;\n }\n }\n\n Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff);\n this[offset + 1] = (value >>> 8);\n } else {\n objectWriteUInt16(this, value, offset, true);\n }\n return offset + 2\n };\n\n Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8);\n this[offset + 1] = (value & 0xff);\n } else {\n objectWriteUInt16(this, value, offset, false);\n }\n return offset + 2\n };\n\n function objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1;\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff;\n }\n }\n\n Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24);\n this[offset + 2] = (value >>> 16);\n this[offset + 1] = (value >>> 8);\n this[offset] = (value & 0xff);\n } else {\n objectWriteUInt32(this, value, offset, true);\n }\n return offset + 4\n };\n\n Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24);\n this[offset + 1] = (value >>> 16);\n this[offset + 2] = (value >>> 8);\n this[offset + 3] = (value & 0xff);\n } else {\n objectWriteUInt32(this, value, offset, false);\n }\n return offset + 4\n };\n\n Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1);\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit);\n }\n\n var i = 0;\n var mul = 1;\n var sub = 0;\n this[offset] = value & 0xFF;\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1;\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF;\n }\n\n return offset + byteLength\n };\n\n Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1);\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit);\n }\n\n var i = byteLength - 1;\n var mul = 1;\n var sub = 0;\n this[offset + i] = value & 0xFF;\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1;\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF;\n }\n\n return offset + byteLength\n };\n\n Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80);\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value);\n if (value < 0) value = 0xff + value + 1;\n this[offset] = (value & 0xff);\n return offset + 1\n };\n\n Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff);\n this[offset + 1] = (value >>> 8);\n } else {\n objectWriteUInt16(this, value, offset, true);\n }\n return offset + 2\n };\n\n Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8);\n this[offset + 1] = (value & 0xff);\n } else {\n objectWriteUInt16(this, value, offset, false);\n }\n return offset + 2\n };\n\n Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff);\n this[offset + 1] = (value >>> 8);\n this[offset + 2] = (value >>> 16);\n this[offset + 3] = (value >>> 24);\n } else {\n objectWriteUInt32(this, value, offset, true);\n }\n return offset + 4\n };\n\n Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value;\n offset = offset | 0;\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);\n if (value < 0) value = 0xffffffff + value + 1;\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24);\n this[offset + 1] = (value >>> 16);\n this[offset + 2] = (value >>> 8);\n this[offset + 3] = (value & 0xff);\n } else {\n objectWriteUInt32(this, value, offset, false);\n }\n return offset + 4\n };\n\n function checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n }\n\n function writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4);\n }\n write(buf, value, offset, littleEndian, 23, 4);\n return offset + 4\n }\n\n Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n };\n\n Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n };\n\n function writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8);\n }\n write(buf, value, offset, littleEndian, 52, 8);\n return offset + 8\n }\n\n Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n };\n\n Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n };\n\n // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\n Buffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0;\n if (!end && end !== 0) end = this.length;\n if (targetStart >= target.length) targetStart = target.length;\n if (!targetStart) targetStart = 0;\n if (end > 0 && end < start) end = start;\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length;\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start;\n }\n\n var len = end - start;\n var i;\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start];\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start];\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n );\n }\n\n return len\n };\n\n // Usage:\n // buffer.fill(number[, offset[, end]])\n // buffer.fill(buffer[, offset[, end]])\n // buffer.fill(string[, offset[, end]][, encoding])\n Buffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start;\n start = 0;\n end = this.length;\n } else if (typeof end === 'string') {\n encoding = end;\n end = this.length;\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0);\n if (code < 256) {\n val = code;\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255;\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0;\n end = end === undefined ? this.length : end >>> 0;\n\n if (!val) val = 0;\n\n var i;\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val;\n }\n } else {\n var bytes = internalIsBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString());\n var len = bytes.length;\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len];\n }\n }\n\n return this\n };\n\n // HELPER FUNCTIONS\n // ================\n\n var INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g;\n\n function base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '');\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '=';\n }\n return str\n }\n\n function stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n }\n\n function toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n }\n\n function utf8ToBytes (string, units) {\n units = units || Infinity;\n var codePoint;\n var length = string.length;\n var leadSurrogate = null;\n var bytes = [];\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i);\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint;\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);\n leadSurrogate = codePoint;\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000;\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);\n }\n\n leadSurrogate = null;\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint);\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n );\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n );\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n );\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n }\n\n function asciiToBytes (str) {\n var byteArray = [];\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF);\n }\n return byteArray\n }\n\n function utf16leToBytes (str, units) {\n var c, hi, lo;\n var byteArray = [];\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i);\n hi = c >> 8;\n lo = c % 256;\n byteArray.push(lo);\n byteArray.push(hi);\n }\n\n return byteArray\n }\n\n\n function base64ToBytes (str) {\n return toByteArray(base64clean(str))\n }\n\n function blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i];\n }\n return i\n }\n\n function isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n }\n\n\n // the following is from is-buffer, also by Feross Aboukhadijeh and with same lisence\n // The _isBuffer check is for Safari 5-7 support, because it's missing\n // Object.prototype.constructor. Remove this eventually\n function isBuffer(obj) {\n return obj != null && (!!obj._isBuffer || isFastBuffer(obj) || isSlowBuffer(obj))\n }\n\n function isFastBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n }\n\n // For Node v0.10 support. Remove this eventually.\n function isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isFastBuffer(obj.slice(0, 0))\n }\n\n // shim for using process in browser\n // based off https://github.com/defunctzombie/node-process/blob/master/browser.js\n\n function defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n }\n function defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n }\n var cachedSetTimeout = defaultSetTimout;\n var cachedClearTimeout = defaultClearTimeout;\n if (typeof global$1.setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n }\n if (typeof global$1.clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n }\n\n function runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n }\n function runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n }\n var queue = [];\n var draining = false;\n var currentQueue;\n var queueIndex = -1;\n\n function cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n }\n\n function drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n }\n function nextTick(fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n }\n // v8 likes predictible objects\n function Item(fun, array) {\n this.fun = fun;\n this.array = array;\n }\n Item.prototype.run = function () {\n this.fun.apply(null, this.array);\n };\n var title = 'browser';\n var platform = 'browser';\n var browser = true;\n var env = {};\n var argv = [];\n var version = ''; // empty string to avoid regexp issues\n var versions = {};\n var release = {};\n var config = {};\n\n function noop() {}\n\n var on = noop;\n var addListener = noop;\n var once = noop;\n var off = noop;\n var removeListener = noop;\n var removeAllListeners = noop;\n var emit = noop;\n\n function binding$1(name) {\n throw new Error('process.binding is not supported');\n }\n\n function cwd () { return '/' }\n function chdir (dir) {\n throw new Error('process.chdir is not supported');\n }function umask() { return 0; }\n\n // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js\n var performance = global$1.performance || {};\n var performanceNow =\n performance.now ||\n performance.mozNow ||\n performance.msNow ||\n performance.oNow ||\n performance.webkitNow ||\n function(){ return (new Date()).getTime() };\n\n // generate timestamp or delta\n // see http://nodejs.org/api/process.html#process_process_hrtime\n function hrtime(previousTimestamp){\n var clocktime = performanceNow.call(performance)*1e-3;\n var seconds = Math.floor(clocktime);\n var nanoseconds = Math.floor((clocktime%1)*1e9);\n if (previousTimestamp) {\n seconds = seconds - previousTimestamp[0];\n nanoseconds = nanoseconds - previousTimestamp[1];\n if (nanoseconds<0) {\n seconds--;\n nanoseconds += 1e9;\n }\n }\n return [seconds,nanoseconds]\n }\n\n var startTime = new Date();\n function uptime() {\n var currentTime = new Date();\n var dif = currentTime - startTime;\n return dif / 1000;\n }\n\n var process = {\n nextTick: nextTick,\n title: title,\n browser: browser,\n env: env,\n argv: argv,\n version: version,\n versions: versions,\n on: on,\n addListener: addListener,\n once: once,\n off: off,\n removeListener: removeListener,\n removeAllListeners: removeAllListeners,\n emit: emit,\n binding: binding$1,\n cwd: cwd,\n chdir: chdir,\n umask: umask,\n hrtime: hrtime,\n platform: platform,\n release: release,\n config: config,\n uptime: uptime\n };\n\n var domain;\n\n // This constructor is used to store event handlers. Instantiating this is\n // faster than explicitly calling `Object.create(null)` to get a \"clean\" empty\n // object (tested with v8 v4.9).\n function EventHandlers() {}\n EventHandlers.prototype = Object.create(null);\n\n function EventEmitter() {\n EventEmitter.init.call(this);\n }\n\n // nodejs oddity\n // require('events') === require('events').EventEmitter\n EventEmitter.EventEmitter = EventEmitter;\n\n EventEmitter.usingDomains = false;\n\n EventEmitter.prototype.domain = undefined;\n EventEmitter.prototype._events = undefined;\n EventEmitter.prototype._maxListeners = undefined;\n\n // By default EventEmitters will print a warning if more than 10 listeners are\n // added to it. This is a useful default which helps finding memory leaks.\n EventEmitter.defaultMaxListeners = 10;\n\n EventEmitter.init = function() {\n this.domain = null;\n if (EventEmitter.usingDomains) {\n // if there is an active domain, then attach to it.\n if (domain.active) ;\n }\n\n if (!this._events || this._events === Object.getPrototypeOf(this)._events) {\n this._events = new EventHandlers();\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n };\n\n // Obviously not all Emitters should be limited to 10. This function allows\n // that to be increased. Set to zero for unlimited.\n EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || isNaN(n))\n throw new TypeError('\"n\" argument must be a positive number');\n this._maxListeners = n;\n return this;\n };\n\n function $getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n }\n\n EventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return $getMaxListeners(this);\n };\n\n // These standalone emit* functions are used to optimize calling of event\n // handlers for fast cases because emit() itself often has a variable number of\n // arguments and can be deoptimized because of that. These functions always have\n // the same number of arguments and thus do not get deoptimized, so the code\n // inside them can execute faster.\n function emitNone(handler, isFn, self) {\n if (isFn)\n handler.call(self);\n else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n listeners[i].call(self);\n }\n }\n function emitOne(handler, isFn, self, arg1) {\n if (isFn)\n handler.call(self, arg1);\n else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n listeners[i].call(self, arg1);\n }\n }\n function emitTwo(handler, isFn, self, arg1, arg2) {\n if (isFn)\n handler.call(self, arg1, arg2);\n else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n listeners[i].call(self, arg1, arg2);\n }\n }\n function emitThree(handler, isFn, self, arg1, arg2, arg3) {\n if (isFn)\n handler.call(self, arg1, arg2, arg3);\n else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n listeners[i].call(self, arg1, arg2, arg3);\n }\n }\n\n function emitMany(handler, isFn, self, args) {\n if (isFn)\n handler.apply(self, args);\n else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n listeners[i].apply(self, args);\n }\n }\n\n EventEmitter.prototype.emit = function emit(type) {\n var er, handler, len, args, i, events, domain;\n var doError = (type === 'error');\n\n events = this._events;\n if (events)\n doError = (doError && events.error == null);\n else if (!doError)\n return false;\n\n domain = this.domain;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n er = arguments[1];\n if (domain) {\n if (!er)\n er = new Error('Uncaught, unspecified \"error\" event');\n er.domainEmitter = this;\n er.domain = domain;\n er.domainThrown = false;\n domain.emit('error', er);\n } else if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n } else {\n // At least give some kind of context to the user\n var err = new Error('Uncaught, unspecified \"error\" event. (' + er + ')');\n err.context = er;\n throw err;\n }\n return false;\n }\n\n handler = events[type];\n\n if (!handler)\n return false;\n\n var isFn = typeof handler === 'function';\n len = arguments.length;\n switch (len) {\n // fast cases\n case 1:\n emitNone(handler, isFn, this);\n break;\n case 2:\n emitOne(handler, isFn, this, arguments[1]);\n break;\n case 3:\n emitTwo(handler, isFn, this, arguments[1], arguments[2]);\n break;\n case 4:\n emitThree(handler, isFn, this, arguments[1], arguments[2], arguments[3]);\n break;\n // slower\n default:\n args = new Array(len - 1);\n for (i = 1; i < len; i++)\n args[i - 1] = arguments[i];\n emitMany(handler, isFn, this, args);\n }\n\n return true;\n };\n\n function _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n if (typeof listener !== 'function')\n throw new TypeError('\"listener\" argument must be a function');\n\n events = target._events;\n if (!events) {\n events = target._events = new EventHandlers();\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (!existing) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] = prepend ? [listener, existing] :\n [existing, listener];\n } else {\n // If we've already got an array, just append.\n if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n }\n\n // Check for listener leak\n if (!existing.warned) {\n m = $getMaxListeners(target);\n if (m && m > 0 && existing.length > m) {\n existing.warned = true;\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + type + ' listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n emitWarning(w);\n }\n }\n }\n\n return target;\n }\n function emitWarning(e) {\n typeof console.warn === 'function' ? console.warn(e) : console.log(e);\n }\n EventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n };\n\n EventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\n EventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\n function _onceWrap(target, type, listener) {\n var fired = false;\n function g() {\n target.removeListener(type, g);\n if (!fired) {\n fired = true;\n listener.apply(target, arguments);\n }\n }\n g.listener = listener;\n return g;\n }\n\n EventEmitter.prototype.once = function once(type, listener) {\n if (typeof listener !== 'function')\n throw new TypeError('\"listener\" argument must be a function');\n this.on(type, _onceWrap(this, type, listener));\n return this;\n };\n\n EventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n if (typeof listener !== 'function')\n throw new TypeError('\"listener\" argument must be a function');\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n // emits a 'removeListener' event iff the listener was removed\n EventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n if (typeof listener !== 'function')\n throw new TypeError('\"listener\" argument must be a function');\n\n events = this._events;\n if (!events)\n return this;\n\n list = events[type];\n if (!list)\n return this;\n\n if (list === listener || (list.listener && list.listener === listener)) {\n if (--this._eventsCount === 0)\n this._events = new EventHandlers();\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list[0] = undefined;\n if (--this._eventsCount === 0) {\n this._events = new EventHandlers();\n return this;\n } else {\n delete events[type];\n }\n } else {\n spliceOne(list, position);\n }\n\n if (events.removeListener)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\n EventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events;\n\n events = this._events;\n if (!events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!events.removeListener) {\n if (arguments.length === 0) {\n this._events = new EventHandlers();\n this._eventsCount = 0;\n } else if (events[type]) {\n if (--this._eventsCount === 0)\n this._events = new EventHandlers();\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n for (var i = 0, key; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = new EventHandlers();\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n do {\n this.removeListener(type, listeners[listeners.length - 1]);\n } while (listeners[0]);\n }\n\n return this;\n };\n\n EventEmitter.prototype.listeners = function listeners(type) {\n var evlistener;\n var ret;\n var events = this._events;\n\n if (!events)\n ret = [];\n else {\n evlistener = events[type];\n if (!evlistener)\n ret = [];\n else if (typeof evlistener === 'function')\n ret = [evlistener.listener || evlistener];\n else\n ret = unwrapListeners(evlistener);\n }\n\n return ret;\n };\n\n EventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount$1.call(emitter, type);\n }\n };\n\n EventEmitter.prototype.listenerCount = listenerCount$1;\n function listenerCount$1(type) {\n var events = this._events;\n\n if (events) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener) {\n return evlistener.length;\n }\n }\n\n return 0;\n }\n\n EventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];\n };\n\n // About 1.5x faster than the two-arg version of Array#splice().\n function spliceOne(list, index) {\n for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1)\n list[i] = list[k];\n list.pop();\n }\n\n function arrayClone(arr, i) {\n var copy = new Array(i);\n while (i--)\n copy[i] = arr[i];\n return copy;\n }\n\n function unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n }\n\n var inherits;\n if (typeof Object.create === 'function'){\n inherits = function inherits(ctor, superCtor) {\n // implementation from standard node.js 'util' module\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n } else {\n inherits = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n };\n }\n var inherits$1 = inherits;\n\n var formatRegExp = /%[sdj%]/g;\n function format(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n }\n\n // Mark that a method should not be used.\n // Returns a modified function which warns once by default.\n // If --no-deprecation is set, then it is a no-op.\n function deprecate(fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(global$1.process)) {\n return function() {\n return deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n if (process.noDeprecation === true) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n }\n\n var debugs = {};\n var debugEnviron;\n function debuglog(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = 0;\n debugs[set] = function() {\n var msg = format.apply(null, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n }\n\n /**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n /* legacy: obj, showHidden, depth, colors*/\n function inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n _extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n }\n\n // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\n inspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n };\n\n // Don't use 'blue' not visible on cmd.exe\n inspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n };\n\n\n function stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n }\n\n\n function stylizeNoColor(str, styleType) {\n return str;\n }\n\n\n function arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n }\n\n\n function formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n }\n\n\n function formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n }\n\n\n function formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n }\n\n\n function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n }\n\n\n function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n }\n\n\n function reduceToSingleString(output, base, braces) {\n var length = output.reduce(function(prev, cur) {\n if (cur.indexOf('\\n') >= 0) ;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n }\n\n\n // NOTE: These type checking functions intentionally don't use `instanceof`\n // because it is fragile and can be easily faked with `Object.create()`.\n function isArray(ar) {\n return Array.isArray(ar);\n }\n\n function isBoolean(arg) {\n return typeof arg === 'boolean';\n }\n\n function isNull(arg) {\n return arg === null;\n }\n\n function isNumber(arg) {\n return typeof arg === 'number';\n }\n\n function isString(arg) {\n return typeof arg === 'string';\n }\n\n function isUndefined(arg) {\n return arg === void 0;\n }\n\n function isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n }\n\n function isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n }\n\n function isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n }\n\n function isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n }\n\n function isFunction(arg) {\n return typeof arg === 'function';\n }\n\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n\n function _extend(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n }\n function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n\n function BufferList() {\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n\n BufferList.prototype.push = function (v) {\n var entry = { data: v, next: null };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n };\n\n BufferList.prototype.unshift = function (v) {\n var entry = { data: v, next: this.head };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n };\n\n BufferList.prototype.shift = function () {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n };\n\n BufferList.prototype.clear = function () {\n this.head = this.tail = null;\n this.length = 0;\n };\n\n BufferList.prototype.join = function (s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) {\n ret += s + p.data;\n }return ret;\n };\n\n BufferList.prototype.concat = function (n) {\n if (this.length === 0) return Buffer.alloc(0);\n if (this.length === 1) return this.head.data;\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n p.data.copy(ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n };\n\n // Copyright Joyent, Inc. and other Node contributors.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a\n // copy of this software and associated documentation files (the\n // \"Software\"), to deal in the Software without restriction, including\n // without limitation the rights to use, copy, modify, merge, publish,\n // distribute, sublicense, and/or sell copies of the Software, and to permit\n // persons to whom the Software is furnished to do so, subject to the\n // following conditions:\n //\n // The above copyright notice and this permission notice shall be included\n // in all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n // USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n var isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n };\n\n\n function assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n }\n\n // StringDecoder provides an interface for efficiently splitting a series of\n // buffers into a series of JS strings without breaking apart multi-byte\n // characters. CESU-8 is handled as part of the UTF-8 encoding.\n //\n // @TODO Handling all encodings inside a single object makes it very difficult\n // to reason about this code, so it should be split up in the future.\n // @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n // points as used by CESU-8.\n function StringDecoder(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n }\n\n // write decodes the given buffer and returns it as JS string that is\n // guaranteed to not contain any partial multi-byte characters. Any partial\n // character found at the end of the buffer is buffered up, and will be\n // returned when calling write again with the remaining bytes.\n //\n // Note: Converting a Buffer containing an orphan surrogate to a String\n // currently works, but converting a String to a Buffer (via `new Buffer`, or\n // Buffer#write) will replace incomplete surrogates with the unicode\n // replacement character. See https://codereview.chromium.org/121173009/ .\n StringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n };\n\n // detectIncompleteChar determines if there is an incomplete UTF-8 character at\n // the end of the given buffer. If so, it sets this.charLength to the byte\n // length that character, and sets this.charReceived to the number of bytes\n // that are available for this character.\n StringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n };\n\n StringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n };\n\n function passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n }\n\n function utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n }\n\n function base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n }\n\n Readable.ReadableState = ReadableState;\n\n var debug = debuglog('stream');\n inherits$1(Readable, EventEmitter);\n\n function prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') {\n return emitter.prependListener(event, fn);\n } else {\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event])\n emitter.on(event, fn);\n else if (Array.isArray(emitter._events[event]))\n emitter._events[event].unshift(fn);\n else\n emitter._events[event] = [fn, emitter._events[event]];\n }\n }\n function listenerCount (emitter, type) {\n return emitter.listeners(type).length;\n }\n function ReadableState(options, stream) {\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~ ~this.highWaterMark;\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n }\n function Readable(options) {\n\n if (!(this instanceof Readable)) return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options && typeof options.read === 'function') this._read = options.read;\n\n EventEmitter.call(this);\n }\n\n // Manually shove something into the read() buffer.\n // This returns true if the highWaterMark has not been hit yet,\n // similar to how Writable.write() returns true if you should\n // write() some more.\n Readable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n };\n\n // Unshift should *always* be something directly out of read()\n Readable.prototype.unshift = function (chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n };\n\n Readable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n };\n\n function readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var _e = new Error('stream.unshift() after end event');\n stream.emit('error', _e);\n } else {\n var skipAdd;\n if (state.decoder && !addToFront && !encoding) {\n chunk = state.decoder.write(chunk);\n skipAdd = !state.objectMode && chunk.length === 0;\n }\n\n if (!addToFront) state.reading = false;\n\n // Don't add to the buffer if we've decoded to an empty string chunk and\n // we're not in object mode\n if (!skipAdd) {\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n\n if (state.needReadable) emitReadable(stream);\n }\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n }\n\n // if it's past the high water mark, we can push in some more.\n // Also, if we have no data yet, we can stand some\n // more bytes. This is to work around cases where hwm=0,\n // such as the repl. Also, if the push() triggered a\n // readable event, and the user called read(largeNumber) such that\n // needReadable was set, then we ought to push more, so that another\n // 'readable' event will be triggered.\n function needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n }\n\n // backwards compatibility.\n Readable.prototype.setEncoding = function (enc) {\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n };\n\n // Don't raise the hwm > 8MB\n var MAX_HWM = 0x800000;\n function computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n }\n\n // This function is designed to be inlinable, so please take care when making\n // changes to the function body.\n function howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n }\n\n // you can override either this method, or the async _read(n) below.\n Readable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n } else {\n state.length -= n;\n }\n\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n\n if (ret !== null) this.emit('data', ret);\n\n return ret;\n };\n\n function chunkInvalid(state, chunk) {\n var er = null;\n if (!isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n }\n\n function onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n }\n\n // Don't emit readable right away in sync mode, because this can trigger\n // another read() call => stack overflow. This way, it might trigger\n // a nextTick recursion warning, but that's not so bad.\n function emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync) nextTick(emitReadable_, stream);else emitReadable_(stream);\n }\n }\n\n function emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n }\n\n // at this point, the user has presumably seen the 'readable' event,\n // and called read() to consume some data. that may have triggered\n // in turn another _read(n) call, in which case reading = true if\n // it's in progress.\n // However, if we're not ended, or reading, and the length < hwm,\n // then go ahead and try to read some more preemptively.\n function maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n nextTick(maybeReadMore_, stream, state);\n }\n }\n\n function maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;else len = state.length;\n }\n state.readingMore = false;\n }\n\n // abstract method. to be overridden in specific implementation classes.\n // call cb(er, data) where data is <= n in length.\n // for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n // arbitrary, and perhaps not very meaningful.\n Readable.prototype._read = function (n) {\n this.emit('error', new Error('not implemented'));\n };\n\n Readable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false);\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted) nextTick(endFn);else src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n\n // If the user pushes more data while we're writing to dest then we'll end up\n // in ondata again. However, we only want to increase awaitDrain once because\n // dest will only emit one 'drain' event for the multiple writes.\n // => Introduce a guard on increasing awaitDrain.\n var increasedAwaitDrain = false;\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n increasedAwaitDrain = false;\n var ret = dest.write(chunk);\n if (false === ret && !increasedAwaitDrain) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n increasedAwaitDrain = true;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (listenerCount(dest, 'error') === 0) dest.emit('error', er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n };\n\n function pipeOnDrain(src) {\n return function () {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && src.listeners('data').length) {\n state.flowing = true;\n flow(src);\n }\n };\n }\n\n Readable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var _i = 0; _i < len; _i++) {\n dests[_i].emit('unpipe', this);\n }return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1) return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n };\n\n // set up data events if they are asked for\n // Ensure readable listeners eventually get something\n Readable.prototype.on = function (ev, fn) {\n var res = EventEmitter.prototype.on.call(this, ev, fn);\n\n if (ev === 'data') {\n // Start flowing on next tick if stream isn't explicitly paused\n if (this._readableState.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n var state = this._readableState;\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.emittedReadable = false;\n if (!state.reading) {\n nextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this);\n }\n }\n }\n\n return res;\n };\n Readable.prototype.addListener = Readable.prototype.on;\n\n function nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n }\n\n // pause() and resume() are remnants of the legacy readable stream API\n // If the user uses them, then switch into old mode.\n Readable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n };\n\n function resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n nextTick(resume_, stream, state);\n }\n }\n\n function resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n state.awaitDrain = 0;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n }\n\n Readable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n };\n\n function flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null) {}\n }\n\n // wrap an old-style stream as the async data source.\n // This is *not* part of the readable stream interface.\n // It is an ugly unfortunate mess of history.\n Readable.prototype.wrap = function (stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function (method) {\n return function () {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function (ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n };\n\n // exposed for testing purposes only.\n Readable._fromList = fromList;\n\n // Pluck off n bytes from an array of buffers.\n // Length is the combined lengths of all the buffers in the list.\n // This function is designed to be inlinable, so please take care when making\n // changes to the function body.\n function fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = fromListPartial(n, state.buffer, state.decoder);\n }\n\n return ret;\n }\n\n // Extracts only enough buffered data to satisfy the amount requested.\n // This function is designed to be inlinable, so please take care when making\n // changes to the function body.\n function fromListPartial(n, list, hasStrings) {\n var ret;\n if (n < list.head.data.length) {\n // slice is the same for buffers and strings\n ret = list.head.data.slice(0, n);\n list.head.data = list.head.data.slice(n);\n } else if (n === list.head.data.length) {\n // first chunk is a perfect match\n ret = list.shift();\n } else {\n // result spans more than one buffer\n ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);\n }\n return ret;\n }\n\n // Copies a specified amount of characters from the list of buffered data\n // chunks.\n // This function is designed to be inlinable, so please take care when making\n // changes to the function body.\n function copyFromBufferString(n, list) {\n var p = list.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n }\n\n // Copies a specified amount of bytes from the list of buffered data chunks.\n // This function is designed to be inlinable, so please take care when making\n // changes to the function body.\n function copyFromBuffer(n, list) {\n var ret = Buffer.allocUnsafe(n);\n var p = list.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) list.head = p.next;else list.head = list.tail = null;\n } else {\n list.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n list.length -= c;\n return ret;\n }\n\n function endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0) throw new Error('\"endReadable()\" called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n nextTick(endReadableNT, state, stream);\n }\n }\n\n function endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n }\n\n function forEach(xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n }\n\n function indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n }\n\n // A bit simpler than readable streams.\n // Implement an async ._write(chunk, encoding, cb), and it'll handle all\n // the drain event emission and buffering.\n\n Writable.WritableState = WritableState;\n inherits$1(Writable, EventEmitter);\n\n function nop() {}\n\n function WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n }\n\n function WritableState(options, stream) {\n Object.defineProperty(this, 'buffer', {\n get: deprecate(function () {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.')\n });\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~ ~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n }\n\n WritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n };\n function Writable(options) {\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex)) return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n\n if (typeof options.writev === 'function') this._writev = options.writev;\n }\n\n EventEmitter.call(this);\n }\n\n // Otherwise people can pipe Writable streams, which is just wrong.\n Writable.prototype.pipe = function () {\n this.emit('error', new Error('Cannot pipe, not readable'));\n };\n\n function writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n nextTick(cb, er);\n }\n\n // If we get something that is not a buffer, string, null, or undefined,\n // and we're not in objectMode, then that's an error.\n // Otherwise stream chunks are all considered to be of length=1, and the\n // watermarks determine how many objects to keep in the buffer, rather than\n // how many bytes or characters.\n function validChunk(stream, state, chunk, cb) {\n var valid = true;\n var er = false;\n // Always throw error if a null is written\n // if we are not in object mode then throw\n // if it is not a buffer, string, or undefined.\n if (chunk === null) {\n er = new TypeError('May not write null values to stream');\n } else if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n if (er) {\n stream.emit('error', er);\n nextTick(cb, er);\n valid = false;\n }\n return valid;\n }\n\n Writable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function') cb = nop;\n\n if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n };\n\n Writable.prototype.cork = function () {\n var state = this._writableState;\n\n state.corked++;\n };\n\n Writable.prototype.uncork = function () {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n };\n\n Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n };\n\n function decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n }\n\n // if we're already writing something, then just put this\n // in the queue, and wait our turn. Otherwise, call _write\n // If we return false, then we need a drain event, so set that flag.\n function writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n\n if (Buffer.isBuffer(chunk)) encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n }\n\n function doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n }\n\n function onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync) nextTick(cb, er);else cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n }\n\n function onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n }\n\n function onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n /**/\n nextTick(afterWrite, stream, state, finished, cb);\n /**/\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n }\n\n function afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n }\n\n // Must force callback to be called on nextTick, so that we don't\n // emit 'drain' before the write() consumer gets the 'false' return\n // value, and has a chance to attach a 'drain' listener.\n function onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n }\n\n // if there's something in the buffer waiting, then process it\n function clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n\n var count = 0;\n while (entry) {\n buffer[count] = entry;\n entry = entry.next;\n count += 1;\n }\n\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null) state.lastBufferedRequest = null;\n }\n\n state.bufferedRequestCount = 0;\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n }\n\n Writable.prototype._write = function (chunk, encoding, cb) {\n cb(new Error('not implemented'));\n };\n\n Writable.prototype._writev = null;\n\n Writable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished) endWritable(this, state, cb);\n };\n\n function needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n }\n\n function prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n\n function finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n }\n\n function endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n }\n\n // It seems a linked list but it is not\n // there will be only 2 of these for each stream\n function CorkedRequest(state) {\n var _this = this;\n\n this.next = null;\n this.entry = null;\n\n this.finish = function (err) {\n var entry = _this.entry;\n _this.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = _this;\n } else {\n state.corkedRequestsFree = _this;\n }\n };\n }\n\n inherits$1(Duplex, Readable);\n\n var keys = Object.keys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n function Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false) this.readable = false;\n\n if (options && options.writable === false) this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;\n\n this.once('end', onend);\n }\n\n // the no-half-open enforcer\n function onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n nextTick(onEndNT, this);\n }\n\n function onEndNT(self) {\n self.end();\n }\n\n // a transform stream is a readable/writable stream where you do\n // something with the data. Sometimes it's called a \"filter\",\n // but that's not a great name for it, since that implies a thing where\n // some bits pass through, and others are simply ignored. (That would\n // be a valid example of a transform, of course.)\n //\n // While the output is causally related to the input, it's not a\n // necessarily symmetric or synchronous transformation. For example,\n // a zlib stream might take multiple plain-text writes(), and then\n // emit a single compressed chunk some time in the future.\n //\n // Here's how this works:\n //\n // The Transform stream has all the aspects of the readable and writable\n // stream classes. When you write(chunk), that calls _write(chunk,cb)\n // internally, and returns false if there's a lot of pending writes\n // buffered up. When you call read(), that calls _read(n) until\n // there's enough pending readable data buffered up.\n //\n // In a transform stream, the written data is placed in a buffer. When\n // _read(n) is called, it transforms the queued up data, calling the\n // buffered _write cb's as it consumes chunks. If consuming a single\n // written chunk would result in multiple output chunks, then the first\n // outputted bit calls the readcb, and subsequent chunks just go into\n // the read buffer, and will cause it to emit 'readable' if necessary.\n //\n // This way, back-pressure is actually determined by the reading side,\n // since _read has to be called to start processing a new chunk. However,\n // a pathological inflate type of transform can cause excessive buffering\n // here. For example, imagine a stream where every byte of input is\n // interpreted as an integer from 0-255, and then results in that many\n // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n // 1kb of data being output. In this case, you could write a very small\n // amount of input, and end up with a very large amount of output. In\n // such a pathological inflating mechanism, there'd be no way to tell\n // the system to stop doing the transform. A single 4MB write could\n // cause the system to run out of memory.\n //\n // However, even in such a pathological case, only a single written chunk\n // would be consumed, and then the rest would wait (un-transformed) until\n // the results of the previous transformed chunk were consumed.\n\n inherits$1(Transform, Duplex);\n\n function TransformState(stream) {\n this.afterTransform = function (er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n this.writeencoding = null;\n }\n\n function afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb) return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined) stream.push(data);\n\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n }\n function Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n this.once('prefinish', function () {\n if (typeof this._flush === 'function') this._flush(function (er) {\n done(stream, er);\n });else done(stream);\n });\n }\n\n Transform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n };\n\n // This is the part where you do stuff!\n // override this function in implementation classes.\n // 'chunk' is an input chunk.\n //\n // Call `push(newChunk)` to pass along transformed output\n // to the readable side. You may call 'push' zero or more times.\n //\n // Call `cb(err)` when you are done with this chunk. If you pass\n // an error, then that'll put the hurt on the whole operation. If you\n // never call cb(), then you'll never get another chunk.\n Transform.prototype._transform = function (chunk, encoding, cb) {\n throw new Error('Not implemented');\n };\n\n Transform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n };\n\n // Doesn't matter what the args are here.\n // _transform does all the work.\n // That we got here means that the readable side wants more data.\n Transform.prototype._read = function (n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n };\n\n function done(stream, er) {\n if (er) return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length) throw new Error('Calling transform done when ws.length != 0');\n\n if (ts.transforming) throw new Error('Calling transform done when still transforming');\n\n return stream.push(null);\n }\n\n inherits$1(PassThrough, Transform);\n function PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n\n Transform.call(this, options);\n }\n\n PassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n };\n\n inherits$1(Stream, EventEmitter);\n Stream.Readable = Readable;\n Stream.Writable = Writable;\n Stream.Duplex = Duplex;\n Stream.Transform = Transform;\n Stream.PassThrough = PassThrough;\n\n // Backwards-compat with node 0.4.x\n Stream.Stream = Stream;\n\n // old-style streams. Note that the pipe method (the only relevant\n // part of this class) is overridden in the Readable class.\n\n function Stream() {\n EventEmitter.call(this);\n }\n\n Stream.prototype.pipe = function(dest, options) {\n var source = this;\n\n function ondata(chunk) {\n if (dest.writable) {\n if (false === dest.write(chunk) && source.pause) {\n source.pause();\n }\n }\n }\n\n source.on('data', ondata);\n\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n\n dest.on('drain', ondrain);\n\n // If the 'end' option is not supplied, dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend);\n source.on('close', onclose);\n }\n\n var didOnEnd = false;\n function onend() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n dest.end();\n }\n\n\n function onclose() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n if (typeof dest.destroy === 'function') dest.destroy();\n }\n\n // don't leave dangling pipes when there are errors.\n function onerror(er) {\n cleanup();\n if (EventEmitter.listenerCount(this, 'error') === 0) {\n throw er; // Unhandled stream error in pipe.\n }\n }\n\n source.on('error', onerror);\n dest.on('error', onerror);\n\n // remove all the event listeners that were added.\n function cleanup() {\n source.removeListener('data', ondata);\n dest.removeListener('drain', ondrain);\n\n source.removeListener('end', onend);\n source.removeListener('close', onclose);\n\n source.removeListener('error', onerror);\n dest.removeListener('error', onerror);\n\n source.removeListener('end', cleanup);\n source.removeListener('close', cleanup);\n\n dest.removeListener('close', cleanup);\n }\n\n source.on('end', cleanup);\n source.on('close', cleanup);\n\n dest.on('close', cleanup);\n\n dest.emit('pipe', source);\n\n // Allow for unix-like usage: A.pipe(B).pipe(C)\n return dest;\n };\n\n var msg = {\n 2: 'need dictionary', /* Z_NEED_DICT 2 */\n 1: 'stream end', /* Z_STREAM_END 1 */\n 0: '', /* Z_OK 0 */\n '-1': 'file error', /* Z_ERRNO (-1) */\n '-2': 'stream error', /* Z_STREAM_ERROR (-2) */\n '-3': 'data error', /* Z_DATA_ERROR (-3) */\n '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */\n '-5': 'buffer error', /* Z_BUF_ERROR (-5) */\n '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */\n };\n\n function ZStream() {\n /* next input byte */\n this.input = null; // JS specific, because we have no pointers\n this.next_in = 0;\n /* number of bytes available at input */\n this.avail_in = 0;\n /* total number of input bytes read so far */\n this.total_in = 0;\n /* next output byte should be put there */\n this.output = null; // JS specific, because we have no pointers\n this.next_out = 0;\n /* remaining free space at output */\n this.avail_out = 0;\n /* total number of bytes output so far */\n this.total_out = 0;\n /* last error message, NULL if no error */\n this.msg = ''/*Z_NULL*/;\n /* not visible by applications */\n this.state = null;\n /* best guess about the data type: binary or text */\n this.data_type = 2/*Z_UNKNOWN*/;\n /* adler32 value of the uncompressed data */\n this.adler = 0;\n }\n\n function arraySet(dest, src, src_offs, len, dest_offs) {\n if (src.subarray && dest.subarray) {\n dest.set(src.subarray(src_offs, src_offs + len), dest_offs);\n return;\n }\n // Fallback to ordinary array\n for (var i = 0; i < len; i++) {\n dest[dest_offs + i] = src[src_offs + i];\n }\n }\n\n\n var Buf8 = Uint8Array;\n var Buf16 = Uint16Array;\n var Buf32 = Int32Array;\n // Enable/Disable typed arrays use, for testing\n //\n\n /* Public constants ==========================================================*/\n /* ===========================================================================*/\n\n\n //var Z_FILTERED = 1;\n //var Z_HUFFMAN_ONLY = 2;\n //var Z_RLE = 3;\n var Z_FIXED$2 = 4;\n //var Z_DEFAULT_STRATEGY = 0;\n\n /* Possible values of the data_type field (though see inflate()) */\n var Z_BINARY$1 = 0;\n var Z_TEXT$1 = 1;\n //var Z_ASCII = 1; // = Z_TEXT\n var Z_UNKNOWN$2 = 2;\n\n /*============================================================================*/\n\n\n function zero$1(buf) {\n var len = buf.length;\n while (--len >= 0) {\n buf[len] = 0;\n }\n }\n\n // From zutil.h\n\n var STORED_BLOCK = 0;\n var STATIC_TREES = 1;\n var DYN_TREES = 2;\n /* The three kinds of block type */\n\n var MIN_MATCH$1 = 3;\n var MAX_MATCH$1 = 258;\n /* The minimum and maximum match lengths */\n\n // From deflate.h\n /* ===========================================================================\n * Internal compression state.\n */\n\n var LENGTH_CODES$1 = 29;\n /* number of length codes, not counting the special END_BLOCK code */\n\n var LITERALS$1 = 256;\n /* number of literal bytes 0..255 */\n\n var L_CODES$1 = LITERALS$1 + 1 + LENGTH_CODES$1;\n /* number of Literal or Length codes, including the END_BLOCK code */\n\n var D_CODES$1 = 30;\n /* number of distance codes */\n\n var BL_CODES$1 = 19;\n /* number of codes used to transfer the bit lengths */\n\n var HEAP_SIZE$1 = 2 * L_CODES$1 + 1;\n /* maximum heap size */\n\n var MAX_BITS$1 = 15;\n /* All codes must not exceed MAX_BITS bits */\n\n var Buf_size = 16;\n /* size of bit buffer in bi_buf */\n\n\n /* ===========================================================================\n * Constants\n */\n\n var MAX_BL_BITS = 7;\n /* Bit length codes must not exceed MAX_BL_BITS bits */\n\n var END_BLOCK = 256;\n /* end of block literal code */\n\n var REP_3_6 = 16;\n /* repeat previous bit length 3-6 times (2 bits of repeat count) */\n\n var REPZ_3_10 = 17;\n /* repeat a zero length 3-10 times (3 bits of repeat count) */\n\n var REPZ_11_138 = 18;\n /* repeat a zero length 11-138 times (7 bits of repeat count) */\n\n /* eslint-disable comma-spacing,array-bracket-spacing */\n var extra_lbits = /* extra bits for each length code */ [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0];\n\n var extra_dbits = /* extra bits for each distance code */ [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];\n\n var extra_blbits = /* extra bits for each bit length code */ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7];\n\n var bl_order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];\n /* eslint-enable comma-spacing,array-bracket-spacing */\n\n /* The lengths of the bit length codes are sent in order of decreasing\n * probability, to avoid transmitting the lengths for unused bit length codes.\n */\n\n /* ===========================================================================\n * Local data. These are initialized only once.\n */\n\n // We pre-fill arrays with 0 to avoid uninitialized gaps\n\n var DIST_CODE_LEN = 512; /* see definition of array dist_code below */\n\n // !!!! Use flat array insdead of structure, Freq = i*2, Len = i*2+1\n var static_ltree = new Array((L_CODES$1 + 2) * 2);\n zero$1(static_ltree);\n /* The static literal tree. Since the bit lengths are imposed, there is no\n * need for the L_CODES extra codes used during heap construction. However\n * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\n * below).\n */\n\n var static_dtree = new Array(D_CODES$1 * 2);\n zero$1(static_dtree);\n /* The static distance tree. (Actually a trivial tree since all codes use\n * 5 bits.)\n */\n\n var _dist_code = new Array(DIST_CODE_LEN);\n zero$1(_dist_code);\n /* Distance codes. The first 256 values correspond to the distances\n * 3 .. 258, the last 256 values correspond to the top 8 bits of\n * the 15 bit distances.\n */\n\n var _length_code = new Array(MAX_MATCH$1 - MIN_MATCH$1 + 1);\n zero$1(_length_code);\n /* length code for each normalized match length (0 == MIN_MATCH) */\n\n var base_length = new Array(LENGTH_CODES$1);\n zero$1(base_length);\n /* First normalized length for each code (0 = MIN_MATCH) */\n\n var base_dist = new Array(D_CODES$1);\n zero$1(base_dist);\n /* First normalized distance for each code (0 = distance of 1) */\n\n\n function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {\n\n this.static_tree = static_tree; /* static tree or NULL */\n this.extra_bits = extra_bits; /* extra bits for each code or NULL */\n this.extra_base = extra_base; /* base index for extra_bits */\n this.elems = elems; /* max number of elements in the tree */\n this.max_length = max_length; /* max bit length for the codes */\n\n // show if `static_tree` has data or dummy - needed for monomorphic objects\n this.has_stree = static_tree && static_tree.length;\n }\n\n\n var static_l_desc;\n var static_d_desc;\n var static_bl_desc;\n\n\n function TreeDesc(dyn_tree, stat_desc) {\n this.dyn_tree = dyn_tree; /* the dynamic tree */\n this.max_code = 0; /* largest code with non zero frequency */\n this.stat_desc = stat_desc; /* the corresponding static tree */\n }\n\n\n\n function d_code(dist) {\n return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];\n }\n\n\n /* ===========================================================================\n * Output a short LSB first on the stream.\n * IN assertion: there is enough room in pendingBuf.\n */\n function put_short(s, w) {\n // put_byte(s, (uch)((w) & 0xff));\n // put_byte(s, (uch)((ush)(w) >> 8));\n s.pending_buf[s.pending++] = (w) & 0xff;\n s.pending_buf[s.pending++] = (w >>> 8) & 0xff;\n }\n\n\n /* ===========================================================================\n * Send a value on a given number of bits.\n * IN assertion: length <= 16 and value fits in length bits.\n */\n function send_bits(s, value, length) {\n if (s.bi_valid > (Buf_size - length)) {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n put_short(s, s.bi_buf);\n s.bi_buf = value >> (Buf_size - s.bi_valid);\n s.bi_valid += length - Buf_size;\n } else {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n s.bi_valid += length;\n }\n }\n\n\n function send_code(s, c, tree) {\n send_bits(s, tree[c * 2] /*.Code*/ , tree[c * 2 + 1] /*.Len*/ );\n }\n\n\n /* ===========================================================================\n * Reverse the first len bits of a code, using straightforward code (a faster\n * method would use a table)\n * IN assertion: 1 <= len <= 15\n */\n function bi_reverse(code, len) {\n var res = 0;\n do {\n res |= code & 1;\n code >>>= 1;\n res <<= 1;\n } while (--len > 0);\n return res >>> 1;\n }\n\n\n /* ===========================================================================\n * Flush the bit buffer, keeping at most 7 bits in it.\n */\n function bi_flush(s) {\n if (s.bi_valid === 16) {\n put_short(s, s.bi_buf);\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n } else if (s.bi_valid >= 8) {\n s.pending_buf[s.pending++] = s.bi_buf & 0xff;\n s.bi_buf >>= 8;\n s.bi_valid -= 8;\n }\n }\n\n\n /* ===========================================================================\n * Compute the optimal bit lengths for a tree and update the total bit length\n * for the current block.\n * IN assertion: the fields freq and dad are set, heap[heap_max] and\n * above are the tree nodes sorted by increasing frequency.\n * OUT assertions: the field len is set to the optimal bit length, the\n * array bl_count contains the frequencies for each bit length.\n * The length opt_len is updated; static_len is also updated if stree is\n * not null.\n */\n function gen_bitlen(s, desc) {\n // deflate_state *s;\n // tree_desc *desc; /* the tree descriptor */\n var tree = desc.dyn_tree;\n var max_code = desc.max_code;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var extra = desc.stat_desc.extra_bits;\n var base = desc.stat_desc.extra_base;\n var max_length = desc.stat_desc.max_length;\n var h; /* heap index */\n var n, m; /* iterate over the tree elements */\n var bits; /* bit length */\n var xbits; /* extra bits */\n var f; /* frequency */\n var overflow = 0; /* number of elements with bit length too large */\n\n for (bits = 0; bits <= MAX_BITS$1; bits++) {\n s.bl_count[bits] = 0;\n }\n\n /* In a first pass, compute the optimal bit lengths (which may\n * overflow in the case of the bit length tree).\n */\n tree[s.heap[s.heap_max] * 2 + 1] /*.Len*/ = 0; /* root of the heap */\n\n for (h = s.heap_max + 1; h < HEAP_SIZE$1; h++) {\n n = s.heap[h];\n bits = tree[tree[n * 2 + 1] /*.Dad*/ * 2 + 1] /*.Len*/ + 1;\n if (bits > max_length) {\n bits = max_length;\n overflow++;\n }\n tree[n * 2 + 1] /*.Len*/ = bits;\n /* We overwrite tree[n].Dad which is no longer needed */\n\n if (n > max_code) {\n continue;\n } /* not a leaf node */\n\n s.bl_count[bits]++;\n xbits = 0;\n if (n >= base) {\n xbits = extra[n - base];\n }\n f = tree[n * 2] /*.Freq*/ ;\n s.opt_len += f * (bits + xbits);\n if (has_stree) {\n s.static_len += f * (stree[n * 2 + 1] /*.Len*/ + xbits);\n }\n }\n if (overflow === 0) {\n return;\n }\n\n // Trace((stderr,\"\\nbit length overflow\\n\"));\n /* This happens for example on obj2 and pic of the Calgary corpus */\n\n /* Find the first bit length which could increase: */\n do {\n bits = max_length - 1;\n while (s.bl_count[bits] === 0) {\n bits--;\n }\n s.bl_count[bits]--; /* move one leaf down the tree */\n s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */\n s.bl_count[max_length]--;\n /* The brother of the overflow item also moves one step up,\n * but this does not affect bl_count[max_length]\n */\n overflow -= 2;\n } while (overflow > 0);\n\n /* Now recompute all bit lengths, scanning in increasing frequency.\n * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\n * lengths instead of fixing only the wrong ones. This idea is taken\n * from 'ar' written by Haruhiko Okumura.)\n */\n for (bits = max_length; bits !== 0; bits--) {\n n = s.bl_count[bits];\n while (n !== 0) {\n m = s.heap[--h];\n if (m > max_code) {\n continue;\n }\n if (tree[m * 2 + 1] /*.Len*/ !== bits) {\n // Trace((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\n s.opt_len += (bits - tree[m * 2 + 1] /*.Len*/ ) * tree[m * 2] /*.Freq*/ ;\n tree[m * 2 + 1] /*.Len*/ = bits;\n }\n n--;\n }\n }\n }\n\n\n /* ===========================================================================\n * Generate the codes for a given tree and bit counts (which need not be\n * optimal).\n * IN assertion: the array bl_count contains the bit length statistics for\n * the given tree and the field len is set for all tree elements.\n * OUT assertion: the field code is set for all tree elements of non\n * zero code length.\n */\n function gen_codes(tree, max_code, bl_count) {\n // ct_data *tree; /* the tree to decorate */\n // int max_code; /* largest code with non zero frequency */\n // ushf *bl_count; /* number of codes at each bit length */\n\n var next_code = new Array(MAX_BITS$1 + 1); /* next code value for each bit length */\n var code = 0; /* running code value */\n var bits; /* bit index */\n var n; /* code index */\n\n /* The distribution counts are first used to generate the code values\n * without bit reversal.\n */\n for (bits = 1; bits <= MAX_BITS$1; bits++) {\n next_code[bits] = code = (code + bl_count[bits - 1]) << 1;\n }\n /* Check that the bit counts in bl_count are consistent. The last code\n * must be all ones.\n */\n //Assert (code + bl_count[MAX_BITS]-1 == (1< length code (0..28) */\n length = 0;\n for (code = 0; code < LENGTH_CODES$1 - 1; code++) {\n base_length[code] = length;\n for (n = 0; n < (1 << extra_lbits[code]); n++) {\n _length_code[length++] = code;\n }\n }\n //Assert (length == 256, \"tr_static_init: length != 256\");\n /* Note that the length 255 (match length 258) can be represented\n * in two different ways: code 284 + 5 bits or code 285, so we\n * overwrite length_code[255] to use the best encoding:\n */\n _length_code[length - 1] = code;\n\n /* Initialize the mapping dist (0..32K) -> dist code (0..29) */\n dist = 0;\n for (code = 0; code < 16; code++) {\n base_dist[code] = dist;\n for (n = 0; n < (1 << extra_dbits[code]); n++) {\n _dist_code[dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: dist != 256\");\n dist >>= 7; /* from now on, all distances are divided by 128 */\n for (; code < D_CODES$1; code++) {\n base_dist[code] = dist << 7;\n for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {\n _dist_code[256 + dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\n\n /* Construct the codes of the static literal tree */\n for (bits = 0; bits <= MAX_BITS$1; bits++) {\n bl_count[bits] = 0;\n }\n\n n = 0;\n while (n <= 143) {\n static_ltree[n * 2 + 1] /*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n while (n <= 255) {\n static_ltree[n * 2 + 1] /*.Len*/ = 9;\n n++;\n bl_count[9]++;\n }\n while (n <= 279) {\n static_ltree[n * 2 + 1] /*.Len*/ = 7;\n n++;\n bl_count[7]++;\n }\n while (n <= 287) {\n static_ltree[n * 2 + 1] /*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n /* Codes 286 and 287 do not exist, but we must include them in the\n * tree construction to get a canonical Huffman tree (longest code\n * all ones)\n */\n gen_codes(static_ltree, L_CODES$1 + 1, bl_count);\n\n /* The static distance tree is trivial: */\n for (n = 0; n < D_CODES$1; n++) {\n static_dtree[n * 2 + 1] /*.Len*/ = 5;\n static_dtree[n * 2] /*.Code*/ = bi_reverse(n, 5);\n }\n\n // Now data ready and we can init static trees\n static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS$1 + 1, L_CODES$1, MAX_BITS$1);\n static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES$1, MAX_BITS$1);\n static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES$1, MAX_BL_BITS);\n\n //static_init_done = true;\n }\n\n\n /* ===========================================================================\n * Initialize a new block.\n */\n function init_block(s) {\n var n; /* iterates over tree elements */\n\n /* Initialize the trees. */\n for (n = 0; n < L_CODES$1; n++) {\n s.dyn_ltree[n * 2] /*.Freq*/ = 0;\n }\n for (n = 0; n < D_CODES$1; n++) {\n s.dyn_dtree[n * 2] /*.Freq*/ = 0;\n }\n for (n = 0; n < BL_CODES$1; n++) {\n s.bl_tree[n * 2] /*.Freq*/ = 0;\n }\n\n s.dyn_ltree[END_BLOCK * 2] /*.Freq*/ = 1;\n s.opt_len = s.static_len = 0;\n s.last_lit = s.matches = 0;\n }\n\n\n /* ===========================================================================\n * Flush the bit buffer and align the output on a byte boundary\n */\n function bi_windup(s) {\n if (s.bi_valid > 8) {\n put_short(s, s.bi_buf);\n } else if (s.bi_valid > 0) {\n //put_byte(s, (Byte)s->bi_buf);\n s.pending_buf[s.pending++] = s.bi_buf;\n }\n s.bi_buf = 0;\n s.bi_valid = 0;\n }\n\n /* ===========================================================================\n * Copy a stored block, storing first the length and its\n * one's complement if requested.\n */\n function copy_block(s, buf, len, header) {\n //DeflateState *s;\n //charf *buf; /* the input data */\n //unsigned len; /* its length */\n //int header; /* true if block header must be written */\n\n bi_windup(s); /* align on byte boundary */\n\n {\n put_short(s, len);\n put_short(s, ~len);\n }\n // while (len--) {\n // put_byte(s, *buf++);\n // }\n arraySet(s.pending_buf, s.window, buf, len, s.pending);\n s.pending += len;\n }\n\n /* ===========================================================================\n * Compares to subtrees, using the tree depth as tie breaker when\n * the subtrees have equal frequency. This minimizes the worst case length.\n */\n function smaller(tree, n, m, depth) {\n var _n2 = n * 2;\n var _m2 = m * 2;\n return (tree[_n2] /*.Freq*/ < tree[_m2] /*.Freq*/ ||\n (tree[_n2] /*.Freq*/ === tree[_m2] /*.Freq*/ && depth[n] <= depth[m]));\n }\n\n /* ===========================================================================\n * Restore the heap property by moving down the tree starting at node k,\n * exchanging a node with the smallest of its two sons if necessary, stopping\n * when the heap property is re-established (each father smaller than its\n * two sons).\n */\n function pqdownheap(s, tree, k)\n // deflate_state *s;\n // ct_data *tree; /* the tree to restore */\n // int k; /* node to move down */\n {\n var v = s.heap[k];\n var j = k << 1; /* left son of k */\n while (j <= s.heap_len) {\n /* Set j to the smallest of the two sons: */\n if (j < s.heap_len &&\n smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {\n j++;\n }\n /* Exit if v is smaller than both sons */\n if (smaller(tree, v, s.heap[j], s.depth)) {\n break;\n }\n\n /* Exchange v with the smallest son */\n s.heap[k] = s.heap[j];\n k = j;\n\n /* And continue down the tree, setting j to the left son of k */\n j <<= 1;\n }\n s.heap[k] = v;\n }\n\n\n // inlined manually\n // var SMALLEST = 1;\n\n /* ===========================================================================\n * Send the block data compressed using the given Huffman trees\n */\n function compress_block(s, ltree, dtree)\n // deflate_state *s;\n // const ct_data *ltree; /* literal tree */\n // const ct_data *dtree; /* distance tree */\n {\n var dist; /* distance of matched string */\n var lc; /* match length or unmatched char (if dist == 0) */\n var lx = 0; /* running index in l_buf */\n var code; /* the code to send */\n var extra; /* number of extra bits to send */\n\n if (s.last_lit !== 0) {\n do {\n dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]);\n lc = s.pending_buf[s.l_buf + lx];\n lx++;\n\n if (dist === 0) {\n send_code(s, lc, ltree); /* send a literal byte */\n //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\n } else {\n /* Here, lc is the match length - MIN_MATCH */\n code = _length_code[lc];\n send_code(s, code + LITERALS$1 + 1, ltree); /* send the length code */\n extra = extra_lbits[code];\n if (extra !== 0) {\n lc -= base_length[code];\n send_bits(s, lc, extra); /* send the extra length bits */\n }\n dist--; /* dist is now the match distance - 1 */\n code = d_code(dist);\n //Assert (code < D_CODES, \"bad d_code\");\n\n send_code(s, code, dtree); /* send the distance code */\n extra = extra_dbits[code];\n if (extra !== 0) {\n dist -= base_dist[code];\n send_bits(s, dist, extra); /* send the extra distance bits */\n }\n } /* literal or match pair ? */\n\n /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */\n //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,\n // \"pendingBuf overflow\");\n\n } while (lx < s.last_lit);\n }\n\n send_code(s, END_BLOCK, ltree);\n }\n\n\n /* ===========================================================================\n * Construct one Huffman tree and assigns the code bit strings and lengths.\n * Update the total bit length for the current block.\n * IN assertion: the field freq is set for all tree elements.\n * OUT assertions: the fields len and code are set to the optimal bit length\n * and corresponding code. The length opt_len is updated; static_len is\n * also updated if stree is not null. The field max_code is set.\n */\n function build_tree(s, desc)\n // deflate_state *s;\n // tree_desc *desc; /* the tree descriptor */\n {\n var tree = desc.dyn_tree;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var elems = desc.stat_desc.elems;\n var n, m; /* iterate over heap elements */\n var max_code = -1; /* largest code with non zero frequency */\n var node; /* new node being created */\n\n /* Construct the initial heap, with least frequent element in\n * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\n * heap[0] is not used.\n */\n s.heap_len = 0;\n s.heap_max = HEAP_SIZE$1;\n\n for (n = 0; n < elems; n++) {\n if (tree[n * 2] /*.Freq*/ !== 0) {\n s.heap[++s.heap_len] = max_code = n;\n s.depth[n] = 0;\n\n } else {\n tree[n * 2 + 1] /*.Len*/ = 0;\n }\n }\n\n /* The pkzip format requires that at least one distance code exists,\n * and that at least one bit should be sent even if there is only one\n * possible code. So to avoid special checks later on we force at least\n * two codes of non zero frequency.\n */\n while (s.heap_len < 2) {\n node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);\n tree[node * 2] /*.Freq*/ = 1;\n s.depth[node] = 0;\n s.opt_len--;\n\n if (has_stree) {\n s.static_len -= stree[node * 2 + 1] /*.Len*/ ;\n }\n /* node is 0 or 1 so it does not have extra bits */\n }\n desc.max_code = max_code;\n\n /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\n * establish sub-heaps of increasing lengths:\n */\n for (n = (s.heap_len >> 1 /*int /2*/ ); n >= 1; n--) {\n pqdownheap(s, tree, n);\n }\n\n /* Construct the Huffman tree by repeatedly combining the least two\n * frequent nodes.\n */\n node = elems; /* next internal node of the tree */\n do {\n //pqremove(s, tree, n); /* n = node of least frequency */\n /*** pqremove ***/\n n = s.heap[1 /*SMALLEST*/ ];\n s.heap[1 /*SMALLEST*/ ] = s.heap[s.heap_len--];\n pqdownheap(s, tree, 1 /*SMALLEST*/ );\n /***/\n\n m = s.heap[1 /*SMALLEST*/ ]; /* m = node of next least frequency */\n\n s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */\n s.heap[--s.heap_max] = m;\n\n /* Create a new node father of n and m */\n tree[node * 2] /*.Freq*/ = tree[n * 2] /*.Freq*/ + tree[m * 2] /*.Freq*/ ;\n s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;\n tree[n * 2 + 1] /*.Dad*/ = tree[m * 2 + 1] /*.Dad*/ = node;\n\n /* and insert the new node in the heap */\n s.heap[1 /*SMALLEST*/ ] = node++;\n pqdownheap(s, tree, 1 /*SMALLEST*/ );\n\n } while (s.heap_len >= 2);\n\n s.heap[--s.heap_max] = s.heap[1 /*SMALLEST*/ ];\n\n /* At this point, the fields freq and dad are set. We can now\n * generate the bit lengths.\n */\n gen_bitlen(s, desc);\n\n /* The field len is now set, we can generate the bit codes */\n gen_codes(tree, max_code, s.bl_count);\n }\n\n\n /* ===========================================================================\n * Scan a literal or distance tree to determine the frequencies of the codes\n * in the bit length tree.\n */\n function scan_tree(s, tree, max_code)\n // deflate_state *s;\n // ct_data *tree; /* the tree to be scanned */\n // int max_code; /* and its largest code of non zero frequency */\n {\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0 * 2 + 1] /*.Len*/ ; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n tree[(max_code + 1) * 2 + 1] /*.Len*/ = 0xffff; /* guard */\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1] /*.Len*/ ;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n s.bl_tree[curlen * 2] /*.Freq*/ += count;\n\n } else if (curlen !== 0) {\n\n if (curlen !== prevlen) {\n s.bl_tree[curlen * 2] /*.Freq*/ ++;\n }\n s.bl_tree[REP_3_6 * 2] /*.Freq*/ ++;\n\n } else if (count <= 10) {\n s.bl_tree[REPZ_3_10 * 2] /*.Freq*/ ++;\n\n } else {\n s.bl_tree[REPZ_11_138 * 2] /*.Freq*/ ++;\n }\n\n count = 0;\n prevlen = curlen;\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n }\n\n\n /* ===========================================================================\n * Send a literal or distance tree in compressed form, using the codes in\n * bl_tree.\n */\n function send_tree(s, tree, max_code)\n // deflate_state *s;\n // ct_data *tree; /* the tree to be scanned */\n // int max_code; /* and its largest code of non zero frequency */\n {\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0 * 2 + 1] /*.Len*/ ; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n /* tree[max_code+1].Len = -1; */\n /* guard already set */\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1] /*.Len*/ ;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n do {\n send_code(s, curlen, s.bl_tree);\n } while (--count !== 0);\n\n } else if (curlen !== 0) {\n if (curlen !== prevlen) {\n send_code(s, curlen, s.bl_tree);\n count--;\n }\n //Assert(count >= 3 && count <= 6, \" 3_6?\");\n send_code(s, REP_3_6, s.bl_tree);\n send_bits(s, count - 3, 2);\n\n } else if (count <= 10) {\n send_code(s, REPZ_3_10, s.bl_tree);\n send_bits(s, count - 3, 3);\n\n } else {\n send_code(s, REPZ_11_138, s.bl_tree);\n send_bits(s, count - 11, 7);\n }\n\n count = 0;\n prevlen = curlen;\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n }\n\n\n /* ===========================================================================\n * Construct the Huffman tree for the bit lengths and return the index in\n * bl_order of the last bit length code to send.\n */\n function build_bl_tree(s) {\n var max_blindex; /* index of last bit length code of non zero freq */\n\n /* Determine the bit length frequencies for literal and distance trees */\n scan_tree(s, s.dyn_ltree, s.l_desc.max_code);\n scan_tree(s, s.dyn_dtree, s.d_desc.max_code);\n\n /* Build the bit length tree: */\n build_tree(s, s.bl_desc);\n /* opt_len now includes the length of the tree representations, except\n * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\n */\n\n /* Determine the number of bit length codes to send. The pkzip format\n * requires that at least 4 bit length codes be sent. (appnote.txt says\n * 3 but the actual value used is 4.)\n */\n for (max_blindex = BL_CODES$1 - 1; max_blindex >= 3; max_blindex--) {\n if (s.bl_tree[bl_order[max_blindex] * 2 + 1] /*.Len*/ !== 0) {\n break;\n }\n }\n /* Update opt_len to include the bit length tree and counts */\n s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;\n //Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\n // s->opt_len, s->static_len));\n\n return max_blindex;\n }\n\n\n /* ===========================================================================\n * Send the header for a block using dynamic Huffman trees: the counts, the\n * lengths of the bit length codes, the literal tree and the distance tree.\n * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\n */\n function send_all_trees(s, lcodes, dcodes, blcodes)\n // deflate_state *s;\n // int lcodes, dcodes, blcodes; /* number of codes for each tree */\n {\n var rank; /* index in bl_order */\n\n //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\n //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\n // \"too many codes\");\n //Tracev((stderr, \"\\nbl counts: \"));\n send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */\n send_bits(s, dcodes - 1, 5);\n send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */\n for (rank = 0; rank < blcodes; rank++) {\n //Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\n send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1] /*.Len*/ , 3);\n }\n //Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */\n //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */\n //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\n }\n\n\n /* ===========================================================================\n * Check if the data type is TEXT or BINARY, using the following algorithm:\n * - TEXT if the two conditions below are satisfied:\n * a) There are no non-portable control characters belonging to the\n * \"black list\" (0..6, 14..25, 28..31).\n * b) There is at least one printable character belonging to the\n * \"white list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\n * - BINARY otherwise.\n * - The following partially-portable control characters form a\n * \"gray list\" that is ignored in this detection algorithm:\n * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\n * IN assertion: the fields Freq of dyn_ltree are set.\n */\n function detect_data_type(s) {\n /* black_mask is the bit mask of black-listed bytes\n * set bits 0..6, 14..25, and 28..31\n * 0xf3ffc07f = binary 11110011111111111100000001111111\n */\n var black_mask = 0xf3ffc07f;\n var n;\n\n /* Check for non-textual (\"black-listed\") bytes. */\n for (n = 0; n <= 31; n++, black_mask >>>= 1) {\n if ((black_mask & 1) && (s.dyn_ltree[n * 2] /*.Freq*/ !== 0)) {\n return Z_BINARY$1;\n }\n }\n\n /* Check for textual (\"white-listed\") bytes. */\n if (s.dyn_ltree[9 * 2] /*.Freq*/ !== 0 || s.dyn_ltree[10 * 2] /*.Freq*/ !== 0 ||\n s.dyn_ltree[13 * 2] /*.Freq*/ !== 0) {\n return Z_TEXT$1;\n }\n for (n = 32; n < LITERALS$1; n++) {\n if (s.dyn_ltree[n * 2] /*.Freq*/ !== 0) {\n return Z_TEXT$1;\n }\n }\n\n /* There are no \"black-listed\" or \"white-listed\" bytes:\n * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\n */\n return Z_BINARY$1;\n }\n\n\n var static_init_done = false;\n\n /* ===========================================================================\n * Initialize the tree data structures for a new zlib stream.\n */\n function _tr_init(s) {\n\n if (!static_init_done) {\n tr_static_init();\n static_init_done = true;\n }\n\n s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);\n s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);\n s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);\n\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n /* Initialize the first block of the first file: */\n init_block(s);\n }\n\n\n /* ===========================================================================\n * Send a stored block\n */\n function _tr_stored_block(s, buf, stored_len, last)\n //DeflateState *s;\n //charf *buf; /* input block */\n //ulg stored_len; /* length of input block */\n //int last; /* one if this is the last block for a file */\n {\n send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */\n copy_block(s, buf, stored_len); /* with header */\n }\n\n\n /* ===========================================================================\n * Send one empty static block to give enough lookahead for inflate.\n * This takes 10 bits, of which 7 may remain in the bit buffer.\n */\n function _tr_align(s) {\n send_bits(s, STATIC_TREES << 1, 3);\n send_code(s, END_BLOCK, static_ltree);\n bi_flush(s);\n }\n\n\n /* ===========================================================================\n * Determine the best encoding for the current block: dynamic trees, static\n * trees or store, and output the encoded block to the zip file.\n */\n function _tr_flush_block(s, buf, stored_len, last)\n //DeflateState *s;\n //charf *buf; /* input block, or NULL if too old */\n //ulg stored_len; /* length of input block */\n //int last; /* one if this is the last block for a file */\n {\n var opt_lenb, static_lenb; /* opt_len and static_len in bytes */\n var max_blindex = 0; /* index of last bit length code of non zero freq */\n\n /* Build the Huffman trees unless a stored block is forced */\n if (s.level > 0) {\n\n /* Check if the file is binary or text */\n if (s.strm.data_type === Z_UNKNOWN$2) {\n s.strm.data_type = detect_data_type(s);\n }\n\n /* Construct the literal and distance trees */\n build_tree(s, s.l_desc);\n // Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n\n build_tree(s, s.d_desc);\n // Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n /* At this point, opt_len and static_len are the total bit lengths of\n * the compressed block data, excluding the tree representations.\n */\n\n /* Build the bit length tree for the above two trees, and get the index\n * in bl_order of the last bit length code to send.\n */\n max_blindex = build_bl_tree(s);\n\n /* Determine the best encoding. Compute the block lengths in bytes. */\n opt_lenb = (s.opt_len + 3 + 7) >>> 3;\n static_lenb = (s.static_len + 3 + 7) >>> 3;\n\n // Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\n // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\n // s->last_lit));\n\n if (static_lenb <= opt_lenb) {\n opt_lenb = static_lenb;\n }\n\n } else {\n // Assert(buf != (char*)0, \"lost buf\");\n opt_lenb = static_lenb = stored_len + 5; /* force a stored block */\n }\n\n if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) {\n /* 4: two words for the lengths */\n\n /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\n * Otherwise we can't have processed more than WSIZE input bytes since\n * the last block flush, because compression would have been\n * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\n * transform a block into a stored block.\n */\n _tr_stored_block(s, buf, stored_len, last);\n\n } else if (s.strategy === Z_FIXED$2 || static_lenb === opt_lenb) {\n\n send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);\n compress_block(s, static_ltree, static_dtree);\n\n } else {\n send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);\n send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);\n compress_block(s, s.dyn_ltree, s.dyn_dtree);\n }\n // Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\n /* The above check is made mod 2^32, for files larger than 512 MB\n * and uLong implemented on 32 bits.\n */\n init_block(s);\n\n if (last) {\n bi_windup(s);\n }\n // Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\n // s->compressed_len-7*last));\n }\n\n /* ===========================================================================\n * Save the match info and tally the frequency counts. Return true if\n * the current block must be flushed.\n */\n function _tr_tally(s, dist, lc)\n // deflate_state *s;\n // unsigned dist; /* distance of matched string */\n // unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */\n {\n //var out_length, in_length, dcode;\n\n s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff;\n s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;\n\n s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;\n s.last_lit++;\n\n if (dist === 0) {\n /* lc is the unmatched char */\n s.dyn_ltree[lc * 2] /*.Freq*/ ++;\n } else {\n s.matches++;\n /* Here, lc is the match length - MIN_MATCH */\n dist--; /* dist = match distance - 1 */\n //Assert((ush)dist < (ush)MAX_DIST(s) &&\n // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\n // (ush)d_code(dist) < (ush)D_CODES, \"_tr_tally: bad match\");\n\n s.dyn_ltree[(_length_code[lc] + LITERALS$1 + 1) * 2] /*.Freq*/ ++;\n s.dyn_dtree[d_code(dist) * 2] /*.Freq*/ ++;\n }\n\n // (!) This block is disabled in zlib defailts,\n // don't enable it for binary compatibility\n\n //#ifdef TRUNCATE_BLOCK\n // /* Try to guess if it is profitable to stop the current block here */\n // if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {\n // /* Compute an upper bound for the compressed length */\n // out_length = s.last_lit*8;\n // in_length = s.strstart - s.block_start;\n //\n // for (dcode = 0; dcode < D_CODES; dcode++) {\n // out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);\n // }\n // out_length >>>= 3;\n // //Tracev((stderr,\"\\nlast_lit %u, in %ld, out ~%ld(%ld%%) \",\n // // s->last_lit, in_length, out_length,\n // // 100L - out_length*100L/in_length));\n // if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {\n // return true;\n // }\n // }\n //#endif\n\n return (s.last_lit === s.lit_bufsize - 1);\n /* We avoid equality with lit_bufsize because of wraparound at 64K\n * on 16 bit machines and because stored blocks are restricted to\n * 64K-1 bytes.\n */\n }\n\n // Note: adler32 takes 12% for level 0 and 2% for level 6.\n // It doesn't worth to make additional optimizationa as in original.\n // Small size is preferable.\n\n function adler32(adler, buf, len, pos) {\n var s1 = (adler & 0xffff) |0,\n s2 = ((adler >>> 16) & 0xffff) |0,\n n = 0;\n\n while (len !== 0) {\n // Set limit ~ twice less than 5552, to keep\n // s2 in 31-bits, because we force signed ints.\n // in other case %= will fail.\n n = len > 2000 ? 2000 : len;\n len -= n;\n\n do {\n s1 = (s1 + buf[pos++]) |0;\n s2 = (s2 + s1) |0;\n } while (--n);\n\n s1 %= 65521;\n s2 %= 65521;\n }\n\n return (s1 | (s2 << 16)) |0;\n }\n\n // Note: we can't get significant speed boost here.\n // So write code to minimize size - no pregenerated tables\n // and array tools dependencies.\n\n\n // Use ordinary array, since untyped makes no boost here\n function makeTable() {\n var c, table = [];\n\n for (var n = 0; n < 256; n++) {\n c = n;\n for (var k = 0; k < 8; k++) {\n c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\n }\n table[n] = c;\n }\n\n return table;\n }\n\n // Create table on load. Just 255 signed longs. Not a problem.\n var crcTable = makeTable();\n\n\n function crc32(crc, buf, len, pos) {\n var t = crcTable,\n end = pos + len;\n\n crc ^= -1;\n\n for (var i = pos; i < end; i++) {\n crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\n }\n\n return (crc ^ (-1)); // >>> 0;\n }\n\n /* Public constants ==========================================================*/\n /* ===========================================================================*/\n\n\n /* Allowed flush values; see deflate() and inflate() below for details */\n var Z_NO_FLUSH$1 = 0;\n var Z_PARTIAL_FLUSH$1 = 1;\n //var Z_SYNC_FLUSH = 2;\n var Z_FULL_FLUSH$1 = 3;\n var Z_FINISH$2 = 4;\n var Z_BLOCK$2 = 5;\n //var Z_TREES = 6;\n\n\n /* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\n var Z_OK$2 = 0;\n var Z_STREAM_END$2 = 1;\n //var Z_NEED_DICT = 2;\n //var Z_ERRNO = -1;\n var Z_STREAM_ERROR$2 = -2;\n var Z_DATA_ERROR$2 = -3;\n //var Z_MEM_ERROR = -4;\n var Z_BUF_ERROR$2 = -5;\n //var Z_VERSION_ERROR = -6;\n\n\n /* compression levels */\n //var Z_NO_COMPRESSION = 0;\n //var Z_BEST_SPEED = 1;\n //var Z_BEST_COMPRESSION = 9;\n var Z_DEFAULT_COMPRESSION$1 = -1;\n\n\n var Z_FILTERED$1 = 1;\n var Z_HUFFMAN_ONLY$1 = 2;\n var Z_RLE$1 = 3;\n var Z_FIXED$1 = 4;\n\n /* Possible values of the data_type field (though see inflate()) */\n //var Z_BINARY = 0;\n //var Z_TEXT = 1;\n //var Z_ASCII = 1; // = Z_TEXT\n var Z_UNKNOWN$1 = 2;\n\n\n /* The deflate compression method */\n var Z_DEFLATED$2 = 8;\n\n /*============================================================================*/\n\n\n var MAX_MEM_LEVEL = 9;\n\n\n var LENGTH_CODES = 29;\n /* number of length codes, not counting the special END_BLOCK code */\n var LITERALS = 256;\n /* number of literal bytes 0..255 */\n var L_CODES = LITERALS + 1 + LENGTH_CODES;\n /* number of Literal or Length codes, including the END_BLOCK code */\n var D_CODES = 30;\n /* number of distance codes */\n var BL_CODES = 19;\n /* number of codes used to transfer the bit lengths */\n var HEAP_SIZE = 2 * L_CODES + 1;\n /* maximum heap size */\n var MAX_BITS = 15;\n /* All codes must not exceed MAX_BITS bits */\n\n var MIN_MATCH = 3;\n var MAX_MATCH = 258;\n var MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);\n\n var PRESET_DICT = 0x20;\n\n var INIT_STATE = 42;\n var EXTRA_STATE = 69;\n var NAME_STATE = 73;\n var COMMENT_STATE = 91;\n var HCRC_STATE = 103;\n var BUSY_STATE = 113;\n var FINISH_STATE = 666;\n\n var BS_NEED_MORE = 1; /* block not completed, need more input or more output */\n var BS_BLOCK_DONE = 2; /* block flush performed */\n var BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */\n var BS_FINISH_DONE = 4; /* finish done, accept no more input or output */\n\n var OS_CODE = 0x03; // Unix :) . Don't detect, use this default.\n\n function err(strm, errorCode) {\n strm.msg = msg[errorCode];\n return errorCode;\n }\n\n function rank(f) {\n return ((f) << 1) - ((f) > 4 ? 9 : 0);\n }\n\n function zero(buf) {\n var len = buf.length;\n while (--len >= 0) {\n buf[len] = 0;\n }\n }\n\n\n /* =========================================================================\n * Flush as much pending output as possible. All deflate() output goes\n * through this function so some applications may wish to modify it\n * to avoid allocating a large strm->output buffer and copying into it.\n * (See also read_buf()).\n */\n function flush_pending(strm) {\n var s = strm.state;\n\n //_tr_flush_bits(s);\n var len = s.pending;\n if (len > strm.avail_out) {\n len = strm.avail_out;\n }\n if (len === 0) {\n return;\n }\n\n arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);\n strm.next_out += len;\n s.pending_out += len;\n strm.total_out += len;\n strm.avail_out -= len;\n s.pending -= len;\n if (s.pending === 0) {\n s.pending_out = 0;\n }\n }\n\n\n function flush_block_only(s, last) {\n _tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);\n s.block_start = s.strstart;\n flush_pending(s.strm);\n }\n\n\n function put_byte(s, b) {\n s.pending_buf[s.pending++] = b;\n }\n\n\n /* =========================================================================\n * Put a short in the pending buffer. The 16-bit value is put in MSB order.\n * IN assertion: the stream state is correct and there is enough room in\n * pending_buf.\n */\n function putShortMSB(s, b) {\n // put_byte(s, (Byte)(b >> 8));\n // put_byte(s, (Byte)(b & 0xff));\n s.pending_buf[s.pending++] = (b >>> 8) & 0xff;\n s.pending_buf[s.pending++] = b & 0xff;\n }\n\n\n /* ===========================================================================\n * Read a new buffer from the current input stream, update the adler32\n * and total number of bytes read. All deflate() input goes through\n * this function so some applications may wish to modify it to avoid\n * allocating a large strm->input buffer and copying from it.\n * (See also flush_pending()).\n */\n function read_buf(strm, buf, start, size) {\n var len = strm.avail_in;\n\n if (len > size) {\n len = size;\n }\n if (len === 0) {\n return 0;\n }\n\n strm.avail_in -= len;\n\n // zmemcpy(buf, strm->next_in, len);\n arraySet(buf, strm.input, strm.next_in, len, start);\n if (strm.state.wrap === 1) {\n strm.adler = adler32(strm.adler, buf, len, start);\n } else if (strm.state.wrap === 2) {\n strm.adler = crc32(strm.adler, buf, len, start);\n }\n\n strm.next_in += len;\n strm.total_in += len;\n\n return len;\n }\n\n\n /* ===========================================================================\n * Set match_start to the longest match starting at the given string and\n * return its length. Matches shorter or equal to prev_length are discarded,\n * in which case the result is equal to prev_length and match_start is\n * garbage.\n * IN assertions: cur_match is the head of the hash chain for the current\n * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1\n * OUT assertion: the match length is not greater than s->lookahead.\n */\n function longest_match(s, cur_match) {\n var chain_length = s.max_chain_length; /* max hash chain length */\n var scan = s.strstart; /* current string */\n var match; /* matched string */\n var len; /* length of current match */\n var best_len = s.prev_length; /* best match length so far */\n var nice_match = s.nice_match; /* stop if match long enough */\n var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?\n s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0 /*NIL*/ ;\n\n var _win = s.window; // shortcut\n\n var wmask = s.w_mask;\n var prev = s.prev;\n\n /* Stop when cur_match becomes <= limit. To simplify the code,\n * we prevent matches with the string of window index 0.\n */\n\n var strend = s.strstart + MAX_MATCH;\n var scan_end1 = _win[scan + best_len - 1];\n var scan_end = _win[scan + best_len];\n\n /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.\n * It is easy to get rid of this optimization if necessary.\n */\n // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, \"Code too clever\");\n\n /* Do not waste too much time if we already have a good match: */\n if (s.prev_length >= s.good_match) {\n chain_length >>= 2;\n }\n /* Do not look for matches beyond the end of the input. This is necessary\n * to make deflate deterministic.\n */\n if (nice_match > s.lookahead) {\n nice_match = s.lookahead;\n }\n\n // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, \"need lookahead\");\n\n do {\n // Assert(cur_match < s->strstart, \"no future\");\n match = cur_match;\n\n /* Skip to next match if the match length cannot increase\n * or if the match length is less than 2. Note that the checks below\n * for insufficient lookahead only occur occasionally for performance\n * reasons. Therefore uninitialized memory will be accessed, and\n * conditional jumps will be made that depend on those values.\n * However the length of the match is limited to the lookahead, so\n * the output of deflate is not affected by the uninitialized values.\n */\n\n if (_win[match + best_len] !== scan_end ||\n _win[match + best_len - 1] !== scan_end1 ||\n _win[match] !== _win[scan] ||\n _win[++match] !== _win[scan + 1]) {\n continue;\n }\n\n /* The check at best_len-1 can be removed because it will be made\n * again later. (This heuristic is not always a win.)\n * It is not necessary to compare scan[2] and match[2] since they\n * are always equal when the other bytes match, given that\n * the hash keys are equal and that HASH_BITS >= 8.\n */\n scan += 2;\n match++;\n // Assert(*scan == *match, \"match[2]?\");\n\n /* We check for insufficient lookahead only every 8th comparison;\n * the 256th check will be made at strstart+258.\n */\n do {\n /*jshint noempty:false*/\n } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n scan < strend);\n\n // Assert(scan <= s->window+(unsigned)(s->window_size-1), \"wild scan\");\n\n len = MAX_MATCH - (strend - scan);\n scan = strend - MAX_MATCH;\n\n if (len > best_len) {\n s.match_start = cur_match;\n best_len = len;\n if (len >= nice_match) {\n break;\n }\n scan_end1 = _win[scan + best_len - 1];\n scan_end = _win[scan + best_len];\n }\n } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);\n\n if (best_len <= s.lookahead) {\n return best_len;\n }\n return s.lookahead;\n }\n\n\n /* ===========================================================================\n * Fill the window when the lookahead becomes insufficient.\n * Updates strstart and lookahead.\n *\n * IN assertion: lookahead < MIN_LOOKAHEAD\n * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\n * At least one byte has been read, or avail_in == 0; reads are\n * performed for at least two bytes (required for the zip translate_eol\n * option -- not supported here).\n */\n function fill_window(s) {\n var _w_size = s.w_size;\n var p, n, m, more, str;\n\n //Assert(s->lookahead < MIN_LOOKAHEAD, \"already enough lookahead\");\n\n do {\n more = s.window_size - s.lookahead - s.strstart;\n\n // JS ints have 32 bit, block below not needed\n /* Deal with !@#$% 64K limit: */\n //if (sizeof(int) <= 2) {\n // if (more == 0 && s->strstart == 0 && s->lookahead == 0) {\n // more = wsize;\n //\n // } else if (more == (unsigned)(-1)) {\n // /* Very unlikely, but possible on 16 bit machine if\n // * strstart == 0 && lookahead == 1 (input done a byte at time)\n // */\n // more--;\n // }\n //}\n\n\n /* If the window is almost full and there is insufficient lookahead,\n * move the upper half to the lower one to make room in the upper half.\n */\n if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {\n\n arraySet(s.window, s.window, _w_size, _w_size, 0);\n s.match_start -= _w_size;\n s.strstart -= _w_size;\n /* we now have strstart >= MAX_DIST */\n s.block_start -= _w_size;\n\n /* Slide the hash table (could be avoided with 32 bit values\n at the expense of memory usage). We slide even when level == 0\n to keep the hash table consistent if we switch back to level > 0\n later. (Using level 0 permanently is not an optimal usage of\n zlib, so we don't care about this pathological case.)\n */\n\n n = s.hash_size;\n p = n;\n do {\n m = s.head[--p];\n s.head[p] = (m >= _w_size ? m - _w_size : 0);\n } while (--n);\n\n n = _w_size;\n p = n;\n do {\n m = s.prev[--p];\n s.prev[p] = (m >= _w_size ? m - _w_size : 0);\n /* If n is not on any hash chain, prev[n] is garbage but\n * its value will never be used.\n */\n } while (--n);\n\n more += _w_size;\n }\n if (s.strm.avail_in === 0) {\n break;\n }\n\n /* If there was no sliding:\n * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\n * more == window_size - lookahead - strstart\n * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\n * => more >= window_size - 2*WSIZE + 2\n * In the BIG_MEM or MMAP case (not yet supported),\n * window_size == input_size + MIN_LOOKAHEAD &&\n * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\n * Otherwise, window_size == 2*WSIZE so more >= 2.\n * If there was sliding, more >= WSIZE. So in all cases, more >= 2.\n */\n //Assert(more >= 2, \"more < 2\");\n n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);\n s.lookahead += n;\n\n /* Initialize the hash value now that we have some input: */\n if (s.lookahead + s.insert >= MIN_MATCH) {\n str = s.strstart - s.insert;\n s.ins_h = s.window[str];\n\n /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;\n //#if MIN_MATCH != 3\n // Call update_hash() MIN_MATCH-3 more times\n //#endif\n while (s.insert) {\n /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;\n\n s.prev[str & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = str;\n str++;\n s.insert--;\n if (s.lookahead + s.insert < MIN_MATCH) {\n break;\n }\n }\n }\n /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,\n * but this is not important since only literal bytes will be emitted.\n */\n\n } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);\n\n /* If the WIN_INIT bytes after the end of the current data have never been\n * written, then zero those bytes in order to avoid memory check reports of\n * the use of uninitialized (or uninitialised as Julian writes) bytes by\n * the longest match routines. Update the high water mark for the next\n * time through here. WIN_INIT is set to MAX_MATCH since the longest match\n * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.\n */\n // if (s.high_water < s.window_size) {\n // var curr = s.strstart + s.lookahead;\n // var init = 0;\n //\n // if (s.high_water < curr) {\n // /* Previous high water mark below current data -- zero WIN_INIT\n // * bytes or up to end of window, whichever is less.\n // */\n // init = s.window_size - curr;\n // if (init > WIN_INIT)\n // init = WIN_INIT;\n // zmemzero(s->window + curr, (unsigned)init);\n // s->high_water = curr + init;\n // }\n // else if (s->high_water < (ulg)curr + WIN_INIT) {\n // /* High water mark at or above current data, but below current data\n // * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up\n // * to end of window, whichever is less.\n // */\n // init = (ulg)curr + WIN_INIT - s->high_water;\n // if (init > s->window_size - s->high_water)\n // init = s->window_size - s->high_water;\n // zmemzero(s->window + s->high_water, (unsigned)init);\n // s->high_water += init;\n // }\n // }\n //\n // Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,\n // \"not enough room for search\");\n }\n\n /* ===========================================================================\n * Copy without compression as much as possible from the input stream, return\n * the current block state.\n * This function does not insert new strings in the dictionary since\n * uncompressible data is probably not useful. This function is used\n * only for the level=0 compression option.\n * NOTE: this function should be optimized to avoid extra copying from\n * window to pending_buf.\n */\n function deflate_stored(s, flush) {\n /* Stored blocks are limited to 0xffff bytes, pending_buf is limited\n * to pending_buf_size, and each stored block has a 5 byte header:\n */\n var max_block_size = 0xffff;\n\n if (max_block_size > s.pending_buf_size - 5) {\n max_block_size = s.pending_buf_size - 5;\n }\n\n /* Copy as much as possible from input to output: */\n for (;;) {\n /* Fill the window as much as possible: */\n if (s.lookahead <= 1) {\n\n //Assert(s->strstart < s->w_size+MAX_DIST(s) ||\n // s->block_start >= (long)s->w_size, \"slide too late\");\n // if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||\n // s.block_start >= s.w_size)) {\n // throw new Error(\"slide too late\");\n // }\n\n fill_window(s);\n if (s.lookahead === 0 && flush === Z_NO_FLUSH$1) {\n return BS_NEED_MORE;\n }\n\n if (s.lookahead === 0) {\n break;\n }\n /* flush the current block */\n }\n //Assert(s->block_start >= 0L, \"block gone\");\n // if (s.block_start < 0) throw new Error(\"block gone\");\n\n s.strstart += s.lookahead;\n s.lookahead = 0;\n\n /* Emit a stored block if pending_buf will be full: */\n var max_start = s.block_start + max_block_size;\n\n if (s.strstart === 0 || s.strstart >= max_start) {\n /* strstart == 0 is possible when wraparound on 16-bit machine */\n s.lookahead = s.strstart - max_start;\n s.strstart = max_start;\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n\n\n }\n /* Flush if we may have to slide, otherwise block_start may become\n * negative and the data will be gone:\n */\n if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n\n s.insert = 0;\n\n if (flush === Z_FINISH$2) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n\n if (s.strstart > s.block_start) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_NEED_MORE;\n }\n\n /* ===========================================================================\n * Compress as much as possible from the input stream, return the current\n * block state.\n * This function does not perform lazy evaluation of matches and inserts\n * new strings in the dictionary only for unmatched strings or for short\n * matches. It is used only for the fast compression options.\n */\n function deflate_fast(s, flush) {\n var hash_head; /* head of the hash chain */\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$1) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) {\n break; /* flush the current block */\n }\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0 /*NIL*/ ;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n * At this point we have always match_length < MIN_MATCH\n */\n if (hash_head !== 0 /*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n }\n if (s.match_length >= MIN_MATCH) {\n // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only\n\n /*** _tr_tally_dist(s, s.strstart - s.match_start,\n s.match_length - MIN_MATCH, bflush); ***/\n bflush = _tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n\n /* Insert new strings in the hash table only if the match length\n * is not too large. This saves time but degrades compression.\n */\n if (s.match_length <= s.max_lazy_match /*max_insert_length*/ && s.lookahead >= MIN_MATCH) {\n s.match_length--; /* string at strstart already in table */\n do {\n s.strstart++;\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n /* strstart never exceeds WSIZE-MAX_MATCH, so there are\n * always MIN_MATCH bytes ahead.\n */\n } while (--s.match_length !== 0);\n s.strstart++;\n } else {\n s.strstart += s.match_length;\n s.match_length = 0;\n s.ins_h = s.window[s.strstart];\n /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask;\n\n //#if MIN_MATCH != 3\n // Call UPDATE_HASH() MIN_MATCH-3 more times\n //#endif\n /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not\n * matter since it will be recomputed at next deflate call.\n */\n }\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s.window[s.strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);\n if (flush === Z_FINISH$2) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n }\n\n /* ===========================================================================\n * Same as above, but achieves better compression. We use a lazy\n * evaluation for matches: a match is finally adopted only if there is\n * no better match at the next window position.\n */\n function deflate_slow(s, flush) {\n var hash_head; /* head of hash chain */\n var bflush; /* set if current block must be flushed */\n\n var max_insert;\n\n /* Process the input block. */\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$1) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) {\n break;\n } /* flush the current block */\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0 /*NIL*/ ;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n */\n s.prev_length = s.match_length;\n s.prev_match = s.match_start;\n s.match_length = MIN_MATCH - 1;\n\n if (hash_head !== 0 /*NIL*/ && s.prev_length < s.max_lazy_match &&\n s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD) /*MAX_DIST(s)*/ ) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n\n if (s.match_length <= 5 &&\n (s.strategy === Z_FILTERED$1 || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096 /*TOO_FAR*/ ))) {\n\n /* If prev_match is also MIN_MATCH, match_start is garbage\n * but we will ignore the current match anyway.\n */\n s.match_length = MIN_MATCH - 1;\n }\n }\n /* If there was a match at the previous step and the current\n * match is not better, output the previous match:\n */\n if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {\n max_insert = s.strstart + s.lookahead - MIN_MATCH;\n /* Do not insert strings in hash table beyond this. */\n\n //check_match(s, s.strstart-1, s.prev_match, s.prev_length);\n\n /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,\n s.prev_length - MIN_MATCH, bflush);***/\n bflush = _tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);\n /* Insert in hash table all strings up to the end of the match.\n * strstart-1 and strstart are already inserted. If there is not\n * enough lookahead, the last two strings are not inserted in\n * the hash table.\n */\n s.lookahead -= s.prev_length - 1;\n s.prev_length -= 2;\n do {\n if (++s.strstart <= max_insert) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n } while (--s.prev_length !== 0);\n s.match_available = 0;\n s.match_length = MIN_MATCH - 1;\n s.strstart++;\n\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n } else if (s.match_available) {\n /* If there was no match at the previous position, output a\n * single literal. If there was a match but the current match\n * is longer, truncate the previous match to a single literal.\n */\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);\n\n if (bflush) {\n /*** FLUSH_BLOCK_ONLY(s, 0) ***/\n flush_block_only(s, false);\n /***/\n }\n s.strstart++;\n s.lookahead--;\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n } else {\n /* There is no previous match to compare with, wait for\n * the next step to decide.\n */\n s.match_available = 1;\n s.strstart++;\n s.lookahead--;\n }\n }\n //Assert (flush != Z_NO_FLUSH, \"no flush?\");\n if (s.match_available) {\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);\n\n s.match_available = 0;\n }\n s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;\n if (flush === Z_FINISH$2) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_BLOCK_DONE;\n }\n\n\n /* ===========================================================================\n * For Z_RLE, simply look for runs of bytes, generate matches only of distance\n * one. Do not maintain a hash table. (It will be regenerated if this run of\n * deflate switches away from Z_RLE.)\n */\n function deflate_rle(s, flush) {\n var bflush; /* set if current block must be flushed */\n var prev; /* byte at distance one to match */\n var scan, strend; /* scan goes up to strend for length of run */\n\n var _win = s.window;\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the longest run, plus one for the unrolled loop.\n */\n if (s.lookahead <= MAX_MATCH) {\n fill_window(s);\n if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH$1) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) {\n break;\n } /* flush the current block */\n }\n\n /* See how many times the previous byte repeats */\n s.match_length = 0;\n if (s.lookahead >= MIN_MATCH && s.strstart > 0) {\n scan = s.strstart - 1;\n prev = _win[scan];\n if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {\n strend = s.strstart + MAX_MATCH;\n do {\n /*jshint noempty:false*/\n } while (prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n scan < strend);\n s.match_length = MAX_MATCH - (strend - scan);\n if (s.match_length > s.lookahead) {\n s.match_length = s.lookahead;\n }\n }\n //Assert(scan <= s->window+(uInt)(s->window_size-1), \"wild scan\");\n }\n\n /* Emit match if have run of MIN_MATCH or longer, else emit literal */\n if (s.match_length >= MIN_MATCH) {\n //check_match(s, s.strstart, s.strstart - 1, s.match_length);\n\n /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/\n bflush = _tr_tally(s, 1, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n s.strstart += s.match_length;\n s.match_length = 0;\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH$2) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n }\n\n /* ===========================================================================\n * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.\n * (It will be regenerated if this run of deflate switches away from Huffman.)\n */\n function deflate_huff(s, flush) {\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we have a literal to write. */\n if (s.lookahead === 0) {\n fill_window(s);\n if (s.lookahead === 0) {\n if (flush === Z_NO_FLUSH$1) {\n return BS_NEED_MORE;\n }\n break; /* flush the current block */\n }\n }\n\n /* Output a literal byte */\n s.match_length = 0;\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart]);\n s.lookahead--;\n s.strstart++;\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH$2) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n }\n\n /* Values for max_lazy_match, good_match and max_chain_length, depending on\n * the desired pack level (0..9). The values given below have been tuned to\n * exclude worst case performance for pathological files. Better values may be\n * found for specific files.\n */\n function Config(good_length, max_lazy, nice_length, max_chain, func) {\n this.good_length = good_length;\n this.max_lazy = max_lazy;\n this.nice_length = nice_length;\n this.max_chain = max_chain;\n this.func = func;\n }\n\n var configuration_table;\n\n configuration_table = [\n /* good lazy nice chain */\n new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */\n new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */\n new Config(4, 5, 16, 8, deflate_fast), /* 2 */\n new Config(4, 6, 32, 32, deflate_fast), /* 3 */\n\n new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */\n new Config(8, 16, 32, 32, deflate_slow), /* 5 */\n new Config(8, 16, 128, 128, deflate_slow), /* 6 */\n new Config(8, 32, 128, 256, deflate_slow), /* 7 */\n new Config(32, 128, 258, 1024, deflate_slow), /* 8 */\n new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */\n ];\n\n\n /* ===========================================================================\n * Initialize the \"longest match\" routines for a new zlib stream\n */\n function lm_init(s) {\n s.window_size = 2 * s.w_size;\n\n /*** CLEAR_HASH(s); ***/\n zero(s.head); // Fill with NIL (= 0);\n\n /* Set the default configuration parameters:\n */\n s.max_lazy_match = configuration_table[s.level].max_lazy;\n s.good_match = configuration_table[s.level].good_length;\n s.nice_match = configuration_table[s.level].nice_length;\n s.max_chain_length = configuration_table[s.level].max_chain;\n\n s.strstart = 0;\n s.block_start = 0;\n s.lookahead = 0;\n s.insert = 0;\n s.match_length = s.prev_length = MIN_MATCH - 1;\n s.match_available = 0;\n s.ins_h = 0;\n }\n\n\n function DeflateState() {\n this.strm = null; /* pointer back to this zlib stream */\n this.status = 0; /* as the name implies */\n this.pending_buf = null; /* output still pending */\n this.pending_buf_size = 0; /* size of pending_buf */\n this.pending_out = 0; /* next pending byte to output to the stream */\n this.pending = 0; /* nb of bytes in the pending buffer */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.gzhead = null; /* gzip header information to write */\n this.gzindex = 0; /* where in extra, name, or comment */\n this.method = Z_DEFLATED$2; /* can only be DEFLATED */\n this.last_flush = -1; /* value of flush param for previous deflate call */\n\n this.w_size = 0; /* LZ77 window size (32K by default) */\n this.w_bits = 0; /* log2(w_size) (8..16) */\n this.w_mask = 0; /* w_size - 1 */\n\n this.window = null;\n /* Sliding window. Input bytes are read into the second half of the window,\n * and move to the first half later to keep a dictionary of at least wSize\n * bytes. With this organization, matches are limited to a distance of\n * wSize-MAX_MATCH bytes, but this ensures that IO is always\n * performed with a length multiple of the block size.\n */\n\n this.window_size = 0;\n /* Actual size of window: 2*wSize, except when the user input buffer\n * is directly used as sliding window.\n */\n\n this.prev = null;\n /* Link to older string with same hash index. To limit the size of this\n * array to 64K, this link is maintained only for the last 32K strings.\n * An index in this array is thus a window index modulo 32K.\n */\n\n this.head = null; /* Heads of the hash chains or NIL. */\n\n this.ins_h = 0; /* hash index of string to be inserted */\n this.hash_size = 0; /* number of elements in hash table */\n this.hash_bits = 0; /* log2(hash_size) */\n this.hash_mask = 0; /* hash_size-1 */\n\n this.hash_shift = 0;\n /* Number of bits by which ins_h must be shifted at each input\n * step. It must be such that after MIN_MATCH steps, the oldest\n * byte no longer takes part in the hash key, that is:\n * hash_shift * MIN_MATCH >= hash_bits\n */\n\n this.block_start = 0;\n /* Window position at the beginning of the current output block. Gets\n * negative when the window is moved backwards.\n */\n\n this.match_length = 0; /* length of best match */\n this.prev_match = 0; /* previous match */\n this.match_available = 0; /* set if previous match exists */\n this.strstart = 0; /* start of string to insert */\n this.match_start = 0; /* start of matching string */\n this.lookahead = 0; /* number of valid bytes ahead in window */\n\n this.prev_length = 0;\n /* Length of the best match at previous step. Matches not greater than this\n * are discarded. This is used in the lazy match evaluation.\n */\n\n this.max_chain_length = 0;\n /* To speed up deflation, hash chains are never searched beyond this\n * length. A higher limit improves compression ratio but degrades the\n * speed.\n */\n\n this.max_lazy_match = 0;\n /* Attempt to find a better match only when the current match is strictly\n * smaller than this value. This mechanism is used only for compression\n * levels >= 4.\n */\n // That's alias to max_lazy_match, don't use directly\n //this.max_insert_length = 0;\n /* Insert new strings in the hash table only if the match length is not\n * greater than this length. This saves time but degrades compression.\n * max_insert_length is used only for compression levels <= 3.\n */\n\n this.level = 0; /* compression level (1..9) */\n this.strategy = 0; /* favor or force Huffman coding*/\n\n this.good_match = 0;\n /* Use a faster search when the previous match is longer than this */\n\n this.nice_match = 0; /* Stop searching when current match exceeds this */\n\n /* used by c: */\n\n /* Didn't use ct_data typedef below to suppress compiler warning */\n\n // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */\n // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */\n // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */\n\n // Use flat array of DOUBLE size, with interleaved fata,\n // because JS does not support effective\n this.dyn_ltree = new Buf16(HEAP_SIZE * 2);\n this.dyn_dtree = new Buf16((2 * D_CODES + 1) * 2);\n this.bl_tree = new Buf16((2 * BL_CODES + 1) * 2);\n zero(this.dyn_ltree);\n zero(this.dyn_dtree);\n zero(this.bl_tree);\n\n this.l_desc = null; /* desc. for literal tree */\n this.d_desc = null; /* desc. for distance tree */\n this.bl_desc = null; /* desc. for bit length tree */\n\n //ush bl_count[MAX_BITS+1];\n this.bl_count = new Buf16(MAX_BITS + 1);\n /* number of codes at each bit length for an optimal tree */\n\n //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */\n this.heap = new Buf16(2 * L_CODES + 1); /* heap used to build the Huffman trees */\n zero(this.heap);\n\n this.heap_len = 0; /* number of elements in the heap */\n this.heap_max = 0; /* element of largest frequency */\n /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\n * The same heap array is used to build all\n */\n\n this.depth = new Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1];\n zero(this.depth);\n /* Depth of each subtree used as tie breaker for trees of equal frequency\n */\n\n this.l_buf = 0; /* buffer index for literals or lengths */\n\n this.lit_bufsize = 0;\n /* Size of match buffer for literals/lengths. There are 4 reasons for\n * limiting lit_bufsize to 64K:\n * - frequencies can be kept in 16 bit counters\n * - if compression is not successful for the first block, all input\n * data is still in the window so we can still emit a stored block even\n * when input comes from standard input. (This can also be done for\n * all blocks if lit_bufsize is not greater than 32K.)\n * - if compression is not successful for a file smaller than 64K, we can\n * even emit a stored file instead of a stored block (saving 5 bytes).\n * This is applicable only for zip (not gzip or zlib).\n * - creating new Huffman trees less frequently may not provide fast\n * adaptation to changes in the input data statistics. (Take for\n * example a binary file with poorly compressible code followed by\n * a highly compressible string table.) Smaller buffer sizes give\n * fast adaptation but have of course the overhead of transmitting\n * trees more frequently.\n * - I can't count above 4\n */\n\n this.last_lit = 0; /* running index in l_buf */\n\n this.d_buf = 0;\n /* Buffer index for distances. To simplify the code, d_buf and l_buf have\n * the same number of elements. To use different lengths, an extra flag\n * array would be necessary.\n */\n\n this.opt_len = 0; /* bit length of current block with optimal trees */\n this.static_len = 0; /* bit length of current block with static trees */\n this.matches = 0; /* number of string matches in current block */\n this.insert = 0; /* bytes at end of window left to insert */\n\n\n this.bi_buf = 0;\n /* Output buffer. bits are inserted starting at the bottom (least\n * significant bits).\n */\n this.bi_valid = 0;\n /* Number of valid bits in bi_buf. All bits above the last valid bit\n * are always zero.\n */\n\n // Used for window memory init. We safely ignore it for JS. That makes\n // sense only for pointers and memory check tools.\n //this.high_water = 0;\n /* High water mark offset in window for initialized bytes -- bytes above\n * this are set to zero in order to avoid memory check warnings when\n * longest match routines access bytes past the input. This is then\n * updated to the new high water mark.\n */\n }\n\n\n function deflateResetKeep(strm) {\n var s;\n\n if (!strm || !strm.state) {\n return err(strm, Z_STREAM_ERROR$2);\n }\n\n strm.total_in = strm.total_out = 0;\n strm.data_type = Z_UNKNOWN$1;\n\n s = strm.state;\n s.pending = 0;\n s.pending_out = 0;\n\n if (s.wrap < 0) {\n s.wrap = -s.wrap;\n /* was made negative by deflate(..., Z_FINISH); */\n }\n s.status = (s.wrap ? INIT_STATE : BUSY_STATE);\n strm.adler = (s.wrap === 2) ?\n 0 // crc32(0, Z_NULL, 0)\n :\n 1; // adler32(0, Z_NULL, 0)\n s.last_flush = Z_NO_FLUSH$1;\n _tr_init(s);\n return Z_OK$2;\n }\n\n\n function deflateReset(strm) {\n var ret = deflateResetKeep(strm);\n if (ret === Z_OK$2) {\n lm_init(strm.state);\n }\n return ret;\n }\n\n\n function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {\n if (!strm) { // === Z_NULL\n return Z_STREAM_ERROR$2;\n }\n var wrap = 1;\n\n if (level === Z_DEFAULT_COMPRESSION$1) {\n level = 6;\n }\n\n if (windowBits < 0) { /* suppress zlib wrapper */\n wrap = 0;\n windowBits = -windowBits;\n } else if (windowBits > 15) {\n wrap = 2; /* write gzip wrapper instead */\n windowBits -= 16;\n }\n\n\n if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED$2 ||\n windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||\n strategy < 0 || strategy > Z_FIXED$1) {\n return err(strm, Z_STREAM_ERROR$2);\n }\n\n\n if (windowBits === 8) {\n windowBits = 9;\n }\n /* until 256-byte window bug fixed */\n\n var s = new DeflateState();\n\n strm.state = s;\n s.strm = strm;\n\n s.wrap = wrap;\n s.gzhead = null;\n s.w_bits = windowBits;\n s.w_size = 1 << s.w_bits;\n s.w_mask = s.w_size - 1;\n\n s.hash_bits = memLevel + 7;\n s.hash_size = 1 << s.hash_bits;\n s.hash_mask = s.hash_size - 1;\n s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);\n\n s.window = new Buf8(s.w_size * 2);\n s.head = new Buf16(s.hash_size);\n s.prev = new Buf16(s.w_size);\n\n // Don't need mem init magic for JS.\n //s.high_water = 0; /* nothing written to s->window yet */\n\n s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */\n\n s.pending_buf_size = s.lit_bufsize * 4;\n\n //overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);\n //s->pending_buf = (uchf *) overlay;\n s.pending_buf = new Buf8(s.pending_buf_size);\n\n // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)\n //s->d_buf = overlay + s->lit_bufsize/sizeof(ush);\n s.d_buf = 1 * s.lit_bufsize;\n\n //s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;\n s.l_buf = (1 + 2) * s.lit_bufsize;\n\n s.level = level;\n s.strategy = strategy;\n s.method = method;\n\n return deflateReset(strm);\n }\n\n\n function deflate$1(strm, flush) {\n var old_flush, s;\n var beg, val; // for gzip header write only\n\n if (!strm || !strm.state ||\n flush > Z_BLOCK$2 || flush < 0) {\n return strm ? err(strm, Z_STREAM_ERROR$2) : Z_STREAM_ERROR$2;\n }\n\n s = strm.state;\n\n if (!strm.output ||\n (!strm.input && strm.avail_in !== 0) ||\n (s.status === FINISH_STATE && flush !== Z_FINISH$2)) {\n return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR$2 : Z_STREAM_ERROR$2);\n }\n\n s.strm = strm; /* just in case */\n old_flush = s.last_flush;\n s.last_flush = flush;\n\n /* Write the header */\n if (s.status === INIT_STATE) {\n if (s.wrap === 2) {\n // GZIP header\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n put_byte(s, 31);\n put_byte(s, 139);\n put_byte(s, 8);\n if (!s.gzhead) { // s->gzhead == Z_NULL\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY$1 || s.level < 2 ?\n 4 : 0));\n put_byte(s, OS_CODE);\n s.status = BUSY_STATE;\n } else {\n put_byte(s, (s.gzhead.text ? 1 : 0) +\n (s.gzhead.hcrc ? 2 : 0) +\n (!s.gzhead.extra ? 0 : 4) +\n (!s.gzhead.name ? 0 : 8) +\n (!s.gzhead.comment ? 0 : 16)\n );\n put_byte(s, s.gzhead.time & 0xff);\n put_byte(s, (s.gzhead.time >> 8) & 0xff);\n put_byte(s, (s.gzhead.time >> 16) & 0xff);\n put_byte(s, (s.gzhead.time >> 24) & 0xff);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY$1 || s.level < 2 ?\n 4 : 0));\n put_byte(s, s.gzhead.os & 0xff);\n if (s.gzhead.extra && s.gzhead.extra.length) {\n put_byte(s, s.gzhead.extra.length & 0xff);\n put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);\n }\n if (s.gzhead.hcrc) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);\n }\n s.gzindex = 0;\n s.status = EXTRA_STATE;\n }\n } else // DEFLATE header\n {\n var header = (Z_DEFLATED$2 + ((s.w_bits - 8) << 4)) << 8;\n var level_flags = -1;\n\n if (s.strategy >= Z_HUFFMAN_ONLY$1 || s.level < 2) {\n level_flags = 0;\n } else if (s.level < 6) {\n level_flags = 1;\n } else if (s.level === 6) {\n level_flags = 2;\n } else {\n level_flags = 3;\n }\n header |= (level_flags << 6);\n if (s.strstart !== 0) {\n header |= PRESET_DICT;\n }\n header += 31 - (header % 31);\n\n s.status = BUSY_STATE;\n putShortMSB(s, header);\n\n /* Save the adler32 of the preset dictionary: */\n if (s.strstart !== 0) {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n strm.adler = 1; // adler32(0L, Z_NULL, 0);\n }\n }\n\n //#ifdef GZIP\n if (s.status === EXTRA_STATE) {\n if (s.gzhead.extra /* != Z_NULL*/ ) {\n beg = s.pending; /* start of bytes to update crc */\n\n while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n break;\n }\n }\n put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);\n s.gzindex++;\n }\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (s.gzindex === s.gzhead.extra.length) {\n s.gzindex = 0;\n s.status = NAME_STATE;\n }\n } else {\n s.status = NAME_STATE;\n }\n }\n if (s.status === NAME_STATE) {\n if (s.gzhead.name /* != Z_NULL*/ ) {\n beg = s.pending; /* start of bytes to update crc */\n //int val;\n\n do {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n val = 1;\n break;\n }\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.name.length) {\n val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (val === 0) {\n s.gzindex = 0;\n s.status = COMMENT_STATE;\n }\n } else {\n s.status = COMMENT_STATE;\n }\n }\n if (s.status === COMMENT_STATE) {\n if (s.gzhead.comment /* != Z_NULL*/ ) {\n beg = s.pending; /* start of bytes to update crc */\n //int val;\n\n do {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n val = 1;\n break;\n }\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.comment.length) {\n val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (val === 0) {\n s.status = HCRC_STATE;\n }\n } else {\n s.status = HCRC_STATE;\n }\n }\n if (s.status === HCRC_STATE) {\n if (s.gzhead.hcrc) {\n if (s.pending + 2 > s.pending_buf_size) {\n flush_pending(strm);\n }\n if (s.pending + 2 <= s.pending_buf_size) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n s.status = BUSY_STATE;\n }\n } else {\n s.status = BUSY_STATE;\n }\n }\n //#endif\n\n /* Flush as much pending output as possible */\n if (s.pending !== 0) {\n flush_pending(strm);\n if (strm.avail_out === 0) {\n /* Since avail_out is 0, deflate will be called again with\n * more output space, but possibly with both pending and\n * avail_in equal to zero. There won't be anything to do,\n * but this is not an error situation so make sure we\n * return OK instead of BUF_ERROR at next call of deflate:\n */\n s.last_flush = -1;\n return Z_OK$2;\n }\n\n /* Make sure there is something to do and avoid duplicate consecutive\n * flushes. For repeated and useless calls with Z_FINISH, we keep\n * returning Z_STREAM_END instead of Z_BUF_ERROR.\n */\n } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&\n flush !== Z_FINISH$2) {\n return err(strm, Z_BUF_ERROR$2);\n }\n\n /* User must not provide more input after the first FINISH: */\n if (s.status === FINISH_STATE && strm.avail_in !== 0) {\n return err(strm, Z_BUF_ERROR$2);\n }\n\n /* Start a new block or continue the current one.\n */\n if (strm.avail_in !== 0 || s.lookahead !== 0 ||\n (flush !== Z_NO_FLUSH$1 && s.status !== FINISH_STATE)) {\n var bstate = (s.strategy === Z_HUFFMAN_ONLY$1) ? deflate_huff(s, flush) :\n (s.strategy === Z_RLE$1 ? deflate_rle(s, flush) :\n configuration_table[s.level].func(s, flush));\n\n if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {\n s.status = FINISH_STATE;\n }\n if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {\n if (strm.avail_out === 0) {\n s.last_flush = -1;\n /* avoid BUF_ERROR next call, see above */\n }\n return Z_OK$2;\n /* If flush != Z_NO_FLUSH && avail_out == 0, the next call\n * of deflate should use the same flush parameter to make sure\n * that the flush is complete. So we don't have to output an\n * empty block here, this will be done at next call. This also\n * ensures that for a very small output buffer, we emit at most\n * one empty block.\n */\n }\n if (bstate === BS_BLOCK_DONE) {\n if (flush === Z_PARTIAL_FLUSH$1) {\n _tr_align(s);\n } else if (flush !== Z_BLOCK$2) { /* FULL_FLUSH or SYNC_FLUSH */\n\n _tr_stored_block(s, 0, 0, false);\n /* For a full flush, this empty block will be recognized\n * as a special marker by inflate_sync().\n */\n if (flush === Z_FULL_FLUSH$1) {\n /*** CLEAR_HASH(s); ***/\n /* forget history */\n zero(s.head); // Fill with NIL (= 0);\n\n if (s.lookahead === 0) {\n s.strstart = 0;\n s.block_start = 0;\n s.insert = 0;\n }\n }\n }\n flush_pending(strm);\n if (strm.avail_out === 0) {\n s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */\n return Z_OK$2;\n }\n }\n }\n //Assert(strm->avail_out > 0, \"bug2\");\n //if (strm.avail_out <= 0) { throw new Error(\"bug2\");}\n\n if (flush !== Z_FINISH$2) {\n return Z_OK$2;\n }\n if (s.wrap <= 0) {\n return Z_STREAM_END$2;\n }\n\n /* Write the trailer */\n if (s.wrap === 2) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n put_byte(s, (strm.adler >> 16) & 0xff);\n put_byte(s, (strm.adler >> 24) & 0xff);\n put_byte(s, strm.total_in & 0xff);\n put_byte(s, (strm.total_in >> 8) & 0xff);\n put_byte(s, (strm.total_in >> 16) & 0xff);\n put_byte(s, (strm.total_in >> 24) & 0xff);\n } else {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n\n flush_pending(strm);\n /* If avail_out is zero, the application will call deflate again\n * to flush the rest.\n */\n if (s.wrap > 0) {\n s.wrap = -s.wrap;\n }\n /* write the trailer only once! */\n return s.pending !== 0 ? Z_OK$2 : Z_STREAM_END$2;\n }\n\n function deflateEnd(strm) {\n var status;\n\n if (!strm /*== Z_NULL*/ || !strm.state /*== Z_NULL*/ ) {\n return Z_STREAM_ERROR$2;\n }\n\n status = strm.state.status;\n if (status !== INIT_STATE &&\n status !== EXTRA_STATE &&\n status !== NAME_STATE &&\n status !== COMMENT_STATE &&\n status !== HCRC_STATE &&\n status !== BUSY_STATE &&\n status !== FINISH_STATE\n ) {\n return err(strm, Z_STREAM_ERROR$2);\n }\n\n strm.state = null;\n\n return status === BUSY_STATE ? err(strm, Z_DATA_ERROR$2) : Z_OK$2;\n }\n\n /* Not implemented\n exports.deflateBound = deflateBound;\n exports.deflateCopy = deflateCopy;\n exports.deflateParams = deflateParams;\n exports.deflatePending = deflatePending;\n exports.deflatePrime = deflatePrime;\n exports.deflateTune = deflateTune;\n */\n\n // See state defs from inflate.js\n var BAD$1 = 30; /* got a data error -- remain here until reset */\n var TYPE$1 = 12; /* i: waiting for type bits, including last-flag bit */\n\n /*\n Decode literal, length, and distance codes and write out the resulting\n literal and match bytes until either not enough input or output is\n available, an end-of-block is encountered, or a data error is encountered.\n When large enough input and output buffers are supplied to inflate(), for\n example, a 16K input buffer and a 64K output buffer, more than 95% of the\n inflate execution time is spent in this routine.\n\n Entry assumptions:\n\n state.mode === LEN\n strm.avail_in >= 6\n strm.avail_out >= 258\n start >= strm.avail_out\n state.bits < 8\n\n On return, state.mode is one of:\n\n LEN -- ran out of enough output space or enough available input\n TYPE -- reached end of block code, inflate() to interpret next block\n BAD -- error in block data\n\n Notes:\n\n - The maximum input bits used by a length/distance pair is 15 bits for the\n length code, 5 bits for the length extra, 15 bits for the distance code,\n and 13 bits for the distance extra. This totals 48 bits, or six bytes.\n Therefore if strm.avail_in >= 6, then there is enough input to avoid\n checking for available input while decoding.\n\n - The maximum bytes that a single length/distance pair can output is 258\n bytes, which is the maximum length that can be coded. inflate_fast()\n requires strm.avail_out >= 258 for each loop to avoid checking for\n output space.\n */\n function inflate_fast(strm, start) {\n var state;\n var _in; /* local strm.input */\n var last; /* have enough input while in < last */\n var _out; /* local strm.output */\n var beg; /* inflate()'s initial strm.output */\n var end; /* while out < end, enough space available */\n //#ifdef INFLATE_STRICT\n var dmax; /* maximum distance from zlib header */\n //#endif\n var wsize; /* window size or zero if not using window */\n var whave; /* valid bytes in the window */\n var wnext; /* window write index */\n // Use `s_window` instead `window`, avoid conflict with instrumentation tools\n var s_window; /* allocated sliding window, if wsize != 0 */\n var hold; /* local strm.hold */\n var bits; /* local strm.bits */\n var lcode; /* local strm.lencode */\n var dcode; /* local strm.distcode */\n var lmask; /* mask for first level of length codes */\n var dmask; /* mask for first level of distance codes */\n var here; /* retrieved table entry */\n var op; /* code bits, operation, extra bits, or */\n /* window position, window bytes to copy */\n var len; /* match length, unused bytes */\n var dist; /* match distance */\n var from; /* where to copy match from */\n var from_source;\n\n\n var input, output; // JS specific, because we have no pointers\n\n /* copy state to local variables */\n state = strm.state;\n //here = state.here;\n _in = strm.next_in;\n input = strm.input;\n last = _in + (strm.avail_in - 5);\n _out = strm.next_out;\n output = strm.output;\n beg = _out - (start - strm.avail_out);\n end = _out + (strm.avail_out - 257);\n //#ifdef INFLATE_STRICT\n dmax = state.dmax;\n //#endif\n wsize = state.wsize;\n whave = state.whave;\n wnext = state.wnext;\n s_window = state.window;\n hold = state.hold;\n bits = state.bits;\n lcode = state.lencode;\n dcode = state.distcode;\n lmask = (1 << state.lenbits) - 1;\n dmask = (1 << state.distbits) - 1;\n\n\n /* decode literals and length/distances until end-of-block or not enough\n input data or output space */\n\n top:\n do {\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n\n here = lcode[hold & lmask];\n\n dolen:\n for (;;) { // Goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n if (op === 0) { /* literal */\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n output[_out++] = here & 0xffff/*here.val*/;\n }\n else if (op & 16) { /* length base */\n len = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (op) {\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n len += hold & ((1 << op) - 1);\n hold >>>= op;\n bits -= op;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", len));\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n here = dcode[hold & dmask];\n\n dodist:\n for (;;) { // goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n\n if (op & 16) { /* distance base */\n dist = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n }\n dist += hold & ((1 << op) - 1);\n //#ifdef INFLATE_STRICT\n if (dist > dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD$1;\n break top;\n }\n //#endif\n hold >>>= op;\n bits -= op;\n //Tracevv((stderr, \"inflate: distance %u\\n\", dist));\n op = _out - beg; /* max distance in output */\n if (dist > op) { /* see if copy from window */\n op = dist - op; /* distance back in window */\n if (op > whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD$1;\n break top;\n }\n\n // (!) This block is disabled in zlib defailts,\n // don't enable it for binary compatibility\n //#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n // if (len <= op - whave) {\n // do {\n // output[_out++] = 0;\n // } while (--len);\n // continue top;\n // }\n // len -= op - whave;\n // do {\n // output[_out++] = 0;\n // } while (--op > whave);\n // if (op === 0) {\n // from = _out - dist;\n // do {\n // output[_out++] = output[from++];\n // } while (--len);\n // continue top;\n // }\n //#endif\n }\n from = 0; // window index\n from_source = s_window;\n if (wnext === 0) { /* very common case */\n from += wsize - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n else if (wnext < op) { /* wrap around window */\n from += wsize + wnext - op;\n op -= wnext;\n if (op < len) { /* some from end of window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = 0;\n if (wnext < len) { /* some from start of window */\n op = wnext;\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n }\n else { /* contiguous in window */\n from += wnext - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n while (len > 2) {\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n len -= 3;\n }\n if (len) {\n output[_out++] = from_source[from++];\n if (len > 1) {\n output[_out++] = from_source[from++];\n }\n }\n }\n else {\n from = _out - dist; /* copy direct from output */\n do { /* minimum length is three */\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n len -= 3;\n } while (len > 2);\n if (len) {\n output[_out++] = output[from++];\n if (len > 1) {\n output[_out++] = output[from++];\n }\n }\n }\n }\n else if ((op & 64) === 0) { /* 2nd level distance code */\n here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dodist;\n }\n else {\n strm.msg = 'invalid distance code';\n state.mode = BAD$1;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n }\n else if ((op & 64) === 0) { /* 2nd level length code */\n here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dolen;\n }\n else if (op & 32) { /* end-of-block */\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.mode = TYPE$1;\n break top;\n }\n else {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD$1;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n } while (_in < last && _out < end);\n\n /* return unused bytes (on entry, bits < 8, so in won't go too far back) */\n len = bits >> 3;\n _in -= len;\n bits -= len << 3;\n hold &= (1 << bits) - 1;\n\n /* update state and return */\n strm.next_in = _in;\n strm.next_out = _out;\n strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));\n strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));\n state.hold = hold;\n state.bits = bits;\n return;\n }\n\n var MAXBITS = 15;\n var ENOUGH_LENS$1 = 852;\n var ENOUGH_DISTS$1 = 592;\n //var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\n var CODES$1 = 0;\n var LENS$1 = 1;\n var DISTS$1 = 2;\n\n var lbase = [ /* Length codes 257..285 base */\n 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,\n 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0\n ];\n\n var lext = [ /* Length codes 257..285 extra */\n 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,\n 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78\n ];\n\n var dbase = [ /* Distance codes 0..29 base */\n 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,\n 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,\n 8193, 12289, 16385, 24577, 0, 0\n ];\n\n var dext = [ /* Distance codes 0..29 extra */\n 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,\n 23, 23, 24, 24, 25, 25, 26, 26, 27, 27,\n 28, 28, 29, 29, 64, 64\n ];\n\n function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts) {\n var bits = opts.bits;\n //here = opts.here; /* table entry for duplication */\n\n var len = 0; /* a code's length in bits */\n var sym = 0; /* index of code symbols */\n var min = 0,\n max = 0; /* minimum and maximum code lengths */\n var root = 0; /* number of index bits for root table */\n var curr = 0; /* number of index bits for current table */\n var drop = 0; /* code bits to drop for sub-table */\n var left = 0; /* number of prefix codes available */\n var used = 0; /* code entries in table used */\n var huff = 0; /* Huffman code */\n var incr; /* for incrementing code, index */\n var fill; /* index for replicating entries */\n var low; /* low bits for current root entry */\n var mask; /* mask for low root bits */\n var next; /* next available space in table */\n var base = null; /* base value table to use */\n var base_index = 0;\n // var shoextra; /* extra bits table to use */\n var end; /* use base and extra for symbol > end */\n var count = new Buf16(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */\n var offs = new Buf16(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */\n var extra = null;\n var extra_index = 0;\n\n var here_bits, here_op, here_val;\n\n /*\n Process a set of code lengths to create a canonical Huffman code. The\n code lengths are lens[0..codes-1]. Each length corresponds to the\n symbols 0..codes-1. The Huffman code is generated by first sorting the\n symbols by length from short to long, and retaining the symbol order\n for codes with equal lengths. Then the code starts with all zero bits\n for the first code of the shortest length, and the codes are integer\n increments for the same length, and zeros are appended as the length\n increases. For the deflate format, these bits are stored backwards\n from their more natural integer increment ordering, and so when the\n decoding tables are built in the large loop below, the integer codes\n are incremented backwards.\n\n This routine assumes, but does not check, that all of the entries in\n lens[] are in the range 0..MAXBITS. The caller must assure this.\n 1..MAXBITS is interpreted as that code length. zero means that that\n symbol does not occur in this code.\n\n The codes are sorted by computing a count of codes for each length,\n creating from that a table of starting indices for each length in the\n sorted table, and then entering the symbols in order in the sorted\n table. The sorted table is work[], with that space being provided by\n the caller.\n\n The length counts are used for other purposes as well, i.e. finding\n the minimum and maximum length codes, determining if there are any\n codes at all, checking for a valid set of lengths, and looking ahead\n at length counts to determine sub-table sizes when building the\n decoding tables.\n */\n\n /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */\n for (len = 0; len <= MAXBITS; len++) {\n count[len] = 0;\n }\n for (sym = 0; sym < codes; sym++) {\n count[lens[lens_index + sym]]++;\n }\n\n /* bound code lengths, force root to be within code lengths */\n root = bits;\n for (max = MAXBITS; max >= 1; max--) {\n if (count[max] !== 0) {\n break;\n }\n }\n if (root > max) {\n root = max;\n }\n if (max === 0) { /* no symbols to code at all */\n //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */\n //table.bits[opts.table_index] = 1; //here.bits = (var char)1;\n //table.val[opts.table_index++] = 0; //here.val = (var short)0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n\n //table.op[opts.table_index] = 64;\n //table.bits[opts.table_index] = 1;\n //table.val[opts.table_index++] = 0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n opts.bits = 1;\n return 0; /* no symbols, but wait for decoding to report error */\n }\n for (min = 1; min < max; min++) {\n if (count[min] !== 0) {\n break;\n }\n }\n if (root < min) {\n root = min;\n }\n\n /* check for an over-subscribed or incomplete set of lengths */\n left = 1;\n for (len = 1; len <= MAXBITS; len++) {\n left <<= 1;\n left -= count[len];\n if (left < 0) {\n return -1;\n } /* over-subscribed */\n }\n if (left > 0 && (type === CODES$1 || max !== 1)) {\n return -1; /* incomplete set */\n }\n\n /* generate offsets into symbol table for each length for sorting */\n offs[1] = 0;\n for (len = 1; len < MAXBITS; len++) {\n offs[len + 1] = offs[len] + count[len];\n }\n\n /* sort symbols by length, by symbol order within each length */\n for (sym = 0; sym < codes; sym++) {\n if (lens[lens_index + sym] !== 0) {\n work[offs[lens[lens_index + sym]]++] = sym;\n }\n }\n\n /*\n Create and fill in decoding tables. In this loop, the table being\n filled is at next and has curr index bits. The code being used is huff\n with length len. That code is converted to an index by dropping drop\n bits off of the bottom. For codes where len is less than drop + curr,\n those top drop + curr - len bits are incremented through all values to\n fill the table with replicated entries.\n\n root is the number of index bits for the root table. When len exceeds\n root, sub-tables are created pointed to by the root entry with an index\n of the low root bits of huff. This is saved in low to check for when a\n new sub-table should be started. drop is zero when the root table is\n being filled, and drop is root when sub-tables are being filled.\n\n When a new sub-table is needed, it is necessary to look ahead in the\n code lengths to determine what size sub-table is needed. The length\n counts are used for this, and so count[] is decremented as codes are\n entered in the tables.\n\n used keeps track of how many table entries have been allocated from the\n provided *table space. It is checked for LENS and DIST tables against\n the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\n the initial root table size constants. See the comments in inftrees.h\n for more information.\n\n sym increments through all symbols, and the loop terminates when\n all codes of length max, i.e. all codes, have been processed. This\n routine permits incomplete codes, so another loop after this one fills\n in the rest of the decoding tables with invalid code markers.\n */\n\n /* set up for code type */\n // poor man optimization - use if-else instead of switch,\n // to avoid deopts in old v8\n if (type === CODES$1) {\n base = extra = work; /* dummy value--not used */\n end = 19;\n\n } else if (type === LENS$1) {\n base = lbase;\n base_index -= 257;\n extra = lext;\n extra_index -= 257;\n end = 256;\n\n } else { /* DISTS */\n base = dbase;\n extra = dext;\n end = -1;\n }\n\n /* initialize opts for loop */\n huff = 0; /* starting code */\n sym = 0; /* starting code symbol */\n len = min; /* starting code length */\n next = table_index; /* current table to fill in */\n curr = root; /* current table index bits */\n drop = 0; /* current bits to drop from code for index */\n low = -1; /* trigger new sub-table when len > root */\n used = 1 << root; /* use root table entries */\n mask = used - 1; /* mask for comparing low */\n\n /* check available table space */\n if ((type === LENS$1 && used > ENOUGH_LENS$1) ||\n (type === DISTS$1 && used > ENOUGH_DISTS$1)) {\n return 1;\n }\n /* process all codes and make table entries */\n for (;;) {\n /* create table entry */\n here_bits = len - drop;\n if (work[sym] < end) {\n here_op = 0;\n here_val = work[sym];\n } else if (work[sym] > end) {\n here_op = extra[extra_index + work[sym]];\n here_val = base[base_index + work[sym]];\n } else {\n here_op = 32 + 64; /* end of block */\n here_val = 0;\n }\n\n /* replicate for those indices with low len bits equal to huff */\n incr = 1 << (len - drop);\n fill = 1 << curr;\n min = fill; /* save offset to next table */\n do {\n fill -= incr;\n table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val | 0;\n } while (fill !== 0);\n\n /* backwards increment the len-bit code huff */\n incr = 1 << (len - 1);\n while (huff & incr) {\n incr >>= 1;\n }\n if (incr !== 0) {\n huff &= incr - 1;\n huff += incr;\n } else {\n huff = 0;\n }\n\n /* go to next symbol, update count, len */\n sym++;\n if (--count[len] === 0) {\n if (len === max) {\n break;\n }\n len = lens[lens_index + work[sym]];\n }\n\n /* create new sub-table if needed */\n if (len > root && (huff & mask) !== low) {\n /* if first time, transition to sub-tables */\n if (drop === 0) {\n drop = root;\n }\n\n /* increment past last table */\n next += min; /* here min is 1 << curr */\n\n /* determine length of next table */\n curr = len - drop;\n left = 1 << curr;\n while (curr + drop < max) {\n left -= count[curr + drop];\n if (left <= 0) {\n break;\n }\n curr++;\n left <<= 1;\n }\n\n /* check for enough space */\n used += 1 << curr;\n if ((type === LENS$1 && used > ENOUGH_LENS$1) ||\n (type === DISTS$1 && used > ENOUGH_DISTS$1)) {\n return 1;\n }\n\n /* point entry in root table to sub-table */\n low = huff & mask;\n /*table.op[low] = curr;\n table.bits[low] = root;\n table.val[low] = next - opts.table_index;*/\n table[low] = (root << 24) | (curr << 16) | (next - table_index) | 0;\n }\n }\n\n /* fill in remaining table entry if code is incomplete (guaranteed to have\n at most one remaining entry, since if the code is incomplete, the\n maximum code length that was allowed to get this far is one bit) */\n if (huff !== 0) {\n //table.op[next + huff] = 64; /* invalid code marker */\n //table.bits[next + huff] = len - drop;\n //table.val[next + huff] = 0;\n table[next + huff] = ((len - drop) << 24) | (64 << 16) | 0;\n }\n\n /* set return parameters */\n //opts.table_index += used;\n opts.bits = root;\n return 0;\n }\n\n var CODES = 0;\n var LENS = 1;\n var DISTS = 2;\n\n /* Public constants ==========================================================*/\n /* ===========================================================================*/\n\n\n /* Allowed flush values; see deflate() and inflate() below for details */\n //var Z_NO_FLUSH = 0;\n //var Z_PARTIAL_FLUSH = 1;\n //var Z_SYNC_FLUSH = 2;\n //var Z_FULL_FLUSH = 3;\n var Z_FINISH$1 = 4;\n var Z_BLOCK$1 = 5;\n var Z_TREES$1 = 6;\n\n\n /* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\n var Z_OK$1 = 0;\n var Z_STREAM_END$1 = 1;\n var Z_NEED_DICT$1 = 2;\n //var Z_ERRNO = -1;\n var Z_STREAM_ERROR$1 = -2;\n var Z_DATA_ERROR$1 = -3;\n var Z_MEM_ERROR = -4;\n var Z_BUF_ERROR$1 = -5;\n //var Z_VERSION_ERROR = -6;\n\n /* The deflate compression method */\n var Z_DEFLATED$1 = 8;\n\n\n /* STATES ====================================================================*/\n /* ===========================================================================*/\n\n\n var HEAD = 1; /* i: waiting for magic header */\n var FLAGS = 2; /* i: waiting for method and flags (gzip) */\n var TIME = 3; /* i: waiting for modification time (gzip) */\n var OS = 4; /* i: waiting for extra flags and operating system (gzip) */\n var EXLEN = 5; /* i: waiting for extra length (gzip) */\n var EXTRA = 6; /* i: waiting for extra bytes (gzip) */\n var NAME = 7; /* i: waiting for end of file name (gzip) */\n var COMMENT = 8; /* i: waiting for end of comment (gzip) */\n var HCRC = 9; /* i: waiting for header crc (gzip) */\n var DICTID = 10; /* i: waiting for dictionary check value */\n var DICT = 11; /* waiting for inflateSetDictionary() call */\n var TYPE = 12; /* i: waiting for type bits, including last-flag bit */\n var TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */\n var STORED = 14; /* i: waiting for stored size (length and complement) */\n var COPY_ = 15; /* i/o: same as COPY below, but only first time in */\n var COPY = 16; /* i/o: waiting for input or output to copy stored block */\n var TABLE = 17; /* i: waiting for dynamic block table lengths */\n var LENLENS = 18; /* i: waiting for code length code lengths */\n var CODELENS = 19; /* i: waiting for length/lit and distance code lengths */\n var LEN_ = 20; /* i: same as LEN below, but only first time in */\n var LEN = 21; /* i: waiting for length/lit/eob code */\n var LENEXT = 22; /* i: waiting for length extra bits */\n var DIST = 23; /* i: waiting for distance code */\n var DISTEXT = 24; /* i: waiting for distance extra bits */\n var MATCH = 25; /* o: waiting for output space to copy string */\n var LIT = 26; /* o: waiting for output space to write literal */\n var CHECK = 27; /* i: waiting for 32-bit check value */\n var LENGTH = 28; /* i: waiting for 32-bit length (gzip) */\n var DONE = 29; /* finished check, done -- remain here until reset */\n var BAD = 30; /* got a data error -- remain here until reset */\n var MEM = 31; /* got an inflate() memory error -- remain here until reset */\n var SYNC = 32; /* looking for synchronization bytes to restart inflate() */\n\n /* ===========================================================================*/\n\n\n\n var ENOUGH_LENS = 852;\n var ENOUGH_DISTS = 592;\n\n\n function zswap32(q) {\n return (((q >>> 24) & 0xff) +\n ((q >>> 8) & 0xff00) +\n ((q & 0xff00) << 8) +\n ((q & 0xff) << 24));\n }\n\n\n function InflateState() {\n this.mode = 0; /* current inflate mode */\n this.last = false; /* true if processing last block */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.havedict = false; /* true if dictionary provided */\n this.flags = 0; /* gzip header method and flags (0 if zlib) */\n this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */\n this.check = 0; /* protected copy of check value */\n this.total = 0; /* protected copy of output count */\n // TODO: may be {}\n this.head = null; /* where to save gzip header information */\n\n /* sliding window */\n this.wbits = 0; /* log base 2 of requested window size */\n this.wsize = 0; /* window size or zero if not using window */\n this.whave = 0; /* valid bytes in the window */\n this.wnext = 0; /* window write index */\n this.window = null; /* allocated sliding window, if needed */\n\n /* bit accumulator */\n this.hold = 0; /* input bit accumulator */\n this.bits = 0; /* number of bits in \"in\" */\n\n /* for string and stored block copying */\n this.length = 0; /* literal or length of data to copy */\n this.offset = 0; /* distance back to copy string from */\n\n /* for table and code decoding */\n this.extra = 0; /* extra bits needed */\n\n /* fixed and dynamic code tables */\n this.lencode = null; /* starting table for length/literal codes */\n this.distcode = null; /* starting table for distance codes */\n this.lenbits = 0; /* index bits for lencode */\n this.distbits = 0; /* index bits for distcode */\n\n /* dynamic table building */\n this.ncode = 0; /* number of code length code lengths */\n this.nlen = 0; /* number of length code lengths */\n this.ndist = 0; /* number of distance code lengths */\n this.have = 0; /* number of code lengths in lens[] */\n this.next = null; /* next available space in codes[] */\n\n this.lens = new Buf16(320); /* temporary storage for code lengths */\n this.work = new Buf16(288); /* work area for code table building */\n\n /*\n because we don't have pointers in js, we use lencode and distcode directly\n as buffers so we don't need codes\n */\n //this.codes = new Buf32(ENOUGH); /* space for code tables */\n this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */\n this.distdyn = null; /* dynamic table for distance codes (JS specific) */\n this.sane = 0; /* if false, allow invalid distance too far */\n this.back = 0; /* bits back of last unprocessed length/lit */\n this.was = 0; /* initial length of match */\n }\n\n function inflateResetKeep(strm) {\n var state;\n\n if (!strm || !strm.state) {\n return Z_STREAM_ERROR$1;\n }\n state = strm.state;\n strm.total_in = strm.total_out = state.total = 0;\n strm.msg = ''; /*Z_NULL*/\n if (state.wrap) { /* to support ill-conceived Java test suite */\n strm.adler = state.wrap & 1;\n }\n state.mode = HEAD;\n state.last = 0;\n state.havedict = 0;\n state.dmax = 32768;\n state.head = null /*Z_NULL*/ ;\n state.hold = 0;\n state.bits = 0;\n //state.lencode = state.distcode = state.next = state.codes;\n state.lencode = state.lendyn = new Buf32(ENOUGH_LENS);\n state.distcode = state.distdyn = new Buf32(ENOUGH_DISTS);\n\n state.sane = 1;\n state.back = -1;\n //Tracev((stderr, \"inflate: reset\\n\"));\n return Z_OK$1;\n }\n\n function inflateReset(strm) {\n var state;\n\n if (!strm || !strm.state) {\n return Z_STREAM_ERROR$1;\n }\n state = strm.state;\n state.wsize = 0;\n state.whave = 0;\n state.wnext = 0;\n return inflateResetKeep(strm);\n\n }\n\n function inflateReset2(strm, windowBits) {\n var wrap;\n var state;\n\n /* get the state */\n if (!strm || !strm.state) {\n return Z_STREAM_ERROR$1;\n }\n state = strm.state;\n\n /* extract wrap request from windowBits parameter */\n if (windowBits < 0) {\n wrap = 0;\n windowBits = -windowBits;\n } else {\n wrap = (windowBits >> 4) + 1;\n if (windowBits < 48) {\n windowBits &= 15;\n }\n }\n\n /* set number of window bits, free window if different */\n if (windowBits && (windowBits < 8 || windowBits > 15)) {\n return Z_STREAM_ERROR$1;\n }\n if (state.window !== null && state.wbits !== windowBits) {\n state.window = null;\n }\n\n /* update state and reset the rest of it */\n state.wrap = wrap;\n state.wbits = windowBits;\n return inflateReset(strm);\n }\n\n function inflateInit2(strm, windowBits) {\n var ret;\n var state;\n\n if (!strm) {\n return Z_STREAM_ERROR$1;\n }\n //strm.msg = Z_NULL; /* in case we return an error */\n\n state = new InflateState();\n\n //if (state === Z_NULL) return Z_MEM_ERROR;\n //Tracev((stderr, \"inflate: allocated\\n\"));\n strm.state = state;\n state.window = null /*Z_NULL*/ ;\n ret = inflateReset2(strm, windowBits);\n if (ret !== Z_OK$1) {\n strm.state = null /*Z_NULL*/ ;\n }\n return ret;\n }\n\n\n /*\n Return state with length and distance decoding tables and index sizes set to\n fixed code decoding. Normally this returns fixed tables from inffixed.h.\n If BUILDFIXED is defined, then instead this routine builds the tables the\n first time it's called, and returns those tables the first time and\n thereafter. This reduces the size of the code by about 2K bytes, in\n exchange for a little execution time. However, BUILDFIXED should not be\n used for threaded applications, since the rewriting of the tables and virgin\n may not be thread-safe.\n */\n var virgin = true;\n\n var lenfix, distfix; // We have no pointers in JS, so keep tables separate\n\n function fixedtables(state) {\n /* build fixed huffman tables if first call (may not be thread safe) */\n if (virgin) {\n var sym;\n\n lenfix = new Buf32(512);\n distfix = new Buf32(32);\n\n /* literal/length table */\n sym = 0;\n while (sym < 144) {\n state.lens[sym++] = 8;\n }\n while (sym < 256) {\n state.lens[sym++] = 9;\n }\n while (sym < 280) {\n state.lens[sym++] = 7;\n }\n while (sym < 288) {\n state.lens[sym++] = 8;\n }\n\n inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, {\n bits: 9\n });\n\n /* distance table */\n sym = 0;\n while (sym < 32) {\n state.lens[sym++] = 5;\n }\n\n inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, {\n bits: 5\n });\n\n /* do this just once */\n virgin = false;\n }\n\n state.lencode = lenfix;\n state.lenbits = 9;\n state.distcode = distfix;\n state.distbits = 5;\n }\n\n\n /*\n Update the window with the last wsize (normally 32K) bytes written before\n returning. If window does not exist yet, create it. This is only called\n when a window is already in use, or when output has been written during this\n inflate call, but the end of the deflate stream has not been reached yet.\n It is also called to create a window for dictionary data when a dictionary\n is loaded.\n\n Providing output buffers larger than 32K to inflate() should provide a speed\n advantage, since only the last 32K of output is copied to the sliding window\n upon return from inflate(), and since all distances after the first 32K of\n output will fall in the output data, making match copies simpler and faster.\n The advantage may be dependent on the size of the processor's data caches.\n */\n function updatewindow(strm, src, end, copy) {\n var dist;\n var state = strm.state;\n\n /* if it hasn't been done already, allocate space for the window */\n if (state.window === null) {\n state.wsize = 1 << state.wbits;\n state.wnext = 0;\n state.whave = 0;\n\n state.window = new Buf8(state.wsize);\n }\n\n /* copy state->wsize or less output bytes into the circular window */\n if (copy >= state.wsize) {\n arraySet(state.window, src, end - state.wsize, state.wsize, 0);\n state.wnext = 0;\n state.whave = state.wsize;\n } else {\n dist = state.wsize - state.wnext;\n if (dist > copy) {\n dist = copy;\n }\n //zmemcpy(state->window + state->wnext, end - copy, dist);\n arraySet(state.window, src, end - copy, dist, state.wnext);\n copy -= dist;\n if (copy) {\n //zmemcpy(state->window, end - copy, copy);\n arraySet(state.window, src, end - copy, copy, 0);\n state.wnext = copy;\n state.whave = state.wsize;\n } else {\n state.wnext += dist;\n if (state.wnext === state.wsize) {\n state.wnext = 0;\n }\n if (state.whave < state.wsize) {\n state.whave += dist;\n }\n }\n }\n return 0;\n }\n\n function inflate$1(strm, flush) {\n var state;\n var input, output; // input/output buffers\n var next; /* next input INDEX */\n var put; /* next output INDEX */\n var have, left; /* available input and output */\n var hold; /* bit buffer */\n var bits; /* bits in bit buffer */\n var _in, _out; /* save starting available input and output */\n var copy; /* number of stored or match bytes to copy */\n var from; /* where to copy match bytes from */\n var from_source;\n var here = 0; /* current decoding table entry */\n var here_bits, here_op, here_val; // paked \"here\" denormalized (JS specific)\n //var last; /* parent table entry */\n var last_bits, last_op, last_val; // paked \"last\" denormalized (JS specific)\n var len; /* length to copy for repeats, bits to drop */\n var ret; /* return code */\n var hbuf = new Buf8(4); /* buffer for gzip header crc calculation */\n var opts;\n\n var n; // temporary var for NEED_BITS\n\n var order = /* permutation of code lengths */ [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];\n\n\n if (!strm || !strm.state || !strm.output ||\n (!strm.input && strm.avail_in !== 0)) {\n return Z_STREAM_ERROR$1;\n }\n\n state = strm.state;\n if (state.mode === TYPE) {\n state.mode = TYPEDO;\n } /* skip check */\n\n\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n _in = have;\n _out = left;\n ret = Z_OK$1;\n\n inf_leave: // goto emulation\n for (;;) {\n switch (state.mode) {\n case HEAD:\n if (state.wrap === 0) {\n state.mode = TYPEDO;\n break;\n }\n //=== NEEDBITS(16);\n while (bits < 16) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */\n state.check = 0 /*crc32(0L, Z_NULL, 0)*/ ;\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = FLAGS;\n break;\n }\n state.flags = 0; /* expect zlib header */\n if (state.head) {\n state.head.done = false;\n }\n if (!(state.wrap & 1) || /* check if zlib header allowed */\n (((hold & 0xff) /*BITS(8)*/ << 8) + (hold >> 8)) % 31) {\n strm.msg = 'incorrect header check';\n state.mode = BAD;\n break;\n }\n if ((hold & 0x0f) /*BITS(4)*/ !== Z_DEFLATED$1) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n len = (hold & 0x0f) /*BITS(4)*/ + 8;\n if (state.wbits === 0) {\n state.wbits = len;\n } else if (len > state.wbits) {\n strm.msg = 'invalid window size';\n state.mode = BAD;\n break;\n }\n state.dmax = 1 << len;\n //Tracev((stderr, \"inflate: zlib header ok\\n\"));\n strm.adler = state.check = 1 /*adler32(0L, Z_NULL, 0)*/ ;\n state.mode = hold & 0x200 ? DICTID : TYPE;\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n break;\n case FLAGS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.flags = hold;\n if ((state.flags & 0xff) !== Z_DEFLATED$1) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n if (state.flags & 0xe000) {\n strm.msg = 'unknown header flags set';\n state.mode = BAD;\n break;\n }\n if (state.head) {\n state.head.text = ((hold >> 8) & 1);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = TIME;\n /* falls through */\n case TIME:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.time = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC4(state.check, hold)\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n hbuf[2] = (hold >>> 16) & 0xff;\n hbuf[3] = (hold >>> 24) & 0xff;\n state.check = crc32(state.check, hbuf, 4, 0);\n //===\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = OS;\n /* falls through */\n case OS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.xflags = (hold & 0xff);\n state.head.os = (hold >> 8);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = EXLEN;\n /* falls through */\n case EXLEN:\n if (state.flags & 0x0400) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length = hold;\n if (state.head) {\n state.head.extra_len = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n } else if (state.head) {\n state.head.extra = null /*Z_NULL*/ ;\n }\n state.mode = EXTRA;\n /* falls through */\n case EXTRA:\n if (state.flags & 0x0400) {\n copy = state.length;\n if (copy > have) {\n copy = have;\n }\n if (copy) {\n if (state.head) {\n len = state.head.extra_len - state.length;\n if (!state.head.extra) {\n // Use untyped array for more conveniend processing later\n state.head.extra = new Array(state.head.extra_len);\n }\n arraySet(\n state.head.extra,\n input,\n next,\n // extra field is limited to 65536 bytes\n // - no need for additional size check\n copy,\n /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/\n len\n );\n //zmemcpy(state.head.extra + len, next,\n // len + copy > state.head.extra_max ?\n // state.head.extra_max - len : copy);\n }\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n state.length -= copy;\n }\n if (state.length) {\n break inf_leave;\n }\n }\n state.length = 0;\n state.mode = NAME;\n /* falls through */\n case NAME:\n if (state.flags & 0x0800) {\n if (have === 0) {\n break inf_leave;\n }\n copy = 0;\n do {\n // TODO: 2 or 1 bytes?\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.name_max*/ )) {\n state.head.name += String.fromCharCode(len);\n }\n } while (len && copy < have);\n\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) {\n break inf_leave;\n }\n } else if (state.head) {\n state.head.name = null;\n }\n state.length = 0;\n state.mode = COMMENT;\n /* falls through */\n case COMMENT:\n if (state.flags & 0x1000) {\n if (have === 0) {\n break inf_leave;\n }\n copy = 0;\n do {\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.comm_max*/ )) {\n state.head.comment += String.fromCharCode(len);\n }\n } while (len && copy < have);\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) {\n break inf_leave;\n }\n } else if (state.head) {\n state.head.comment = null;\n }\n state.mode = HCRC;\n /* falls through */\n case HCRC:\n if (state.flags & 0x0200) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.check & 0xffff)) {\n strm.msg = 'header crc mismatch';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n if (state.head) {\n state.head.hcrc = ((state.flags >> 9) & 1);\n state.head.done = true;\n }\n strm.adler = state.check = 0;\n state.mode = TYPE;\n break;\n case DICTID:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n strm.adler = state.check = zswap32(hold);\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = DICT;\n /* falls through */\n case DICT:\n if (state.havedict === 0) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n return Z_NEED_DICT$1;\n }\n strm.adler = state.check = 1 /*adler32(0L, Z_NULL, 0)*/ ;\n state.mode = TYPE;\n /* falls through */\n case TYPE:\n if (flush === Z_BLOCK$1 || flush === Z_TREES$1) {\n break inf_leave;\n }\n /* falls through */\n case TYPEDO:\n if (state.last) {\n //--- BYTEBITS() ---//\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n state.mode = CHECK;\n break;\n }\n //=== NEEDBITS(3); */\n while (bits < 3) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.last = (hold & 0x01) /*BITS(1)*/ ;\n //--- DROPBITS(1) ---//\n hold >>>= 1;\n bits -= 1;\n //---//\n\n switch ((hold & 0x03) /*BITS(2)*/ ) {\n case 0:\n /* stored block */\n //Tracev((stderr, \"inflate: stored block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = STORED;\n break;\n case 1:\n /* fixed block */\n fixedtables(state);\n //Tracev((stderr, \"inflate: fixed codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = LEN_; /* decode codes */\n if (flush === Z_TREES$1) {\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break inf_leave;\n }\n break;\n case 2:\n /* dynamic block */\n //Tracev((stderr, \"inflate: dynamic codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = TABLE;\n break;\n case 3:\n strm.msg = 'invalid block type';\n state.mode = BAD;\n }\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break;\n case STORED:\n //--- BYTEBITS() ---// /* go to byte boundary */\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {\n strm.msg = 'invalid stored block lengths';\n state.mode = BAD;\n break;\n }\n state.length = hold & 0xffff;\n //Tracev((stderr, \"inflate: stored length %u\\n\",\n // state.length));\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = COPY_;\n if (flush === Z_TREES$1) {\n break inf_leave;\n }\n /* falls through */\n case COPY_:\n state.mode = COPY;\n /* falls through */\n case COPY:\n copy = state.length;\n if (copy) {\n if (copy > have) {\n copy = have;\n }\n if (copy > left) {\n copy = left;\n }\n if (copy === 0) {\n break inf_leave;\n }\n //--- zmemcpy(put, next, copy); ---\n arraySet(output, input, next, copy, put);\n //---//\n have -= copy;\n next += copy;\n left -= copy;\n put += copy;\n state.length -= copy;\n break;\n }\n //Tracev((stderr, \"inflate: stored end\\n\"));\n state.mode = TYPE;\n break;\n case TABLE:\n //=== NEEDBITS(14); */\n while (bits < 14) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.nlen = (hold & 0x1f) /*BITS(5)*/ + 257;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ndist = (hold & 0x1f) /*BITS(5)*/ + 1;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ncode = (hold & 0x0f) /*BITS(4)*/ + 4;\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n //#ifndef PKZIP_BUG_WORKAROUND\n if (state.nlen > 286 || state.ndist > 30) {\n strm.msg = 'too many length or distance symbols';\n state.mode = BAD;\n break;\n }\n //#endif\n //Tracev((stderr, \"inflate: table sizes ok\\n\"));\n state.have = 0;\n state.mode = LENLENS;\n /* falls through */\n case LENLENS:\n while (state.have < state.ncode) {\n //=== NEEDBITS(3);\n while (bits < 3) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.lens[order[state.have++]] = (hold & 0x07); //BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n while (state.have < 19) {\n state.lens[order[state.have++]] = 0;\n }\n // We have separate tables & no pointers. 2 commented lines below not needed.\n //state.next = state.codes;\n //state.lencode = state.next;\n // Switch to use dynamic table\n state.lencode = state.lendyn;\n state.lenbits = 7;\n\n opts = {\n bits: state.lenbits\n };\n ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);\n state.lenbits = opts.bits;\n\n if (ret) {\n strm.msg = 'invalid code lengths set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, \"inflate: code lengths ok\\n\"));\n state.have = 0;\n state.mode = CODELENS;\n /* falls through */\n case CODELENS:\n while (state.have < state.nlen + state.ndist) {\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) {\n break;\n }\n //--- PULLBYTE() ---//\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_val < 16) {\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.lens[state.have++] = here_val;\n } else {\n if (here_val === 16) {\n //=== NEEDBITS(here.bits + 2);\n n = here_bits + 2;\n while (bits < n) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n if (state.have === 0) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n len = state.lens[state.have - 1];\n copy = 3 + (hold & 0x03); //BITS(2);\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n } else if (here_val === 17) {\n //=== NEEDBITS(here.bits + 3);\n n = here_bits + 3;\n while (bits < n) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 3 + (hold & 0x07); //BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n } else {\n //=== NEEDBITS(here.bits + 7);\n n = here_bits + 7;\n while (bits < n) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 11 + (hold & 0x7f); //BITS(7);\n //--- DROPBITS(7) ---//\n hold >>>= 7;\n bits -= 7;\n //---//\n }\n if (state.have + copy > state.nlen + state.ndist) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n while (copy--) {\n state.lens[state.have++] = len;\n }\n }\n }\n\n /* handle error breaks in while */\n if (state.mode === BAD) {\n break;\n }\n\n /* check for end-of-block code (better have one) */\n if (state.lens[256] === 0) {\n strm.msg = 'invalid code -- missing end-of-block';\n state.mode = BAD;\n break;\n }\n\n /* build code tables -- note: do not change the lenbits or distbits\n values here (9 and 6) without reading the comments in inftrees.h\n concerning the ENOUGH constants, which depend on those values */\n state.lenbits = 9;\n\n opts = {\n bits: state.lenbits\n };\n ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.lenbits = opts.bits;\n // state.lencode = state.next;\n\n if (ret) {\n strm.msg = 'invalid literal/lengths set';\n state.mode = BAD;\n break;\n }\n\n state.distbits = 6;\n //state.distcode.copy(state.codes);\n // Switch to use dynamic table\n state.distcode = state.distdyn;\n opts = {\n bits: state.distbits\n };\n ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.distbits = opts.bits;\n // state.distcode = state.next;\n\n if (ret) {\n strm.msg = 'invalid distances set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, 'inflate: codes ok\\n'));\n state.mode = LEN_;\n if (flush === Z_TREES$1) {\n break inf_leave;\n }\n /* falls through */\n case LEN_:\n state.mode = LEN;\n /* falls through */\n case LEN:\n if (have >= 6 && left >= 258) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n inflate_fast(strm, _out);\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n if (state.mode === TYPE) {\n state.back = -1;\n }\n break;\n }\n state.back = 0;\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if (here_bits <= bits) {\n break;\n }\n //--- PULLBYTE() ---//\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_op && (here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.lencode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1)) /*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) {\n break;\n }\n //--- PULLBYTE() ---//\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n state.length = here_val;\n if (here_op === 0) {\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n state.mode = LIT;\n break;\n }\n if (here_op & 32) {\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.back = -1;\n state.mode = TYPE;\n break;\n }\n if (here_op & 64) {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break;\n }\n state.extra = here_op & 15;\n state.mode = LENEXT;\n /* falls through */\n case LENEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length += hold & ((1 << state.extra) - 1) /*BITS(state.extra)*/ ;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", state.length));\n state.was = state.length;\n state.mode = DIST;\n /* falls through */\n case DIST:\n for (;;) {\n here = state.distcode[hold & ((1 << state.distbits) - 1)]; /*BITS(state.distbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) {\n break;\n }\n //--- PULLBYTE() ---//\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if ((here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.distcode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1)) /*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) {\n break;\n }\n //--- PULLBYTE() ---//\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n if (here_op & 64) {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break;\n }\n state.offset = here_val;\n state.extra = (here_op) & 15;\n state.mode = DISTEXT;\n /* falls through */\n case DISTEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.offset += hold & ((1 << state.extra) - 1) /*BITS(state.extra)*/ ;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n //#ifdef INFLATE_STRICT\n if (state.offset > state.dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n //#endif\n //Tracevv((stderr, \"inflate: distance %u\\n\", state.offset));\n state.mode = MATCH;\n /* falls through */\n case MATCH:\n if (left === 0) {\n break inf_leave;\n }\n copy = _out - left;\n if (state.offset > copy) { /* copy from window */\n copy = state.offset - copy;\n if (copy > state.whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n // (!) This block is disabled in zlib defailts,\n // don't enable it for binary compatibility\n //#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n // Trace((stderr, \"inflate.c too far\\n\"));\n // copy -= state.whave;\n // if (copy > state.length) { copy = state.length; }\n // if (copy > left) { copy = left; }\n // left -= copy;\n // state.length -= copy;\n // do {\n // output[put++] = 0;\n // } while (--copy);\n // if (state.length === 0) { state.mode = LEN; }\n // break;\n //#endif\n }\n if (copy > state.wnext) {\n copy -= state.wnext;\n from = state.wsize - copy;\n } else {\n from = state.wnext - copy;\n }\n if (copy > state.length) {\n copy = state.length;\n }\n from_source = state.window;\n } else { /* copy from output */\n from_source = output;\n from = put - state.offset;\n copy = state.length;\n }\n if (copy > left) {\n copy = left;\n }\n left -= copy;\n state.length -= copy;\n do {\n output[put++] = from_source[from++];\n } while (--copy);\n if (state.length === 0) {\n state.mode = LEN;\n }\n break;\n case LIT:\n if (left === 0) {\n break inf_leave;\n }\n output[put++] = state.length;\n left--;\n state.mode = LEN;\n break;\n case CHECK:\n if (state.wrap) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n // Use '|' insdead of '+' to make sure that result is signed\n hold |= input[next++] << bits;\n bits += 8;\n }\n //===//\n _out -= left;\n strm.total_out += _out;\n state.total += _out;\n if (_out) {\n strm.adler = state.check =\n /*UPDATE(state.check, put - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));\n\n }\n _out = left;\n // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\n if ((state.flags ? hold : zswap32(hold)) !== state.check) {\n strm.msg = 'incorrect data check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: check matches trailer\\n\"));\n }\n state.mode = LENGTH;\n /* falls through */\n case LENGTH:\n if (state.wrap && state.flags) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) {\n break inf_leave;\n }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.total & 0xffffffff)) {\n strm.msg = 'incorrect length check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: length matches trailer\\n\"));\n }\n state.mode = DONE;\n /* falls through */\n case DONE:\n ret = Z_STREAM_END$1;\n break inf_leave;\n case BAD:\n ret = Z_DATA_ERROR$1;\n break inf_leave;\n case MEM:\n return Z_MEM_ERROR;\n case SYNC:\n /* falls through */\n default:\n return Z_STREAM_ERROR$1;\n }\n }\n\n // inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\n\n /*\n Return from inflate(), updating the total counts and the check value.\n If there was no progress during the inflate() call, return a buffer\n error. Call updatewindow() to create and/or update the window state.\n Note: a memory error from inflate() is non-recoverable.\n */\n\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n\n if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&\n (state.mode < CHECK || flush !== Z_FINISH$1))) {\n if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) ;\n }\n _in -= strm.avail_in;\n _out -= strm.avail_out;\n strm.total_in += _in;\n strm.total_out += _out;\n state.total += _out;\n if (state.wrap && _out) {\n strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));\n }\n strm.data_type = state.bits + (state.last ? 64 : 0) +\n (state.mode === TYPE ? 128 : 0) +\n (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);\n if (((_in === 0 && _out === 0) || flush === Z_FINISH$1) && ret === Z_OK$1) {\n ret = Z_BUF_ERROR$1;\n }\n return ret;\n }\n\n function inflateEnd(strm) {\n\n if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/ ) {\n return Z_STREAM_ERROR$1;\n }\n\n var state = strm.state;\n if (state.window) {\n state.window = null;\n }\n strm.state = null;\n return Z_OK$1;\n }\n\n /* Not implemented\n exports.inflateCopy = inflateCopy;\n exports.inflateGetDictionary = inflateGetDictionary;\n exports.inflateMark = inflateMark;\n exports.inflatePrime = inflatePrime;\n exports.inflateSync = inflateSync;\n exports.inflateSyncPoint = inflateSyncPoint;\n exports.inflateUndermine = inflateUndermine;\n */\n\n // import constants from './constants';\n\n\n // zlib modes\n var NONE = 0;\n var DEFLATE = 1;\n var INFLATE = 2;\n var GZIP = 3;\n var GUNZIP = 4;\n var DEFLATERAW = 5;\n var INFLATERAW = 6;\n var UNZIP = 7;\n var Z_NO_FLUSH= 0,\n Z_PARTIAL_FLUSH= 1,\n Z_SYNC_FLUSH= 2,\n Z_FULL_FLUSH= 3,\n Z_FINISH= 4,\n Z_BLOCK= 5,\n Z_TREES= 6,\n\n /* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\n Z_OK= 0,\n Z_STREAM_END= 1,\n Z_NEED_DICT= 2,\n Z_ERRNO= -1,\n Z_STREAM_ERROR= -2,\n Z_DATA_ERROR= -3,\n //Z_MEM_ERROR: -4,\n Z_BUF_ERROR= -5,\n //Z_VERSION_ERROR: -6,\n\n /* compression levels */\n Z_NO_COMPRESSION= 0,\n Z_BEST_SPEED= 1,\n Z_BEST_COMPRESSION= 9,\n Z_DEFAULT_COMPRESSION= -1,\n\n\n Z_FILTERED= 1,\n Z_HUFFMAN_ONLY= 2,\n Z_RLE= 3,\n Z_FIXED= 4,\n Z_DEFAULT_STRATEGY= 0,\n\n /* Possible values of the data_type field (though see inflate()) */\n Z_BINARY= 0,\n Z_TEXT= 1,\n //Z_ASCII: 1, // = Z_TEXT (deprecated)\n Z_UNKNOWN= 2,\n\n /* The deflate compression method */\n Z_DEFLATED= 8;\n function Zlib$1(mode) {\n if (mode < DEFLATE || mode > UNZIP)\n throw new TypeError('Bad argument');\n\n this.mode = mode;\n this.init_done = false;\n this.write_in_progress = false;\n this.pending_close = false;\n this.windowBits = 0;\n this.level = 0;\n this.memLevel = 0;\n this.strategy = 0;\n this.dictionary = null;\n }\n\n Zlib$1.prototype.init = function(windowBits, level, memLevel, strategy, dictionary) {\n this.windowBits = windowBits;\n this.level = level;\n this.memLevel = memLevel;\n this.strategy = strategy;\n // dictionary not supported.\n\n if (this.mode === GZIP || this.mode === GUNZIP)\n this.windowBits += 16;\n\n if (this.mode === UNZIP)\n this.windowBits += 32;\n\n if (this.mode === DEFLATERAW || this.mode === INFLATERAW)\n this.windowBits = -this.windowBits;\n\n this.strm = new ZStream();\n var status;\n switch (this.mode) {\n case DEFLATE:\n case GZIP:\n case DEFLATERAW:\n status = deflateInit2(\n this.strm,\n this.level,\n Z_DEFLATED,\n this.windowBits,\n this.memLevel,\n this.strategy\n );\n break;\n case INFLATE:\n case GUNZIP:\n case INFLATERAW:\n case UNZIP:\n status = inflateInit2(\n this.strm,\n this.windowBits\n );\n break;\n default:\n throw new Error('Unknown mode ' + this.mode);\n }\n\n if (status !== Z_OK) {\n this._error(status);\n return;\n }\n\n this.write_in_progress = false;\n this.init_done = true;\n };\n\n Zlib$1.prototype.params = function() {\n throw new Error('deflateParams Not supported');\n };\n\n Zlib$1.prototype._writeCheck = function() {\n if (!this.init_done)\n throw new Error('write before init');\n\n if (this.mode === NONE)\n throw new Error('already finalized');\n\n if (this.write_in_progress)\n throw new Error('write already in progress');\n\n if (this.pending_close)\n throw new Error('close is pending');\n };\n\n Zlib$1.prototype.write = function(flush, input, in_off, in_len, out, out_off, out_len) {\n this._writeCheck();\n this.write_in_progress = true;\n\n var self = this;\n nextTick(function() {\n self.write_in_progress = false;\n var res = self._write(flush, input, in_off, in_len, out, out_off, out_len);\n self.callback(res[0], res[1]);\n\n if (self.pending_close)\n self.close();\n });\n\n return this;\n };\n\n // set method for Node buffers, used by pako\n function bufferSet(data, offset) {\n for (var i = 0; i < data.length; i++) {\n this[offset + i] = data[i];\n }\n }\n\n Zlib$1.prototype.writeSync = function(flush, input, in_off, in_len, out, out_off, out_len) {\n this._writeCheck();\n return this._write(flush, input, in_off, in_len, out, out_off, out_len);\n };\n\n Zlib$1.prototype._write = function(flush, input, in_off, in_len, out, out_off, out_len) {\n this.write_in_progress = true;\n\n if (flush !== Z_NO_FLUSH &&\n flush !== Z_PARTIAL_FLUSH &&\n flush !== Z_SYNC_FLUSH &&\n flush !== Z_FULL_FLUSH &&\n flush !== Z_FINISH &&\n flush !== Z_BLOCK) {\n throw new Error('Invalid flush value');\n }\n\n if (input == null) {\n input = new Buffer(0);\n in_len = 0;\n in_off = 0;\n }\n\n if (out._set)\n out.set = out._set;\n else\n out.set = bufferSet;\n\n var strm = this.strm;\n strm.avail_in = in_len;\n strm.input = input;\n strm.next_in = in_off;\n strm.avail_out = out_len;\n strm.output = out;\n strm.next_out = out_off;\n var status;\n switch (this.mode) {\n case DEFLATE:\n case GZIP:\n case DEFLATERAW:\n status = deflate$1(strm, flush);\n break;\n case UNZIP:\n case INFLATE:\n case GUNZIP:\n case INFLATERAW:\n status = inflate$1(strm, flush);\n break;\n default:\n throw new Error('Unknown mode ' + this.mode);\n }\n\n if (status !== Z_STREAM_END && status !== Z_OK) {\n this._error(status);\n }\n\n this.write_in_progress = false;\n return [strm.avail_in, strm.avail_out];\n };\n\n Zlib$1.prototype.close = function() {\n if (this.write_in_progress) {\n this.pending_close = true;\n return;\n }\n\n this.pending_close = false;\n\n if (this.mode === DEFLATE || this.mode === GZIP || this.mode === DEFLATERAW) {\n deflateEnd(this.strm);\n } else {\n inflateEnd(this.strm);\n }\n\n this.mode = NONE;\n };\n var status;\n Zlib$1.prototype.reset = function() {\n switch (this.mode) {\n case DEFLATE:\n case DEFLATERAW:\n status = deflateReset(this.strm);\n break;\n case INFLATE:\n case INFLATERAW:\n status = inflateReset(this.strm);\n break;\n }\n\n if (status !== Z_OK) {\n this._error(status);\n }\n };\n\n Zlib$1.prototype._error = function(status) {\n this.onerror(msg[status] + ': ' + this.strm.msg, status);\n\n this.write_in_progress = false;\n if (this.pending_close)\n this.close();\n };\n\n var _binding = /*#__PURE__*/Object.freeze({\n __proto__: null,\n DEFLATE: DEFLATE,\n DEFLATERAW: DEFLATERAW,\n GUNZIP: GUNZIP,\n GZIP: GZIP,\n INFLATE: INFLATE,\n INFLATERAW: INFLATERAW,\n NONE: NONE,\n UNZIP: UNZIP,\n Z_BEST_COMPRESSION: Z_BEST_COMPRESSION,\n Z_BEST_SPEED: Z_BEST_SPEED,\n Z_BINARY: Z_BINARY,\n Z_BLOCK: Z_BLOCK,\n Z_BUF_ERROR: Z_BUF_ERROR,\n Z_DATA_ERROR: Z_DATA_ERROR,\n Z_DEFAULT_COMPRESSION: Z_DEFAULT_COMPRESSION,\n Z_DEFAULT_STRATEGY: Z_DEFAULT_STRATEGY,\n Z_DEFLATED: Z_DEFLATED,\n Z_ERRNO: Z_ERRNO,\n Z_FILTERED: Z_FILTERED,\n Z_FINISH: Z_FINISH,\n Z_FIXED: Z_FIXED,\n Z_FULL_FLUSH: Z_FULL_FLUSH,\n Z_HUFFMAN_ONLY: Z_HUFFMAN_ONLY,\n Z_NEED_DICT: Z_NEED_DICT,\n Z_NO_COMPRESSION: Z_NO_COMPRESSION,\n Z_NO_FLUSH: Z_NO_FLUSH,\n Z_OK: Z_OK,\n Z_PARTIAL_FLUSH: Z_PARTIAL_FLUSH,\n Z_RLE: Z_RLE,\n Z_STREAM_END: Z_STREAM_END,\n Z_STREAM_ERROR: Z_STREAM_ERROR,\n Z_SYNC_FLUSH: Z_SYNC_FLUSH,\n Z_TEXT: Z_TEXT,\n Z_TREES: Z_TREES,\n Z_UNKNOWN: Z_UNKNOWN,\n Zlib: Zlib$1\n });\n\n function assert (a, msg) {\n if (!a) {\n throw new Error(msg);\n }\n }\n var binding = {};\n Object.keys(_binding).forEach(function (key) {\n binding[key] = _binding[key];\n });\n // zlib doesn't provide these, so kludge them in following the same\n // const naming scheme zlib uses.\n binding.Z_MIN_WINDOWBITS = 8;\n binding.Z_MAX_WINDOWBITS = 15;\n binding.Z_DEFAULT_WINDOWBITS = 15;\n\n // fewer than 64 bytes per chunk is stupid.\n // technically it could work with as few as 8, but even 64 bytes\n // is absurdly low. Usually a MB or more is best.\n binding.Z_MIN_CHUNK = 64;\n binding.Z_MAX_CHUNK = Infinity;\n binding.Z_DEFAULT_CHUNK = (16 * 1024);\n\n binding.Z_MIN_MEMLEVEL = 1;\n binding.Z_MAX_MEMLEVEL = 9;\n binding.Z_DEFAULT_MEMLEVEL = 8;\n\n binding.Z_MIN_LEVEL = -1;\n binding.Z_MAX_LEVEL = 9;\n binding.Z_DEFAULT_LEVEL = binding.Z_DEFAULT_COMPRESSION;\n\n\n // translation table for return codes.\n var codes = {\n Z_OK: binding.Z_OK,\n Z_STREAM_END: binding.Z_STREAM_END,\n Z_NEED_DICT: binding.Z_NEED_DICT,\n Z_ERRNO: binding.Z_ERRNO,\n Z_STREAM_ERROR: binding.Z_STREAM_ERROR,\n Z_DATA_ERROR: binding.Z_DATA_ERROR,\n Z_MEM_ERROR: binding.Z_MEM_ERROR,\n Z_BUF_ERROR: binding.Z_BUF_ERROR,\n Z_VERSION_ERROR: binding.Z_VERSION_ERROR\n };\n\n Object.keys(codes).forEach(function(k) {\n codes[codes[k]] = k;\n });\n\n function createDeflate(o) {\n return new Deflate(o);\n }\n\n function createInflate(o) {\n return new Inflate(o);\n }\n\n function createDeflateRaw(o) {\n return new DeflateRaw(o);\n }\n\n function createInflateRaw(o) {\n return new InflateRaw(o);\n }\n\n function createGzip(o) {\n return new Gzip(o);\n }\n\n function createGunzip(o) {\n return new Gunzip(o);\n }\n\n function createUnzip(o) {\n return new Unzip(o);\n }\n\n\n // Convenience methods.\n // compress/decompress a string or buffer in one step.\n function deflate(buffer, opts, callback) {\n if (typeof opts === 'function') {\n callback = opts;\n opts = {};\n }\n return zlibBuffer(new Deflate(opts), buffer, callback);\n }\n\n function deflateSync(buffer, opts) {\n return zlibBufferSync(new Deflate(opts), buffer);\n }\n\n function gzip(buffer, opts, callback) {\n if (typeof opts === 'function') {\n callback = opts;\n opts = {};\n }\n return zlibBuffer(new Gzip(opts), buffer, callback);\n }\n\n function gzipSync(buffer, opts) {\n return zlibBufferSync(new Gzip(opts), buffer);\n }\n\n function deflateRaw(buffer, opts, callback) {\n if (typeof opts === 'function') {\n callback = opts;\n opts = {};\n }\n return zlibBuffer(new DeflateRaw(opts), buffer, callback);\n }\n\n function deflateRawSync(buffer, opts) {\n return zlibBufferSync(new DeflateRaw(opts), buffer);\n }\n\n function unzip(buffer, opts, callback) {\n if (typeof opts === 'function') {\n callback = opts;\n opts = {};\n }\n return zlibBuffer(new Unzip(opts), buffer, callback);\n }\n\n function unzipSync(buffer, opts) {\n return zlibBufferSync(new Unzip(opts), buffer);\n }\n\n function inflate(buffer, opts, callback) {\n if (typeof opts === 'function') {\n callback = opts;\n opts = {};\n }\n return zlibBuffer(new Inflate(opts), buffer, callback);\n }\n\n function inflateSync(buffer, opts) {\n return zlibBufferSync(new Inflate(opts), buffer);\n }\n\n function gunzip(buffer, opts, callback) {\n if (typeof opts === 'function') {\n callback = opts;\n opts = {};\n }\n return zlibBuffer(new Gunzip(opts), buffer, callback);\n }\n\n function gunzipSync(buffer, opts) {\n return zlibBufferSync(new Gunzip(opts), buffer);\n }\n\n function inflateRaw(buffer, opts, callback) {\n if (typeof opts === 'function') {\n callback = opts;\n opts = {};\n }\n return zlibBuffer(new InflateRaw(opts), buffer, callback);\n }\n\n function inflateRawSync(buffer, opts) {\n return zlibBufferSync(new InflateRaw(opts), buffer);\n }\n\n function zlibBuffer(engine, buffer, callback) {\n var buffers = [];\n var nread = 0;\n\n engine.on('error', onError);\n engine.on('end', onEnd);\n\n engine.end(buffer);\n flow();\n\n function flow() {\n var chunk;\n while (null !== (chunk = engine.read())) {\n buffers.push(chunk);\n nread += chunk.length;\n }\n engine.once('readable', flow);\n }\n\n function onError(err) {\n engine.removeListener('end', onEnd);\n engine.removeListener('readable', flow);\n callback(err);\n }\n\n function onEnd() {\n var buf = Buffer.concat(buffers, nread);\n buffers = [];\n callback(null, buf);\n engine.close();\n }\n }\n\n function zlibBufferSync(engine, buffer) {\n if (typeof buffer === 'string')\n buffer = new Buffer(buffer);\n if (!isBuffer(buffer))\n throw new TypeError('Not a string or buffer');\n\n var flushFlag = binding.Z_FINISH;\n\n return engine._processChunk(buffer, flushFlag);\n }\n\n // generic zlib\n // minimal 2-byte header\n function Deflate(opts) {\n if (!(this instanceof Deflate)) return new Deflate(opts);\n Zlib.call(this, opts, binding.DEFLATE);\n }\n\n function Inflate(opts) {\n if (!(this instanceof Inflate)) return new Inflate(opts);\n Zlib.call(this, opts, binding.INFLATE);\n }\n\n\n\n // gzip - bigger header, same deflate compression\n function Gzip(opts) {\n if (!(this instanceof Gzip)) return new Gzip(opts);\n Zlib.call(this, opts, binding.GZIP);\n }\n\n function Gunzip(opts) {\n if (!(this instanceof Gunzip)) return new Gunzip(opts);\n Zlib.call(this, opts, binding.GUNZIP);\n }\n\n\n\n // raw - no header\n function DeflateRaw(opts) {\n if (!(this instanceof DeflateRaw)) return new DeflateRaw(opts);\n Zlib.call(this, opts, binding.DEFLATERAW);\n }\n\n function InflateRaw(opts) {\n if (!(this instanceof InflateRaw)) return new InflateRaw(opts);\n Zlib.call(this, opts, binding.INFLATERAW);\n }\n\n\n // auto-detect header.\n function Unzip(opts) {\n if (!(this instanceof Unzip)) return new Unzip(opts);\n Zlib.call(this, opts, binding.UNZIP);\n }\n\n\n // the Zlib class they all inherit from\n // This thing manages the queue of requests, and returns\n // true or false if there is anything in the queue when\n // you call the .write() method.\n\n function Zlib(opts, mode) {\n this._opts = opts = opts || {};\n this._chunkSize = opts.chunkSize || binding.Z_DEFAULT_CHUNK;\n\n Transform.call(this, opts);\n\n if (opts.flush) {\n if (opts.flush !== binding.Z_NO_FLUSH &&\n opts.flush !== binding.Z_PARTIAL_FLUSH &&\n opts.flush !== binding.Z_SYNC_FLUSH &&\n opts.flush !== binding.Z_FULL_FLUSH &&\n opts.flush !== binding.Z_FINISH &&\n opts.flush !== binding.Z_BLOCK) {\n throw new Error('Invalid flush flag: ' + opts.flush);\n }\n }\n this._flushFlag = opts.flush || binding.Z_NO_FLUSH;\n\n if (opts.chunkSize) {\n if (opts.chunkSize < binding.Z_MIN_CHUNK ||\n opts.chunkSize > binding.Z_MAX_CHUNK) {\n throw new Error('Invalid chunk size: ' + opts.chunkSize);\n }\n }\n\n if (opts.windowBits) {\n if (opts.windowBits < binding.Z_MIN_WINDOWBITS ||\n opts.windowBits > binding.Z_MAX_WINDOWBITS) {\n throw new Error('Invalid windowBits: ' + opts.windowBits);\n }\n }\n\n if (opts.level) {\n if (opts.level < binding.Z_MIN_LEVEL ||\n opts.level > binding.Z_MAX_LEVEL) {\n throw new Error('Invalid compression level: ' + opts.level);\n }\n }\n\n if (opts.memLevel) {\n if (opts.memLevel < binding.Z_MIN_MEMLEVEL ||\n opts.memLevel > binding.Z_MAX_MEMLEVEL) {\n throw new Error('Invalid memLevel: ' + opts.memLevel);\n }\n }\n\n if (opts.strategy) {\n if (opts.strategy != binding.Z_FILTERED &&\n opts.strategy != binding.Z_HUFFMAN_ONLY &&\n opts.strategy != binding.Z_RLE &&\n opts.strategy != binding.Z_FIXED &&\n opts.strategy != binding.Z_DEFAULT_STRATEGY) {\n throw new Error('Invalid strategy: ' + opts.strategy);\n }\n }\n\n if (opts.dictionary) {\n if (!isBuffer(opts.dictionary)) {\n throw new Error('Invalid dictionary: it should be a Buffer instance');\n }\n }\n\n this._binding = new binding.Zlib(mode);\n\n var self = this;\n this._hadError = false;\n this._binding.onerror = function(message, errno) {\n // there is no way to cleanly recover.\n // continuing only obscures problems.\n self._binding = null;\n self._hadError = true;\n\n var error = new Error(message);\n error.errno = errno;\n error.code = binding.codes[errno];\n self.emit('error', error);\n };\n\n var level = binding.Z_DEFAULT_COMPRESSION;\n if (typeof opts.level === 'number') level = opts.level;\n\n var strategy = binding.Z_DEFAULT_STRATEGY;\n if (typeof opts.strategy === 'number') strategy = opts.strategy;\n\n this._binding.init(opts.windowBits || binding.Z_DEFAULT_WINDOWBITS,\n level,\n opts.memLevel || binding.Z_DEFAULT_MEMLEVEL,\n strategy,\n opts.dictionary);\n\n this._buffer = new Buffer(this._chunkSize);\n this._offset = 0;\n this._closed = false;\n this._level = level;\n this._strategy = strategy;\n\n this.once('end', this.close);\n }\n\n inherits$1(Zlib, Transform);\n\n Zlib.prototype.params = function(level, strategy, callback) {\n if (level < binding.Z_MIN_LEVEL ||\n level > binding.Z_MAX_LEVEL) {\n throw new RangeError('Invalid compression level: ' + level);\n }\n if (strategy != binding.Z_FILTERED &&\n strategy != binding.Z_HUFFMAN_ONLY &&\n strategy != binding.Z_RLE &&\n strategy != binding.Z_FIXED &&\n strategy != binding.Z_DEFAULT_STRATEGY) {\n throw new TypeError('Invalid strategy: ' + strategy);\n }\n\n if (this._level !== level || this._strategy !== strategy) {\n var self = this;\n this.flush(binding.Z_SYNC_FLUSH, function() {\n self._binding.params(level, strategy);\n if (!self._hadError) {\n self._level = level;\n self._strategy = strategy;\n if (callback) callback();\n }\n });\n } else {\n nextTick(callback);\n }\n };\n\n Zlib.prototype.reset = function() {\n return this._binding.reset();\n };\n\n // This is the _flush function called by the transform class,\n // internally, when the last chunk has been written.\n Zlib.prototype._flush = function(callback) {\n this._transform(new Buffer(0), '', callback);\n };\n\n Zlib.prototype.flush = function(kind, callback) {\n var ws = this._writableState;\n\n if (typeof kind === 'function' || (kind === void 0 && !callback)) {\n callback = kind;\n kind = binding.Z_FULL_FLUSH;\n }\n\n if (ws.ended) {\n if (callback)\n nextTick(callback);\n } else if (ws.ending) {\n if (callback)\n this.once('end', callback);\n } else if (ws.needDrain) {\n var self = this;\n this.once('drain', function() {\n self.flush(callback);\n });\n } else {\n this._flushFlag = kind;\n this.write(new Buffer(0), '', callback);\n }\n };\n\n Zlib.prototype.close = function(callback) {\n if (callback)\n nextTick(callback);\n\n if (this._closed)\n return;\n\n this._closed = true;\n\n this._binding.close();\n\n var self = this;\n nextTick(function() {\n self.emit('close');\n });\n };\n\n Zlib.prototype._transform = function(chunk, encoding, cb) {\n var flushFlag;\n var ws = this._writableState;\n var ending = ws.ending || ws.ended;\n var last = ending && (!chunk || ws.length === chunk.length);\n\n if (!chunk === null && !isBuffer(chunk))\n return cb(new Error('invalid input'));\n\n // If it's the last chunk, or a final flush, we use the Z_FINISH flush flag.\n // If it's explicitly flushing at some other time, then we use\n // Z_FULL_FLUSH. Otherwise, use Z_NO_FLUSH for maximum compression\n // goodness.\n if (last)\n flushFlag = binding.Z_FINISH;\n else {\n flushFlag = this._flushFlag;\n // once we've flushed the last of the queue, stop flushing and\n // go back to the normal behavior.\n if (chunk.length >= ws.length) {\n this._flushFlag = this._opts.flush || binding.Z_NO_FLUSH;\n }\n }\n\n this._processChunk(chunk, flushFlag, cb);\n };\n\n Zlib.prototype._processChunk = function(chunk, flushFlag, cb) {\n var availInBefore = chunk && chunk.length;\n var availOutBefore = this._chunkSize - this._offset;\n var inOff = 0;\n\n var self = this;\n\n var async = typeof cb === 'function';\n\n if (!async) {\n var buffers = [];\n var nread = 0;\n\n var error;\n this.on('error', function(er) {\n error = er;\n });\n\n do {\n var res = this._binding.writeSync(flushFlag,\n chunk, // in\n inOff, // in_off\n availInBefore, // in_len\n this._buffer, // out\n this._offset, //out_off\n availOutBefore); // out_len\n } while (!this._hadError && callback(res[0], res[1]));\n\n if (this._hadError) {\n throw error;\n }\n\n var buf = Buffer.concat(buffers, nread);\n this.close();\n\n return buf;\n }\n\n var req = this._binding.write(flushFlag,\n chunk, // in\n inOff, // in_off\n availInBefore, // in_len\n this._buffer, // out\n this._offset, //out_off\n availOutBefore); // out_len\n\n req.buffer = chunk;\n req.callback = callback;\n\n function callback(availInAfter, availOutAfter) {\n if (self._hadError)\n return;\n\n var have = availOutBefore - availOutAfter;\n assert(have >= 0, 'have should not go down');\n\n if (have > 0) {\n var out = self._buffer.slice(self._offset, self._offset + have);\n self._offset += have;\n // serve some output to the consumer.\n if (async) {\n self.push(out);\n } else {\n buffers.push(out);\n nread += out.length;\n }\n }\n\n // exhausted the output buffer, or used all the input create a new one.\n if (availOutAfter === 0 || self._offset >= self._chunkSize) {\n availOutBefore = self._chunkSize;\n self._offset = 0;\n self._buffer = new Buffer(self._chunkSize);\n }\n\n if (availOutAfter === 0) {\n // Not actually done. Need to reprocess.\n // Also, update the availInBefore to the availInAfter value,\n // so that if we have to hit it a third (fourth, etc.) time,\n // it'll have the correct byte counts.\n inOff += (availInBefore - availInAfter);\n availInBefore = availInAfter;\n\n if (!async)\n return true;\n\n var newReq = self._binding.write(flushFlag,\n chunk,\n inOff,\n availInBefore,\n self._buffer,\n self._offset,\n self._chunkSize);\n newReq.callback = callback; // this same function\n newReq.buffer = chunk;\n return;\n }\n\n if (!async)\n return false;\n\n // finished with the chunk.\n cb();\n }\n };\n\n inherits$1(Deflate, Zlib);\n inherits$1(Inflate, Zlib);\n inherits$1(Gzip, Zlib);\n inherits$1(Gunzip, Zlib);\n inherits$1(DeflateRaw, Zlib);\n inherits$1(InflateRaw, Zlib);\n inherits$1(Unzip, Zlib);\n var zlib = {\n codes: codes,\n createDeflate: createDeflate,\n createInflate: createInflate,\n createDeflateRaw: createDeflateRaw,\n createInflateRaw: createInflateRaw,\n createGzip: createGzip,\n createGunzip: createGunzip,\n createUnzip: createUnzip,\n deflate: deflate,\n deflateSync: deflateSync,\n gzip: gzip,\n gzipSync: gzipSync,\n deflateRaw: deflateRaw,\n deflateRawSync: deflateRawSync,\n unzip: unzip,\n unzipSync: unzipSync,\n inflate: inflate,\n inflateSync: inflateSync,\n gunzip: gunzip,\n gunzipSync: gunzipSync,\n inflateRaw: inflateRaw,\n inflateRawSync: inflateRawSync,\n Deflate: Deflate,\n Inflate: Inflate,\n Gzip: Gzip,\n Gunzip: Gunzip,\n DeflateRaw: DeflateRaw,\n InflateRaw: InflateRaw,\n Unzip: Unzip,\n Zlib: Zlib\n };\n\n function encode64(data) {\n var r = '';\n for (var i = 0; i < data.length; i += 3) {\n if (i + 2 == data.length) {\n r += append3bytes(data.charCodeAt(i), data.charCodeAt(i + 1), 0);\n } else if (i + 1 == data.length) {\n r += append3bytes(data.charCodeAt(i), 0, 0);\n } else {\n r += append3bytes(data.charCodeAt(i), data.charCodeAt(i + 1), data.charCodeAt(i + 2));\n }\n }\n return r;\n }\n function append3bytes(b1, b2, b3) {\n var c1 = b1 >> 2;\n var c2 = (b1 & 0x3) << 4 | b2 >> 4;\n var c3 = (b2 & 0xf) << 2 | b3 >> 6;\n var c4 = b3 & 0x3f;\n var r = '';\n r += encode6bit(c1 & 0x3f);\n r += encode6bit(c2 & 0x3f);\n r += encode6bit(c3 & 0x3f);\n r += encode6bit(c4 & 0x3f);\n return r;\n }\n function encode6bit(b) {\n if (b < 10) {\n return String.fromCharCode(48 + b);\n }\n b -= 10;\n if (b < 26) {\n return String.fromCharCode(65 + b);\n }\n b -= 26;\n if (b < 26) {\n return String.fromCharCode(97 + b);\n }\n b -= 26;\n if (b == 0) {\n return '-';\n }\n if (b == 1) {\n return '_';\n }\n return '?';\n }\n function decode6bit(cc) {\n var c = cc.charCodeAt(0);\n if (cc === '_') return 63;\n if (cc === '-') return 62;\n if (c >= 97) return c - 61; // - 97 + 26 + 10\n if (c >= 65) return c - 55; // - 65 + 10\n if (c >= 48) return c - 48;\n return '?';\n }\n function extract3bytes(data) {\n var c1 = decode6bit(data[0]);\n var c2 = decode6bit(data[1]);\n var c3 = decode6bit(data[2]);\n var c4 = decode6bit(data[3]);\n var b1 = c1 << 2 | c2 >> 4 & 0x3f;\n var b2 = c2 << 4 & 0xf0 | c3 >> 2 & 0xf;\n var b3 = c3 << 6 & 0xc0 | c4 & 0x3f;\n return [b1, b2, b3];\n }\n function decode64(data) {\n var r = '';\n var i = 0;\n for (i = 0; i < data.length; i += 4) {\n var t = extract3bytes(data.substring(i, i + 4));\n r = r + String.fromCharCode(t[0]);\n r = r + String.fromCharCode(t[1]);\n r = r + String.fromCharCode(t[2]);\n }\n return r;\n }\n function encode(data) {\n return encode64(zlib.deflateRawSync(data, {\n level: 9\n }).toString('binary'));\n }\n function decode(data) {\n return zlib.inflateRawSync(Buffer.from(decode64(data), 'binary')).toString();\n }\n function zEncode(data) {\n return zlib.deflateRawSync(data, {\n level: 9\n }).toString('base64');\n }\n function zDecode(data) {\n return zlib.inflateRawSync(Buffer.from(data, 'base64')).toString();\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: plantuml codec for PlantUML website\n * Encode/Decode code taken from the PlantUML website:\n * http://plantuml.sourceforge.net/codejavascript2.html\n */\n\n function encodeuml(data) {\n var startuml = '@startuml';\n var enduml = '@enduml';\n var s = \"\".concat(startuml).concat(String(data.split(startuml)[1]).split(enduml)[0] || '').concat(enduml);\n return encode(s);\n }\n function decodeuml(data) {\n return decode(data);\n }\n var plantumlcodec = {\n encodeuml: encodeuml,\n decodeuml: decodeuml\n };\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown plantuml extension for markdown\n */\n var defaultUmlWebsite = 'www.plantuml.com/plantuml';\n var defaultImageFormat = 'img';\n var umlElementCount = 0;\n function renderPlantumlElement(element, config) {\n return new Promise(function (resolve) {\n var langattr = element.dataset.lang;\n var langobj = langattr ? JSON.parse(langattr) : null;\n var diagramClass = '';\n if (langobj) {\n if (typeof langobj.codeblock === 'boolean' && langobj.codeblock || typeof langobj.codeblock === 'string' && langobj.codeblock.toLowerCase() === 'true') {\n return resolve(false);\n }\n if (langobj.align) {\n //default left\n if (langobj.align === 'center') {\n diagramClass = 'diagram-center';\n } else if (langobj.align === 'right') {\n diagramClass = 'diagram-right';\n }\n }\n }\n var code = element.textContent.trim();\n var name = (element.classList.length > 0 ? element.classList[0] : '') + (!element.className || !diagramClass ? '' : ' ') + diagramClass;\n var imageFormat = config.imageFormat;\n if (imageFormat === 'svg') {\n var id = 'plantuml-' + Date.now() + '-' + Math.floor(Math.random() * 10000);\n if (typeof config.svgRender === 'function' && config.svgRender) {\n config.svgRender(id, name, code, umlElementCount).then(function (svgData) {\n element.parentNode.outerHTML = \"
    \").concat(svgData, \"
    \");\n resolve(true);\n });\n } else if (typeof window !== 'undefined' && window.fetch && window.dispatchEvent) {\n var protocol = window && window.location.protocol;\n var website = (protocol === 'http:' || protocol === 'https:' ? '//' : 'https://') + config.umlWebSite;\n var imageExtension = imageFormat !== defaultImageFormat ? \".\".concat(imageFormat) : '';\n var uml = plantumlcodec.encodeuml(code);\n var src = \"\".concat(website, \"/\").concat(imageFormat, \"/\").concat(uml).concat(imageExtension);\n window.fetch(src).then(function (response) {\n if (response.ok) {\n return response.text();\n }\n }).then(function (svgData) {\n element.parentNode.outerHTML = \"
    \").concat(svgData, \"
    \");\n resolve(true);\n });\n }\n } else {\n var _protocol = window && window.location.protocol;\n var _website = (_protocol === 'http:' || _protocol === 'https:' ? '//' : 'https://') + config.umlWebSite;\n var _imageExtension = imageFormat !== defaultImageFormat ? \".\".concat(imageFormat) : '';\n var _uml = plantumlcodec.encodeuml(code);\n var _src = \"\".concat(_website, \"/\").concat(imageFormat, \"/\").concat(_uml).concat(_imageExtension);\n element.parentNode.outerHTML = \"
    \");\n return resolve(true);\n }\n });\n }\n\n //
    \n function renderPlantumlElements(elements, config) {\n umlElementCount = elements.length;\n return new Promise(function (resolve) {\n var promiseArray = [];\n elements.forEach(function (element) {\n promiseArray.push(renderPlantumlElement(element, config));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n\n // Plantuml default config\n var getConfig$1 = function getConfig() {\n var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _objectSpread2({\n umlWebSite: defaultUmlWebsite,\n imageFormat: defaultImageFormat,\n svgRender: null\n }, config);\n };\n function showdownPlantuml(userConfig) {\n var config = getConfig$1(userConfig);\n return [{\n type: 'output',\n config: config,\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n // find the plantuml in code blocks\n var elements = wrapper.querySelectorAll('code.plantuml.language-plantuml');\n if (!elements.length) {\n return false;\n }\n console.log(format$1(\"Begin render plantuml elements.\"));\n return renderPlantumlElements(elements, this.config).then(function () {\n console.log(format$1(\"End render plantuml elements.\"));\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown railroad extension for markdown\n */\n\n var extName = \"railroad\";\n var cssCdnName$1 = 'railroadCSS';\n if (typeof window === 'undefined') {\n throw Error('The showdown railroad extension can only be used in browser environment!');\n }\n var railroad = false;\n function hasRailroad() {\n return railroad;\n }\n var dync$3 = false;\n function dyncLoadScript$3() {\n var sync = hasRailroad();\n if (typeof window !== 'undefined') {\n if (dync$3) {\n return sync;\n }\n if (!sync) {\n dync$3 = true;\n cdnjs.loadStyleSheet(cssCdnName$1);\n cdnjs.loadScript(extName).then(function () {\n railroad = true;\n });\n }\n }\n return sync;\n }\n function onRenderRailroad(resolve, res) {\n if (hasRailroad()) {\n var id = res.id;\n var name = res.className;\n var data = res.data;\n var cssLink = res.cssLink;\n var railroadElement = window.eval(data).format();\n var doc = res.element.ownerDocument;\n res.element.parentNode.outerHTML = cssLink ? \"
    \") : \"
    \");\n railroadElement.addTo(doc.getElementById(id));\n return resolve(true);\n }\n setTimeout(function () {\n onRenderRailroad(resolve, res);\n }, 10);\n }\n\n /**\n * render railroad graphs\n */\n function renderRailroad(element) {\n return new Promise(function (resolve) {\n var meta = utils.createElementMeta(extName, element);\n if (!meta) {\n return resolve(false);\n }\n meta.cssLink = cdnjs.getSrc(cssCdnName$1);\n onRenderRailroad(resolve, meta);\n });\n }\n\n //
    \n function renderRailroadElements(elements) {\n dyncLoadScript$3();\n return new Promise(function (resolve) {\n var promiseArray = [];\n elements.forEach(function (element) {\n promiseArray.push(renderRailroad(element));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n function showdownRailroad() {\n return [{\n type: 'output',\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n // find the railroad in code blocks\n var elements = wrapper.querySelectorAll('code.railroad.language-railroad');\n if (!elements.length) {\n return false;\n }\n this.config = {\n cssLink: cdnjs.getSrc(cssCdnName$1)\n };\n console.log(format$1(\"Begin render railroad elements.\"));\n return renderRailroadElements(elements).then(function () {\n console.log(format$1(\"End render railroad elements.\"));\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown sequence extension for markdown\n */\n\n if (typeof window === 'undefined') {\n throw Error('The showdown sequence extension can only be used in browser environment!');\n }\n if (typeof Raphael$1 === 'undefined') {\n var Raphael$1 = window.Raphael || undefined;\n }\n\n // js-sequence-diagrams can create a global object named Diagrams of window,\n // To be compatible with railroad diagrams extension that also has window.Diagram object,\n // You need to save the original Diagrams object of railroad diagrams extension here.\n var diagram;\n if (typeof window !== 'undefined') {\n if (window.Diagram) {\n diagram = window.Diagram;\n if (window.Diagram['Signal']) {\n var sequence = window.Diagram;\n }\n }\n }\n var themes = ['simple', 'hand'];\n if (typeof sequence === 'undefined' && typeof window !== 'undefined') {\n var sequence = window.SequenceJS;\n }\n function hasRaphael$1() {\n return !!Raphael$1;\n }\n function hasSequence() {\n return hasRaphael$1() && !!sequence;\n }\n var dync$2 = false;\n var cssCdnName = 'sequenceCSS';\n function dyncLoadScript$2() {\n var sync = hasSequence();\n if (typeof window !== 'undefined') {\n if (dync$2) {\n return sync;\n }\n if (!sync) {\n dync$2 = true;\n cdnjs.loadStyleSheet(cssCdnName);\n cdnjs.loadScript('WebFont').then(function () {\n if (!hasRaphael$1()) {\n return cdnjs.loadScript('Raphael');\n }\n return 'Raphael';\n }).then(function (name) {\n Raphael$1 = utils.interopDefault(window[name]);\n return cdnjs.loadScript('Snap');\n }).then(function () {\n return cdnjs.loadScript('underscore');\n }).then(function () {\n // You need to save the original Diagrams object of sequence diagrams extension here.\n if (!diagram && window['Diagram']) {\n diagram = window['Diagram'];\n }\n return cdnjs.loadScript('sequence');\n }).then(function () {\n sequence = window['Diagram'];\n window.SequenceJS = sequence;\n // You need to replace the original Diagrams object of sequence diagrams extension here.\n if (diagram) {\n window['Diagram'] = diagram;\n }\n });\n }\n }\n return sync;\n }\n\n /**\n * render sequence graphs\n */\n function renderSequence(element) {\n var langattr = element.dataset.lang;\n var langobj = langattr ? JSON.parse(langattr) : null;\n var diagramClass = '';\n if (langobj) {\n if (typeof langobj.codeblock === 'boolean' && langobj.codeblock || typeof langobj.codeblock === 'string' && langobj.codeblock.toLowerCase() === 'true') {\n return;\n }\n if (langobj.align) {\n //default left\n if (langobj.align === 'center') {\n diagramClass = 'diagram-center';\n } else if (langobj.align === 'right') {\n diagramClass = 'diagram-right';\n }\n }\n }\n var sync = dyncLoadScript$2();\n var cssLink = cdnjs.getSrc(cssCdnName);\n var code = element.textContent.trim();\n var name = 'js-sequence' + (!diagramClass ? '' : ' ') + diagramClass;\n var id = 'sequence-' + Date.now() + '-' + Math.floor(Math.random() * 10000);\n element.id = id;\n if (cssLink) {\n element.className = element.className + (!element.className ? '' : ' ') + 'css-sequence';\n element.dataset.css = cssLink;\n }\n if (!sync && typeof window !== 'undefined' && window.dispatchEvent) {\n Promise.resolve(id).then(function (elementid) {\n // dispatch sequence custom event\n window.dispatchEvent(new CustomEvent('sequence', {\n detail: {\n id: elementid,\n className: name,\n data: code,\n langattr: langattr,\n cssLink: cssLink\n }\n }));\n });\n } else {\n if (typeof window !== 'undefined' && window.dispatchEvent) {\n // dispatch sequence custom event\n window.dispatchEvent(new CustomEvent('sequence', {\n detail: {\n id: id,\n className: name,\n data: code,\n langattr: langattr,\n cssLink: cssLink\n }\n }));\n }\n }\n }\n\n //
    \n function renderSequenceElements(elements) {\n if (!elements.length) {\n return false;\n }\n elements.forEach(function (element) {\n renderSequence(element);\n });\n return true;\n }\n function onRenderSequence(element) {\n if (hasSequence()) {\n var id = element.id;\n var name = element.className;\n var data = element.data;\n var cssLink = element.cssLink;\n var theme = 'hand';\n var langattr = element.langattr;\n if (langattr) {\n var obj = JSON.parse(langattr);\n if (obj && obj.theme && themes.indexOf(obj.theme) != -1) {\n theme = obj.theme;\n }\n }\n var el = window.document.getElementById(id);\n if (el) {\n el.parentNode.outerHTML = cssLink ? \"
    \") : \"
    \");\n el = window.document.getElementById(id);\n var d = sequence.parse(data);\n var options = {\n theme: theme\n };\n d.drawSVG(el ? el : id, options);\n return;\n }\n }\n setTimeout(function () {\n onRenderSequence(element);\n }, 10);\n }\n function showdownSequence() {\n var hasEvent = false;\n var parser = new DOMParser();\n return [{\n type: 'output',\n filter: function filter(html) {\n // parse html\n var doc = parser.parseFromString(html, 'text/html');\n var wrapper = typeof doc.body !== 'undefined' ? doc.body : doc;\n\n // find the sequence in code blocks\n var elements = wrapper.querySelectorAll('code.sequence.language-sequence');\n if (elements.length) {\n if (!hasEvent) {\n if (typeof window !== 'undefined' && window.dispatchEvent) {\n hasEvent = true;\n // Listen sequence custom event\n window.addEventListener('sequence', function (event) {\n if (event.detail) {\n onRenderSequence(event.detail);\n }\n });\n }\n }\n this.config = {\n cssLink: cdnjs.getSrc(cssCdnName)\n };\n }\n if (!renderSequenceElements(elements)) {\n return html;\n }\n // return html text content\n return wrapper.innerHTML;\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown wavedrom extension for markdown\n */\n if (typeof window === 'undefined') {\n throw Error('The showdown wavedrom extension can only be used in browser environment!');\n }\n if (typeof WaveDrom === 'undefined') {\n var WaveDrom = window.WaveDrom || undefined;\n }\n var wdCount = 0;\n var indexWD = 0;\n function hasWavedrom() {\n return !!WaveDrom;\n }\n var dync$1 = false;\n function dyncLoadScript$1(skin) {\n var sync = hasWavedrom();\n if (dync$1) {\n return sync;\n }\n if (!sync) {\n dync$1 = true;\n if (typeof window !== 'undefined') {\n cdnjs.loadScript({\n WaveDromSkin: skin\n }).then(function () {\n return cdnjs.loadScript('WaveDrom');\n }).then(function (name) {\n WaveDrom = utils.interopDefault(window[name]);\n });\n }\n }\n return sync;\n }\n function onRenderWavedrom(resolve, res) {\n if (hasWavedrom()) {\n var index = res.index;\n var id = res.id;\n var name = res.className;\n var data = res.data;\n var element = res.element;\n var doc = element.ownerDocument;\n element.parentNode.outerHTML = utils.renderCacheElement(doc, id + index, name, function (el) {\n var obj = window.eval(\"(\".concat(data, \")\"));\n WaveDrom.RenderWaveForm(index, obj, id);\n // Replace the created cache element with the original element with the same id.\n var wdel = document.getElementById('WaveDrom_Display_' + index);\n if (el != wdel) {\n while (wdel.childNodes.length) {\n el.appendChild(wdel.removeChild(wdel.childNodes[0]));\n }\n }\n });\n return resolve(true);\n }\n setTimeout(function () {\n onRenderWavedrom(resolve, res);\n }, 10);\n }\n /**\n * render wavedrom graphs\n */\n function renderWavedrom(element) {\n return new Promise(function (resolve) {\n var langattr = element.dataset.lang;\n var langobj = langattr ? JSON.parse(langattr) : null;\n var diagramClass = '';\n if (langobj) {\n if (typeof langobj.codeblock === 'boolean' && langobj.codeblock || typeof langobj.codeblock === 'string' && langobj.codeblock.toLowerCase() === 'true') {\n return;\n }\n if (langobj.align) {\n //default left\n if (langobj.align === 'center') {\n diagramClass = 'diagram-center';\n } else if (langobj.align === 'right') {\n diagramClass = 'diagram-right';\n }\n }\n }\n var code = element.textContent.trim();\n var name = (element.classList.length > 0 ? element.classList[0] : '') + (!element.className || !diagramClass ? '' : ' ') + diagramClass;\n var index = indexWD;\n ++indexWD;\n // When index of wavwdrom is 0, there will be some special logic in the WaveDrom lib.\n // So the index needs to be cleared after all WavwDrom element are rendered.\n --wdCount;\n if (!wdCount) {\n indexWD = 0;\n }\n\n //const id = 'wavedrom-' + Date.now() + '-' + Math.floor(Math.random() * 10000) + '-';\n var id = 'WaveDrom_Display_';\n element.id = id + index;\n var res = {\n element: element,\n index: index,\n id: id,\n className: name,\n data: code\n };\n onRenderWavedrom(resolve, res);\n // const id = 'WaveDrom_Display_' + index;\n // element.parentNode.outerHTML = cdnjs.renderCacheElement(element.ownerDocument, id, name, el => {\n // const obj = window.eval(`(${code})`);\n // WaveDrom.RenderWaveForm(index, obj, 'WaveDrom_Display_');\n // // Replace the created cache element with the original element with the same id.\n // const wdel = document.getElementById('WaveDrom_Display_' + index);\n // if (el != wdel) {\n // while (wdel.childNodes.length) {\n // el.appendChild(wdel.removeChild(wdel.childNodes[0]));\n // }\n // }\n // });\n });\n }\n\n //
    \n function renderWavedromElements(elements, skin) {\n dyncLoadScript$1(skin);\n return new Promise(function (resolve) {\n var promiseArray = [];\n wdCount = elements.length;\n elements.forEach(function (element) {\n promiseArray.push(renderWavedrom(element));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n\n // wavedrom default config\n var getConfig = function getConfig() {\n var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _objectSpread2({\n skin: 'default'\n }, config);\n };\n function showdownWavedrom(skinConfig) {\n var config = getConfig(skinConfig);\n return [{\n type: 'output',\n config: config,\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n // find the wavedrom in code blocks\n var elements = wrapper.querySelectorAll('code.wavedrom.language-wavedrom');\n if (!elements.length) {\n return false;\n }\n format$1(\"Begin render wavedrom elements.\");\n return renderWavedromElements(elements, this.config.skin).then(function () {\n format$1(\"End render wavedrom elements.\");\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown footnotes extension for markdown\n */\n\n function showdownFootnotes() {\n return [{\n type: 'lang',\n filter: function filter(text, converter) {\n return text.replace(/^\\[\\^([\\d\\w]+)\\]:\\s*((\\n+(\\s{2,4}|\\t).+)+)$/gm, function (str, name, rawContent, _, padding) {\n var content = converter.makeHtml(rawContent.replace(new RegExp(\"^\".concat(padding), 'gm'), ''));\n return \"
    [\").concat(name, \"]:\").concat(content, \"
    \");\n });\n }\n }, {\n type: 'lang',\n filter: function filter(text) {\n return text.replace(/^\\[\\^([\\d\\w]+)\\]:( |\\n)((.+\\n)*.+)$/gm, function (str, name, _, content) {\n return \"[\").concat(name, \"]: \").concat(content, \"\");\n });\n }\n }, {\n type: 'lang',\n filter: function filter(text) {\n return text.replace(/\\[\\^([\\d\\w]+)\\]/m, function (str, name) {\n return \"[\").concat(name, \"]\");\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2020-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown container extension for markdown\n */\n\n function showdownContainer() {\n return [{\n type: 'lang',\n filter: function filter(text, converter) {\n return text.replace(/(?:^|\\n)(?: {0,3})(:::+)(?: *)([\\S]+)(?:[ \\t]*)([^\\s][\\S\\t ]*)?\\n([\\s\\S]*?)\\n(?: {0,3})\\1(?:[ \\t]*)\\n/g, function (wholeMatch, delim, classname, title, content) {\n if (classname) {\n var classes = classname.split('-');\n if (classes.length > 1) {\n classes.forEach(function (name, index, arr) {\n if (index > 0) {\n arr[index] = arr[index - 1] + '-' + name;\n }\n });\n } else {\n classes.unshift('container');\n }\n classname = classes.join(' ');\n }\n if (content) {\n content = converter.makeHtml(content);\n }\n if (title) {\n title = \"

    \".concat(title, \"

    \");\n } else {\n title = '';\n }\n return \"
    \").concat(title).concat(content, \"
    \");\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n * Description: showdown flowchart extension for markdown\n */\n if (typeof window === 'undefined') {\n throw Error('The showdown flowchart extension can only be used in browser environment!');\n }\n if (typeof Raphael === 'undefined') {\n var Raphael = window.Raphael || undefined;\n }\n if (typeof flowchart === 'undefined') {\n var flowchart = window.flowchart || undefined;\n }\n function hasRaphael() {\n return !!Raphael;\n }\n function hasFlowchart() {\n return typeof Raphael !== 'undefined' && Raphael && typeof flowchart !== 'undefined' && flowchart ? true : false;\n }\n var dync = false;\n function dyncLoadScript() {\n var sync = hasFlowchart();\n if (typeof window !== 'undefined') {\n if (dync) {\n return sync;\n }\n if (!sync) {\n dync = true;\n if (!hasRaphael()) {\n cdnjs.loadScript('Raphael').then(function (name) {\n Raphael = utils.interopDefault(window[name]);\n return cdnjs.loadScript('flowchart');\n }).then(function (name) {\n flowchart = utils.interopDefault(window[name]);\n });\n return sync;\n }\n cdnjs.loadScript('flowchart').then(function (name) {\n flowchart = utils.interopDefault(window[name]);\n });\n }\n }\n return sync;\n }\n function onRenderFlowchart(resolve, res) {\n if (hasFlowchart()) {\n var id = res.id;\n var name = res.className;\n var data = res.data;\n var options = res.options;\n var doc = res.element.ownerDocument;\n res.element.parentNode.outerHTML = utils.renderCacheElement(doc, id, name, function (el) {\n flowchart.parse(data).drawSVG(el, options);\n });\n resolve(true);\n return;\n }\n setTimeout(function () {\n onRenderFlowchart(resolve, res);\n }, 10);\n }\n\n /**\n * render flowchart graphs\n */\n function renderFlowchart(element, options) {\n return new Promise(function (resolve) {\n var meta = utils.createElementMeta('flowchart', element);\n if (!meta) {\n return resolve(false);\n }\n meta.options = options;\n onRenderFlowchart(resolve, meta);\n });\n }\n\n //
    \n function renderFlowchartElements(flowchartElements, flowElements, options) {\n dyncLoadScript();\n return new Promise(function (resolve) {\n var promiseArray = [];\n flowchartElements.forEach(function (element) {\n promiseArray.push(renderFlowchart(element, options));\n });\n flowElements.forEach(function (element) {\n promiseArray.push(renderFlowchart(element, options));\n });\n Promise.all(promiseArray).then(function () {\n resolve(true);\n });\n });\n }\n\n // Flowchart default options:\n // 'x': 0,\n // 'y': 0,\n // 'line-width': 3,\n // 'line-length': 50,\n // 'text-margin': 10,\n // 'font-size': 14,\n // 'font-color': 'black',\n // 'font': 'normal',\n // 'font-family': 'calibri',\n // 'font-weight': 'normal',\n // 'line-color': 'black',\n // 'element-color': 'black',\n // 'fill': 'white',\n // 'yes-text': 'yes',\n // 'no-text': 'no',\n // 'arrow-end': 'block',\n // 'class': 'flowchart',\n // 'scale': 1,\n // 'symbols': {\n // 'start': {},\n // 'end': {},\n // 'condition': {},\n // 'inputoutput': {},\n // 'operation': {},\n // 'subroutine': {},\n // 'parallel': {}\n // },\n // 'flowstate' : {\n // 'past' : { 'fill': '#CCCCCC', 'font-size': 12},\n // 'current' : {'fill': 'yellow', 'font-color': 'red', 'font-weight': 'bold'},\n // 'future' : { 'fill': '#FFFF99'},\n // 'invalid': {'fill': '#444444'}\n // }\n var getOptions$1 = function getOptions() {\n var userOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _objectSpread2({\n 'line-width': 3,\n maxWidth: 3,\n //ensures the flowcharts fits within a certian width\n 'line-length': 50,\n 'text-margin': 10,\n 'font-size': 14,\n font: 'normal',\n 'font-family': 'Helvetica',\n 'font-weight': 'normal',\n 'font-color': 'black',\n 'line-color': 'black',\n 'element-color': 'black',\n fill: 'white',\n 'yes-text': 'yes',\n 'no-text': 'no',\n 'arrow-end': 'block',\n scale: 1,\n symbols: {\n start: {\n 'font-color': 'red',\n 'element-color': 'green',\n fill: 'yellow'\n },\n end: {\n \"class\": 'end-element'\n }\n },\n flowstate: {\n past: {\n fill: '#CCCCCC',\n 'font-size': 12\n },\n current: {\n fill: 'yellow',\n 'font-color': 'red',\n 'font-weight': 'bold'\n },\n future: {\n fill: '#FFFF99'\n },\n request: {\n fill: 'blue'\n },\n invalid: {\n fill: '#444444'\n },\n approved: {\n fill: '#58C4A3',\n 'font-size': 12,\n 'yes-text': 'APPROVED',\n 'no-text': 'n/a'\n },\n rejected: {\n fill: '#C45879',\n 'font-size': 12,\n 'yes-text': 'n/a',\n 'no-text': 'REJECTED'\n }\n }\n }, userOptions);\n };\n function showdownFlowchart(userOptions) {\n var options = getOptions$1(userOptions);\n return [{\n type: 'output',\n config: options,\n filter: function filter(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n\n // find the Flowchart in code blocks\n var flowchartElements = wrapper.querySelectorAll('code.flowchart.language-flowchart');\n var flowElements = wrapper.querySelectorAll('code.flow.language-flow');\n if (!flowchartElements.length && !flowElements.length) {\n return false;\n }\n console.log(format$1(\"Begin render flowchart elements.\"));\n return renderFlowchartElements(flowchartElements, flowElements, this.config).then(function () {\n console.log(format$1(\"End render flowchart elements.\"));\n return obj;\n });\n }\n }];\n }\n\n /*\n * Copyright (c) 2019-present, Jhuix (Hui Jin) . All rights reserved.\n * Use of this source code is governed by a MIT license that can be found in the LICENSE file.\n */\n\n //////////////////////////////////////////////////////////////////////\n var getOptions = function getOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _objectSpread2({\n flavor: 'github'\n }, options);\n };\n var getAsyncExtensions = function getAsyncExtensions(options) {\n var extensions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var mermaidOptions = options ? options.mermaid || {} : {};\n var plantumlOptions = options ? options.plantuml || {} : {};\n var katexOptions = options ? options.katex || {} : {};\n var vegaOptions = options ? options.vega || {} : {};\n var asyncExtensions = _objectSpread2({\n 'showdown-plantuml': showdownPlantuml(plantumlOptions),\n 'showdown-mermaid': showdownMermaid(mermaidOptions),\n 'showdown-katex': showdownKatex(katexOptions),\n 'showdown-flowchart': showdownFlowchart,\n 'showdown-viz': showdownViz,\n 'showdown-vega': showdownVega(vegaOptions),\n 'showdown-wavedrom': showdownWavedrom,\n 'showdown-railroad': showdownRailroad,\n 'showdown-abc': showdownAbc,\n 'showdown-echarts': showdownEcharts\n }, extensions);\n var extnames = [];\n for (var prop in asyncExtensions) {\n if (asyncExtensions.hasOwnProperty(prop)) {\n showdown.asyncExtension(prop, asyncExtensions[prop]);\n extnames.push(prop);\n }\n }\n return extnames;\n };\n var getExtensions = function getExtensions(options) {\n var extensions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var nativeExtensions = _objectSpread2({\n 'showdown-toc': showdownToc,\n 'showdown-align': showdownAlign,\n 'showdown-footnotes': showdownFootnotes,\n 'showdown-container': showdownContainer,\n 'showdown-sequence': showdownSequence\n }, extensions);\n var extnames = [];\n for (var prop in nativeExtensions) {\n if (nativeExtensions.hasOwnProperty(prop)) {\n showdown.extension(prop, nativeExtensions[prop]);\n extnames.push(prop);\n }\n }\n return extnames;\n };\n var loadScript = function loadScript(id, code, element) {\n if (!code || typeof document === 'undefined') {\n return false;\n }\n if (!element) {\n element = document.getElementById(id);\n }\n if (element) {\n var eid = element.id;\n var scriptID = \"script-\".concat(id);\n var script = document.querySelector(\"#\".concat(eid, \" > #\").concat(scriptID));\n if (script) {\n document.body.removeChild(script);\n } else {\n script = document.createElement('script');\n script.id = scriptID;\n }\n script.type = \"text/javascript\";\n script.text = code;\n element.appendChild(script);\n }\n return true;\n };\n var showdownFlavors = ['github', 'ghost', 'vanilla', 'original', 'allon'];\n var mermaidThemes = ['default', 'forest', 'dark', 'neutral'];\n var vegaThemes = ['excel', 'ggplot2', 'quartz', 'vox', 'dark'];\n var vegaRenderers = ['canvas', 'svg'];\n var plantumlImgFmts = ['svg', 'png', 'jpg'];\n\n // defaultOptions.vega is embedOptions of vega-embed;\n // defaultOptions.katex is config of katex,\n // format is { delimiters: [ { left: '$$', right: '$$', display: true | false | undefined, asciimath: true | undefined }] };\n // defaultOptions.mermaid is config of mermaidAPI;\n // defaultOptions.plantuml is {umlWebSite: string, imageFormat: string};\n // defaultOptions.showdown is flavor and ShowdownOptions of showdown\n var showdowns = {\n showdown: showdown,\n converter: null,\n defaultOptions: {\n showdown: getOptions(),\n plantuml: {\n imageFormat: 'svg'\n },\n mermaid: {\n theme: 'default'\n },\n katex: {},\n vega: {\n theme: 'vox'\n }\n },\n defaultExtensions: {},\n defaultAsyncExtensions: {},\n markdownDecodeFilter: function markdownDecodeFilter(doc) {\n return '';\n },\n initDefaultOptions: function initDefaultOptions() {\n if (!this.defaultOptions) {\n this.defaultOptions = {\n showdown: {},\n plantuml: {},\n mermaid: {},\n katex: {},\n vega: {}\n };\n }\n },\n setFlavor: function setFlavor(name) {\n this.showdown.setFlavor(name);\n if (this.converter) {\n this.converter.setFlavor(name);\n }\n },\n addOptions: function addOptions(options) {\n for (var key in options) {\n if (key !== 'flavor') {\n this.showdown.setOption(key, options[key]);\n if (this.converter) {\n this.converter.setOption(key, options[key]);\n }\n }\n }\n },\n addExtension: function addExtension(name, extension) {\n this.removeExtension(name);\n if (typeof name === 'string') {\n try {\n showdown.extension(name, extension);\n if (this.converter) {\n this.converter.addExtension(name);\n }\n } catch (err) {\n console.log(err);\n }\n }\n },\n removeExtension: function removeExtension(name) {\n if (typeof name !== 'string') return;\n if (this.converter) {\n var ext = null;\n try {\n ext = showdown.extension(name);\n } catch (err) {\n console.log(err);\n }\n if (!ext) return;\n this.converter.removeExtension(ext);\n }\n showdown.removeExtension(name);\n },\n addAsyncExtension: function addAsyncExtension(name, extension) {\n this.removeAsyncExtension(name);\n if (typeof name === 'string') {\n try {\n showdown.asyncExtension(name, extension);\n if (this.converter) {\n this.converter.addAsyncExtension(name);\n }\n } catch (err) {\n console.log(err);\n }\n }\n },\n removeAsyncExtension: function removeAsyncExtension(name) {\n if (typeof name !== 'string') return;\n if (this.converter) {\n var ext = null;\n try {\n ext = showdown.asyncExtension(name);\n } catch (err) {\n console.log(err);\n }\n if (!ext) return;\n this.converter.removeAsyncExtension(ext);\n }\n showdown.removeAsyncExtension(name);\n },\n setCDN: function setCDN(cdnname, defScheme, distScheme) {\n if (typeof cdnname === 'string' && cdnname) {\n cdnjs.setCDN(cdnname, defScheme, distScheme);\n }\n },\n setShowdownFlavor: function setShowdownFlavor(name) {\n this.initDefaultOptions();\n if (name) {\n if (showdownFlavors.indexOf(name) === -1) {\n name = 'github';\n }\n this.defaultOptions.showdown.flavor = name;\n this.setFlavor(name);\n }\n },\n setShowdownOptions: function setShowdownOptions(options) {\n this.initDefaultOptions();\n if (_typeof(options) !== 'object' || !options) options = {};\n this.defaultOptions.showdown = Object.assign(this.defaultOptions.showdown || {}, options);\n this.setShowdownFlavor(this.defaultOptions.showdown.flavor);\n this.addOptions(this.defaultOptions.showdown);\n return this.defaultOptions.showdown;\n },\n setPlantumlOptions: function setPlantumlOptions(options) {\n this.initDefaultOptions();\n if (_typeof(options) !== 'object' || !options) options = {};\n this.defaultOptions.plantuml = Object.assign(this.defaultOptions.plantuml || {}, options);\n var imageFormat = this.defaultOptions.plantuml.imageFormat;\n if (imageFormat && plantumlImgFmts.indexOf(imageFormat) === -1) {\n this.defaultOptions.plantuml.imageFormat = 'png';\n }\n if (this.converter) {\n this.addAsyncExtension('showdown-plantuml', showdownPlantuml(this.defaultOptions.plantuml));\n }\n return this.defaultOptions.plantuml;\n },\n setMermaidOptions: function setMermaidOptions(options) {\n this.initDefaultOptions();\n if (_typeof(options) !== 'object' || !options) options = {};\n this.defaultOptions.mermaid = Object.assign(this.defaultOptions.mermaid || {}, options);\n var theme = this.defaultOptions.mermaid.theme;\n if (theme && mermaidThemes.indexOf(theme) === -1) {\n this.defaultOptions.mermaid.theme = 'default';\n }\n if (this.converter) {\n this.addAsyncExtension('showdown-mermaid', showdownMermaid(this.defaultOptions.mermaid));\n }\n return this.defaultOptions.mermaid;\n },\n setKatexOptions: function setKatexOptions(options) {\n this.initDefaultOptions();\n if (_typeof(options) !== 'object' || !options) options = {};\n this.defaultOptions.katex = Object.assign(this.defaultOptions.katex || {}, options);\n if (this.converter) {\n this.addAsyncExtension('showdown-katex', showdownKatex(this.defaultOptions.katex));\n }\n return this.defaultOptions.katex;\n },\n setVegaOptions: function setVegaOptions(options) {\n this.initDefaultOptions();\n if (_typeof(options) !== 'object' || !options) options = {};\n this.defaultOptions.vega = Object.assign(this.defaultOptions.vega || {}, options);\n var theme = this.defaultOptions.vega.theme;\n if (theme && vegaThemes.indexOf(theme) === -1) {\n this.defaultOptions.vega.theme = 'vox';\n }\n var renderer = this.defaultOptions.vega.renderer;\n if (renderer && vegaRenderers.indexOf(renderer) === -1) {\n this.defaultOptions.vega.renderer = 'canvas';\n }\n if (this.converter) {\n this.addAsyncExtension('showdown-vega', showdownVega(this.defaultOptions.vega));\n }\n return this.defaultOptions.vega;\n },\n init: function init(reset) {\n if (!this.converter) {\n var showdownOptions = this.defaultOptions ? this.defaultOptions.showdown || {} : {};\n var options = getOptions(showdownOptions);\n var extensions = getExtensions(this.defaultOptions, this.defaultExtensions);\n var asyncExtensions = getAsyncExtensions(this.defaultOptions, this.defaultAsyncExtensions);\n this.setFlavor(options.flavor);\n // converter instance of showdown\n this.converter = new showdown.Converter({\n extensions: extensions\n }).initConvertExtObj(options.flavor, asyncExtensions);\n this.addOptions(options);\n } else {\n var resetOptions = {};\n if (typeof reset === 'boolean' && reset) {\n resetOptions = {\n option: true,\n extension: true\n };\n } else {\n resetOptions = reset;\n }\n if (_typeof(resetOptions) === 'object') {\n if (resetOptions.hasOwnProperty('option') && resetOptions.option) {\n var _showdownOptions = this.defaultOptions ? this.defaultOptions.showdown || {} : {};\n var _options = getOptions(_showdownOptions);\n this.addOptions(_options);\n }\n if (resetOptions.hasOwnProperty('extension') && resetOptions.extension) {\n this.addAsyncExtension('showdown-plantuml', showdownPlantuml(this.defaultOptions.plantuml));\n this.addAsyncExtension('showdown-mermaid', showdownMermaid(this.defaultOptions.mermaid));\n this.addAsyncExtension('showdown-vega', showdownVega(this.defaultOptions.vega));\n }\n }\n }\n return this;\n },\n makeHtml: function makeHtml(doc, callback) {\n var content = '';\n if (_typeof(doc) === 'object') {\n if (typeof doc.content === 'string') {\n if (typeof doc.type === 'string') {\n switch (doc.type) {\n case 'zip':\n content = this.zDecode(doc.content);\n break;\n default:\n content = this.markdownDecodeFilter(doc) || doc.content;\n break;\n }\n } else {\n content = doc.content;\n }\n }\n } else {\n content = doc;\n }\n if (this.converter && content) {\n var _getCssLink = function _getCssLink(wrapper, className, extName) {\n // find elements that has csslink\n var element = wrapper.querySelector(className);\n var cssLink = '';\n if (element) {\n cssLink = element.dataset.css;\n } else {\n var ext;\n try {\n ext = showdown.extension(extName);\n } catch (_unused) {}\n if (!ext) {\n try {\n ext = showdown.asyncExtension(extName);\n } catch (_unused2) {}\n }\n if (ext) {\n if (Array.isArray(ext)) {\n for (var i = 0; i < ext.length; ++i) {\n if (ext[i].hasOwnProperty('config') && ext[i].config.hasOwnProperty('cssLink')) {\n cssLink = ext[i].config.cssLink;\n break;\n }\n }\n } else if (_typeof(ext) === 'object') {\n if (ext.hasOwnProperty('config') && ext.config.hasOwnProperty('cssLink')) {\n cssLink = ext.config.cssLink;\n }\n }\n }\n }\n return cssLink;\n };\n var _checkCssTypes = function _checkCssTypes(obj) {\n var wrapper = obj.wrapper;\n if (!wrapper) {\n return false;\n }\n return new Promise(function (resolve) {\n var katexCssLink = _getCssLink(wrapper, '.css-katex', 'showdown-katex');\n var sequenceCssLink = _getCssLink(wrapper, '.css-sequence', 'showdown-sequence');\n var railroadCssLink = _getCssLink(wrapper, '.css-railroad', 'showdown-railroad');\n obj.cssTypes = {\n hasKatex: katexCssLink ? true : false,\n hasSequence: sequenceCssLink ? true : false,\n hasRailroad: railroadCssLink ? true : false,\n css: {\n katex: katexCssLink,\n sequence: sequenceCssLink,\n railroad: railroadCssLink\n }\n };\n if (typeof callback === 'function' && callback) {\n callback(obj.cssTypes);\n }\n return resolve(obj);\n });\n };\n return this.converter.asyncMakeHtml(content, _checkCssTypes).then(function (obj) {\n content = \"
    \".concat(obj.html, \"
    \");\n return {\n html: content,\n scripts: obj.scripts\n };\n });\n }\n return Promise.reject(!content ? 'Content is empty.' : 'Converter is invaild.');\n },\n completedHtml: function completedHtml(scripts, element) {\n if (!showdown.helper.isArray(scripts)) {\n scripts = [scripts];\n }\n return new Promise(function (revole, reject) {\n for (var i = 0; i < scripts.length; ++i) {\n var script = scripts[i];\n if (!loadScript(script.id, script.code, element)) {\n return reject('Args is invaild!');\n }\n }\n revole(true);\n });\n },\n zDecode: function zDecode$1(zContent) {\n return zDecode(zContent);\n },\n zEncode: function zEncode$1(content) {\n return zEncode(content);\n }\n };\n\n return showdowns;\n\n}));\n//# sourceMappingURL=showdowns.js.map\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","'use strict';\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n","/*!\n * Vue.js v2.7.16\n * (c) 2014-2023 Evan You\n * Released under the MIT License.\n */\nvar emptyObject = Object.freeze({});\nvar isArray = Array.isArray;\n// These helpers produce better VM code in JS engines due to their\n// explicitness and function inlining.\nfunction isUndef(v) {\n return v === undefined || v === null;\n}\nfunction isDef(v) {\n return v !== undefined && v !== null;\n}\nfunction isTrue(v) {\n return v === true;\n}\nfunction isFalse(v) {\n return v === false;\n}\n/**\n * Check if value is primitive.\n */\nfunction isPrimitive(value) {\n return (typeof value === 'string' ||\n typeof value === 'number' ||\n // $flow-disable-line\n typeof value === 'symbol' ||\n typeof value === 'boolean');\n}\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n/**\n * Quick object check - this is primarily used to tell\n * objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object';\n}\n/**\n * Get the raw type string of a value, e.g., [object Object].\n */\nvar _toString = Object.prototype.toString;\nfunction toRawType(value) {\n return _toString.call(value).slice(8, -1);\n}\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject(obj) {\n return _toString.call(obj) === '[object Object]';\n}\nfunction isRegExp(v) {\n return _toString.call(v) === '[object RegExp]';\n}\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex(val) {\n var n = parseFloat(String(val));\n return n >= 0 && Math.floor(n) === n && isFinite(val);\n}\nfunction isPromise(val) {\n return (isDef(val) &&\n typeof val.then === 'function' &&\n typeof val.catch === 'function');\n}\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString(val) {\n return val == null\n ? ''\n : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)\n ? JSON.stringify(val, replacer, 2)\n : String(val);\n}\nfunction replacer(_key, val) {\n // avoid circular deps from v3\n if (val && val.__v_isRef) {\n return val.value;\n }\n return val;\n}\n/**\n * Convert an input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber(val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n;\n}\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap(str, expectsLowerCase) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase ? function (val) { return map[val.toLowerCase()]; } : function (val) { return map[val]; };\n}\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n/**\n * Check if an attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');\n/**\n * Remove an item from an array.\n */\nfunction remove$2(arr, item) {\n var len = arr.length;\n if (len) {\n // fast path for the only / last item\n if (item === arr[len - 1]) {\n arr.length = len - 1;\n return;\n }\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1);\n }\n }\n}\n/**\n * Check whether an object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n/**\n * Create a cached version of a pure function.\n */\nfunction cached(fn) {\n var cache = Object.create(null);\n return function cachedFn(str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n}\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) { return (c ? c.toUpperCase() : ''); });\n});\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n});\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase();\n});\n/**\n * Simple bind polyfill for environments that do not support it,\n * e.g., PhantomJS 1.x. Technically, we don't need this anymore\n * since native bind is now performant enough in most browsers.\n * But removing it would mean breaking code that was able to run in\n * PhantomJS 1.x, so this must be kept for backward compatibility.\n */\n/* istanbul ignore next */\nfunction polyfillBind(fn, ctx) {\n function boundFn(a) {\n var l = arguments.length;\n return l\n ? l > 1\n ? fn.apply(ctx, arguments)\n : fn.call(ctx, a)\n : fn.call(ctx);\n }\n boundFn._length = fn.length;\n return boundFn;\n}\nfunction nativeBind(fn, ctx) {\n return fn.bind(ctx);\n}\n// @ts-expect-error bind cannot be `undefined`\nvar bind = Function.prototype.bind ? nativeBind : polyfillBind;\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray(list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret;\n}\n/**\n * Mix properties into target object.\n */\nfunction extend(to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to;\n}\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject(arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res;\n}\n/* eslint-disable no-unused-vars */\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).\n */\nfunction noop(a, b, c) { }\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n/* eslint-enable no-unused-vars */\n/**\n * Return the same value.\n */\nvar identity = function (_) { return _; };\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual(a, b) {\n if (a === b)\n return true;\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return (a.length === b.length &&\n a.every(function (e, i) {\n return looseEqual(e, b[i]);\n }));\n }\n else if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime();\n }\n else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return (keysA.length === keysB.length &&\n keysA.every(function (key) {\n return looseEqual(a[key], b[key]);\n }));\n }\n else {\n /* istanbul ignore next */\n return false;\n }\n }\n catch (e) {\n /* istanbul ignore next */\n return false;\n }\n }\n else if (!isObjectA && !isObjectB) {\n return String(a) === String(b);\n }\n else {\n return false;\n }\n}\n/**\n * Return the first index at which a loosely equal value can be\n * found in the array (if value is a plain object, the array must\n * contain an object of the same shape), or -1 if it is not present.\n */\nfunction looseIndexOf(arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val))\n return i;\n }\n return -1;\n}\n/**\n * Ensure a function is called only once.\n */\nfunction once(fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n };\n}\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is#polyfill\nfunction hasChanged(x, y) {\n if (x === y) {\n return x === 0 && 1 / x !== 1 / y;\n }\n else {\n return x === x || y === y;\n }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\nvar ASSET_TYPES = ['component', 'directive', 'filter'];\nvar LIFECYCLE_HOOKS = [\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeUpdate',\n 'updated',\n 'beforeDestroy',\n 'destroyed',\n 'activated',\n 'deactivated',\n 'errorCaptured',\n 'serverPrefetch',\n 'renderTracked',\n 'renderTriggered'\n];\n\nvar config = {\n /**\n * Option merge strategies (used in core/util/options)\n */\n // $flow-disable-line\n optionMergeStrategies: Object.create(null),\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n /**\n * Show production mode tip message on boot?\n */\n productionTip: process.env.NODE_ENV !== 'production',\n /**\n * Whether to enable devtools\n */\n devtools: process.env.NODE_ENV !== 'production',\n /**\n * Whether to record perf\n */\n performance: false,\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n /**\n * Custom user key aliases for v-on\n */\n // $flow-disable-line\n keyCodes: Object.create(null),\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n /**\n * Perform updates asynchronously. Intended to be used by Vue Test Utils\n * This will significantly reduce performance if set to false.\n */\n async: true,\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n};\n\n/**\n * unicode letters used for parsing html tags, component names and property paths.\n * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname\n * skipping \\u10000-\\uEFFFF due to it freezing up PhantomJS\n */\nvar unicodeRegExp = /a-zA-Z\\u00B7\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD/;\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved(str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5f;\n}\n/**\n * Define a property.\n */\nfunction def(obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n/**\n * Parse simple path.\n */\nvar bailRE = new RegExp(\"[^\".concat(unicodeRegExp.source, \".$_\\\\d]\"));\nfunction parsePath(path) {\n if (bailRE.test(path)) {\n return;\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj)\n return;\n obj = obj[segments[i]];\n }\n return obj;\n };\n}\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nUA && UA.indexOf('android') > 0;\nvar isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);\nUA && /chrome\\/\\d+/.test(UA) && !isEdge;\nUA && /phantomjs/.test(UA);\nvar isFF = UA && UA.match(/firefox\\/(\\d+)/);\n// Firefox has a \"watch\" function on Object.prototype...\n// @ts-expect-error firebox support\nvar nativeWatch = {}.watch;\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', {\n get: function () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n }); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n }\n catch (e) { }\n}\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer =\n global['process'] && global['process'].env.VUE_ENV === 'server';\n }\n else {\n _isServer = false;\n }\n }\n return _isServer;\n};\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n/* istanbul ignore next */\nfunction isNative(Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString());\n}\nvar hasSymbol = typeof Symbol !== 'undefined' &&\n isNative(Symbol) &&\n typeof Reflect !== 'undefined' &&\n isNative(Reflect.ownKeys);\nvar _Set; // $flow-disable-line\n/* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n}\nelse {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = /** @class */ (function () {\n function Set() {\n this.set = Object.create(null);\n }\n Set.prototype.has = function (key) {\n return this.set[key] === true;\n };\n Set.prototype.add = function (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function () {\n this.set = Object.create(null);\n };\n return Set;\n }());\n}\n\nvar currentInstance = null;\n/**\n * This is exposed for compatibility with v3 (e.g. some functions in VueUse\n * relies on it). Do not use this internally, just use `currentInstance`.\n *\n * @internal this function needs manual type declaration because it relies\n * on previously manually authored types from Vue 2\n */\nfunction getCurrentInstance() {\n return currentInstance && { proxy: currentInstance };\n}\n/**\n * @internal\n */\nfunction setCurrentInstance(vm) {\n if (vm === void 0) { vm = null; }\n if (!vm)\n currentInstance && currentInstance._scope.off();\n currentInstance = vm;\n vm && vm._scope.on();\n}\n\n/**\n * @internal\n */\nvar VNode = /** @class */ (function () {\n function VNode(tag, data, children, text, elm, context, componentOptions, asyncFactory) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n }\n Object.defineProperty(VNode.prototype, \"child\", {\n // DEPRECATED: alias for componentInstance for backwards compat.\n /* istanbul ignore next */\n get: function () {\n return this.componentInstance;\n },\n enumerable: false,\n configurable: true\n });\n return VNode;\n}());\nvar createEmptyVNode = function (text) {\n if (text === void 0) { text = ''; }\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node;\n};\nfunction createTextVNode(val) {\n return new VNode(undefined, undefined, undefined, String(val));\n}\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode(vnode) {\n var cloned = new VNode(vnode.tag, vnode.data, \n // #7975\n // clone children array to avoid mutating original in case of cloning\n // a child.\n vnode.children && vnode.children.slice(), vnode.text, vnode.elm, vnode.context, vnode.componentOptions, vnode.asyncFactory);\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.asyncMeta = vnode.asyncMeta;\n cloned.isCloned = true;\n return cloned;\n}\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\nvar uid$2 = 0;\nvar pendingCleanupDeps = [];\nvar cleanupDeps = function () {\n for (var i = 0; i < pendingCleanupDeps.length; i++) {\n var dep = pendingCleanupDeps[i];\n dep.subs = dep.subs.filter(function (s) { return s; });\n dep._pending = false;\n }\n pendingCleanupDeps.length = 0;\n};\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n * @internal\n */\nvar Dep = /** @class */ (function () {\n function Dep() {\n // pending subs cleanup\n this._pending = false;\n this.id = uid$2++;\n this.subs = [];\n }\n Dep.prototype.addSub = function (sub) {\n this.subs.push(sub);\n };\n Dep.prototype.removeSub = function (sub) {\n // #12696 deps with massive amount of subscribers are extremely slow to\n // clean up in Chromium\n // to workaround this, we unset the sub for now, and clear them on\n // next scheduler flush.\n this.subs[this.subs.indexOf(sub)] = null;\n if (!this._pending) {\n this._pending = true;\n pendingCleanupDeps.push(this);\n }\n };\n Dep.prototype.depend = function (info) {\n if (Dep.target) {\n Dep.target.addDep(this);\n if (process.env.NODE_ENV !== 'production' && info && Dep.target.onTrack) {\n Dep.target.onTrack(__assign({ effect: Dep.target }, info));\n }\n }\n };\n Dep.prototype.notify = function (info) {\n // stabilize the subscriber list first\n var subs = this.subs.filter(function (s) { return s; });\n if (process.env.NODE_ENV !== 'production' && !config.async) {\n // subs aren't sorted in scheduler if not running async\n // we need to sort them now to make sure they fire in correct\n // order\n subs.sort(function (a, b) { return a.id - b.id; });\n }\n for (var i = 0, l = subs.length; i < l; i++) {\n var sub = subs[i];\n if (process.env.NODE_ENV !== 'production' && info) {\n sub.onTrigger &&\n sub.onTrigger(__assign({ effect: subs[i] }, info));\n }\n sub.update();\n }\n };\n return Dep;\n}());\n// The current target watcher being evaluated.\n// This is globally unique because only one watcher\n// can be evaluated at a time.\nDep.target = null;\nvar targetStack = [];\nfunction pushTarget(target) {\n targetStack.push(target);\n Dep.target = target;\n}\nfunction popTarget() {\n targetStack.pop();\n Dep.target = targetStack[targetStack.length - 1];\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);\nvar methodsToPatch = [\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n];\n/**\n * Intercept mutating methods and emit events\n */\nmethodsToPatch.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break;\n case 'splice':\n inserted = args.slice(2);\n break;\n }\n if (inserted)\n ob.observeArray(inserted);\n // notify change\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"array mutation\" /* TriggerOpTypes.ARRAY_MUTATION */,\n target: this,\n key: method\n });\n }\n else {\n ob.dep.notify();\n }\n return result;\n });\n});\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\nvar NO_INITIAL_VALUE = {};\n/**\n * In some cases we may want to disable observation inside a component's\n * update computation.\n */\nvar shouldObserve = true;\nfunction toggleObserving(value) {\n shouldObserve = value;\n}\n// ssr mock dep\nvar mockDep = {\n notify: noop,\n depend: noop,\n addSub: noop,\n removeSub: noop\n};\n/**\n * Observer class that is attached to each observed\n * object. Once attached, the observer converts the target\n * object's property keys into getter/setters that\n * collect dependencies and dispatch updates.\n */\nvar Observer = /** @class */ (function () {\n function Observer(value, shallow, mock) {\n if (shallow === void 0) { shallow = false; }\n if (mock === void 0) { mock = false; }\n this.value = value;\n this.shallow = shallow;\n this.mock = mock;\n // this.value = value\n this.dep = mock ? mockDep : new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (isArray(value)) {\n if (!mock) {\n if (hasProto) {\n value.__proto__ = arrayMethods;\n /* eslint-enable no-proto */\n }\n else {\n for (var i = 0, l = arrayKeys.length; i < l; i++) {\n var key = arrayKeys[i];\n def(value, key, arrayMethods[key]);\n }\n }\n }\n if (!shallow) {\n this.observeArray(value);\n }\n }\n else {\n /**\n * Walk through all properties and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\n var keys = Object.keys(value);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n defineReactive(value, key, NO_INITIAL_VALUE, undefined, shallow, mock);\n }\n }\n }\n /**\n * Observe a list of Array items.\n */\n Observer.prototype.observeArray = function (value) {\n for (var i = 0, l = value.length; i < l; i++) {\n observe(value[i], false, this.mock);\n }\n };\n return Observer;\n}());\n// helpers\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe(value, shallow, ssrMockReactivity) {\n if (value && hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n return value.__ob__;\n }\n if (shouldObserve &&\n (ssrMockReactivity || !isServerRendering()) &&\n (isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value.__v_skip /* ReactiveFlags.SKIP */ &&\n !isRef(value) &&\n !(value instanceof VNode)) {\n return new Observer(value, shallow, ssrMockReactivity);\n }\n}\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive(obj, key, val, customSetter, shallow, mock, observeEvenIfShallow) {\n if (observeEvenIfShallow === void 0) { observeEvenIfShallow = false; }\n var dep = new Dep();\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return;\n }\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n if ((!getter || setter) &&\n (val === NO_INITIAL_VALUE || arguments.length === 2)) {\n val = obj[key];\n }\n var childOb = shallow ? val && val.__ob__ : observe(val, false, mock);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter() {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n if (process.env.NODE_ENV !== 'production') {\n dep.depend({\n target: obj,\n type: \"get\" /* TrackOpTypes.GET */,\n key: key\n });\n }\n else {\n dep.depend();\n }\n if (childOb) {\n childOb.dep.depend();\n if (isArray(value)) {\n dependArray(value);\n }\n }\n }\n return isRef(value) && !shallow ? value.value : value;\n },\n set: function reactiveSetter(newVal) {\n var value = getter ? getter.call(obj) : val;\n if (!hasChanged(value, newVal)) {\n return;\n }\n if (process.env.NODE_ENV !== 'production' && customSetter) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n }\n else if (getter) {\n // #7981: for accessor properties without setter\n return;\n }\n else if (!shallow && isRef(value) && !isRef(newVal)) {\n value.value = newVal;\n return;\n }\n else {\n val = newVal;\n }\n childOb = shallow ? newVal && newVal.__ob__ : observe(newVal, false, mock);\n if (process.env.NODE_ENV !== 'production') {\n dep.notify({\n type: \"set\" /* TriggerOpTypes.SET */,\n target: obj,\n key: key,\n newValue: newVal,\n oldValue: value\n });\n }\n else {\n dep.notify();\n }\n }\n });\n return dep;\n}\nfunction set(target, key, val) {\n if (process.env.NODE_ENV !== 'production' && (isUndef(target) || isPrimitive(target))) {\n warn(\"Cannot set reactive property on undefined, null, or primitive value: \".concat(target));\n }\n if (isReadonly(target)) {\n process.env.NODE_ENV !== 'production' && warn(\"Set operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n return;\n }\n var ob = target.__ob__;\n if (isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n // when mocking for SSR, array methods are not hijacked\n if (ob && !ob.shallow && ob.mock) {\n observe(val, false, true);\n }\n return val;\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val;\n }\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' &&\n warn('Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.');\n return val;\n }\n if (!ob) {\n target[key] = val;\n return val;\n }\n defineReactive(ob.value, key, val, undefined, ob.shallow, ob.mock);\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"add\" /* TriggerOpTypes.ADD */,\n target: target,\n key: key,\n newValue: val,\n oldValue: undefined\n });\n }\n else {\n ob.dep.notify();\n }\n return val;\n}\nfunction del(target, key) {\n if (process.env.NODE_ENV !== 'production' && (isUndef(target) || isPrimitive(target))) {\n warn(\"Cannot delete reactive property on undefined, null, or primitive value: \".concat(target));\n }\n if (isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return;\n }\n var ob = target.__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' &&\n warn('Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.');\n return;\n }\n if (isReadonly(target)) {\n process.env.NODE_ENV !== 'production' &&\n warn(\"Delete operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n return;\n }\n if (!hasOwn(target, key)) {\n return;\n }\n delete target[key];\n if (!ob) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"delete\" /* TriggerOpTypes.DELETE */,\n target: target,\n key: key\n });\n }\n else {\n ob.dep.notify();\n }\n}\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray(value) {\n for (var e = void 0, i = 0, l = value.length; i < l; i++) {\n e = value[i];\n if (e && e.__ob__) {\n e.__ob__.dep.depend();\n }\n if (isArray(e)) {\n dependArray(e);\n }\n }\n}\n\nfunction reactive(target) {\n makeReactive(target, false);\n return target;\n}\n/**\n * Return a shallowly-reactive copy of the original object, where only the root\n * level properties are reactive. It also does not auto-unwrap refs (even at the\n * root level).\n */\nfunction shallowReactive(target) {\n makeReactive(target, true);\n def(target, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, true);\n return target;\n}\nfunction makeReactive(target, shallow) {\n // if trying to observe a readonly proxy, return the readonly version.\n if (!isReadonly(target)) {\n if (process.env.NODE_ENV !== 'production') {\n if (isArray(target)) {\n warn(\"Avoid using Array as root value for \".concat(shallow ? \"shallowReactive()\" : \"reactive()\", \" as it cannot be tracked in watch() or watchEffect(). Use \").concat(shallow ? \"shallowRef()\" : \"ref()\", \" instead. This is a Vue-2-only limitation.\"));\n }\n var existingOb = target && target.__ob__;\n if (existingOb && existingOb.shallow !== shallow) {\n warn(\"Target is already a \".concat(existingOb.shallow ? \"\" : \"non-\", \"shallow reactive object, and cannot be converted to \").concat(shallow ? \"\" : \"non-\", \"shallow.\"));\n }\n }\n var ob = observe(target, shallow, isServerRendering() /* ssr mock reactivity */);\n if (process.env.NODE_ENV !== 'production' && !ob) {\n if (target == null || isPrimitive(target)) {\n warn(\"value cannot be made reactive: \".concat(String(target)));\n }\n if (isCollectionType(target)) {\n warn(\"Vue 2 does not support reactive collection types such as Map or Set.\");\n }\n }\n }\n}\nfunction isReactive(value) {\n if (isReadonly(value)) {\n return isReactive(value[\"__v_raw\" /* ReactiveFlags.RAW */]);\n }\n return !!(value && value.__ob__);\n}\nfunction isShallow(value) {\n return !!(value && value.__v_isShallow);\n}\nfunction isReadonly(value) {\n return !!(value && value.__v_isReadonly);\n}\nfunction isProxy(value) {\n return isReactive(value) || isReadonly(value);\n}\nfunction toRaw(observed) {\n var raw = observed && observed[\"__v_raw\" /* ReactiveFlags.RAW */];\n return raw ? toRaw(raw) : observed;\n}\nfunction markRaw(value) {\n // non-extensible objects won't be observed anyway\n if (Object.isExtensible(value)) {\n def(value, \"__v_skip\" /* ReactiveFlags.SKIP */, true);\n }\n return value;\n}\n/**\n * @internal\n */\nfunction isCollectionType(value) {\n var type = toRawType(value);\n return (type === 'Map' || type === 'WeakMap' || type === 'Set' || type === 'WeakSet');\n}\n\n/**\n * @internal\n */\nvar RefFlag = \"__v_isRef\";\nfunction isRef(r) {\n return !!(r && r.__v_isRef === true);\n}\nfunction ref$1(value) {\n return createRef(value, false);\n}\nfunction shallowRef(value) {\n return createRef(value, true);\n}\nfunction createRef(rawValue, shallow) {\n if (isRef(rawValue)) {\n return rawValue;\n }\n var ref = {};\n def(ref, RefFlag, true);\n def(ref, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, shallow);\n def(ref, 'dep', defineReactive(ref, 'value', rawValue, null, shallow, isServerRendering()));\n return ref;\n}\nfunction triggerRef(ref) {\n if (process.env.NODE_ENV !== 'production' && !ref.dep) {\n warn(\"received object is not a triggerable ref.\");\n }\n if (process.env.NODE_ENV !== 'production') {\n ref.dep &&\n ref.dep.notify({\n type: \"set\" /* TriggerOpTypes.SET */,\n target: ref,\n key: 'value'\n });\n }\n else {\n ref.dep && ref.dep.notify();\n }\n}\nfunction unref(ref) {\n return isRef(ref) ? ref.value : ref;\n}\nfunction proxyRefs(objectWithRefs) {\n if (isReactive(objectWithRefs)) {\n return objectWithRefs;\n }\n var proxy = {};\n var keys = Object.keys(objectWithRefs);\n for (var i = 0; i < keys.length; i++) {\n proxyWithRefUnwrap(proxy, objectWithRefs, keys[i]);\n }\n return proxy;\n}\nfunction proxyWithRefUnwrap(target, source, key) {\n Object.defineProperty(target, key, {\n enumerable: true,\n configurable: true,\n get: function () {\n var val = source[key];\n if (isRef(val)) {\n return val.value;\n }\n else {\n var ob = val && val.__ob__;\n if (ob)\n ob.dep.depend();\n return val;\n }\n },\n set: function (value) {\n var oldValue = source[key];\n if (isRef(oldValue) && !isRef(value)) {\n oldValue.value = value;\n }\n else {\n source[key] = value;\n }\n }\n });\n}\nfunction customRef(factory) {\n var dep = new Dep();\n var _a = factory(function () {\n if (process.env.NODE_ENV !== 'production') {\n dep.depend({\n target: ref,\n type: \"get\" /* TrackOpTypes.GET */,\n key: 'value'\n });\n }\n else {\n dep.depend();\n }\n }, function () {\n if (process.env.NODE_ENV !== 'production') {\n dep.notify({\n target: ref,\n type: \"set\" /* TriggerOpTypes.SET */,\n key: 'value'\n });\n }\n else {\n dep.notify();\n }\n }), get = _a.get, set = _a.set;\n var ref = {\n get value() {\n return get();\n },\n set value(newVal) {\n set(newVal);\n }\n };\n def(ref, RefFlag, true);\n return ref;\n}\nfunction toRefs(object) {\n if (process.env.NODE_ENV !== 'production' && !isReactive(object)) {\n warn(\"toRefs() expects a reactive object but received a plain one.\");\n }\n var ret = isArray(object) ? new Array(object.length) : {};\n for (var key in object) {\n ret[key] = toRef(object, key);\n }\n return ret;\n}\nfunction toRef(object, key, defaultValue) {\n var val = object[key];\n if (isRef(val)) {\n return val;\n }\n var ref = {\n get value() {\n var val = object[key];\n return val === undefined ? defaultValue : val;\n },\n set value(newVal) {\n object[key] = newVal;\n }\n };\n def(ref, RefFlag, true);\n return ref;\n}\n\nvar rawToReadonlyFlag = \"__v_rawToReadonly\";\nvar rawToShallowReadonlyFlag = \"__v_rawToShallowReadonly\";\nfunction readonly(target) {\n return createReadonly(target, false);\n}\nfunction createReadonly(target, shallow) {\n if (!isPlainObject(target)) {\n if (process.env.NODE_ENV !== 'production') {\n if (isArray(target)) {\n warn(\"Vue 2 does not support readonly arrays.\");\n }\n else if (isCollectionType(target)) {\n warn(\"Vue 2 does not support readonly collection types such as Map or Set.\");\n }\n else {\n warn(\"value cannot be made readonly: \".concat(typeof target));\n }\n }\n return target;\n }\n if (process.env.NODE_ENV !== 'production' && !Object.isExtensible(target)) {\n warn(\"Vue 2 does not support creating readonly proxy for non-extensible object.\");\n }\n // already a readonly object\n if (isReadonly(target)) {\n return target;\n }\n // already has a readonly proxy\n var existingFlag = shallow ? rawToShallowReadonlyFlag : rawToReadonlyFlag;\n var existingProxy = target[existingFlag];\n if (existingProxy) {\n return existingProxy;\n }\n var proxy = Object.create(Object.getPrototypeOf(target));\n def(target, existingFlag, proxy);\n def(proxy, \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */, true);\n def(proxy, \"__v_raw\" /* ReactiveFlags.RAW */, target);\n if (isRef(target)) {\n def(proxy, RefFlag, true);\n }\n if (shallow || isShallow(target)) {\n def(proxy, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, true);\n }\n var keys = Object.keys(target);\n for (var i = 0; i < keys.length; i++) {\n defineReadonlyProperty(proxy, target, keys[i], shallow);\n }\n return proxy;\n}\nfunction defineReadonlyProperty(proxy, target, key, shallow) {\n Object.defineProperty(proxy, key, {\n enumerable: true,\n configurable: true,\n get: function () {\n var val = target[key];\n return shallow || !isPlainObject(val) ? val : readonly(val);\n },\n set: function () {\n process.env.NODE_ENV !== 'production' &&\n warn(\"Set operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n }\n });\n}\n/**\n * Returns a reactive-copy of the original object, where only the root level\n * properties are readonly, and does NOT unwrap refs nor recursively convert\n * returned properties.\n * This is used for creating the props proxy object for stateful components.\n */\nfunction shallowReadonly(target) {\n return createReadonly(target, true);\n}\n\nfunction computed(getterOrOptions, debugOptions) {\n var getter;\n var setter;\n var onlyGetter = isFunction(getterOrOptions);\n if (onlyGetter) {\n getter = getterOrOptions;\n setter = process.env.NODE_ENV !== 'production'\n ? function () {\n warn('Write operation failed: computed value is readonly');\n }\n : noop;\n }\n else {\n getter = getterOrOptions.get;\n setter = getterOrOptions.set;\n }\n var watcher = isServerRendering()\n ? null\n : new Watcher(currentInstance, getter, noop, { lazy: true });\n if (process.env.NODE_ENV !== 'production' && watcher && debugOptions) {\n watcher.onTrack = debugOptions.onTrack;\n watcher.onTrigger = debugOptions.onTrigger;\n }\n var ref = {\n // some libs rely on the presence effect for checking computed refs\n // from normal refs, but the implementation doesn't matter\n effect: watcher,\n get value() {\n if (watcher) {\n if (watcher.dirty) {\n watcher.evaluate();\n }\n if (Dep.target) {\n if (process.env.NODE_ENV !== 'production' && Dep.target.onTrack) {\n Dep.target.onTrack({\n effect: Dep.target,\n target: ref,\n type: \"get\" /* TrackOpTypes.GET */,\n key: 'value'\n });\n }\n watcher.depend();\n }\n return watcher.value;\n }\n else {\n return getter();\n }\n },\n set value(newVal) {\n setter(newVal);\n }\n };\n def(ref, RefFlag, true);\n def(ref, \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */, onlyGetter);\n return ref;\n}\n\nvar WATCHER = \"watcher\";\nvar WATCHER_CB = \"\".concat(WATCHER, \" callback\");\nvar WATCHER_GETTER = \"\".concat(WATCHER, \" getter\");\nvar WATCHER_CLEANUP = \"\".concat(WATCHER, \" cleanup\");\n// Simple effect.\nfunction watchEffect(effect, options) {\n return doWatch(effect, null, options);\n}\nfunction watchPostEffect(effect, options) {\n return doWatch(effect, null, (process.env.NODE_ENV !== 'production'\n ? __assign(__assign({}, options), { flush: 'post' }) : { flush: 'post' }));\n}\nfunction watchSyncEffect(effect, options) {\n return doWatch(effect, null, (process.env.NODE_ENV !== 'production'\n ? __assign(__assign({}, options), { flush: 'sync' }) : { flush: 'sync' }));\n}\n// initial value for watchers to trigger on undefined initial values\nvar INITIAL_WATCHER_VALUE = {};\n// implementation\nfunction watch(source, cb, options) {\n if (process.env.NODE_ENV !== 'production' && typeof cb !== 'function') {\n warn(\"`watch(fn, options?)` signature has been moved to a separate API. \" +\n \"Use `watchEffect(fn, options?)` instead. `watch` now only \" +\n \"supports `watch(source, cb, options?) signature.\");\n }\n return doWatch(source, cb, options);\n}\nfunction doWatch(source, cb, _a) {\n var _b = _a === void 0 ? emptyObject : _a, immediate = _b.immediate, deep = _b.deep, _c = _b.flush, flush = _c === void 0 ? 'pre' : _c, onTrack = _b.onTrack, onTrigger = _b.onTrigger;\n if (process.env.NODE_ENV !== 'production' && !cb) {\n if (immediate !== undefined) {\n warn(\"watch() \\\"immediate\\\" option is only respected when using the \" +\n \"watch(source, callback, options?) signature.\");\n }\n if (deep !== undefined) {\n warn(\"watch() \\\"deep\\\" option is only respected when using the \" +\n \"watch(source, callback, options?) signature.\");\n }\n }\n var warnInvalidSource = function (s) {\n warn(\"Invalid watch source: \".concat(s, \". A watch source can only be a getter/effect \") +\n \"function, a ref, a reactive object, or an array of these types.\");\n };\n var instance = currentInstance;\n var call = function (fn, type, args) {\n if (args === void 0) { args = null; }\n var res = invokeWithErrorHandling(fn, null, args, instance, type);\n if (deep && res && res.__ob__)\n res.__ob__.dep.depend();\n return res;\n };\n var getter;\n var forceTrigger = false;\n var isMultiSource = false;\n if (isRef(source)) {\n getter = function () { return source.value; };\n forceTrigger = isShallow(source);\n }\n else if (isReactive(source)) {\n getter = function () {\n source.__ob__.dep.depend();\n return source;\n };\n deep = true;\n }\n else if (isArray(source)) {\n isMultiSource = true;\n forceTrigger = source.some(function (s) { return isReactive(s) || isShallow(s); });\n getter = function () {\n return source.map(function (s) {\n if (isRef(s)) {\n return s.value;\n }\n else if (isReactive(s)) {\n s.__ob__.dep.depend();\n return traverse(s);\n }\n else if (isFunction(s)) {\n return call(s, WATCHER_GETTER);\n }\n else {\n process.env.NODE_ENV !== 'production' && warnInvalidSource(s);\n }\n });\n };\n }\n else if (isFunction(source)) {\n if (cb) {\n // getter with cb\n getter = function () { return call(source, WATCHER_GETTER); };\n }\n else {\n // no cb -> simple effect\n getter = function () {\n if (instance && instance._isDestroyed) {\n return;\n }\n if (cleanup) {\n cleanup();\n }\n return call(source, WATCHER, [onCleanup]);\n };\n }\n }\n else {\n getter = noop;\n process.env.NODE_ENV !== 'production' && warnInvalidSource(source);\n }\n if (cb && deep) {\n var baseGetter_1 = getter;\n getter = function () { return traverse(baseGetter_1()); };\n }\n var cleanup;\n var onCleanup = function (fn) {\n cleanup = watcher.onStop = function () {\n call(fn, WATCHER_CLEANUP);\n };\n };\n // in SSR there is no need to setup an actual effect, and it should be noop\n // unless it's eager\n if (isServerRendering()) {\n // we will also not call the invalidate callback (+ runner is not set up)\n onCleanup = noop;\n if (!cb) {\n getter();\n }\n else if (immediate) {\n call(cb, WATCHER_CB, [\n getter(),\n isMultiSource ? [] : undefined,\n onCleanup\n ]);\n }\n return noop;\n }\n var watcher = new Watcher(currentInstance, getter, noop, {\n lazy: true\n });\n watcher.noRecurse = !cb;\n var oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\n // overwrite default run\n watcher.run = function () {\n if (!watcher.active) {\n return;\n }\n if (cb) {\n // watch(source, cb)\n var newValue = watcher.get();\n if (deep ||\n forceTrigger ||\n (isMultiSource\n ? newValue.some(function (v, i) {\n return hasChanged(v, oldValue[i]);\n })\n : hasChanged(newValue, oldValue))) {\n // cleanup before running cb again\n if (cleanup) {\n cleanup();\n }\n call(cb, WATCHER_CB, [\n newValue,\n // pass undefined as the old value when it's changed for the first time\n oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,\n onCleanup\n ]);\n oldValue = newValue;\n }\n }\n else {\n // watchEffect\n watcher.get();\n }\n };\n if (flush === 'sync') {\n watcher.update = watcher.run;\n }\n else if (flush === 'post') {\n watcher.post = true;\n watcher.update = function () { return queueWatcher(watcher); };\n }\n else {\n // pre\n watcher.update = function () {\n if (instance && instance === currentInstance && !instance._isMounted) {\n // pre-watcher triggered before\n var buffer = instance._preWatchers || (instance._preWatchers = []);\n if (buffer.indexOf(watcher) < 0)\n buffer.push(watcher);\n }\n else {\n queueWatcher(watcher);\n }\n };\n }\n if (process.env.NODE_ENV !== 'production') {\n watcher.onTrack = onTrack;\n watcher.onTrigger = onTrigger;\n }\n // initial run\n if (cb) {\n if (immediate) {\n watcher.run();\n }\n else {\n oldValue = watcher.get();\n }\n }\n else if (flush === 'post' && instance) {\n instance.$once('hook:mounted', function () { return watcher.get(); });\n }\n else {\n watcher.get();\n }\n return function () {\n watcher.teardown();\n };\n}\n\nvar activeEffectScope;\nvar EffectScope = /** @class */ (function () {\n function EffectScope(detached) {\n if (detached === void 0) { detached = false; }\n this.detached = detached;\n /**\n * @internal\n */\n this.active = true;\n /**\n * @internal\n */\n this.effects = [];\n /**\n * @internal\n */\n this.cleanups = [];\n this.parent = activeEffectScope;\n if (!detached && activeEffectScope) {\n this.index =\n (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\n }\n }\n EffectScope.prototype.run = function (fn) {\n if (this.active) {\n var currentEffectScope = activeEffectScope;\n try {\n activeEffectScope = this;\n return fn();\n }\n finally {\n activeEffectScope = currentEffectScope;\n }\n }\n else if (process.env.NODE_ENV !== 'production') {\n warn(\"cannot run an inactive effect scope.\");\n }\n };\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n EffectScope.prototype.on = function () {\n activeEffectScope = this;\n };\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n EffectScope.prototype.off = function () {\n activeEffectScope = this.parent;\n };\n EffectScope.prototype.stop = function (fromParent) {\n if (this.active) {\n var i = void 0, l = void 0;\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].teardown();\n }\n for (i = 0, l = this.cleanups.length; i < l; i++) {\n this.cleanups[i]();\n }\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].stop(true);\n }\n }\n // nested scope, dereference from parent to avoid memory leaks\n if (!this.detached && this.parent && !fromParent) {\n // optimized O(1) removal\n var last = this.parent.scopes.pop();\n if (last && last !== this) {\n this.parent.scopes[this.index] = last;\n last.index = this.index;\n }\n }\n this.parent = undefined;\n this.active = false;\n }\n };\n return EffectScope;\n}());\nfunction effectScope(detached) {\n return new EffectScope(detached);\n}\n/**\n * @internal\n */\nfunction recordEffectScope(effect, scope) {\n if (scope === void 0) { scope = activeEffectScope; }\n if (scope && scope.active) {\n scope.effects.push(effect);\n }\n}\nfunction getCurrentScope() {\n return activeEffectScope;\n}\nfunction onScopeDispose(fn) {\n if (activeEffectScope) {\n activeEffectScope.cleanups.push(fn);\n }\n else if (process.env.NODE_ENV !== 'production') {\n warn(\"onScopeDispose() is called when there is no active effect scope\" +\n \" to be associated with.\");\n }\n}\n\nfunction provide(key, value) {\n if (!currentInstance) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"provide() can only be used inside setup().\");\n }\n }\n else {\n // TS doesn't allow symbol as index type\n resolveProvided(currentInstance)[key] = value;\n }\n}\nfunction resolveProvided(vm) {\n // by default an instance inherits its parent's provides object\n // but when it needs to provide values of its own, it creates its\n // own provides object using parent provides object as prototype.\n // this way in `inject` we can simply look up injections from direct\n // parent and let the prototype chain do the work.\n var existing = vm._provided;\n var parentProvides = vm.$parent && vm.$parent._provided;\n if (parentProvides === existing) {\n return (vm._provided = Object.create(parentProvides));\n }\n else {\n return existing;\n }\n}\nfunction inject(key, defaultValue, treatDefaultAsFactory) {\n if (treatDefaultAsFactory === void 0) { treatDefaultAsFactory = false; }\n // fallback to `currentRenderingInstance` so that this can be called in\n // a functional component\n var instance = currentInstance;\n if (instance) {\n // #2400\n // to support `app.use` plugins,\n // fallback to appContext's `provides` if the instance is at root\n var provides = instance.$parent && instance.$parent._provided;\n if (provides && key in provides) {\n // TS doesn't allow symbol as index type\n return provides[key];\n }\n else if (arguments.length > 1) {\n return treatDefaultAsFactory && isFunction(defaultValue)\n ? defaultValue.call(instance)\n : defaultValue;\n }\n else if (process.env.NODE_ENV !== 'production') {\n warn(\"injection \\\"\".concat(String(key), \"\\\" not found.\"));\n }\n }\n else if (process.env.NODE_ENV !== 'production') {\n warn(\"inject() can only be used inside setup() or functional components.\");\n }\n}\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once,\n capture: capture,\n passive: passive\n };\n});\nfunction createFnInvoker(fns, vm) {\n function invoker() {\n var fns = invoker.fns;\n if (isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n invokeWithErrorHandling(cloned[i], null, arguments, vm, \"v-on handler\");\n }\n }\n else {\n // return handler return value for single handlers\n return invokeWithErrorHandling(fns, null, arguments, vm, \"v-on handler\");\n }\n }\n invoker.fns = fns;\n return invoker;\n}\nfunction updateListeners(on, oldOn, add, remove, createOnceHandler, vm) {\n var name, cur, old, event;\n for (name in on) {\n cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (isUndef(cur)) {\n process.env.NODE_ENV !== 'production' &&\n warn(\"Invalid handler for event \\\"\".concat(event.name, \"\\\": got \") + String(cur), vm);\n }\n else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur, vm);\n }\n if (isTrue(event.once)) {\n cur = on[name] = createOnceHandler(event.name, cur, event.capture);\n }\n add(event.name, cur, event.capture, event.passive, event.params);\n }\n else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove(event.name, oldOn[name], event.capture);\n }\n }\n}\n\nfunction mergeVNodeHook(def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n function wrappedHook() {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove$2(invoker.fns, wrappedHook);\n }\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n }\n else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n }\n else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\nfunction extractPropsFromVNodeData(data, Ctor, tag) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return;\n }\n var res = {};\n var attrs = data.attrs, props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (process.env.NODE_ENV !== 'production') {\n var keyInLowerCase = key.toLowerCase();\n if (key !== keyInLowerCase && attrs && hasOwn(attrs, keyInLowerCase)) {\n tip(\"Prop \\\"\".concat(keyInLowerCase, \"\\\" is passed to component \") +\n \"\".concat(formatComponentName(\n // @ts-expect-error tag is string\n tag || Ctor), \", but the declared prop name is\") +\n \" \\\"\".concat(key, \"\\\". \") +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\".concat(altKey, \"\\\" instead of \\\"\").concat(key, \"\\\".\"));\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res;\n}\nfunction checkProp(res, hash, key, altKey, preserve) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true;\n }\n else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true;\n }\n }\n return false;\n}\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren(children) {\n for (var i = 0; i < children.length; i++) {\n if (isArray(children[i])) {\n return Array.prototype.concat.apply([], children);\n }\n }\n return children;\n}\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.
    ' + codeblock + end + '