diff --git a/README.md b/README.md new file mode 100644 index 0000000..dce0013 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# Teach Access Tutorial + +This resource is part of the [Teach Access Initiative](http://teachaccess.org/), and provides best practices for making +accessible mobile and web apps. You can view the tutorial at . + +--- + +This tutorial was built with [exerslide](https://facebookincubator.github.io/exerslide/). + +The content is located in `slides/`. You can make changes to the content +without having to generate the presentation, just by cloning this repository +and editing the files in `slides/`. + +--- + +If you want to generate the presentation on your compute, you need to + +1. Install exerslide globally. Exerslide is using Node, you can install it via + [npm](https://www.npmjs.com/): + + ``` + npm install -g exerslide-cli + ``` + +2. Clone this repository + + ``` + git clone https://github.com/teachaccess/tutorial.git + ``` + +3. Install the project's dependencies via + + ``` + npm install + ``` + +Now you can generate the presentation. `exerslide serve` will start local +webserver and automatically regenerate the presentation when you update slides. diff --git a/css/a11y.css b/css/a11y.css index f7f6654..4749499 100755 --- a/css/a11y.css +++ b/css/a11y.css @@ -4,11 +4,7 @@ .htmlExercise > .example > .editorWithPreview { border: 1px solid #DDD; -} - -.htmlExercise > .example > .editorWithPreview > * { - display: inline-block; - vertical-align: top; + display: flex; } .editorWithPreview > .preview, @@ -22,17 +18,19 @@ } .editorWithPreview > .editor { - width: 70%; font-size: 0.8em; + max-width: 70%; } .editorWithPreview > .preview { - width: 30%; - padding-left: 20px; - padding-top: 10px; + padding: 10px; overflow: auto; } +.CodeMirror { + overflow: hidden; +} + .htmlExercise > .example > .verify { margin-top: 10px; } @@ -51,40 +49,3 @@ kbd { line-height: 1.4; white-space: nowrap; } - -.popupMenuWidget { - padding: 1em; - position: relative; -} - -.popupMenuWidget [role="button"] { - border: 1px solid black; - border-radius: 3px; - display: inline-block; - padding: 1px 3px; - position: relative; - z-index: 2; -} - -.popupMenuWidget [role="button"]:hover, -.popupMenuWidget [role="button"]:focus { - text-decoration: none; -} - -.popupMenuWidget [role="menu"] { - border: 1px solid black; - display: none; - position: relative; - top: -1px; - z-index: 1; -} - -.popupMenuWidget [role="menu"] > a { - display: block; - padding: 0px 3px; -} - -.popupMenuWidget [role="menuitem"]:focus { - background-color: #428bca; - color: white; -} diff --git a/css/navigationButtons.css b/css/navigationButtons.css deleted file mode 100755 index 4c71e35..0000000 --- a/css/navigationButtons.css +++ /dev/null @@ -1,17 +0,0 @@ -#navigation-buttons { - text-align: right; - padding-right: 10px; - padding-bottom: 10px; - width: 100%; - max-width: 940px; -} - -#navigation-buttons button { - background-color: transparent; - border: none; - font-size: 1.5em; -} - -#navigation-buttons button[disabled] { - visibility: hidden; -} diff --git a/css/style.css b/css/style.css index a94247b..746ca14 100644 --- a/css/style.css +++ b/css/style.css @@ -17,13 +17,24 @@ * so that it is easy to overwrite them. */ +html, body { + /** + * Disables inertia effects + */ + height: 100%; + overflow: hidden; + font-family: Helvetica Neue,Helvetica,Roboto,Arial,sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + body { color: #333; margin: 0; padding: 0; } -#loader { +#exerslide-loader { align-items: center; display: flex; font-size: 4em; @@ -31,10 +42,11 @@ body { justify-content: center; } -#page { +#exerslide-page { bottom: 0; display: flex; left: 0; + line-height: 1; position: absolute; right: 0; top: 0; @@ -59,100 +71,126 @@ body { /* CODE */ -pre > code { +#exerslide-slide code, +#exerslide-slide p > code { background: #f9f9f9; - display: block; - font-size: 0.9em; - overflow-x: auto; - padding: 1rem; } -pre { - margin-bottom: 1.5rem; +#exerslide-slide pre + :not(hr) { + margin-top: 1rem; +} + +#exerslide-slide pre > code { + display: block; + font-size: 0.9rem; + overflow-x: auto; + padding: 0.5rem; } /* MAIN CONTENT */ -#slide { +#exerslide-slide { align-items: center; + box-sizing: border-box; display: flex; flex-direction: column; flex: 2; overflow-y: auto; - padding: 1.5em; + padding: 1rem; position: relative; width: 100%; } -#slide-content { - width: 100%; +#exerslide-slide > * { + display: flex; + flex: 1; + flex-direction: column; + line-height: 1.6; /** * This is the default max width of the slide content. However, since * exerslide allows the content width to be configured via slides, this is * not going to have any effect, unless auto-scaling is disabled completely * (via scale: false in the meta data section of the first slide) + * + * We cannot just use `width: 45em` because we want the slide to be responsive + * when the viewport shrinks. */ max-width: 45em; - flex: 1; - flex-direction: column; - display: flex; + /** + * This ensures that slides with little content (i.e. without a full line of + * content) are still positioned correclty. + */ + width: 100%; +} + + +#exerslide-slide h1, +#exerslide-slide h2, +#exerslide-slide h3, +#exerslide-slide h4 { + margin-top: 0.5rem; + margin-bottom: 0.5rem; } -#slide h1, -#slide-title { +#exerslide-slide h1, +#exerslide-slide-title { + margin-top: 0; flex-shrink: 0; - margin-bottom: 1rem; text-align: center; } -#slide-title:focus { +#exerslide-slide h1:focus, +#exerslide-slide-title:focus { outline: none; } -/* This ensures that embedded images are scaled down to the width of the main - * column. - */ -#slide img { - max-width: 100%; +#exerslide-slide h1 { + font-size: 1.8rem; } -/* DEBUG information */ +#exerslide-slide h2 { + font-size: 1.4rem; +} -.__exerslide__file_path { - background-color: #EEE; - line-height: 1em; - padding: 0.5em; - text-align: center; - width: 100%; +#exerslide-slide h3 { + font-size: 1.2rem; +} + +#exerslide-slide h4 { + font-size: 1.1rem; +} + +#exerslide-slide h2 + p, +#exerslide-slide h3 + p, +#exerslide-slide h4 + p { + margin-top: 0.3rem; +} + +/** + * Responsive images. + */ +#exerslide-slide img { + max-width: 100%; } /* MOBILE */ @media(max-width: 768px) { + html, body { + overflow: auto; + } + /* * Makes navigation bar move to the end of the content instead of sticking to * the bottom of the screen */ - #page { + #exerslide-page { bottom: initial; + min-height: 100vh; } /* Makes the page look better when the menu is TOC is expanded */ - #main { + #exerslide-main { overflow-x: hidden; } } - -@media screen and (min-width: 40em) { - #slide h1 { - font-size: 2.2em; - } - - #slide h2 { - font-size: 1.8em; - } - - #slide h3 { - font-size: 1.4em; - } -} diff --git a/css/taop.css b/css/taop.css index 0e31c35..30603b2 100644 --- a/css/taop.css +++ b/css/taop.css @@ -7,7 +7,8 @@ width: 1px; } -#toolbar { +.exerslide-toolbar-text, +.exerslide-toolbar-button { color: #888; } @@ -16,7 +17,8 @@ html .editorWithPreview input[type=number], html .editorWithPreview textarea { display: inline-block;; box-sizing: border-box; - width: auto;; + width: initial; + max-width: 100%; height: auto; padding: 1px; border: 1px inset; @@ -39,22 +41,30 @@ html .editorWithPreview button { line-height: inherit; } -#slide h2 { +#exerslide-slide { + position: initial; +} + +#exerslide-slide { + padding-top: 0; +} + +#exerslide-slide h2 { font-size: 1.3em; margin: 1.1em 0 0.8em 0; font-weight: bold; } -#slide .previewHeading { +#exerslide-slide .previewHeading { margin: 0 0 1.1em; color: grey; } -#slide h3 { +#exerslide-slide h3 { font-size: 1.1em; } @media screen and (min-width: 40em) { - #slide h1 { + #exerslide-slide h1 { font-size: 1.8em; font-weight: bold; } diff --git a/css/toc.css b/css/toc.css deleted file mode 100755 index ffbf78d..0000000 --- a/css/toc.css +++ /dev/null @@ -1,51 +0,0 @@ -#toc { - background-color: #EEE; - border-right: 1px solid #AAA; - font-size: 110%; - font-weight: 100; - max-width: 300px; - min-width: 300px; - overflow-y: auto; -} - -#toc > ul { - padding-left: 10px; - padding-top: 10px; -} - -#toc > h2 { - display: none; -} - -#toc li { - list-style: none; -} - -#toc .chapter { - margin-top: 15px; -} - -#toc .chapter > .title { - font-size: 1.08em; -} -#toc .chapter.active > .title { - font-weight: bold; -} - -#toc .slide { - padding-bottom: 5px; -} - -#toc .slides { - padding-left: 15px; -} - -#toc .slide.active { - font-weight: bold; -} - -#toc .slide > a:active, -#toc .slide > a:focus { - color: #428bca; - text-decoration: none; -} diff --git a/docs/app.css b/docs/app.css new file mode 100644 index 0000000..48b2e15 --- /dev/null +++ b/docs/app.css @@ -0,0 +1 @@ +.CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{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-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-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:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.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-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:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.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:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display: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:-30px;*zoom:1;*display:inline}.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{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{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:none;font-variant-ligatures:none}.CodeMirror-wrap pre{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;overflow:auto}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{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:#ffa;background:rgba(255,255,0,.4)}.CodeMirror span{*vertical-align:text-bottom}.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}.editor{border:1px solid #eee;position:relative;width:100%}.editor,.editor .CodeMirror,.editor .CodeMirror-gutters{background-color:#f5f5f5}.editor>textarea.CodeMirror{box-sizing:border-box;width:100%;border:none;resize:none;overflow:auto}.editor .editor-toggle-button{position:absolute;left:-10000px;z-index:20}.editor .editor-toggle-button:focus,.editor:hover .editor-toggle-button{left:auto;right:10px;top:10px}.exerslide-toc-container{background-color:#f4f4f4;border-right:1px solid #ccc;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;max-width:30%;min-width:20em}.exerslide-toc-container.collapsed{background-color:inherit;border-right:none;min-width:0;position:absolute;z-index:100}ol#exerslide-toc-list,ol.exerslide-toc-entries{list-style:none;counter-reset:item;overflow-y:auto;margin:0}ol#exerslide-toc-list{padding-left:1em;padding-right:1em}ol.exerslide-toc-entries{padding-left:0}ol#exerslide-toc-list>*{margin-bottom:1em}#exerslide-toc-title,.exerslide-toc-container.collapsed>#exerslide-toc-list{display:none}.exerslide-toc-toggleButton{align-self:flex-end;background-color:transparent;border:none;color:#aaa;cursor:pointer;flex-shrink:0;font-size:1em;outline-width:thin;padding:.5em}.exerslide-toc-toggleButton:hover{color:inherit}#toc-list>:first-child{margin-top:0}.exerslide-toc-chapter,.exerslide-toc-entry{display:block}.exerslide-toc-chapter:before,.exerslide-toc-entry:before{content:counters(item,'.') ". ";counter-increment:item}.exerslide-toc-title{display:inline-block;margin:0;margin-bottom:.5em}#exerslide-toc-list>.exerslide-toc-entry,#exerslide-toc-list>.exerslide-toc-entry:before,.exerslide-toc-chapter:before,.exerslide-toc-title{font-weight:700;font-size:1em}.exerslide-toc-entry{padding:.1em 0}.exerslide-toc-entry>a{color:inherit}.exerslide-toc-entry,.exerslide-toc-entry>a{text-decoration:none;outline-width:thin}.exerslide-toc-entry.active,.exerslide-toc-entry.active>a,.exerslide-toc-entry:hover{color:#428bca}.exerslide-toolbar{box-sizing:border-box;color:#bbb;padding:0 1.5em;text-align:right;width:100%}.exerslide-toolbar-button,.exerslide-toolbar-text{font-size:1.05rem}.exerslide-toolbar-button{background-color:transparent;cursor:pointer;color:#bbb;border:none;padding:10px}.exerslide-toolbar-button:focus,.exerslide-toolbar-button:hover{color:#555}.exerslide-toolbar-button[disabled]{visibility:hidden}@media(max-width:768px){.exerslide-toolbar{text-align:center;margin-bottom:1em}.exerslide-toolbar-button,.exerslide-toolbar-text{font-size:1.5rem}} \ No newline at end of file diff --git a/docs/app.js b/docs/app.js new file mode 100644 index 0000000..1ca6f7e --- /dev/null +++ b/docs/app.js @@ -0,0 +1,31 @@ +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){(function(e){"use strict";function t(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=e.forward;t()}function o(e){var t=e.back;t()}var i=n(256),a=n(422),s=t(a),l=n(430),u=t(l),c=n(431),d=t(c),p=n(433),f=t(p),h=n(435),m=t(h),g=n(436),v=(t(g),n(437)),y=t(v),b=n(438),x=t(b);(0,i.use)(d["default"],{left:o,right:r,"alt+pageup":o,"alt+pagedown":r}),(0,i.use)(f["default"]),(0,i.use)(m["default"]),(0,i.use)(x["default"]),(0,i.present)({masterLayout:s["default"],slideLayout:u["default"],references:y["default"],slides:e})}).call(t,n(1))},function(e,t,n){"use strict";e.exports=[n(2),n(196),n(197),n(198),n(232),n(234),n(235),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(248),n(251),n(252),n(253),n(255)]},function(e,t,n){var r=n(3);r=r?r["default"]||r:r,e.exports={options:{title:"Using this Tutorial",chapter:"Introduction"},content:'Welcome to the Teach Access Tutorial! This resource is part of the Teach Access Initiative, and provides best practices for making accessible mobile and web apps. This tutorial currently provides basic training for developers and designers, with more disciplines to come! If you are new to accessibility, you\'ve come to the right place - the following material will help you get a solid footing on accessibility via hands-on exercises and useful reference guides. Follow the instructions below for using and interacting with the tutorial.\n\n1. You can use the left and right arrow keys to navigate through the slides.\n\n2. Each slide has some core concepts, code samples, and one or more exercises. After you complete an exercise,\nuse the verify button to check whether your solution is correct.\n\n3. You can also verify the code sample output using VoiceOver - Apple\'s built-in screen reader (other screen readers work too). Here are some instructions for navigating with VoiceOver:\n * cmd + F5 turns VoiceOver on/off\n * tab navigates to an interactive element\n * ctrl + opt + right arrow (repeatedly) \n navigates to the next element\n * ctrl + opt + cmd + h \n (repeatedly) navigates by headings\n

\n\n4. When verifying with VoiceOver, use Chrome on a Mac for the best experience. However, the "Verify" button provided after each exercise will work with any browser/OS combination.\n\n5. ARIA stands for Accessible Rich Internet Applications, a W3C standard for \n building accessible user interfaces on the web.\n\nHappy learning! Smiley Icon\n',pathHash:"e22b2aea3081574248d2aa2d59f3ea09",contentConverter:r}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.references,n={};for(var r in t){var o=t[r];"object"!==("undefined"==typeof o?"undefined":(0,u["default"])(o))&&(o={href:o}),n[k.utils.normalizeReference(r)]=o}return n}function i(e,t){var n=_.get(e);return n||(n=C(e,t),_.set(e,n)),f["default"].createElement("div",{dangerouslySetInnerHTML:{__html:n}})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),s=r(a),l=n(42),u=r(l),c=n(77),d=r(c);t["default"]=i;var p=n(96),f=r(p),h=n(125),m=r(h),g=n(193),v=r(g),y=n(194),b=r(y),x=n(195),w=r(x),k=(0,m["default"])({html:!0,tables:!0,typographer:!0,highlight:function(e,t){return t?v["default"].highlightAuto(e,[t]).value:v["default"].highlightAuto(e).value}}).use(b["default"]).use(w["default"]),_=new d["default"],C=function(e,t){var n=o(t.config),r=t.config["markdown-converter"];return r&&r(k),(C=function(e,t){return k.render(e,(0,s["default"])({references:n},t))})(e,t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(5),i=r(o);t["default"]=i["default"]||function(e){for(var t=1;tu;)for(var p,f=s(arguments[u++]),h=c?r(f).concat(c(f)):r(f),m=h.length,g=0;m>g;)d.call(f,p=h[g++])&&(n[p]=f[p]);return n}:l},function(e,t,n){var r=n(25),o=n(38);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(26),o=n(27),i=n(31)(!1),a=n(35)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(28),o=n(30);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(29);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(27),o=n(32),i=n(34);e.exports=function(e){return function(t,n,a){var s,l=r(t),u=o(l.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(33),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(33),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(36)("keys"),o=n(37);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(9),o="__core-js_shared__",i=r[o]||(r[o]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(30);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(43),i=r(o),a=n(63),s=r(a),l="function"==typeof s["default"]&&"symbol"==typeof i["default"]?function(e){return typeof e}:function(e){return e&&"function"==typeof s["default"]&&e.constructor===s["default"]?"symbol":typeof e};t["default"]="function"==typeof s["default"]&&"symbol"===l(i["default"])?function(e){return"undefined"==typeof e?"undefined":l(e)}:function(e){return e&&"function"==typeof s["default"]&&e.constructor===s["default"]?"symbol":"undefined"==typeof e?"undefined":l(e)}},function(e,t,n){e.exports={"default":n(44),__esModule:!0}},function(e,t,n){n(45),n(58),e.exports=n(62).f("iterator")},function(e,t,n){"use strict";var r=n(46)(!0);n(47)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(33),o=n(30);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(i=s.charCodeAt(l),i<55296||i>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):(i-55296<<10)+(a-56320)+65536)}}},function(e,t,n){"use strict";var r=n(48),o=n(8),i=n(49),a=n(13),s=n(26),l=n(50),u=n(51),c=n(55),d=n(57),p=n(56)("iterator"),f=!([].keys&&"next"in[].keys()),h="@@iterator",m="keys",g="values",v=function(){return this};e.exports=function(e,t,n,y,b,x,w){u(n,t,y);var k,_,C,E=function(e){if(!f&&e in M)return M[e];switch(e){case m:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",T=b==g,A=!1,M=e.prototype,L=M[p]||M[h]||b&&M[b],N=L||E(b),D=b?T?E("entries"):N:void 0,I="Array"==t?M.entries||L:L;if(I&&(C=d(I.call(new e)),C!==Object.prototype&&(c(C,S,!0),r||s(C,p)||a(C,p,v))),T&&L&&L.name!==g&&(A=!0,N=function(){return L.call(this)}),r&&!w||!f&&!A&&M[p]||a(M,p,N),l[t]=N,l[S]=v,b)if(k={values:T?N:E(g),keys:x?N:E(m),entries:D},w)for(_ in k)_ in M||i(M,_,k[_]);else o(o.P+o.F*(f||A),t,k);return k}},function(e,t){e.exports=!0},function(e,t,n){e.exports=n(13)},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(52),o=n(22),i=n(55),a={};n(13)(a,n(56)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(15),o=n(53),i=n(38),a=n(35)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(20)("iframe"),r=i.length,o="<",a=">";for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),u=e.F;r--;)delete u[l][i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(14),o=n(15),i=n(24);e.exports=n(18)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){e.exports=n(9).document&&document.documentElement},function(e,t,n){var r=n(14).f,o=n(26),i=n(56)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(36)("wks"),o=n(37),i=n(9).Symbol,a="function"==typeof i,s=e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=r},function(e,t,n){var r=n(26),o=n(41),i=n(35)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(59);for(var r=n(9),o=n(13),i=n(50),a=n(56)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var u=s[l],c=r[u],d=c&&c.prototype;d&&!d[a]&&o(d,a,u),i[u]=i.Array}},function(e,t,n){"use strict";var r=n(60),o=n(61),i=n(50),a=n(27);e.exports=n(47)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){t.f=n(56)},function(e,t,n){e.exports={"default":n(64),__esModule:!0}},function(e,t,n){n(65),n(74),n(75),n(76),e.exports=n(10).Symbol},function(e,t,n){"use strict";var r=n(9),o=n(26),i=n(18),a=n(8),s=n(49),l=n(66).KEY,u=n(19),c=n(36),d=n(55),p=n(37),f=n(56),h=n(62),m=n(67),g=n(68),v=n(69),y=n(70),b=n(15),x=n(27),w=n(21),k=n(22),_=n(52),C=n(71),E=n(73),S=n(14),T=n(24),A=E.f,M=S.f,L=C.f,N=r.Symbol,D=r.JSON,I=D&&D.stringify,O="prototype",P=f("_hidden"),R=f("toPrimitive"),F={}.propertyIsEnumerable,z=c("symbol-registry"),W=c("symbols"),B=c("op-symbols"),q=Object[O],H="function"==typeof N,U=r.QObject,j=!U||!U[O]||!U[O].findChild,V=i&&u(function(){return 7!=_(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=A(q,t);r&&delete q[t],M(e,t,n),r&&e!==q&&M(q,t,r)}:M,K=function(e){var t=W[e]=_(N[O]);return t._k=e,t},G=H&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},Y=function(e,t,n){return e===q&&Y(B,t,n),b(e),t=w(t,!0),b(n),o(W,t)?(n.enumerable?(o(e,P)&&e[P][t]&&(e[P][t]=!1),n=_(n,{enumerable:k(0,!1)})):(o(e,P)||M(e,P,k(1,{})),e[P][t]=!0),V(e,t,n)):M(e,t,n)},$=function(e,t){b(e);for(var n,r=v(t=x(t)),o=0,i=r.length;i>o;)Y(e,n=r[o++],t[n]);return e},Z=function(e,t){return void 0===t?_(e):$(_(e),t)},X=function(e){var t=F.call(this,e=w(e,!0));return!(this===q&&o(W,e)&&!o(B,e))&&(!(t||!o(this,e)||!o(W,e)||o(this,P)&&this[P][e])||t)},Q=function(e,t){if(e=x(e),t=w(t,!0),e!==q||!o(W,t)||o(B,t)){var n=A(e,t);return!n||!o(W,t)||o(e,P)&&e[P][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=L(x(e)),r=[],i=0;n.length>i;)o(W,t=n[i++])||t==P||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===q,r=L(n?B:x(e)),i=[],a=0;r.length>a;)!o(W,t=r[a++])||n&&!o(q,t)||i.push(W[t]);return i};H||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(B,n),o(this,P)&&o(this[P],e)&&(this[P][e]=!1),V(this,e,k(1,n))};return i&&j&&V(q,e,{configurable:!0,set:t}),K(e)},s(N[O],"toString",function(){return this._k}),E.f=Q,S.f=Y,n(72).f=C.f=J,n(40).f=X,n(39).f=ee,i&&!n(48)&&s(q,"propertyIsEnumerable",X,!0),h.f=function(e){return K(f(e))}),a(a.G+a.W+a.F*!H,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=T(f.store),ne=0;te.length>ne;)m(te[ne++]);a(a.S+a.F*!H,"Symbol",{"for":function(e){return o(z,e+="")?z[e]:z[e]=N(e)},keyFor:function(e){if(G(e))return g(z,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){j=!0},useSimple:function(){j=!1}}),a(a.S+a.F*!H,"Object",{create:Z,defineProperty:Y,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),D&&a(a.S+a.F*(!H||u(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!G(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,I.apply(D,r)}}}),N[O][R]||n(13)(N[O],R,N[O].valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(37)("meta"),o=n(16),i=n(26),a=n(14).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(19)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},p=function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},f=function(e){return u&&h.NEED&&l(e)&&!i(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:p,onFreeze:f}},function(e,t,n){var r=n(9),o=n(10),i=n(48),a=n(62),s=n(14).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(24),o=n(27);e.exports=function(e,t){for(var n,i=o(e),a=r(i),s=a.length,l=0;s>l;)if(i[n=a[l++]]===t)return n}},function(e,t,n){var r=n(24),o=n(39),i=n(40);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){var r=n(29);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27),o=n(72).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},function(e,t,n){var r=n(25),o=n(38).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(40),o=n(22),i=n(27),a=n(21),s=n(26),l=n(17),u=Object.getOwnPropertyDescriptor;t.f=n(18)?u:function(e,t){if(e=i(e),t=a(t,!0),l)try{return u(e,t)}catch(n){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(67)("asyncIterator")},function(e,t,n){n(67)("observable")},function(e,t,n){e.exports={"default":n(78),__esModule:!0}},function(e,t,n){n(74),n(45),n(58),n(79),n(93),e.exports=n(10).Map},function(e,t,n){"use strict";var r=n(80);e.exports=n(89)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(14).f,o=n(52),i=n(81),a=n(11),s=n(82),l=n(30),u=n(83),c=n(47),d=n(61),p=n(88),f=n(18),h=n(66).fastKey,m=f?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var d=e(function(e,r){s(e,d,t,"_i"),e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&u(r,n,e[c],e)});return i(d.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[m]=0},"delete":function(e){var t=this,n=g(t,e);if(n){var r=n.n,o=n.p;delete t._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),t._f==n&&(t._f=r),t._l==n&&(t._l=o),t[m]--}return!!n},forEach:function(e){s(this,d,"forEach");for(var t,n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!g(this,e)}}),f&&r(d.prototype,"size",{get:function(){return l(this[m])}}),d},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?d(0,n.k):"values"==t?d(0,n.v):d(0,[n.k,n.v]):(e._t=void 0,d(1))},n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){var r=n(13);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(11),o=n(84),i=n(85),a=n(15),s=n(32),l=n(86),u={},c={},t=e.exports=function(e,t,n,d,p){var f,h,m,g,v=p?function(){return e}:l(e),y=r(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(f=s(e.length);f>b;b++)if(g=t?y(a(h=e[b])[0],h[1]):y(e[b]),g===u||g===c)return g}else for(m=v.call(e);!(h=m.next()).done;)if(g=o(m,y,h.value,t),g===u||g===c)return g};t.BREAK=u,t.RETURN=c},function(e,t,n){var r=n(15);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(i){var a=e["return"];throw void 0!==a&&r(a.call(e)),i}}},function(e,t,n){var r=n(50),o=n(56)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(87),o=n(56)("iterator"),i=n(50);e.exports=n(10).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(29),o=n(56)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";var r=n(9),o=n(10),i=n(14),a=n(18),s=n(56)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(9),o=n(8),i=n(66),a=n(19),s=n(13),l=n(81),u=n(83),c=n(82),d=n(16),p=n(55),f=n(14).f,h=n(90)(0),m=n(18);e.exports=function(e,t,n,g,v,y){var b=r[e],x=b,w=v?"set":"add",k=x&&x.prototype,_={};return m&&"function"==typeof x&&(y||k.forEach&&!a(function(){(new x).entries().next()}))?(x=t(function(t,n){c(t,x,e,"_c"),t._c=new b,void 0!=n&&u(n,v,t[w],t)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in k&&(!y||"clear"!=e)&&s(x.prototype,e,function(n,r){if(c(this,x,e),!t&&y&&!d(n))return"get"==e&&void 0;var o=this._c[e](0===n?0:n,r);return t?this:o})}),"size"in k&&f(x.prototype,"size",{get:function(){return this._c.size}})):(x=g.getConstructor(t,e,v,w),l(x.prototype,n),i.NEED=!0),p(x,e),_[e]=x,o(o.G+o.W+o.F,_),y||g.setStrong(x,e,v),x}},function(e,t,n){var r=n(11),o=n(28),i=n(41),a=n(32),s=n(91);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,p=5==e||d,f=t||s;return function(t,s,h){for(var m,g,v=i(t),y=o(v),b=r(s,h,3),x=a(y.length),w=0,k=n?f(t,x):l?f(t,0):void 0;x>w;w++)if((p||w in y)&&(m=y[w],g=b(m,w,v),e))if(n)k[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(c)return!1;return d?-1:u||c?c:k}}},function(e,t,n){var r=n(92);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(16),o=n(70),i=n(56)("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&(t=t[i],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,n){var r=n(8);r(r.P+r.R,"Map",{toJSON:n(94)("Map")})},function(e,t,n){var r=n(87),o=n(95);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},function(e,t,n){var r=n(83);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){"use strict";e.exports=n(97)},function(e,t,n){"use strict";var r=n(98),o=n(99),i=n(111),a=n(114),s=n(115),l=n(120),u=n(103),c=n(121),d=n(123),p=n(124),f=(n(105),u.createElement),h=u.createFactory,m=u.cloneElement,g=r,v={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:p},Component:i,PureComponent:a,createElement:f,cloneElement:m,isValidElement:u.isValidElement,PropTypes:c,createClass:s.createClass,createFactory:h,createMixin:function(e){return e},DOM:l,version:d,__spread:g};e.exports=v},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,a,s=n(e),l=1;l1){for(var g=Array(m),v=0;v1){for(var b=Array(y),x=0;x>"),T={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:l,element:u(),instanceOf:c,node:h(),objectOf:p,oneOf:d,oneOfType:f,shape:m};o.prototype=Error.prototype,e.exports=T},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t){"use strict";e.exports="15.3.1"},function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=n(101),i=n(103);n(102);e.exports=r},function(e,t,n){"use strict";e.exports=n(126)},function(e,t,n){"use strict";function r(e){var t=e.trim().toLowerCase();return!v.test(t)||!!y.test(t)}function o(e){var t=h.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=m.toASCII(t.hostname)}catch(n){}return h.encode(h.format(t))}function i(e){var t=h.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=m.toUnicode(t.hostname)}catch(n){}return h.decode(h.format(t))}function a(e,t){return this instanceof a?(t||s.isString(e)||(t=e||{},e="default"),this.inline=new p,this.block=new d,this.core=new c,this.renderer=new u,this.linkify=new f,this.validateLink=r,this.normalizeLink=o,this.normalizeLinkText=i,this.utils=s,this.helpers=l,this.options={},this.configure(e),void(t&&this.set(t))):new a(e,t)}var s=n(127),l=n(141),u=n(145),c=n(146),d=n(156),p=n(171),f=n(186),h=n(131),m=n(188),g={"default":n(190),zero:n(191),commonmark:n(192)},v=/^(vbscript|javascript|file|data):/,y=/^data:image\/(gif|png|jpeg|webp);/,b=["http:","https:","mailto:"];a.prototype.set=function(e){return s.assign(this.options,e),this},a.prototype.configure=function(e){var t,n=this;if(s.isString(e)&&(t=e,e=g[t],!e))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},a.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},a.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},a.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},a.prototype.parse=function(e,t){var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},a.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},a.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},a.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=a},function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}function o(e){return"[object String]"===r(e)}function i(e,t){return w.call(e,t)}function a(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function s(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function l(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function u(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function c(e,t){var n=0;return i(S,t)?S[t]:35===t.charCodeAt(0)&&E.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),l(n))?u(n):e}function d(e){return e.indexOf("\\")<0?e:e.replace(k,"$1")}function p(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(C,function(e,t,n){return t?t:c(e,n)})}function f(e){return M[e]}function h(e){return T.test(e)?e.replace(A,f):e}function m(e){return e.replace(L,"\\$&")}function g(e){switch(e){case 9:case 32:return!0}return!1}function v(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function y(e){return N.test(e)}function b(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function x(e){return e.trim().replace(/\s+/g," ").toUpperCase()}var w=Object.prototype.hasOwnProperty,k=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,_=/&([a-z#][a-z0-9]{1,31});/gi,C=new RegExp(k.source+"|"+_.source,"gi"),E=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,S=n(128),T=/[&<>"]/,A=/[&<>"]/g,M={"&":"&","<":"<",">":">",'"':"""},L=/[.?*+^$[\]\\(){}|-]/g,N=n(130);t.lib={},t.lib.mdurl=n(131),t.lib.ucmicro=n(136),t.assign=a,t.isString=o,t.has=i,t.unescapeMd=d,t.unescapeAll=p,t.isValidEntityCode=l,t.fromCodePoint=u,t.escapeHtml=h,t.arrayReplaceAt=s,t.isSpace=g,t.isWhiteSpace=v,t.isMdAsciiPunct=b,t.isPunctChar=y,t.escapeRE=m,t.normalizeReference=x},function(e,t,n){"use strict";e.exports=n(129)},function(e,t){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅","in":"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺","int":"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸", +notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/},function(e,t,n){"use strict";e.exports.encode=n(132),e.exports.decode=n(133),e.exports.format=n(134),e.exports.parse=n(135)},function(e,t){"use strict";function n(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1=56320&&l<=57343)){c+=encodeURIComponent(e[i]+e[i+1]),i++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[i]);return c}var o={};r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},function(e,t){"use strict";function n(e){var t,n,r=o[e];if(r)return r;for(r=o[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240===(248&r)&&t+91114111?u+="����":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+="�";return u})}var o={};r.defaultChars=";/?:@&=+$,#",r.componentChars="",e.exports=r},function(e,t){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",t+=e.hostname&&e.hostname.indexOf(":")!==-1?"["+e.hostname+"]":e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},function(e,t){"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}function r(e,t){if(e&&e instanceof n)return e;var r=new n;return r.parse(e,t),r}var o=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(s),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=255,f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};n.prototype.parse=function(e,t){var n,r,i,s,l,u=e;if(u=u.trim(),!t&&1===e.split("#").length){var v=a.exec(u);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var y=o.exec(u);if(y&&(y=y[0],i=y.toLowerCase(),this.protocol=y,u=u.substr(y.length)),(t||y||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(l="//"===u.substr(0,2),!l||y&&m[y]||(u=u.substr(2),this.slashes=!0)),!m[y]&&(l||y&&!g[y])){var b=-1;for(n=0;n127?"x":E[T];if(!S.match(f)){var M=C.slice(0,n),L=C.slice(n+1),N=E.match(h);N&&(M.push(N[1]),L.unshift(N[2])),L.length&&(u=L.join(".")+u),this.hostname=M.join(".");break}}}}this.hostname.length>p&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=u.indexOf("#");D!==-1&&(this.hash=u.substr(D),u=u.slice(0,D));var I=u.indexOf("?");return I!==-1&&(this.search=u.substr(I),u=u.slice(0,I)),u&&(this.pathname=u),g[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},n.prototype.parseHost=function(e){var t=i.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=r},function(e,t,n){e.exports.Any=n(137),e.exports.Cc=n(138),e.exports.Cf=n(139),e.exports.P=n(130),e.exports.Z=n(140)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},function(e,t,n){"use strict";t.parseLinkLabel=n(142),t.parseLinkDestination=n(143),t.parseLinkTitle=n(144)},function(e,t){"use strict";e.exports=function(e,t,n){var r,o,i,a,s=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos1))break;if(41===i&&(a--,a<0))break;t++}return l===t?u:(u.str=o(e.slice(l,t)),u.lines=s,u.pos=t,u.ok=!0,u)}},function(e,t,n){"use strict";var r=n(127).unescapeAll;e.exports=function(e,t,n){var o,i,a=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(i=e.charCodeAt(t),34!==i&&39!==i&&40!==i)return l;for(t++,40===i&&(i=41);t"+a(e[t].content)+""},s.code_block=function(e,t,n,r,o){var i=e[t];return""+a(e[t].content)+"\n"},s.fence=function(e,t,n,r,o){var s,l,u,c,d=e[t],p=d.info?i(d.info).trim():"",f="";return p&&(f=p.split(/\s+/g)[0]),s=n.highlight?n.highlight(d.content,f)||a(d.content):a(d.content),0===s.indexOf(""+s+"\n"):"
"+s+"
\n"},s.image=function(e,t,n,r,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},s.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},s.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},s.text=function(e,t){return a(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},r.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")},r.prototype.renderInline=function(e,t,n){for(var r,o="",i=this.rules,a=0,s=e.length;a\s]/i.test(e)}function o(e){return/^<\/a\s*>/i.test(e)}var i=n(127).arrayReplaceAt;e.exports=function(e){var t,n,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,w=e.tokens;if(e.md.options.linkify)for(n=0,a=w.length;n=0;t--)if(u=s[t],"link_close"!==u.type){if("html_inline"===u.type&&(r(u.content)&&g>0&&g--,o(u.content)&&g++),!(g>0)&&"text"===u.type&&e.md.linkify.test(u.content)){for(p=u.content,x=e.md.linkify.match(p),c=[],m=u.level,h=0,d=0;dh&&(l=new e.Token("text","",0),l.content=p.slice(h,f),l.level=m,c.push(l)),l=new e.Token("link_open","a",1),l.attrs=[["href",y]],l.level=m++,l.markup="linkify",l.info="auto",c.push(l),l=new e.Token("text","",0),l.content=b,l.level=m,c.push(l),l=new e.Token("link_close","a",(-1)),l.level=--m,l.markup="linkify",l.info="auto",c.push(l),h=x[d].lastIndex);h=0;t--)r=e[t],"text"!==r.type||o||(r.content=r.content.replace(s,n)),"link_open"===r.type&&"auto"===r.info&&o--,"link_close"===r.type&&"auto"===r.info&&o++}function o(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],"text"!==n.type||r||i.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var i=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,a=/\((c|tm|r|p)\)/i,s=/\((c|tm|r|p)\)/gi,l={c:"©",r:"®",p:"§",tm:"™"};e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(a.test(e.tokens[t].content)&&r(e.tokens[t].children),i.test(e.tokens[t].content)&&o(e.tokens[t].children))}},function(e,t,n){"use strict";function r(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function o(e,t){var n,o,l,d,p,f,h,m,g,v,y,b,x,w,k,_,C,E,S,T,A;for(S=[],n=0;n=0&&!(S[C].level<=h);C--);if(S.length=C+1,"text"===o.type){l=o.content,p=0,f=l.length;e:for(;p=0)g=l.charCodeAt(d.index-1);else for(C=n-1;C>=0;C--)if("text"===e[C].type){g=e[C].content.charCodeAt(e[C].content.length-1);break}if(v=32,p=48&&g<=57&&(_=k=!1),k&&_&&(k=!1,_=b),k||_){if(_)for(C=S.length-1;C>=0&&(m=S[C],!(S[C].level=0;t--)"inline"===e.tokens[t].type&&l.test(e.tokens[t].content)&&o(e.tokens[t].children,e)}},function(e,t,n){"use strict";function r(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}var o=n(155);r.prototype.Token=o,e.exports=r},function(e,t){"use strict";function n(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}n.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(t=this.attrs,n=0,r=t.length;n=0&&(n=this.attrs[t][1]),n},n.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=n},function(e,t,n){"use strict";function r(){this.ruler=new o;for(var e=0;e=n))&&!(e.sCount[s]=u){e.line=n;break}for(o=0;oo)return!1;if(c=t+1,e.sCount[c]=e.eMarks[c])return!1;if(a=e.src.charCodeAt(l),124!==a&&45!==a&&58!==a)return!1;if(s=n(e,t+1),!/^[-:| ]+$/.test(s))return!1;for(d=s.split("|"),h=[],u=0;uh.length)return!1;if(i)return!0;for(f=e.push("table_open","table",1),f.map=g=[t,0],f=e.push("thead_open","thead",1), +f.map=[t,t+1],f=e.push("tr_open","tr",1),f.map=[t,t+1],u=0;u=2&&"list"===e.parentType)break;r++}else{if(a=0,!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}return e.line=o,i=e.push("code_block","code",0),i.content=e.getLines(t,o,4+e.blkIndent,!0),i.map=[t,e.line],!0}},function(e,t){"use strict";e.exports=function(e,t,n,r){var o,i,a,s,l,u,c,d=!1,p=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(p+3>f)return!1;if(o=e.src.charCodeAt(p),126!==o&&96!==o)return!1;if(l=p,p=e.skipChars(p,o),i=p-l,i<3)return!1;if(c=e.src.slice(l,p),a=e.src.slice(p,f),a.indexOf("`")>=0)return!1;if(r)return!0;for(s=t;(s++,!(s>=n))&&(p=l=e.bMarks[s]+e.tShift[s],f=e.eMarks[s],!(p=4||(p=e.skipChars(p,o),p-l=k,l=[e.sCount[t]],e.sCount[t]=h-f,s=[e.tShift[t]],e.tShift[t]=w-e.bMarks[t],g=e.md.block.ruler.getRules("blockquote"),i=t+1;i=k));i++)if(62!==e.src.charCodeAt(w++)){if(a)break;for(x=!1,y=0,b=g.length;y=k,l.push(e.sCount[i]),e.sCount[i]=h-f,s.push(e.tShift[i]),e.tShift[i]=w-e.bMarks[i]}for(d=e.parentType,e.parentType="blockquote",v=e.push("blockquote_open","blockquote",1),v.markup=">",v.map=p=[t,0],e.md.block.tokenize(e,t,i),v=e.push("blockquote_close","blockquote",-1),v.markup=">",e.parentType=d,p[1]=e.line,y=0;y=i)return-1;if(n=e.src.charCodeAt(o++),n<48||n>57)return-1;for(;;){if(o>=i)return-1;n=e.src.charCodeAt(o++);{if(!(n>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-r>=10)return-1}}return o=0)E=!0;else{if(!((y=r(e,t))>=0))return!1;E=!1}if(C=e.src.charCodeAt(y-1),s)return!0;for(T=e.tokens.length,E?(v=e.bMarks[t]+e.tShift[t],_=Number(e.src.substr(v,y-v-1)),D=e.push("ordered_list_open","ol",1),1!==_&&(D.attrs=[["start",_]])):D=e.push("bullet_list_open","ul",1),D.map=M=[t,0],D.markup=String.fromCharCode(C),l=t,A=!1,N=e.md.block.ruler.getRules("list");l=w?1:c-u,k>4&&(k=1),d=u+k,D=e.push("list_item_open","li",1),D.markup=String.fromCharCode(C),D.map=L=[t,0],f=e.blkIndent,m=e.tight,p=e.tShift[t],h=e.sCount[t],g=e.parentType,e.blkIndent=d,e.tight=!0,e.parentType="list",e.tShift[t]=S-e.bMarks[t],e.sCount[t]=c,S>=w&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(R=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=f,e.tShift[t]=p,e.sCount[t]=h,e.tight=m,e.parentType=g,D=e.push("list_item_close","li",-1),D.markup=String.fromCharCode(C),l=t=e.line,L[1]=l,S=e.bMarks[t],l>=n)break;if(e.isEmpty(l))break;if(e.sCount[l]3||e.sCount[S]<0)){for(x=!1,f=0,h=w.length;f=c)return!1;for(a=1,i=e.src.charCodeAt(++u);35===i&&u6||uu&&r(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,l=e.push("heading_open","h"+String(a),1),l.markup="########".slice(0,a),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(u,c).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(a),-1),l.markup="########".slice(0,a),!0))}},function(e,t){"use strict";e.exports=function(e,t,n){for(var r,o,i,a,s,l,u,c,d,p=t+1,f=e.md.block.ruler.getRules("paragraph");p3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p],u=e.eMarks[p],l=u)))){c=61===d?1:2;break}if(!(e.sCount[p]<0)){for(o=!1,i=0,a=f.length;i|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,a,s,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(u))return!1;for(l=e.src.slice(u,c),o=0;o`\\x00-\\x20]+",o="'[^']*'",i='"[^"]*"',a="(?:"+r+"|"+o+"|"+i+")",s="(?:\\s+"+n+"(?:\\s*=\\s*"+a+")?)",l="<[A-Za-z][A-Za-z0-9\\-]*"+s+"*\\s*\\/?>",u="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",c="|",d="<[?].*?[?]>",p="]*>",f="",h=new RegExp("^(?:"+l+"|"+u+"|"+c+"|"+d+"|"+p+"|"+f+")"),m=new RegExp("^(?:"+l+"|"+u+")");e.exports.HTML_TAG_RE=h,e.exports.HTML_OPEN_CLOSE_TAG_RE=m},function(e,t){"use strict";e.exports=function(e,t){for(var n,r,o,i,a,s=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;s3||e.sCount[s]<0)){for(r=!1,o=0,i=l.length;o0&&this.level++,this.tokens.push(r),r},r.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},r.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},r.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},r.prototype.getLines=function(e,t,n,r){var o,a,s,l,u,c,d,p=e;if(e>=t)return"";for(c=new Array(t-e),o=0;p=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},r.prototype.parse=function(e,t,n,r){var o,i,a,s=new this.State(e,t,n,r);for(this.tokenize(s),i=this.ruler2.getRules(""),a=i.length,o=0;o=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o?@[]^_`{|}~-".split("").forEach(function(e){o[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,i=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(i++,i=b)return!1;for(x=p,f=o(e.src,p,e.posMax),f.ok&&(v=e.md.normalizeLink(f.str),e.md.validateLink(v)?p=f.pos:v=""),x=p;p=b||41!==e.src.charCodeAt(p))return e.pos=y,!1;p++}else{if("undefined"==typeof e.env.references)return!1;if(p=0?u=e.src.slice(x,p++):p=c+1):p=c+1,u||(u=e.src.slice(d,c)),h=e.env.references[a(u)],!h)return e.pos=y,!1;v=h.href,m=h.title}return t||(e.pos=d,e.posMax=c,g=e.push("link_open","a",1),g.attrs=n=[["href",v]],m&&n.push(["title",m]),e.md.inline.tokenize(e),g=e.push("link_close","a",-1)),e.pos=p,e.posMax=b,!0}},function(e,t,n){"use strict";var r=n(142),o=n(143),i=n(144),a=n(127).normalizeReference,s=n(127).isSpace;e.exports=function(e,t){var n,l,u,c,d,p,f,h,m,g,v,y,b,x="",w=e.pos,k=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(p=e.pos+2,d=r(e,e.pos+1,!1),d<0)return!1;if(f=d+1,f=k)return!1;for(b=f,m=o(e.src,f,e.posMax),m.ok&&(x=e.md.normalizeLink(m.str),e.md.validateLink(x)?f=m.pos:x=""),b=f;f=k||41!==e.src.charCodeAt(f))return e.pos=w,!1;f++}else{if("undefined"==typeof e.env.references)return!1;if(f=0?c=e.src.slice(b,f++):f=d+1):f=d+1,c||(c=e.src.slice(p,d)),h=e.env.references[a(c)],!h)return e.pos=w,!1;x=h.href,g=h.title}return t||(u=e.src.slice(p,d),e.md.inline.parse(u,e.md,e.env,y=[]),v=e.push("image","img",0),v.attrs=n=[["src",x],["alt",""]],v.children=y,v.content=u,g&&n.push(["title",g])),e.pos=f,e.posMax=k,!0}},function(e,t){"use strict";var n=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,r=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var o,i,a,s,l,u,c=e.pos;return 60===e.src.charCodeAt(c)&&(o=e.src.slice(c),!(o.indexOf(">")<0)&&(r.test(o)?(i=o.match(r),s=i[0].slice(1,-1),l=e.md.normalizeLink(s),!!e.md.validateLink(l)&&(t||(u=e.push("link_open","a",1),u.attrs=[["href",l]],u.markup="autolink",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(s),u=e.push("link_close","a",-1),u.markup="autolink",u.info="auto"),e.pos+=i[0].length,!0)):!!n.test(o)&&(a=o.match(n),s=a[0].slice(1,-1),l=e.md.normalizeLink("mailto:"+s),!!e.md.validateLink(l)&&(t||(u=e.push("link_open","a",1),u.attrs=[["href",l]],u.markup="autolink",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(s),u=e.push("link_close","a",-1),u.markup="autolink",u.info="auto"),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";function r(e){var t=32|e;return t>=97&&t<=122}var o=n(168).HTML_TAG_RE;e.exports=function(e,t){var n,i,a,s,l=e.pos;return!!e.md.options.html&&(a=e.posMax,!(60!==e.src.charCodeAt(l)||l+2>=a)&&(n=e.src.charCodeAt(l+1),!(33!==n&&63!==n&&47!==n&&!r(n))&&(!!(i=e.src.slice(l).match(o))&&(t||(s=e.push("html_inline","",0),s.content=e.src.slice(l,l+i[0].length)),e.pos+=i[0].length,!0))))}},function(e,t,n){"use strict";var r=n(128),o=n(127).has,i=n(127).isValidEntityCode,a=n(127).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,u,c,d=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(d))return!1;if(d+1=0;){if(o=i[n],o.open&&o.marker===r.marker&&o.end<0&&o.level===r.level){r.jump=t-n,r.open=!1,o.end=t,o.jump=0;break}n-=o.jump+1}}},function(e,t){"use strict";e.exports=function(e){var t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t0&&this.level++,this.pendingLevel=this.level,this.tokens.push(r),r},r.prototype.scanDelims=function(e,t){var n,r,o,l,u,c,d,p,f,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h0&&e.__compiled__[t]}).map(u).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+o.src_ZPCc+"))("+m+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+o.src_ZPCc+"))("+m+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),d(e)}function m(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function g(e,t){var n=new m(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function v(e,t){return this instanceof v?(t||c(e)&&(t=e,e={}),this.__opts__=r({},y,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},b,e),this.__compiled__={},this.__tlds__=w,this.__tlds_replaced__=!1,this.re={},void h(this)):new v(e,t)}var y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},b={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},x="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",w="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");v.prototype.add=function(e,t){return this.__schemas__[e]=t,h(this),this},v.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},v.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l,u;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0},v.prototype.pretest=function(e){return this.re.pretest.test(e)},v.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},v.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(g(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(g(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},v.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),h(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,h(this),this)},v.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},v.prototype.onCompile=function(){},e.exports=v},function(e,t,n){"use strict";e.exports=function(e){var t={};return t.src_Any=n(137).source,t.src_Cc=n(138).source,t.src_Z=n(140).source,t.src_P=n(130).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?!>|<|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|>|<|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[()[\\]{}.,\"'?!\\-<>]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-(?!-)|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain_root+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))", +t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|<|>|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){var r;(function(e,o){!function(i){function a(e){throw new RangeError(D[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function l(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(N,".");var o=e.split("."),i=s(o,t).join(".");return r+i}function u(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(e-=65536,t+=P(e>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join("")}function d(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,n){var r=0;for(e=n?O(e/E):e>>1,e+=O(e/t);e>I*_>>1;r+=w)e=O(e/I);return O(r+(I+1)*e/(e+C))}function h(e){var t,n,r,o,i,s,l,u,p,h,m=[],g=e.length,v=0,y=T,b=S;for(n=e.lastIndexOf(A),n<0&&(n=0),r=0;r=128&&a("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=g&&a("invalid-input"),u=d(e.charCodeAt(o++)),(u>=w||u>O((x-v)/s))&&a("overflow"),v+=u*s,p=l<=b?k:l>=b+_?_:l-b,!(uO(x/h)&&a("overflow"),s*=h;t=m.length+1,b=f(v-i,t,0==i),O(v/t)>x-y&&a("overflow"),y+=O(v/t),v%=t,m.splice(v++,0,y)}return c(m)}function m(e){var t,n,r,o,i,s,l,c,d,h,m,g,v,y,b,C=[];for(e=u(e),g=e.length,t=T,n=0,i=S,s=0;s=t&&mO((x-n)/v)&&a("overflow"),n+=(l-t)*v,t=l,s=0;sx&&a("overflow"),m==t){for(c=n,d=w;h=d<=i?k:d>=i+_?_:d-i,!(c= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-k,O=Math.floor,P=String.fromCharCode;b={version:"1.4.1",ucs2:{decode:u,encode:c},decode:h,encode:m,toASCII:v,toUnicode:g},r=function(){return b}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(this)}).call(t,n(189)(e),function(){return this}())},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){!function(e){"object"==typeof window&&window||"object"==typeof self&&self;e(t)}(function(e){function t(e){return e.replace(/[&<>]/gm,function(e){return L[e]})}function n(e){return e.nodeName.toLowerCase()}function r(e,t){var n=e&&e.exec(t);return n&&0===n.index}function o(e){return E.test(e)}function i(e){var t,n,r,i,a=e.className+" ";if(a+=e.parentNode?e.parentNode.className:"",n=S.exec(a))return x(n[1])?n[1]:"no-highlight";for(a=a.split(/\s+/),t=0,r=a.length;t"}function s(e){c+=""}function l(e){("start"===e.event?a:s)(e.node)}for(var u=0,c="",d=[];e.length||r.length;){var p=i();if(c+=t(o.substr(u,p[0].offset-u)),u=p[0].offset,p===e){d.reverse().forEach(s);do l(p.splice(0,1)[0]),p=i();while(p===e&&p.length&&p[0].offset===u);d.reverse().forEach(a)}else"start"===p[0].event?d.push(p[0].node):d.pop(),l(p.splice(0,1)[0])}return c+t(o.substr(u))}function u(e){function t(e){return e&&e.source||e}function n(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}function r(o,i){if(!o.compiled){if(o.compiled=!0,o.keywords=o.keywords||o.beginKeywords,o.keywords){var s={},l=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof o.keywords?l("keyword",o.keywords):k(o.keywords).forEach(function(e){l(e,o.keywords[e])}),o.keywords=s}o.lexemesRe=n(o.lexemes||/\w+/,!0),i&&(o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")\\b"),o.begin||(o.begin=/\B|\b/),o.beginRe=n(o.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(o.endRe=n(o.end)),o.terminator_end=t(o.end)||"",o.endsWithParent&&i.terminator_end&&(o.terminator_end+=(o.end?"|":"")+i.terminator_end)),o.illegal&&(o.illegalRe=n(o.illegal)),null==o.relevance&&(o.relevance=1),o.contains||(o.contains=[]);var u=[];o.contains.forEach(function(e){e.variants?e.variants.forEach(function(t){u.push(a(e,t))}):u.push("self"===e?o:e)}),o.contains=u,o.contains.forEach(function(e){r(e,o)}),o.starts&&r(o.starts,i);var c=o.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([o.terminator_end,o.illegal]).map(t).filter(Boolean);o.terminators=c.length?n(c.join("|"),!0):{exec:function(){return null}}}}r(e)}function c(e,n,o,i){function a(e,t){var n,o;for(n=0,o=t.contains.length;n',i+t+a}function h(){var e,n,r,o;if(!k.keywords)return t(S);for(o="",n=0,k.lexemesRe.lastIndex=0,r=k.lexemesRe.exec(S);r;)o+=t(S.substr(n,r.index-n)),e=p(k,r),e?(T+=e[1],o+=f(e[0],t(r[0]))):o+=t(r[0]),n=k.lexemesRe.lastIndex,r=k.lexemesRe.exec(S);return o+t(S.substr(n))}function m(){var e="string"==typeof k.subLanguage;if(e&&!_[k.subLanguage])return t(S);var n=e?c(k.subLanguage,S,!0,C[k.subLanguage]):d(S,k.subLanguage.length?k.subLanguage:void 0);return k.relevance>0&&(T+=n.relevance),e&&(C[k.subLanguage]=n.top),f(n.language,n.value,!1,!0)}function g(){E+=null!=k.subLanguage?m():h(),S=""}function v(e){E+=e.className?f(e.className,"",!0):"",k=Object.create(e,{parent:{value:k}})}function y(e,t){if(S+=e,null==t)return g(),0;var n=a(t,k);if(n)return n.skip?S+=t:(n.excludeBegin&&(S+=t),g(),n.returnBegin||n.excludeBegin||(S=t)),v(n,t),n.returnBegin?0:t.length;var r=s(k,t);if(r){var o=k;o.skip?S+=t:(o.returnEnd||o.excludeEnd||(S+=t),g(),o.excludeEnd&&(S=t));do k.className&&(E+=A),k.skip||(T+=k.relevance),k=k.parent;while(k!==r.parent);return r.starts&&v(r.starts,""),o.returnEnd?0:t.length}if(l(t,k))throw new Error('Illegal lexeme "'+t+'" for mode "'+(k.className||"")+'"');return S+=t,t.length||1}var b=x(e);if(!b)throw new Error('Unknown language: "'+e+'"');u(b);var w,k=i||b,C={},E="";for(w=k;w!==b;w=w.parent)w.className&&(E=f(w.className,"",!0)+E);var S="",T=0;try{for(var L,N,D=0;;){if(k.terminators.lastIndex=D,L=k.terminators.exec(n),!L)break;N=y(n.substr(D,L.index-D),L[0]),D=L.index+N}for(y(n.substr(D)),w=k;w.parent;w=w.parent)w.className&&(E+=A);return{relevance:T,value:E,language:e,top:k}}catch(I){if(I.message&&I.message.indexOf("Illegal")!==-1)return{relevance:0,value:t(n)};throw I}}function d(e,n){n=n||M.languages||k(_);var r={relevance:0,value:t(e)},o=r;return n.filter(x).forEach(function(t){var n=c(t,e,!1);n.language=t,n.relevance>o.relevance&&(o=n),n.relevance>r.relevance&&(o=r,r=n)}),o.language&&(r.second_best=o),r}function p(e){return M.tabReplace||M.useBR?e.replace(T,function(e,t){return M.useBR&&"\n"===e?"
":M.tabReplace?t.replace(/\t/g,M.tabReplace):void 0}):e}function f(e,t,n){var r=t?C[t]:n,o=[e.trim()];return e.match(/\bhljs\b/)||o.push("hljs"),e.indexOf(r)===-1&&o.push(r),o.join(" ").trim()}function h(e){var t,n,r,a,u,h=i(e);o(h)||(M.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):t=e,u=t.textContent,r=h?c(h,u,!0):d(u),n=s(t),n.length&&(a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),a.innerHTML=r.value,r.value=l(n,s(a),u)),r.value=p(r.value),e.innerHTML=r.value,e.className=f(e.className,h,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function m(e){M=a(M,e)}function g(){if(!g.called){g.called=!0;var e=document.querySelectorAll("pre code");w.forEach.call(e,h)}}function v(){addEventListener("DOMContentLoaded",g,!1),addEventListener("load",g,!1)}function y(t,n){var r=_[t]=n(e);r.aliases&&r.aliases.forEach(function(e){C[e]=t})}function b(){return k(_)}function x(e){return e=(e||"").toLowerCase(),_[e]||_[C[e]]}var w=[],k=Object.keys,_={},C={},E=/^(no-?highlight|plain|text)$/i,S=/\blang(?:uage)?-([\w-]+)\b/i,T=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,A="",M={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},L={"&":"&","<":"<",">":">"};return e.highlight=c,e.highlightAuto=d,e.fixMarkup=p,e.highlightBlock=h,e.configure=m,e.initHighlighting=g,e.initHighlightingOnLoad=v,e.registerLanguage=y,e.listLanguages=b,e.getLanguage=x,e.inherit=a,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.COMMENT=function(t,n,r){var o=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return o.contains.push(e.PHRASAL_WORDS_MODE),o.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),o},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e})},function(e,t){"use strict";function n(e){e.core.ruler.after("inline","link-slide-title",function(e){e.tokens.forEach(function(t){if("inline"===t.type&&t.children)for(var n=t.children,o=0;o=0&&n\n- WebAIM: \n\n**What are some good, free, developer tools for accessibility?**\n\n- WAVE by WebAIM for general website accessibility: \n- Juicy Studio's Readability Test: \n\n- Vischeck's Color Blindness Checker: \n\n**Are there jobs in the field of accessibility?**\n\nDefinitely, and the industry is growing. Take a look here: \n",pathHash:"e22b2aea3081574248d2aa2d59f3ea09",contentConverter:r}},function(e,t,n){var r=n(3);r=r?r["default"]||r:r,e.exports={options:{title:"Introduction",chapter:"Writing Code"},content:"In this section, you'll learn a few key user interface implementation techniques that will ensure you are building experiences that anyone can use. The world of accessibility is vast and diverse, so this tutorial won't cover everything - but it will get you started in the right direction and provide you with some basic best practices for writing accessible software. In addition, while the current examples are web based, many of the principles hold true on mobile and most of the major mobile platforms support robust accessibility APIs. Happy code writing!\n",pathHash:"98c85cba9fc00ffd3ebfd95b418ce09e",contentConverter:r}},function(e,t,n){var r=n(3);r=r?r["default"]||r:r;var o=n(199);o=o?o["default"]||o:o,e.exports={options:{title:"Headings",chapter:"Writing Code",style:".fakeHeading {\n font-size: 20px;\n font-weight: bold;\n margin: 0;\n}\n\n.exerslide-slide h3 {\n margin: 5px;\n}\n",layout_data:{examples:[{title:"Semantic Heading",description:"The heading below is a real heading and uses an `

` tag. If you are on a\nMac, turn on VoiceOver with Cmd + F5 and then press\nCtrl + Opt + Cmd + h to jump to\na heading.\n",code:"

A real heading

\n"},{title:"Unsemantic Heading exercise",description:"The heading below is a fake heading made to look like a heading with an\nunsemantic `
`. Change the `
` below to use an `

` tag. Now verify your semantic heading using the Verify button as well as\nwith VoiceOver.\n",code:'
\n A fake heading\n
\n',assertion:"assert(\n dom.querySelector('h3'),\n \"It doesn't look like you converted the div to a real heading.\"\n);\n"}]}},content:"Headings provide structure to a page. A person using a screen reader can\nnavigate a page quickly using headings on the page if the headings used are\nsemantic. Semantic headings include real heading tags such as `h1`, `h2`.\n",pathHash:"98c85cba9fc00ffd3ebfd95b418ce09e",contentConverter:r,layout:o}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(t){var n=e.document.createElement("div");return n.innerHTML=t,n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),a=r(i),s=n(200),l=r(s),u=n(204),c=r(u),d=n(205),p=r(d),f=n(209),h=r(f),m=n(210),g=r(m),v=n(96),y=r(v),b=n(218),x=r(b),w=n(226),k=r(w);n(227),n(228);var _=function(e){function t(e){(0,c["default"])(this,t);var n=(0,h["default"])(this,(t.__proto__||(0,l["default"])(t)).call(this,e));return n.state={code:e.code,assertion:e.assertion&&n._makeAssertion(e.assertion),result:{}},n}return(0,g["default"])(t,e),(0,p["default"])(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({code:e.code,assertion:e.assertion&&this._makeAssertion(e.assertion)}),this.state.code!==e.code&&this.refs.editor.setValue(e.code)}},{key:"_onChange",value:function(e){this.setState({code:e})}},{key:"_makeAssertion",value:function(e){var t=new Function("assert","source","dom",e),n=function(e,t){if(!e)throw console.error(t),new Error(t)};return function(e){t(n,e,o(e))}}},{key:"_verify",value:function(){var e=this.refs.editor.getValue();if(e){try{this.state.assertion(e)}catch(t){return void this.setState({result:{error:t.message}})}this.setState({result:{success:!0}})}else this.setState({result:{error:"Cannot validate empty input."}})}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.description;return y["default"].createElement("div",{className:"example"},t?y["default"].createElement("h2",null,this.state.assertion?y["default"].createElement("i",{className:"fa fa-wrench"},y["default"].createElement("i",{className:"accessible_elem"},"Wrench Icon")):null," ",t):null,n?y["default"].createElement(k["default"],{value:n}):null,this.props.code?y["default"].createElement("div",{className:"editorWithPreview"},y["default"].createElement(x["default"],{ref:"editor",mode:"htmlmixed",defaultValue:this.state.code,config:{extraKeys:{Tab:!1,"Shift-Tab":!1}},onChange:this._onChange.bind(this)}),y["default"].createElement("div",{className:"preview","aria-label":"Editor Output",dangerouslySetInnerHTML:{__html:'

Editor Output

'+this.state.code},tabIndex:"0"})):null,this.state.assertion?y["default"].createElement("div",{className:"verify"},y["default"].createElement("button",{onClick:this._verify.bind(this),type:"button",className:"button"},"Verify"),this.state.result.error?y["default"].createElement("span",{className:"text-danger",role:"alert",tabindex:0}," ",this.state.result.error):null,this.state.result.success?y["default"].createElement("span",{className:"text-success",role:"alert",tabindex:0}," Well done!"):null):null,this.props.note?y["default"].createElement("div",{className:"note"},y["default"].createElement(k["default"],{value:this.props.note})):null)}}]),t}(y["default"].Component),C=function(e){function t(){return(0,c["default"])(this,t),(0,h["default"])(this,(t.__proto__||(0,l["default"])(t)).apply(this,arguments))}return(0,g["default"])(t,e),(0,p["default"])(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(e,t){var n=this.props,r=n.title,o=n.layoutData.examples,i=n.content;return y["default"].createElement("div",{className:"htmlExercise"},r,i?y["default"].createElement(k["default"],{value:i}):null,o&&o.map(function(e,t){return y["default"].createElement(_,(0,a["default"])({key:t},e))}))}}]),t}(y["default"].Component);t["default"]=C}).call(t,function(){return this}())},function(e,t,n){e.exports={"default":n(201),__esModule:!0}},function(e,t,n){n(202),e.exports=n(10).Object.getPrototypeOf},function(e,t,n){var r=n(41),o=n(57);n(203)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(8),o=n(10),i=n(19);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(206),i=r(o);t["default"]=function(){function e(e,t){for(var n=0;nt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function f(e){var t=Po(e.gutters,"CodeMirror-linenumbers");t==-1&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function h(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+je(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+Ke(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function m(e,t,n){this.cm=n;var r=this.vert=Vo("div",[Vo("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=Vo("div",[Vo("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Da(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Da(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,wi&&ki<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function g(){}function v(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Ja(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new e.scrollbarModel[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),Da(e,"mousedown",function(){t.state.focused&&setTimeout(function(){t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?an(t,e):on(t,e)},t),t.display.scrollbars.addClass&&es(t.display.wrapper,t.display.scrollbars.addClass)}function y(e,t){t||(t=h(e));var n=e.display.barWidth,r=e.display.barHeight;b(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&N(e),b(e,h(e)),n=e.display.barWidth,r=e.display.barHeight}function b(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=""}function x(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Ue(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=ro(t,r),a=ro(t,o);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s=a&&(i=ro(t,oo(Qr(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function w(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=C(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ht(e))return!1;k(e)&&(zt(e),t.dims=I(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Wi&&(i=wr(e.doc,i),a=kr(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;qt(e,i,a),n.viewOffset=oo(Qr(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ht(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Yo();return l>4&&(n.lineDiv.style.display="none"),O(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,u&&Yo()!=u&&u.offsetHeight&&u.focus(),Ko(n.cursorDiv),Ko(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,We(e,400)),n.updateLineNumbers=null,!0}function A(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ge(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+je(e.display)-Ye(e),n.top)}),t.visible=x(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&T(e,t);r=!1){N(e);var o=h(e);Oe(e),y(e,o),L(e,o)}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 M(e,t){var n=new E(e,t);if(T(e,n)){N(e),A(e,n);var r=h(e);Oe(e),y(e,r),L(e,r),n.finish()}}function L(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+Ke(e)+"px"}function N(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.001||l<-.001)&&(to(i.line,o),D(i.line),i.rest))for(var u=0;u-1&&(p=!1),P(e,d,u,n)),p&&(Ko(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(_(e.options,u)))),s=d.node.nextSibling}else{var f=U(e,d,u,n);a.insertBefore(f,s)}u+=d.size}for(;s;)s=r(s)}function P(e,t,n,r){for(var o=0;o1)if(Hi&&Hi.text.join("\n")==t){if(r.ranges.length%Hi.text.length==0){l=[];for(var u=0;u=0;u--){var c=r.ranges[u],d=c.from(),p=c.to();c.empty()&&(n&&n>0?d=Bi(d.line,d.ch-n):e.state.overwrite&&!a?p=Bi(p.line,Math.min(Qr(i,p.line).text.length,p.ch+Oo(s).length)):Hi&&Hi.lineWise&&Hi.text.join("\n")==t&&(d=p=Bi(d.line,0)));var f=e.curOp.updateInput,h={from:d,to:p,text:l?l[u%l.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};Tn(e.doc,h),So(e,"inputRead",e,h)}t&&!a&&J(e,t),Wn(e),e.curOp.updateInput=f,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Q(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Lt(t,function(){X(t,n,0,null,"paste")}),!0}function J(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=qn(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Qr(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=qn(e,o.head.line,"smart"));a&&So(e,"electricInput",e,o.head.line)}}}function ee(e){for(var t=[],n=[],r=0;r=0){var a=$(i.from(),o.from()),s=Y(i.to(),o.to()),l=i.empty()?o.from()==o.head:i.from()==i.head;r<=t&&--t,e.splice(--r,2,new de(l?s:a,l?a:s))}}return new ce(e,t)}function fe(e,t){return new ce([new de(e,t||e)],0)}function he(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.linen?Bi(n,Qr(e,n).text.length):ge(t,Qr(e,t.line).text.length)}function ge(e,t){var n=e.ch;return null==n||n>t?Bi(e.line,t):n<0?Bi(e.line,0):e}function ve(e,t){return t>=e.first&&t=t.ch:s.to>t.ch))){if(o&&(Pa(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var u,c=l.find(r<0?1:-1);if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(c=Ie(e,c,-r,c&&c.line==t.line?i:null)),c&&c.line==t.line&&(u=qi(c,n))&&(r<0?u<0:u>0))return Ne(e,c,t,r,o)}var d=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(d=Ie(e,d,r,d.line==t.line?i:null)),d?Ne(e,d,t,r,o):null}}return t}function De(e,t,n,r,o){var i=r||1,a=Ne(e,t,n,i,o)||!o&&Ne(e,t,n,i,!0)||Ne(e,t,n,-i,o)||!o&&Ne(e,t,n,-i,!0);return a?a:(e.cantEdit=!0,Bi(e.first,0))}function Ie(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?me(e,Bi(t.line-1)):null:n>0&&t.ch==(r||Qr(e,t.line)).text.length?t.line=e.display.viewTo||s.to().line3&&(r(f,m.top,null,m.bottom),f=u,m.bottoml.bottom||d.bottom==l.bottom&&d.right>l.right)&&(l=d),f0?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function We(e,t){e.doc.mode.startState&&e.doc.frontier=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ca(t.mode,He(e,t.frontier)),o=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(t.frontier>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength,l=Pr(e,i,s?ca(t.mode,r):r,!0);i.styles=l.styles;var u=i.styleClasses,c=l.classes;c?i.styleClasses=c:u&&(i.styleClasses=null);for(var d=!a||a.length!=i.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!d&&pn)return We(e,e.options.workDelay),!0}),o.length&&Lt(e,function(){for(var t=0;ta;--s){if(s<=i.first)return i.first;var l=Qr(i,s-1);if(l.stateAfter&&(!n||s<=i.frontier))return s;var u=Ha(l.text,null,e.options.tabSize);(null==o||r>u)&&(o=s-1,r=u)}return o}function He(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return!0;var i=qe(e,t,n),a=i>r.first&&Qr(r,i-1).stateAfter;return a=a?ca(r.mode,a):da(r.mode),r.iter(i,t,function(n){Fr(e,n.text,a);var s=i==t-1||i%5==0||i>=o.viewFrom&&i2&&i.push((l.bottom+u.top)/2-n.top)}}i.push(n.bottom-n.top)}}function Ze(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Xe(e,t){t=br(t);var n=no(t),r=e.display.externalMeasured=new Ot(e.doc,t,n);r.lineN=n;var o=r.built=Wr(e,r);return r.text=o.pre,Go(e.display.lineMeasure,o.pre),r}function Qe(e,t,n,r){return tt(e,et(e,t),n,r)}function Je(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=u-l,o=i-1,t>=u&&(a="right")),null!=o){if(r=e[s+2],l==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[(s-=3)+2],a="left";if("right"==n&&o==u-l)for(;s=0&&(n=e[r]).left==n.right;r--);return n}function ot(e,t,n,r){var o,i=nt(t.map,n,r),a=i.node,s=i.start,l=i.end,u=i.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;s&&jo(t.line.text.charAt(i.coverStart+s));)--s;for(;i.coverStart+l0&&(u=r="right");var d;o=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==r?d.length-1:0]:a.getBoundingClientRect()}if(wi&&ki<9&&!s&&(!o||!o.left&&!o.right)){var p=a.parentNode.getClientRects()[0];o=p?{left:p.left,right:p.left+xt(e.display),top:p.top,bottom:p.bottom}:Ki}for(var f=o.top-t.rect.top,h=o.bottom-t.rect.top,m=(f+h)/2,g=t.view.measure.heights,c=0;cn.from?a(e-1):a(e,r)}r=r||Qr(e.doc,t.line),o||(o=et(e,r));var l=io(r),u=t.ch;if(!l)return a(u);var c=pi(l,u),d=s(u,c);return null!=ls&&(d.other=s(u,ls)),d}function mt(e,t){var n=0,t=me(e.doc,t);e.options.lineWrapping||(n=xt(e.display)*t.ch);var r=Qr(e.doc,t.line),o=oo(r)+Ue(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function gt(e,t,n,r){var o=Bi(e,t);return o.xRel=r,n&&(o.outside=!0),o}function vt(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return gt(r.first,0,!0,-1); +var o=ro(r,n),i=r.first+r.size-1;if(o>i)return gt(r.first+r.size-1,Qr(r,i).text.length,!0,1);t<0&&(t=0);for(var a=Qr(r,o);;){var s=yt(e,a,o,t,n),l=vr(a),u=l&&l.find(0,!0);if(!l||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;o=no(a=u.to.line)}}function yt(e,t,n,r,o){function i(r){var o=ht(e,Bi(n,r),"line",t,u);return s=!0,a>o.bottom?o.left-l:ag)return gt(n,f,v,1);for(;;){if(c?f==p||f==hi(t,p,1):f-p<=1){var y=r0&&y1){var w=tt(e,u,y,"right");a<=w.bottom&&a>=w.top&&Math.abs(r-w.right)1?1:0);return k}var _=Math.ceil(d/2),C=p+_;if(c){C=p;for(var E=0;E<_;++E)C=hi(t,C,1)}var S=i(C);S>r?(f=C,g=S,(v=s)&&(g+=1e3),d=_):(p=C,h=S,m=s,d-=_)}}function bt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Ui){Ui=Vo("pre");for(var t=0;t<49;++t)Ui.appendChild(document.createTextNode("x")),Ui.appendChild(Vo("br"));Ui.appendChild(document.createTextNode("x"))}Go(e.measure,Ui);var n=Ui.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),Ko(e.measure),n||1}function xt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Vo("span","xxxxxxxxxx"),n=Vo("pre",[t]);Go(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function wt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yi},Gi?Gi.ops.push(e.curOp):e.curOp.ownsGroup=Gi={ops:[e.curOp],delayedCallbacks:[]}}function kt(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new E(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function St(e){e.updatedDisplay=e.mustUpdate&&T(e.cm,e.update)}function Tt(e){var t=e.cm,n=t.display;e.updatedDisplay&&N(t),e.barMeasure=h(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Qe(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+Ke(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ge(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function At(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Wi&&wr(e.doc,t)o.viewFrom?zt(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)zt(e);else if(t<=o.viewFrom){var i=Bt(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):zt(e)}else if(n>=o.viewTo){var i=Bt(e,t,t,-1);i?(o.view=o.view.slice(0,i.index),o.viewTo=i.lineN):zt(e)}else{var a=Bt(e,t,t,-1),s=Bt(e,n,n+r,1);a&&s?(o.view=o.view.slice(0,a.index).concat(Pt(e,a.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):zt(e)}var l=o.externalMeasured;l&&(n=o.lineN&&t=r.viewTo)){var i=r.view[Wt(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);Po(a,n)==-1&&a.push(n)}}}function zt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wt(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;r0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;wr(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function qt(e,t,n){var r=e.display,o=r.view;0==o.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Pt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Pt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Wt(e,n)))),r.viewTo=n}function Ht(e){for(var t=e.display.view,n=0,r=0;r400}var o=e.display;Da(o.scroller,"mousedown",Nt(e,Yt)),wi&&ki<11?Da(o.scroller,"dblclick",Nt(e,function(t){if(!Ao(e,t)){var n=Gt(e,t);if(n&&!Jt(e,t)&&!Kt(e.display,t)){Ma(t);var r=e.findWordAt(n);xe(e.doc,r.anchor,r.head)}}})):Da(o.scroller,"dblclick",function(t){Ao(e,t)||Ma(t)}),Fi||Da(o.scroller,"contextmenu",function(t){xn(e,t)});var i,a={end:0};Da(o.scroller,"touchstart",function(t){if(!Ao(e,t)&&!n(t)){clearTimeout(i);var r=+new Date;o.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),Da(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Da(o.scroller,"touchend",function(n){var i=o.activeTouch;if(i&&!Kt(o,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,s=e.coordsChar(o.activeTouch,"page");a=!i.prev||r(i,i.prev)?new de(s,s):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(s):new de(Bi(s.line,0),me(e.doc,Bi(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ma(n)}t()}),Da(o.scroller,"touchcancel",t),Da(o.scroller,"scroll",function(){o.scroller.clientHeight&&(on(e,o.scroller.scrollTop),an(e,o.scroller.scrollLeft,!0),Pa(e,"scroll",e))}),Da(o.scroller,"mousewheel",function(t){sn(e,t)}),Da(o.scroller,"DOMMouseScroll",function(t){sn(e,t)}),Da(o.wrapper,"scroll",function(){o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){Ao(e,t)||Na(t)},over:function(t){Ao(e,t)||(nn(e,t),Na(t))},start:function(t){tn(e,t)},drop:Nt(e,en),leave:function(t){Ao(e,t)||rn(e)}};var s=o.input.getField();Da(s,"keyup",function(t){mn.call(e,t)}),Da(s,"keydown",Nt(e,fn)),Da(s,"keypress",Nt(e,gn)),Da(s,"focus",qo(yn,e)),Da(s,"blur",qo(bn,e))}function jt(t,n,r){var o=r&&r!=e.Init;if(!n!=!o){var i=t.display.dragFunctions,a=n?Da:Oa;a(t.display.scroller,"dragstart",i.start),a(t.display.scroller,"dragenter",i.enter),a(t.display.scroller,"dragover",i.over),a(t.display.scroller,"dragleave",i.leave),a(t.display.scroller,"drop",i.drop)}}function Vt(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function Kt(e,t){for(var n=_o(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Gt(e,t,n,r){var o=e.display;if(!n&&"true"==_o(t).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,u=vt(e,i,a);if(r&&1==u.xRel&&(l=Qr(e.doc,u.line).text).length==u.ch){var c=Ha(l,l.length,e.options.tabSize)-l.length;u=Bi(u.line,Math.max(0,Math.round((i-Ve(e.display).left)/xt(e.display))-c))}return u}function Yt(e){var t=this,n=t.display;if(!(Ao(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.shift=e.shiftKey,Kt(n,e))return void(_i||(n.scroller.draggable=!1,setTimeout(function(){n.scroller.draggable=!0},100)));if(!Jt(t,e)){var r=Gt(t,e);switch(window.focus(),Co(e)){case 1:t.state.selectingText?t.state.selectingText(e):r?$t(t,e,r):_o(e)==n.scroller&&Ma(e);break;case 2:_i&&(t.state.lastMiddleDown=+new Date),r&&xe(t.doc,r),setTimeout(function(){n.input.focus()},20),Ma(e);break;case 3:Fi?xn(t,e):vn(t)}}}}function $t(e,t,n){wi?setTimeout(qo(Z,e),0):e.curOp.focus=Yo();var r,o=+new Date;Vi&&Vi.time>o-400&&0==qi(Vi.pos,n)?r="triple":ji&&ji.time>o-400&&0==qi(ji.pos,n)?(r="double",Vi={time:o,pos:n}):(r="single",ji={time:o,pos:n});var i,a=e.doc.sel,s=Di?t.metaKey:t.ctrlKey;e.options.dragDrop&&ns&&!e.isReadOnly()&&"single"==r&&(i=a.contains(n))>-1&&(qi((i=a.ranges[i]).from(),n)<0||n.xRel>0)&&(qi(i.to(),n)>0||n.xRel<0)?Zt(e,t,n,s):Xt(e,t,n,r,s)}function Zt(e,t,n,r){var o=e.display,i=+new Date,a=Nt(e,function(s){_i&&(o.scroller.draggable=!1),e.state.draggingText=!1,Oa(document,"mouseup",a),Oa(o.scroller,"drop",a),Math.abs(t.clientX-s.clientX)+Math.abs(t.clientY-s.clientY)<10&&(Ma(s),!r&&+new Date-200y&&o.push(new de(Bi(h,y),Bi(h,Ua(v,f,i))))}o.length||o.push(new de(n,n)),Se(u,pe(p.ranges.slice(0,d).concat(o),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b=c,x=b.anchor,w=t;if("single"!=r){if("double"==r)var k=e.findWordAt(t);else var k=new de(Bi(t.line,0),me(u,Bi(t.line+1,0)));qi(k.anchor,x)>0?(w=k.head,x=$(b.from(),k.anchor)):(w=k.anchor,x=Y(b.to(),k.head))}var o=p.ranges.slice(0);o[d]=new de(me(u,x),w),Se(u,pe(o,d),Ba)}}function a(t){var n=++y,o=Gt(e,t,!0,"rect"==r);if(o)if(0!=qi(o,g)){e.curOp.focus=Yo(),i(o);var s=x(l,u);(o.line>=s.to||o.linev.bottom?20:0;c&&setTimeout(Nt(e,function(){y==n&&(l.scroller.scrollTop+=c,a(t))}),50)}}function s(t){e.state.selectingText=!1,y=1/0,Ma(t),l.input.focus(),Oa(document,"mousemove",b),Oa(document,"mouseup",w),u.history.lastSelOrigin=null}var l=e.display,u=e.doc;Ma(t);var c,d,p=u.sel,f=p.ranges;if(o&&!t.shiftKey?(d=u.sel.contains(n),c=d>-1?f[d]:new de(n,n)):(c=u.sel.primary(),d=u.sel.primIndex),Ii?t.shiftKey&&t.metaKey:t.altKey)r="rect",o||(c=new de(n,n)),n=Gt(e,t,!0,!0),d=-1;else if("double"==r){var h=e.findWordAt(n);c=e.display.shift||u.extend?be(u,c,h.anchor,h.head):h}else if("triple"==r){var m=new de(Bi(n.line,0),me(u,Bi(n.line+1,0)));c=e.display.shift||u.extend?be(u,c,m.anchor,m.head):m}else c=be(u,c,n);o?d==-1?(d=f.length,Se(u,pe(f.concat([c]),d),{scroll:!1,origin:"*mouse"})):f.length>1&&f[d].empty()&&"single"==r&&!t.shiftKey?(Se(u,pe(f.slice(0,d).concat(f.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),p=u.sel):ke(u,d,c,Ba):(d=0,Se(u,new ce([c],0),Ba),p=u.sel);var g=n,v=l.wrapper.getBoundingClientRect(),y=0,b=Nt(e,function(e){Co(e)?a(e):s(e)}),w=Nt(e,s);e.state.selectingText=w,Da(document,"mousemove",b),Da(document,"mouseup",w)}function Qt(e,t,n,r){try{var o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ma(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!Lo(e,n))return ko(t);i-=s.top-a.viewOffset;for(var l=0;l=o){var c=ro(e.doc,i),d=e.options.gutters[l];return Pa(e,n,e,c,d,t),ko(t)}}}function Jt(e,t){return Qt(e,t,"gutterClick",!0)}function en(e){var t=this;if(rn(t),!Ao(t,e)&&!Kt(t.display,e)){Ma(e),wi&&($i=+new Date);var n=Gt(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),a=0,s=function(e,r){if(!t.options.allowDropFileTypes||Po(t.options.allowDropFileTypes,e.type)!=-1){var s=new FileReader;s.onload=Nt(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),i[r]=e,++a==o){n=me(t.doc,n);var l={from:n,to:n,text:t.doc.splitLines(i.join(t.doc.lineSeparator())),origin:"paste"};Tn(t.doc,l),Ee(t.doc,fe(n,ta(l)))}}),s.readAsText(e)}},l=0;l-1)return t.state.draggingText(e),void setTimeout(function(){t.display.input.focus()},20);try{var i=e.dataTransfer.getData("Text");if(i){if(t.state.draggingText&&!t.state.draggingText.copy)var u=t.listSelections();if(Te(t.doc,fe(n,n)),u)for(var l=0;la.clientWidth,l=a.scrollHeight>a.clientHeight;if(r&&s||o&&l){if(o&&Di&&_i)e:for(var u=t.target,c=i.view;u!=a;u=u.parentNode)for(var d=0;d=0;--o)An(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text});else An(e,t)}}function An(e,t){if(1!=t.text.length||""!=t.text[0]||0!=qi(t.from,t.to)){var n=_n(e,t);co(e,t,n,e.cm?e.cm.curOp.id:NaN),Nn(e,t,n,ar(e,t));var r=[];Zr(e,function(e,n){n||Po(r,e.history)!=-1||(wo(e.history,t),r.push(e.history)),Nn(e,t,null,ar(e,t))})}}function Mn(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,o=e.history,i=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,l=0;l=0;--l){var d=r.changes[l];if(d.origin=t,c&&!Sn(e,d,!1))return void(a.length=0);u.push(so(e,d));var p=l?_n(e,d):Oo(a);Nn(e,d,p,lr(e,d)),!l&&e.cm&&e.cm.scrollIntoView({from:d.from,to:ta(d)});var f=[];Zr(e,function(e,t){t||Po(f,e.history)!=-1||(wo(e.history,d),f.push(e.history)),Nn(e,d,null,lr(e,d))})}}}}function Ln(e,t){if(0!=t&&(e.first+=t,e.sel=new ce(Ro(e.sel.ranges,function(e){return new de(Bi(e.anchor.line+t,e.anchor.ch),Bi(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Rt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:Bi(i,Qr(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Jr(e,t.from,t.to),n||(n=_n(e,t)),e.cm?Dn(e.cm,t,r):Gr(e,t,r),Te(e,n,Wa)}}function Dn(e,t,n){var r=e.doc,o=e.display,a=t.from,s=t.to,l=!1,u=a.line;e.options.lineWrapping||(u=no(br(Qr(r,a.line))),r.iter(u,s.line+1,function(e){if(e==o.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Mo(e),Gr(r,t,n,i(e)),e.options.lineWrapping||(r.iter(u,a.line+t.text.length,function(e){var t=d(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,a.line),We(e,400);var c=t.text.length-(s.line-a.line)-1;t.full?Rt(e):a.line!=s.line||1!=t.text.length||Kr(e.doc,t)?Rt(e,a.line,s.line+1,c):Ft(e,a.line,"text");var p=Lo(e,"changes"),f=Lo(e,"change");if(f||p){var h={from:a,to:s,text:t.text,removed:t.removed,origin:t.origin};f&&So(e,"change",e,h),p&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function In(e,t,n,r,o){if(r||(r=n),qi(r,n)<0){var i=r;r=n,n=i}"string"==typeof t&&(t=e.splitLines(t)),Tn(e,{from:n,to:r,text:t,origin:o})}function On(e,t){if(!Ao(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null;if(t.top+r.top<0?o=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Mi){var i=Vo("div","​",null,"position: absolute; top: "+(t.top-n.viewOffset-Ue(e.display))+"px; height: "+(t.bottom-t.top+Ke(e)+n.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(o),e.display.lineSpace.removeChild(i)}}}function Pn(e,t,n,r){null==r&&(r=0);for(var o=0;o<5;o++){var i=!1,a=ht(e,t),s=n&&n!=t?ht(e,n):a,l=Fn(e,Math.min(a.left,s.left),Math.min(a.top,s.top)-r,Math.max(a.left,s.left),Math.max(a.bottom,s.bottom)+r),u=e.doc.scrollTop,c=e.doc.scrollLeft;if(null!=l.scrollTop&&(on(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(i=!0)),null!=l.scrollLeft&&(an(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-c)>1&&(i=!0)),!i)break}return a}function Rn(e,t,n,r,o){var i=Fn(e,t,n,r,o);null!=i.scrollTop&&on(e,i.scrollTop),null!=i.scrollLeft&&an(e,i.scrollLeft)}function Fn(e,t,n,r,o){var i=e.display,a=bt(e.display);n<0&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:i.scroller.scrollTop,l=Ye(e),u={};o-n>l&&(o=n+l);var c=e.doc.height+je(i),d=nc-a;if(ns+l){var f=Math.min(n,(p?c:o)-l);f!=s&&(u.scrollTop=f)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:i.scroller.scrollLeft,m=Ge(e)-(e.options.fixedGutter?i.gutters.offsetWidth:0),g=r-t>m;return g&&(r=t+m),t<10?u.scrollLeft=0:tm+h-3&&(u.scrollLeft=r+(g?0:10)-m),u}function zn(e,t,n){null==t&&null==n||Bn(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Wn(e){Bn(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?Bi(t.line,t.ch-1):t,r=Bi(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function Bn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=mt(e,t.from),r=mt(e,t.to),o=Fn(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(o.scrollLeft,o.scrollTop)}}function qn(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=He(e,t):n="prev");var a=e.options.tabSize,s=Qr(i,t),l=Ha(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=i.mode.indent(o,s.text.slice(c.length),s.text),u==za||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>i.first?Ha(Qr(i,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 d="",p=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/a);f;--f)p+=a,d+="\t";if(p=0;t--)In(e.doc,"",r[t].from,r[t].to,"+delete");Wn(e)})}function jn(e,t,n,r,o){function i(){var t=s+n;return!(t=e.first+e.size)&&(s=t,c=Qr(e,t))}function a(e){var t=(o?hi:mi)(c,l,n,!0);if(null==t){if(e||!i())return!1;l=o?(n<0?si:ai)(c):n<0?c.text.length:0}else l=t;return!0}var s=t.line,l=t.ch,u=n,c=Qr(e,s);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var d=null,p="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||a(!h);h=!1){var m=c.text.charAt(l)||"\n",g=Ho(m,f)?"w":p&&"\n"==m?"n":!p||/\s/.test(m)?null:"p";if(!p||h||g||(g="s"),d&&d!=g){n<0&&(n=1,a());break}if(g&&(d=g),n>0&&!a(!h))break}var v=De(e,Bi(s,l),t,u,!0);return qi(t,v)||(v.hitSide=!0),v}function Vn(e,t,n,r){var o,i=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);o=t.top+n*(s-(n<0?1.5:.5)*bt(e.display))}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;;){var l=vt(e,a,o);if(!l.outside)break;if(n<0?o<=0:o>=i.height){l.hitSide=!0;break}o+=5*n}return l}function Kn(t,n,r,o){e.defaults[t]=n,r&&(ra[t]=o?function(e,t,n){n!=oa&&r(e,t,n)}:r)}function Gn(e){for(var t,n,r,o,i=e.split(/-(?!$)/),e=i[i.length-1],a=0;a0||0==a&&i.clearWhenEmpty!==!1)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=Vo("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(yr(e,t.line,t,n,i)||t.line!=n.line&&yr(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Wi=!0}i.addToHistory&&co(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(e){u&&i.collapsed&&!u.options.lineWrapping&&br(e)==u.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&to(e,0),rr(e,new er(i,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),i.collapsed&&e.iter(t.line,n.line+1,function(t){_r(e,t)&&to(t,0)}),i.clearOnEnter&&Da(i,"beforeCursorEnter",function(){i.clear()}),i.readOnly&&(zi=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++ya,i.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),i.collapsed)Rt(u,t.line,n.line+1);else if(i.className||i.title||i.startStyle||i.endStyle||i.css)for(var c=t.line;c<=n.line;c++)Ft(u,c,"text");i.atomic&&Me(u.doc),So(u,"markerAdded",u,i)}return i}function Zn(e,t,n,r,o){r=Bo(r),r.shared=!1;var i=[$n(e,t,n,r,o)],a=i[0],s=r.widgetNode;return Zr(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push($n(e,me(e,t),me(e,n),r,o));for(var l=0;l=t:i.to>t);(r||(r=[])).push(new er(a,i.from,l?null:i.to))}}return r}function ir(e,t,n){if(e)for(var r,o=0;o=t:i.to>t);if(s||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var l=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var d=0;d0)){var c=[l,1],d=qi(u.from,s.from),p=qi(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:u.to}),o.splice.apply(o,c),l+=c.length-1}}return o}function cr(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?qi(u.to,n)>=0:qi(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?qi(u.from,r)<=0:qi(u.from,r)<0)))return!0}}}function br(e){for(var t;t=gr(e);)e=t.find(-1,!0).line;return e}function xr(e){for(var t,n;t=vr(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function wr(e,t){var n=Qr(e,t),r=br(n);return n==r?t:no(r)}function kr(e,t){if(t>e.lastLine())return t;var n,r=Qr(e,t);if(!_r(e,r))return t;for(;n=vr(r);)r=n.find(1,!0).line;return no(r)+1}function _r(e,t){var n=Wi&&t.markedSpans;if(n)for(var r,o=0;on.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}function Ir(e,t,n,r){function o(e){return{start:d.start,end:d.pos,string:d.current(),type:i||null,state:e?ca(a.mode,c):c}}var i,a=e.doc,s=a.mode;t=me(a,t);var l,u=Qr(a,t.line),c=He(e,t.line,n),d=new va(u.text,e.options.tabSize);for(r&&(l=[]);(r||d.pose.options.maxHighlightLength?(s=!1,a&&Fr(e,t,r,d.pos),d.pos=t.length,l=null):l=Lr(Dr(n,d,r,p),i),p){var f=p[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||c!=l){for(;ue&&o.splice(l,1,e,o[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,l-n,e,"cm-overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength?ca(e.doc.mode,r):r);t.stateAfter=r,t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function Fr(e,t,n,r){var o=e.doc.mode,i=new va(t,e.options.tabSize);for(i.start=i.pos=r||0,""==t&&Nr(o,n);!i.eol();)Dr(o,i,n),i.start=i.pos}function zr(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Ca:_a;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Wr(e,t){var n=Vo("span",null,null,_i?"padding-right: .1px":null),r={pre:Vo("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(wi||_i)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i,a=o?t.rest[o-1]:t.line;r.pos=0,r.addToken=qr,ti(e.display.measure)&&(i=io(a))&&(r.addToken=Ur(r.addToken,i)),r.map=[];var s=t!=e.display.externalMeasured&&no(a);Vr(a,r,Rr(e,a,s)),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=Zo(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=Zo(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(ei(e.display.measure))),0==o?(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(_i){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Pa(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Zo(r.pre.className,r.textClass||"")),r}function Br(e){var t=Vo("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function qr(e,t,n,r,o,i,a){if(t){var s=e.splitSpaces?Hr(t,e.trailingSpace):t,l=e.cm.state.specialChars,u=!1;if(l.test(t))for(var c=document.createDocumentFragment(),d=0;;){l.lastIndex=d;var p=l.exec(t),f=p?p.index-d:t.length-d;if(f){var h=document.createTextNode(s.slice(d,d+f));wi&&ki<9?c.appendChild(Vo("span",[h])):c.appendChild(h),e.map.push(e.pos,e.pos+f,h),e.col+=f,e.pos+=f}if(!p)break;if(d+=f+1,"\t"==p[0]){var m=e.cm.options.tabSize,g=m-e.col%m,h=c.appendChild(Vo("span",Io(g),"cm-tab"));h.setAttribute("role","presentation"),h.setAttribute("cm-text","\t"),e.col+=g}else if("\r"==p[0]||"\n"==p[0]){var h=c.appendChild(Vo("span","\r"==p[0]?"␍":"␤","cm-invalidchar"));h.setAttribute("cm-text",p[0]),e.col+=1}else{var h=e.cm.options.specialCharPlaceholder(p[0]);h.setAttribute("cm-text",p[0]),wi&&ki<9?c.appendChild(Vo("span",[h])):c.appendChild(h),e.col+=1}e.map.push(e.pos,e.pos+1,h),e.pos++}else{e.col+=t.length;var c=document.createTextNode(s);e.map.push(e.pos,e.pos+t.length,c),wi&&ki<9&&(u=!0),e.pos+=t.length}if(e.trailingSpace=32==s.charCodeAt(t.length-1),n||r||o||u||a){var v=n||"";r&&(v+=r),o&&(v+=o);var y=Vo("span",[c],v,a);return i&&(y.title=i),e.content.appendChild(y)}e.content.appendChild(c)}}function Hr(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;ou&&p.from<=u)break}if(p.to>=c)return e(n,r,o,i,a,s,l);e(n,r.slice(0,p.to-u),o,i,null,s,l),i=null,r=r.slice(p.to-u),u=p.to}}}function jr(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function Vr(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,l,u,c,d,p,f=o.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=d=s="",p=null,v=1/0;for(var y,b=[],x=0;xh||k.collapsed&&w.to==h&&w.from==h)?(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,u=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==h&&(c+=" "+k.startStyle),k.endStyle&&w.to==v&&(y||(y=[])).push(k.endStyle,w.to),k.title&&!d&&(d=k.title),k.collapsed&&(!p||hr(p.marker,k)<0)&&(p=w)):w.from>h&&v>w.from&&(v=w.from)}if(y)for(var x=0;x=f)break;for(var _=Math.min(f,v);;){if(g){var C=h+g.length;if(!p){var E=C>_?g.slice(0,_-h):g;t.addToken(t,E,a?a+l:l,c,h+E.length==v?u:"",d,s)}if(C>=_){g=g.slice(_-h),h=_;break}h=C,c=""}g=o.slice(i,i=n[m++]),a=zr(n[m++],t.cm.options)}}else for(var m=1;m1&&e.remove(s.line+1,h-1),e.insert(s.line+1,m)}So(e,"change",e,t)}function Yr(e){this.lines=e,this.parent=null;for(var t=0,n=0;t=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Oo(e.done)):void 0}function co(e,t,n,r){var o=e.history;o.undone.length=0;var i,a=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&o.lastModTime>a-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(i=uo(o,o.lastOp==r))){var s=Oo(i.changes);0==qi(t.from,t.to)&&0==qi(t.from,s.to)?s.to=ta(t):i.changes.push(so(e,t))}else{var l=Oo(o.done);for(l&&l.ranges||ho(e.sel,o.done),i={changes:[so(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=a,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,s||Pa(e,"historyAdded")}function po(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function fo(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||po(e,i,Oo(o.done),t))?o.done[o.done.length-1]=t:ho(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&r.clearRedo!==!1&&lo(o.undone)}function ho(e,t){var n=Oo(t);n&&n.ranges&&n.equals(e)||t.push(e)}function mo(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i})}function go(e){if(!e)return null;for(var t,n=0;n-1&&(Oo(s)[d]=c[d],delete c[d])}}}return o}function bo(e,t,n,r){n0?r.slice():Ia:r||Ia}function So(e,t){function n(e){return function(){e.apply(null,i)}}var r=Eo(e,t,!1);if(r.length){var o,i=Array.prototype.slice.call(arguments,2);Gi?o=Gi.delayedCallbacks:Ra?o=Ra:(o=Ra=[],setTimeout(To,0));for(var a=0;a0}function No(e){e.prototype.on=function(e,t){Da(this,e,t)},e.prototype.off=function(e,t){Oa(this,e,t)}}function Do(){this.id=null}function Io(e){for(;ja.length<=e;)ja.push(Oo(ja)+" ");return ja[e]}function Oo(e){return e[e.length-1]}function Po(e,t){for(var n=0;n-1&&Ya(e))||t.test(e):Ya(e)}function Uo(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function jo(e){return e.charCodeAt(0)>=768&&$a.test(e)}function Vo(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i0;--t)e.removeChild(e.firstChild);return e}function Go(e,t){return Ko(e).appendChild(t)}function Yo(){for(var e=document.activeElement;e&&e.root&&e.root.activeElement;)e=e.root.activeElement;return e}function $o(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function Zo(e,t){for(var n=e.split(" "),r=0;r2&&!(wi&&ki<8))}var n=Xa?Vo("span","​"):Vo("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function ti(e){if(null!=Qa)return Qa;var t=Go(e,document.createTextNode("AخA")),n=Ka(t,0,1).getBoundingClientRect(),r=Ka(t,1,2).getBoundingClientRect();return Ko(e),!(!n||n.left==n.right)&&(Qa=r.right-n.right<3)}function ni(e){if(null!=as)return as;var t=Go(e,Vo("span","x")),n=t.getBoundingClientRect(),r=Ka(t,0,1).getBoundingClientRect();return as=Math.abs(n.left-r.left)>1}function ri(e,t,n,r){if(!e)return r(t,n,"ltr");for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),o=!0)}o||r(t,n,"ltr")}function oi(e){return e.level%2?e.to:e.from}function ii(e){return e.level%2?e.from:e.to}function ai(e){var t=io(e);return t?oi(t[0]):0}function si(e){var t=io(e);return t?ii(Oo(t)):e.text.length}function li(e,t){var n=Qr(e.doc,t),r=br(n);r!=n&&(t=no(r));var o=io(r),i=o?o[0].level%2?si(r):ai(r):0;return Bi(t,i)}function ui(e,t){for(var n,r=Qr(e.doc,t);n=vr(r);)r=n.find(1,!0).line,t=null;var o=io(r),i=o?o[0].level%2?ai(r):si(r):r.text.length;return Bi(null==t?no(r):t,i)}function ci(e,t){var n=li(e,t.line),r=Qr(e.doc,n.line),o=io(r);if(!o||0==o[0].level){var i=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return Bi(n.line,a?0:i)}return n}function di(e,t,n){var r=e[0].level;return t==r||n!=r&&tt)return r;if(o.from==t||o.to==t){if(null!=n)return di(e,o.level,e[n].level)?(o.from!=o.to&&(ls=n),r):(o.from!=o.to&&(ls=r),n);n=r}}return n}function fi(e,t,n,r){if(!r)return t+n;do t+=n;while(t>0&&jo(e.text.charAt(t)));return t}function hi(e,t,n,r){var o=io(e);if(!o)return mi(e,t,n,r);for(var i=pi(o,t),a=o[i],s=fi(e,t,a.level%2?-n:n,r);;){if(s>a.from&&s0==a.level%2?a.to:a.from);if(a=o[i+=n],!a)return null;s=n>0==a.level%2?fi(e,a.to,-1,r):fi(e,a.from,1,r)}}function mi(e,t,n,r){var o=t+n;if(r)for(;o>0&&jo(e.text.charAt(o));)o+=n;return o<0||o>e.text.length?null:o}var gi=navigator.userAgent,vi=navigator.platform,yi=/gecko\/\d/i.test(gi),bi=/MSIE \d/.test(gi),xi=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gi),wi=bi||xi,ki=wi&&(bi?document.documentMode||6:xi[1]),_i=/WebKit\//.test(gi),Ci=_i&&/Qt\/\d+\.\d+/.test(gi),Ei=/Chrome\//.test(gi),Si=/Opera\//.test(gi),Ti=/Apple Computer/.test(navigator.vendor),Ai=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(gi),Mi=/PhantomJS/.test(gi),Li=/AppleWebKit/.test(gi)&&/Mobile\/\w+/.test(gi),Ni=Li||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(gi),Di=Li||/Mac/.test(vi),Ii=/\bCrOS\b/.test(gi),Oi=/win/i.test(vi),Pi=Si&&gi.match(/Version\/(\d*\.\d*)/);Pi&&(Pi=Number(Pi[1])),Pi&&Pi>=15&&(Si=!1,_i=!0);var Ri=Di&&(Ci||Si&&(null==Pi||Pi<12.11)),Fi=yi||wi&&ki>=9,zi=!1,Wi=!1;m.prototype=Bo({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 o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else 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 i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+i+"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}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var e=Di&&!Ai?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Do,this.disableVert=new Do},enableZeroWidthBar:function(e,t){function n(){var r=e.getBoundingClientRect(),o=document.elementFromPoint(r.left+1,r.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},m.prototype),g.prototype=Bo({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},g.prototype),e.scrollbarModel={"native":m,"null":g},E.prototype.signal=function(e,t){Lo(e,t)&&this.events.push(arguments)},E.prototype.finish=function(){for(var e=0;e=9&&n.hasSelection&&(n.hasSelection=null),n.poll()}),Da(i,"paste",function(e){Ao(r,e)||Q(e,r)||(r.state.pasteIncoming=!0,n.fastPoll())}),Da(i,"cut",t),Da(i,"copy",t),Da(e.scroller,"paste",function(t){Kt(e,t)||Ao(r,t)||(r.state.pasteIncoming=!0,n.focus())}),Da(e.lineSpace,"selectstart",function(t){Kt(e,t)||Ma(t)}),Da(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"})}}),Da(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},prepareSelection:function(){var e=this.cm,t=e.display,n=e.doc,r=Pe(e);if(e.options.moveInputWithCursor){var o=ht(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},showSelection:function(e){var t=this.cm,n=t.display;Go(n.cursorDiv,e.cursors),Go(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},reset:function(e){if(!this.contextMenuPending){var t,n,r=this.cm,o=r.doc;if(r.somethingSelected()){this.prevInput="";var i=o.sel.primary();t=is&&(i.to().line-i.from().line>100||(n=r.getSelection()).length>1e3);var a=t?"-":n||r.getSelection();this.textarea.value=a,r.state.focused&&Va(this.textarea),wi&&ki>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",wi&&ki>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!Ni||Yo()!=this.textarea))try{this.textarea.focus()}catch(e){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var e=this;e.pollingFast||e.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},fastPoll:function(){function e(){var r=n.poll();r||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},poll:function(){var e=this.cm,t=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||os(t)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=t.value; +if(r==n&&!e.somethingSelected())return!1;if(wi&&ki>=9&&this.hasSelection===r||Di&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var i=0,a=Math.min(n.length,r.length);i1e3||r.indexOf("\n")>-1?t.value=s.prevInput="":s.prevInput=r,s.composing&&(s.composing.range.clear(),s.composing.range=e.markText(s.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){wi&&ki>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(e){function t(){if(null!=a.selectionStart){var e=o.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,i.selForContextMenu=o.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=d,a.style.cssText=c,wi&&ki<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=l),null!=a.selectionStart){(!wi||wi&&ki<9)&&t();var e=0,n=function(){i.selForContextMenu==o.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==r.prevInput?Nt(o,pa.selectAll)(o):e++<10?i.detectingSelectAll=setTimeout(n,500):i.input.reset()};i.detectingSelectAll=setTimeout(n,200)}}var r=this,o=r.cm,i=o.display,a=r.textarea,s=Gt(o,e),l=i.scroller.scrollTop;if(s&&!Si){var u=o.options.resetSelectionOnContextMenu;u&&o.doc.sel.contains(s)==-1&&Nt(o,Se)(o.doc,fe(s),Wa);var c=a.style.cssText,d=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var p=r.wrapper.getBoundingClientRect();if(a.style.cssText="position: absolute; width: 30px; height: 30px; top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px; z-index: 1000; background: "+(wi?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",_i)var f=window.scrollY;if(i.input.focus(),_i&&window.scrollTo(null,f),i.input.reset(),o.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll),wi&&ki>=9&&t(),Fi){Na(e);var h=function(){Oa(window,"mouseup",h),setTimeout(n,20)};Da(window,"mouseup",h)}else setTimeout(n,50)}},readOnlyChanged:function(e){e||this.reset()},setUneditable:zo,needsContentAttribute:!1},ne.prototype),oe.prototype=Bo({init:function(e){function t(e){if(!Ao(r,e)){if(r.somethingSelected())Hi={lineWise:!1,text:r.getSelections()},"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=ee(r);Hi={lineWise:!0,text:t.text},"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,Wa),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var i=Hi.text.join("\n");if(e.clipboardData.setData("Text",i),e.clipboardData.getData("Text")==i)return void e.preventDefault()}var a=re(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Hi.text.join("\n");var l=document.activeElement;Va(s),setTimeout(function(){r.display.lineSpace.removeChild(a),l.focus(),l==o&&n.showPrimarySelection()},50)}}var n=this,r=n.cm,o=n.div=e.lineDiv;te(o,r.options.spellcheck),Da(o,"paste",function(e){Ao(r,e)||Q(e,r)||ki<=11&&setTimeout(Nt(r,function(){n.pollContent()||Rt(r)}),20)}),Da(o,"compositionstart",function(e){var t=e.data;if(n.composing={sel:r.doc.sel,data:t,startData:t},t){var o=r.doc.sel.primary(),i=r.getLine(o.head.line),a=i.indexOf(t,Math.max(0,o.head.ch-t.length));a>-1&&a<=o.head.ch&&(n.composing.sel=fe(Bi(o.head.line,a),Bi(o.head.line,a+t.length)))}}),Da(o,"compositionupdate",function(e){n.composing.data=e.data}),Da(o,"compositionend",function(e){var t=n.composing;t&&(e.data==t.startData||/\u200b/.test(e.data)||(t.data=e.data),setTimeout(function(){t.handled||n.applyComposition(t),n.composing==t&&(n.composing=null)},50))}),Da(o,"touchstart",function(){n.forceCompositionEnd()}),Da(o,"input",function(){n.composing||!r.isReadOnly()&&n.pollContent()||Lt(n.cm,function(){Rt(r)})}),Da(o,"copy",t),Da(o,"cut",t)},prepareSelection:function(){var e=Pe(this.cm,!1);return e.focus=this.cm.state.focused,e},showSelection:function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},showPrimarySelection:function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),n=se(this.cm,e.anchorNode,e.anchorOffset),r=se(this.cm,e.focusNode,e.focusOffset);if(!n||n.bad||!r||r.bad||0!=qi($(n,r),t.from())||0!=qi(Y(n,r),t.to())){var o=ie(this.cm,t.from()),i=ie(this.cm,t.to());if(o||i){var a=this.cm.display.view,s=e.rangeCount&&e.getRangeAt(0);if(o){if(!i){var l=a[a.length-1].measure,u=l.maps?l.maps[l.maps.length-1]:l.map;i={node:u[u.length-1],offset:u[u.length-2]-u[u.length-3]}}}else o={node:a[0].measure.map[2],offset:0};try{var c=Ka(o.node,o.offset,i.offset,i.node)}catch(d){}c&&(!yi&&this.cm.state.focused?(e.collapse(o.node,o.offset),c.collapsed||e.addRange(c)):(e.removeAllRanges(),e.addRange(c)),s&&null==e.anchorNode?e.addRange(s):yi&&this.startGracePeriod()),this.rememberSelection()}}},startGracePeriod:function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){e.cm.curOp.selectionChanged=!0})},20)},showMultipleSelections:function(e){Go(this.cm.display.cursorDiv,e.cursors),Go(this.cm.display.selectionDiv,e.selection)},rememberSelection:function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},selectionInEditor:function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Za(this.div,t)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():Lt(this.cm,function(){t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},selectionChanged:function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;this.rememberSelection();var n=se(t,e.anchorNode,e.anchorOffset),r=se(t,e.focusNode,e.focusOffset);n&&r&&Lt(t,function(){Se(t.doc,fe(n,r),Wa),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}},pollContent:function(){var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),o=n.to();if(r.linet.viewTo-1)return!1;var i;if(r.line==t.viewFrom||0==(i=Wt(e,r.line)))var a=no(t.view[0].line),s=t.view[0].node;else var a=no(t.view[i].line),s=t.view[i-1].node.nextSibling;var l=Wt(e,o.line);if(l==t.view.length-1)var u=t.viewTo-1,c=t.lineDiv.lastChild;else var u=no(t.view[l+1].line)-1,c=t.view[l+1].node.previousSibling;for(var d=e.doc.splitLines(ue(e,s,c,a,u)),p=Jr(e.doc,Bi(a,0),Bi(u,Qr(e.doc,u).text.length));d.length>1&&p.length>1;)if(Oo(d)==Oo(p))d.pop(),p.pop(),u--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),a++}for(var f=0,h=0,m=d[0],g=p[0],v=Math.min(m.length,g.length);f1||d[0]||qi(w,k)?(In(e.doc,d,w,k,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(e){this.cm.isReadOnly()?Nt(this.cm,Rt)(this.cm):e.data&&e.data!=e.startData&&Nt(this.cm,X)(this.cm,e.data,0,e.sel)},setUneditable:function(e){e.contentEditable="false"},onKeyPress:function(e){e.preventDefault(),this.cm.isReadOnly()||Nt(this.cm,X)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},readOnlyChanged:function(e){this.div.contentEditable=String("nocursor"!=e)},onContextMenu:zo,resetPosition:zo,needsContentAttribute:!0},oe.prototype),e.inputStyles={textarea:ne,contenteditable:oe},ce.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t=0&&qi(e,r.to())<=0)return n}return-1}},de.prototype={from:function(){return $(this.anchor,this.head)},to:function(){return Y(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var Ui,ji,Vi,Ki={left:0,right:0,top:0,bottom:0},Gi=null,Yi=0,$i=0,Zi=0,Xi=null;wi?Xi=-.53:yi?Xi=15:Ei?Xi=-.7:Ti&&(Xi=-1/3);var Qi=function(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}};e.wheelEventPixels=function(e){var t=Qi(e);return t.x*=Xi,t.y*=Xi,t};var Ji=new Do,ea=null,ta=e.changeEnd=function(e){return e.text?Bi(e.from.line+e.text.length-1,Oo(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,ra.hasOwnProperty(e)&&Nt(this,ra[e])(this,t,r))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Yn(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(qn(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&Wn(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&ke(this.doc,r,new de(i,u[r].to()),Wa)}}}),getTokenAt:function(e,t){return Ir(this,e,t)},getLineTokens:function(e,t){return Ir(this,Bi(e),t,!0)},getTokenTypeAt:function(e){e=me(this.doc,e);var t,n=Rr(this,Qr(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),n=Qr(this.doc,e)}else n=e;return dt(this,n,{top:0,left:0},t||"page").top+(r?this.doc.height-oo(n):0)},defaultTextHeight:function(){return bt(this.display)},defaultCharWidth:function(){return xt(this.display)},setGutterMarker:Dt(function(e,t,n){return Hn(this.doc,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&Uo(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Dt(function(e){var t=this,n=t.doc,r=n.first;n.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&(n.gutterMarkers[e]=null,Ft(t,r,"gutter"),Uo(n.gutterMarkers)&&(n.gutterMarkers=null)),++r})}),lineInfo:function(e){if("number"==typeof e){if(!ve(this.doc,e))return null;var t=e;if(e=Qr(this.doc,e),!e)return null}else{var t=no(e);if(null==t)return null}return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display;e=ht(this,me(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),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(i.wrapper.clientHeight,this.doc.height),u=Math.max(i.sizer.clientWidth,i.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"==o?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&Rn(this,s,a,s+t.offsetWidth,a+t.offsetHeight)},triggerOnKeyDown:Dt(fn),triggerOnKeyPress:Dt(gn),triggerOnKeyUp:mn,execCommand:function(e){if(pa.hasOwnProperty(e))return pa[e].call(null,this)},triggerElectric:Dt(function(e){J(this,e)}),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=0,a=me(this.doc,e);i0&&s(n.charAt(r-1));)--r;for(;o.5)&&a(this),Pa(this,"refresh",this)}),swapDoc:Dt(function(e){var t=this.doc;return t.cm=null,Xr(this,e),lt(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,So(this,"swapDoc",this,t),t}),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}},No(e);var na=e.defaults={},ra=e.optionHandlers={},oa=e.Init={toString:function(){return"CodeMirror.Init"}};Kn("value","",function(e,t){e.setValue(t)},!0),Kn("mode",null,function(e,t){e.doc.modeOption=t,n(e)},!0),Kn("indentUnit",2,n,!0),Kn("indentWithTabs",!1),Kn("smartIndent",!0),Kn("tabSize",4,function(e){r(e),lt(e),Rt(e)},!0),Kn("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(i==-1)break;o=i+t.length,n.push(Bi(r,i))}r++});for(var o=n.length-1;o>=0;o--)In(e.doc,t,n[o],Bi(n[o].line,n[o].ch+t.length))}}),Kn("specialChars",/[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,n,r){t.state.specialChars=new RegExp(n.source+(n.test("\t")?"":"|\t"),"g"),r!=e.Init&&t.refresh()}),Kn("specialCharPlaceholder",Br,function(e){e.refresh()},!0),Kn("electricChars",!0),Kn("inputStyle",Ni?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Kn("spellcheck",!1,function(e,t){e.getInputField().spellcheck=t},!0),Kn("rtlMoveVisually",!Oi),Kn("wholeLineUpdateBefore",!0),Kn("theme","default",function(e){s(e),l(e)},!0),Kn("keyMap","default",function(t,n,r){var o=Yn(n),i=r!=e.Init&&Yn(r);i&&i.detach&&i.detach(t,o),o.attach&&o.attach(t,i||null)}),Kn("extraKeys",null),Kn("lineWrapping",!1,o,!0),Kn("gutters",[],function(e){f(e.options),l(e)},!0),Kn("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?C(e.display)+"px":"0",e.refresh()},!0),Kn("coverGutterNextToScrollbar",!1,function(e){y(e)},!0),Kn("scrollbarStyle","native",function(e){v(e),y(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),Kn("lineNumbers",!1,function(e){f(e.options),l(e)},!0),Kn("firstLineNumber",1,l,!0),Kn("lineNumberFormatter",function(e){return e},l,!0),Kn("showCursorWhenSelecting",!1,Oe,!0),Kn("resetSelectionOnContextMenu",!0),Kn("lineWiseCopyCut",!0),Kn("readOnly",!1,function(e,t){"nocursor"==t?(bn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),Kn("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),Kn("dragDrop",!0,jt),Kn("allowDropFileTypes",null),Kn("cursorBlinkRate",530),Kn("cursorScrollMargin",0),Kn("cursorHeight",1,Oe,!0),Kn("singleCursorHeightPerLine",!0,Oe,!0),Kn("workTime",100),Kn("workDelay",100),Kn("flattenSpans",!0,r,!0),Kn("addModeClass",!1,r,!0),Kn("pollInterval",100),Kn("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),Kn("historyEventDelay",1250),Kn("viewportMargin",10,function(e){e.refresh()},!0),Kn("maxHighlightLength",1e4,r,!0),Kn("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),Kn("tabindex",null,function(e,t){e.display.input.getField().tabIndex=t||""}),Kn("autofocus",null);var ia=e.modes={},aa=e.mimeModes={};e.defineMode=function(t,n){e.defaults.mode||"null"==t||(e.defaults.mode=t),arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),ia[t]=n},e.defineMIME=function(e,t){aa[e]=t},e.resolveMode=function(t){if("string"==typeof t&&aa.hasOwnProperty(t))t=aa[t];else if(t&&"string"==typeof t.name&&aa.hasOwnProperty(t.name)){var n=aa[t.name];"string"==typeof n&&(n={name:n}),t=Wo(n,t),t.name=n.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return e.resolveMode("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return e.resolveMode("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}},e.getMode=function(t,n){var n=e.resolveMode(n),r=ia[n.name];if(!r)return e.getMode(t,"text/plain");var o=r(t,n);if(sa.hasOwnProperty(n.name)){var i=sa[n.name];for(var a in i)i.hasOwnProperty(a)&&(o.hasOwnProperty(a)&&(o["_"+a]=o[a]),o[a]=i[a])}if(o.name=n.name,n.helperType&&(o.helperType=n.helperType),n.modeProps)for(var a in n.modeProps)o[a]=n.modeProps[a];return o},e.defineMode("null",function(){return{token:function(e){e.skipToEnd()}}}),e.defineMIME("text/plain","null");var sa=e.modeExtensions={};e.extendMode=function(e,t){var n=sa.hasOwnProperty(e)?sa[e]:sa[e]={};Bo(t,n)},e.defineExtension=function(t,n){e.prototype[t]=n},e.defineDocExtension=function(e,t){Sa.prototype[e]=t},e.defineOption=Kn;var la=[];e.defineInitHook=function(e){la.push(e)};var ua=e.helpers={};e.registerHelper=function(t,n,r){ua.hasOwnProperty(t)||(ua[t]=e[t]={_global:[]}),ua[t][n]=r},e.registerGlobalHelper=function(t,n,r,o){e.registerHelper(t,n,o),ua[t]._global.push({pred:r,val:o})};var ca=e.copyState=function(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n},da=e.startState=function(e,t,n){return!e.startState||e.startState(t,n)};e.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var pa=e.commands={selectAll:function(e){e.setSelection(Bi(e.firstLine(),0),Bi(e.lastLine()),Wa)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Wa)},killLine:function(e){Un(e,function(t){if(t.empty()){var n=Qr(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)o=new Bi(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),Bi(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Qr(e.doc,o.line-1).text;a&&e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),Bi(o.line-1,a.length-1),Bi(o.line,1),"+transpose")}n.push(new de(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){Lt(e,function(){for(var t=e.listSelections().length,n=0;n=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e},i=this.string.substr(this.pos,e.length);if(o(i)==o(e))return t!==!1&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var ya=0,ba=e.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ya};No(ba),ba.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&wt(e),Lo(this,"clear")){var n=this.find();n&&So(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Rt(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Me(e.doc)),e&&So(e,"markerCleared",e,this),t&&_t(e),this.parent&&this.parent.clear()}},ba.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,r,o=0;o1||!(this.children[0]instanceof Yr))){var s=[];this.collapse(s),this.children=[new Yr(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r=0;i--)Tn(this,r[i]);s?Ee(this,s):this.cm&&Wn(this.cm)}),undo:It(function(){Mn(this,"undo")}),redo:It(function(){Mn(this,"redo")}),undoSelection:It(function(){Mn(this,"undo",!0)}),redoSelection:It(function(){Mn(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(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=me(this,e),t=me(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(i){var a=i.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re?(t=e,!0):(e-=i,void++n)}),me(this,Bi(n,t))},indexFromPos:function(e){e=me(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}},Ua=e.findColumn=function(e,t,n){for(var r=0,o=0;;){var i=e.indexOf("\t",r);i==-1&&(i=e.length);var a=i-r;if(i==e.length||o+a>=t)return r+Math.min(a,t-o);if(o+=i-r,o+=n-o%n,r=i+1,o>=t)return r}},ja=[""],Va=function(e){e.select()};Li?Va=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:wi&&(Va=function(e){try{e.select()}catch(t){}});var Ka,Ga=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ya=e.isWordChar=function(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Ga.test(e))},$a=/[\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]/;Ka=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(o){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Za=e.contains=function(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do if(11==t.nodeType&&(t=t.host),t==e)return!0;while(t=t.parentNode)};wi&&ki<11&&(Yo=function(){try{return document.activeElement}catch(e){return document.body}});var Xa,Qa,Ja=e.rmClass=function(e,t){var n=e.className,r=$o(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}},es=e.addClass=function(e,t){var n=e.className;$o(t).test(n)||(e.className+=(n?" ":"")+t)},ts=!1,ns=function(){if(wi&&ki<9)return!1;var e=Vo("div");return"draggable"in e||"dragDrop"in e}(),rs=e.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);o==-1&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");a!=-1?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},os=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},is=function(){var e=Vo("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),as=null,ss=e.keyNames={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};!function(){for(var e=0;e<10;e++)ss[e+48]=ss[e+96]=String(e);for(var e=65;e<=90;e++)ss[e]=String.fromCharCode(e);for(var e=1;e<=12;e++)ss[e+111]=ss[e+63235]="F"+e}();var ls,us=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1773?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,l=/[1n]/,u="L";return function(n){if(!o.test(n))return!1;for(var r,c=n.length,d=[],p=0;p-1?(this.closeMenu(n),this.setButtonFocus(n)):e.target===o&&(this.openMenu(n),this.setMenuItemFocus(n)),t(e);break;case 27:this.closeMenu(n),this.setButtonFocus(n),t(e);break;default:console.log(e.keyCode)}},openMenu:function(e){var t=this.findMenuElement(e);return"false"===t.getAttribute("data-open")&&(t.style.display="block",t.setAttribute("data-open","true")),!0},closeMenu:function(e){var t=this.findMenuElement(e);return t.style.display="none",t.setAttribute("data-open","false"),this.removeMenuItemFocus(e),!1},toggleMenu:function(e){var t=this.findMenuElement(e);return"false"===t.getAttribute("data-open")?this.openMenu(e):this.closeMenu(e)},setButtonFocus:function(e){this.findButtonElement(e).focus()},setMenuItemFocus:function(e,t){var n=this.findMenuElement(e);this.removeMenuItemFocus(e),t||(t=n.querySelectorAll('[role="menuitem"]')[0]),t.setAttribute("data-active","true"),t.focus()},removeMenuItemFocus:function(e){var t=this.findMenuElement(e);Array.prototype.forEach.call(t.querySelectorAll('[role="menuitem"]'),function(e){e.setAttribute("data-active","false")}),this.findButtonElement(e).focus()},findMenuElement:function(e){for(;e.className.indexOf("popupMenuWidget")===-1;)e=e.parentNode;return e.querySelector('[role="menu"],ul')},findButtonElement:function(e){for(;e.className.indexOf("popupMenuWidget")===-1;)e=e.parentNode;return e.querySelector('[role="button"],a')}}}).call(t,function(){return this}())},function(e,t,n){!function(e){e(n(219),n(229),n(230),n(231))}(function(e){"use strict";function t(e,t,n){var r=e.current(),o=r.search(t);return o>-1?e.backUp(r.length-o):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}function n(e){var t=l[e];return t?t:l[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function r(e,t){var r=e.match(n(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function o(e,t){return new RegExp((t?"^":"")+"","i")}function i(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),o=e[n],i=o.length-1;i>=0;i--)r.unshift(o[i])}function a(e,t){for(var n=0;n\s\/]/.test(r.current())&&(s=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))i.inTag=s+" ";else if(i.inTag&&p&&/>$/.test(r.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var h=">"==r.current()&&a(c[f[1]],f[2]),m=e.getMode(n,h),g=o(f[1],!0),v=o(f[1],!1);i.token=function(e,n){return e.match(g,!1)?(n.token=l,n.localState=n.localMode=null,null):t(e,v,n.localMode.token(e,n.localState))},i.localMode=m,i.localState=e.startState(m,u.indent(i.htmlState,""))}else i.inTag&&(i.inTag+=r.current(),r.eol()&&(i.inTag+=" "));return d}var u=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:r.multilineTagIndentFactor,multilineTagIndentPastTag:r.multilineTagIndentPastTag}),c={},d=r&&r.tags,p=r&&r.scriptTypes;if(i(s,c),d&&i(d,c),p)for(var f=p.length-1;f>=0;f--)c.script.unshift(["type",p[f].matches,p[f].mode]);return{startState:function(){var t=e.startState(u);return{token:l,inTag:null,localMode:null,localState:null,htmlState:t}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n, +htmlState:e.copyState(u,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n){return!t.localMode||/^\s*<\//.test(n)?u.indent(t.htmlState,n):t.localMode.indent?t.localMode.indent(t.localState,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||u}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")})},function(e,t,n){!function(e){e(n(219))}(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,caseFold:!1};e.defineMode("xml",function(r,o){function i(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(l("atom","]]>")):null:e.match("--")?n(l("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(u(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=l("meta","?>"),"meta"):(S=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=i,S=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return S="equals",null;if("<"==n){t.tokenize=i,t.state=f,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=s(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function l(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=i;break}n.next()}return e}}function u(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=u(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=i;break}return n.tokenize=u(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(_.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function p(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!_.contextGrabbers.hasOwnProperty(n)||!_.contextGrabbers[n].hasOwnProperty(t))return;d(e)}}function f(e,t,n){return"openTag"==e?(n.tagStart=t.column(),h):"closeTag"==e?m:f}function h(e,t,n){return"word"==e?(n.tagName=t.current(),T="tag",y):(T="error",h)}function m(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&_.implicitlyClosed.hasOwnProperty(n.context.tagName)&&d(n),n.context&&n.context.tagName==r||_.matchClosing===!1?(T="tag",g):(T="tag error",v)}return T="error",v}function g(e,t,n){return"endTag"!=e?(T="error",g):(d(n),f)}function v(e,t,n){return T="error",g(e,t,n)}function y(e,t,n){if("word"==e)return T="attribute",b;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||_.autoSelfClosers.hasOwnProperty(r)?p(n,r):(p(n,r),n.context=new c(n,r,o==n.indented)),f}return T="error",y}function b(e,t,n){return"equals"==e?x:(_.allowMissing||(T="error"),y(e,t,n))}function x(e,t,n){return"string"==e?w:"word"==e&&_.allowUnquoted?(T="string",y):(T="error",y(e,t,n))}function w(e,t,n){return"string"==e?w:y(e,t,n)}var k=r.indentUnit,_={},C=o.htmlMode?t:n;for(var E in C)_[E]=C[E];for(var E in o)_[E]=o[E];var S,T;return i.isInText=!0,{startState:function(e){var t={tokenize:i,state:f,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;S=null;var n=t.tokenize(e,t);return(n||S)&&"comment"!=n&&(T=null,t.state=t.state(S||n,e,t),T&&(n="error"==T?n+" error":T)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+k;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=i)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return _.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+k*(_.multilineTagIndentFactor||1);if(_.alignCDATA&&/$/,blockCommentStart:"",configuration:_.htmlMode?"html":"xml",helperType:_.htmlMode?"html":"xml",skipAttribute:function(e){e.state==x&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},function(e,t,n){!function(e){e(n(219))}(function(e){"use strict";function t(e,t,n){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}e.defineMode("javascript",function(n,r){function o(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function i(e,t,n){return ke=e,_e=n,t}function a(e,n){var r=e.next();if('"'==r||"'"==r)return n.tokenize=s(r),n.tokenize(e,n);if("."==r&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==r&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return i(r);if("="==r&&e.eat(">"))return i("=>","operator");if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i("number","number");if("0"==r&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),i("number","number");if("0"==r&&e.eat(/b/i))return e.eatWhile(/[01]/i),i("number","number");if(/\d/.test(r))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),i("number","number");if("/"==r)return e.eat("*")?(n.tokenize=l,l(e,n)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):t(e,n,1)?(o(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),i("regexp","string-2")):(e.eatWhile(Ne),i("operator","operator",e.current()));if("`"==r)return n.tokenize=u,u(e,n);if("#"==r)return e.skipToEnd(),i("error","error");if(Ne.test(r))return e.eatWhile(Ne),i("operator","operator",e.current());if(Me.test(r)){e.eatWhile(Me);var a=e.current(),c=Le.propertyIsEnumerable(a)&&Le[a];return c&&"."!=n.lastType?i(c.type,c.style,a):i("variable","variable",a)}}function s(e){return function(t,n){var r,o=!1;if(Se&&"@"==t.peek()&&t.match(De))return n.tokenize=a,i("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||o);)o=!o&&"\\"==r;return o||(n.tokenize=a),i("string","string")}}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=a;break}r="*"==n}return i("comment","comment")}function u(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=a;break}r=!r&&"\\"==n}return i("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){for(var r=0,o=!1,i=n-1;i>=0;--i){var a=e.string.charAt(i),s=Ie.indexOf(a);if(s>=0&&s<3){if(!r){++i;break}if(0==--r){"("==a&&(o=!0);break}}else if(s>=3&&s<6)++r;else if(Me.test(a))o=!0;else{if(/["'\/]/.test(a))return;if(o&&!r){++i;break}}}o&&!r&&(t.fatArrowAt=i)}}function d(e,t,n,r,o,i){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function p(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function f(e,t,n,r,o){var i=e.cc;for(Pe.state=e,Pe.stream=o,Pe.marked=null,Pe.cc=i,Pe.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var a=i.length?i.pop():Te?_:k;if(a(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return Pe.marked?Pe.marked:"variable"==n&&p(e,r)?"variable-2":t}}}function h(){for(var e=arguments.length-1;e>=0;e--)Pe.cc.push(arguments[e])}function m(){return h.apply(null,arguments),!0}function g(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var n=Pe.state;if(Pe.marked="def",n.context){if(t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}function v(){Pe.state.context={prev:Pe.state.context,vars:Pe.state.localVars},Pe.state.localVars=Re}function y(){Pe.state.localVars=Pe.state.context.vars,Pe.state.context=Pe.state.context.prev}function b(e,t){var n=function(){var n=Pe.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new d(r,Pe.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function x(){var e=Pe.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function w(e){function t(n){return n==e?m():";"==e?h():m(t)}return t}function k(e,t){return"var"==e?m(b("vardef",t.length),Q,w(";"),x):"keyword a"==e?m(b("form"),_,k,x):"keyword b"==e?m(b("form"),k,x):"{"==e?m(b("}"),j,x):";"==e?m():"if"==e?("else"==Pe.state.lexical.info&&Pe.state.cc[Pe.state.cc.length-1]==x&&Pe.state.cc.pop()(),m(b("form"),_,k,x,re)):"function"==e?m(ue):"for"==e?m(b("form"),oe,k,x):"variable"==e?m(b("stat"),F):"switch"==e?m(b("form"),_,b("}","switch"),w("{"),j,x,x):"case"==e?m(_,w(":")):"default"==e?m(w(":")):"catch"==e?m(b("form"),v,w("("),ce,w(")"),k,x,y):"class"==e?m(b("form"),de,x):"export"==e?m(b("stat"),me,x):"import"==e?m(b("stat"),ge,x):"module"==e?m(b("form"),J,b("}"),w("{"),j,x,x):"async"==e?m(k):h(b("stat"),_,w(";"),x)}function _(e){return E(e,!1)}function C(e){return E(e,!0)}function E(e,t){if(Pe.state.fatArrowAt==Pe.stream.start){var n=t?I:D;if("("==e)return m(v,b(")"),H(J,")"),x,w("=>"),n,y);if("variable"==e)return h(v,J,w("=>"),n,y)}var r=t?M:A;return Oe.hasOwnProperty(e)?m(r):"function"==e?m(ue,r):"keyword c"==e||"async"==e?m(t?T:S):"("==e?m(b(")"),S,w(")"),x,r):"operator"==e||"spread"==e?m(t?C:_):"["==e?m(b("]"),xe,x,r):"{"==e?U(W,"}",null,r):"quasi"==e?h(L,r):"new"==e?m(O(t)):m()}function S(e){return e.match(/[;\}\)\],]/)?h():h(_)}function T(e){return e.match(/[;\}\)\],]/)?h():h(C)}function A(e,t){return","==e?m(_):M(e,t,!1)}function M(e,t,n){var r=0==n?A:M,o=0==n?_:C;return"=>"==e?m(v,n?I:D,y):"operator"==e?/\+\+|--/.test(t)?m(r):"?"==t?m(_,w(":"),o):m(o):"quasi"==e?h(L,r):";"!=e?"("==e?U(C,")","call",r):"."==e?m(z,r):"["==e?m(b("]"),S,w("]"),x,r):void 0:void 0}function L(e,t){return"quasi"!=e?h():"${"!=t.slice(t.length-2)?m(L):m(_,N)}function N(e){if("}"==e)return Pe.marked="string-2",Pe.state.tokenize=u,m(L)}function D(e){return c(Pe.stream,Pe.state),h("{"==e?k:_)}function I(e){return c(Pe.stream,Pe.state),h("{"==e?k:C)}function O(e){return function(t){return"."==t?m(e?R:P):h(e?C:_)}}function P(e,t){if("target"==t)return Pe.marked="keyword",m(A)}function R(e,t){if("target"==t)return Pe.marked="keyword",m(M)}function F(e){return":"==e?m(x,k):h(A,w(";"),x)}function z(e){if("variable"==e)return Pe.marked="property",m()}function W(e,t){return"async"==e?(Pe.marked="property",m(W)):"variable"==e||"keyword"==Pe.style?(Pe.marked="property",m("get"==t||"set"==t?B:q)):"number"==e||"string"==e?(Pe.marked=Se?"property":Pe.style+" property",m(q)):"jsonld-keyword"==e?m(q):"modifier"==e?m(W):"["==e?m(_,w("]"),q):"spread"==e?m(_):":"==e?h(q):void 0}function B(e){return"variable"!=e?h(q):(Pe.marked="property",m(ue))}function q(e){return":"==e?m(C):"("==e?h(ue):void 0}function H(e,t){function n(r,o){if(","==r){var i=Pe.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),m(function(n,r){return n==t||r==t?h():h(e)},n)}return r==t||o==t?m():m(w(t))}return function(r,o){return r==t||o==t?m():h(e,n)}}function U(e,t,n){for(var r=3;r"==e)return m(G)}function $(e){return"variable"==e||"keyword"==Pe.style?(Pe.marked="property",m($)):":"==e?m(G):void 0}function Z(e){return"variable"==e?m(Z):":"==e?m(G):void 0}function X(e,t){return"<"==t?m(H(G,">"),X):"["==e?m(w("]"),X):void 0}function Q(){return h(J,V,te,ne)}function J(e,t){return"modifier"==e?m(J):"variable"==e?(g(t),m()):"spread"==e?m(J):"["==e?U(J,"]"):"{"==e?U(ee,"}"):void 0}function ee(e,t){return"variable"!=e||Pe.stream.match(/^\s*:/,!1)?("variable"==e&&(Pe.marked="property"),"spread"==e?m(J):"}"==e?h():m(w(":"),J,te)):(g(t),m(te))}function te(e,t){if("="==t)return m(C)}function ne(e){if(","==e)return m(Q)}function re(e,t){if("keyword b"==e&&"else"==t)return m(b("form","else"),k,x)}function oe(e){if("("==e)return m(b(")"),ie,w(")"),x)}function ie(e){return"var"==e?m(Q,w(";"),se):";"==e?m(se):"variable"==e?m(ae):h(_,w(";"),se)}function ae(e,t){return"in"==t||"of"==t?(Pe.marked="keyword",m(_)):m(A,se)}function se(e,t){return";"==e?m(le):"in"==t||"of"==t?(Pe.marked="keyword",m(_)):h(_,w(";"),le)}function le(e){")"!=e&&m(_)}function ue(e,t){return"*"==t?(Pe.marked="keyword",m(ue)):"variable"==e?(g(t),m(ue)):"("==e?m(v,b(")"),H(ce,")"),x,V,k,y):void 0}function ce(e){return"spread"==e?m(ce):h(J,V,K)}function de(e,t){if("variable"==e)return g(t),m(pe)}function pe(e,t){return"extends"==t?m(Ae?G:_,pe):"{"==e?m(b("}"),fe,x):void 0}function fe(e,t){return"variable"==e||"keyword"==Pe.style?"static"==t?(Pe.marked="keyword",m(fe)):(Pe.marked="property","get"==t||"set"==t?m(he,ue,fe):m(ue,fe)):"*"==t?(Pe.marked="keyword",m(fe)):";"==e?m(fe):"}"==e?m():void 0}function he(e){return"variable"!=e?h():(Pe.marked="property",m())}function me(e,t){return"*"==t?(Pe.marked="keyword",m(be,w(";"))):"default"==t?(Pe.marked="keyword",m(_,w(";"))):h(k)}function ge(e){return"string"==e?m():h(ve,be)}function ve(e,t){return"{"==e?U(ve,"}"):("variable"==e&&g(t),"*"==t&&(Pe.marked="keyword"),m(ye))}function ye(e,t){if("as"==t)return Pe.marked="keyword",m(ve)}function be(e,t){if("from"==t)return Pe.marked="keyword",m(_)}function xe(e){return"]"==e?m():h(H(C,"]"))}function we(e,t){return"operator"==e.lastType||","==e.lastType||Ne.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}var ke,_e,Ce=n.indentUnit,Ee=r.statementIndent,Se=r.jsonld,Te=r.json||Se,Ae=r.typescript,Me=r.wordCharacters||/[\w$\xa1-\uffff]/,Le=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),o=e("operator"),i={type:"atom",style:"atom"},a={"if":e("if"),"while":t,"with":t,"else":n,"do":n,"try":n,"finally":n,"return":r,"break":r,"continue":r,"new":e("new"),"delete":r,"throw":r,"debugger":r,"var":e("var"),"const":e("var"),"let":e("var"),"function":e("function"),"catch":e("catch"),"for":e("for"),"switch":e("switch"),"case":e("case"),"default":e("default"),"in":o,"typeof":o,"instanceof":o,"true":i,"false":i,"null":i,undefined:i,NaN:i,Infinity:i,"this":e("this"),"class":e("class"),"super":e("atom"),"yield":r,"export":e("export"),"import":e("import"),"extends":r,await:r,async:e("async")};if(Ae){var s={type:"variable",style:"variable-3"},l={"interface":e("class"),"implements":r,namespace:r,module:e("module"),"enum":e("module"),"public":e("modifier"),"private":e("modifier"),"protected":e("modifier"),"abstract":e("modifier"),as:o,string:s,number:s,"boolean":s,any:s};for(var u in l)a[u]=l[u]}return a}(),Ne=/[+\-*&%=<>!?|~^]/,De=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Ie="([{}])",Oe={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},Pe={state:null,column:null,marked:null,cc:null},Re={name:"this",next:{name:"arguments"}};return x.lex=!0,{startState:function(e){var t={tokenize:a,lastType:"sof",cc:[],lexical:new d((e||0)-Ce,0,"block",(!1)),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=l&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==ke?n:(t.lastType="operator"!=ke||"++"!=_e&&"--"!=_e?ke:"incdec",f(t,n,ke,_e,e))},indent:function(t,n){if(t.tokenize==l)return e.Pass;if(t.tokenize!=a)return 0;var o=n&&n.charAt(0),i=t.lexical;if(!/^\s*else\b/.test(n))for(var s=t.cc.length-1;s>=0;--s){var u=t.cc[s];if(u==x)i=i.prev;else if(u!=re)break}"stat"==i.type&&"}"==o&&(i=i.prev),Ee&&")"==i.type&&"stat"==i.prev.type&&(i=i.prev);var c=i.type,d=o==c;return"vardef"==c?i.indented+("operator"==t.lastType||","==t.lastType?i.info+1:0):"form"==c&&"{"==o?i.indented:"form"==c?i.indented+Ce:"stat"==c?i.indented+(we(t,n)?Ee||Ce:0):"switch"!=i.info||d||0==r.doubleIndentSwitch?i.align?i.column+(d?0:1):i.indented+(d?0:Ce):i.indented+(/^(?:case|default)\b/.test(n)?Ce:2*Ce)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Te?null:"/*",blockCommentEnd:Te?null:"*/",lineComment:Te?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Te?"json":"javascript",jsonldMode:Se,jsonMode:Te,expressionAllowed:t,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=_&&t!=C||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},function(e,t,n){!function(e){e(n(219))}(function(e){"use strict";function t(e){for(var t={},n=0;n*\/]/.test(n)?r(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?r("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?r(null,n):"u"==n&&e.match(/rl(-prefix)?\(/)||"d"==n&&e.match("omain(")||"r"==n&&e.match("egexp(")?(e.backUp(1),t.tokenize=a,r("property","word")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),r("property","word")):r(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),r("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?r("variable-2","variable-definition"):r("variable-2","variable")):e.match(/^\w+-/)?r("meta","meta"):void 0}function i(e){return function(t,n){for(var o,i=!1;null!=(o=t.next());){if(o==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==o}return(o==e||!i&&")"!=e)&&(n.tokenize=null),r("string","string")}}function a(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=i(")"),r(null,"(")}function s(e,t,n){this.type=e,this.indent=t,this.prev=n}function l(e,t,n,r){return e.context=new s(n,t.indentation()+(r===!1?0:g),e.context),n}function u(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function c(e,t,n){return L[n.context.type](e,t,n)}function d(e,t,n,r){for(var o=r||1;o>0;o--)n.context=n.context.prev;return c(e,t,n)}function p(e){var t=e.current().toLowerCase();m=T.hasOwnProperty(t)?"atom":S.hasOwnProperty(t)?"keyword":"variable"}var f=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var h,m,g=t.indentUnit,v=n.tokenHooks,y=n.documentTypes||{},b=n.mediaTypes||{},x=n.mediaFeatures||{},w=n.mediaValueKeywords||{},k=n.propertyKeywords||{},_=n.nonStandardPropertyKeywords||{},C=n.fontProperties||{},E=n.counterDescriptors||{},S=n.colorKeywords||{},T=n.valueKeywords||{},A=n.allowNested,M=n.supportsAtComponent===!0,L={};return L.top=function(e,t,n){if("{"==e)return l(n,t,"block");if("}"==e&&n.context.prev)return u(n);if(M&&/@component/.test(e))return l(n,t,"atComponentBlock");if(/^@(-moz-)?document$/.test(e))return l(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/.test(e))return l(n,t,"atBlock");if(/^@(font-face|counter-style)/.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return l(n,t,"at");if("hash"==e)m="builtin";else if("word"==e)m="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return l(n,t,"interpolation");if(":"==e)return"pseudo";if(A&&"("==e)return l(n,t,"parens")}return n.context.type},L.block=function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return k.hasOwnProperty(r)?(m="property","maybeprop"):_.hasOwnProperty(r)?(m="string-2","maybeprop"):A?(m=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(m+=" error","maybeprop")}return"meta"==e?"block":A||"hash"!=e&&"qualifier"!=e?L.top(e,t,n):(m="error","block")},L.maybeprop=function(e,t,n){return":"==e?l(n,t,"prop"):c(e,t,n)},L.prop=function(e,t,n){if(";"==e)return u(n);if("{"==e&&A)return l(n,t,"propBlock");if("}"==e||"{"==e)return d(e,t,n);if("("==e)return l(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)p(t);else if("interpolation"==e)return l(n,t,"interpolation")}else m+=" error";return"prop"},L.propBlock=function(e,t,n){return"}"==e?u(n):"word"==e?(m="property","maybeprop"):n.context.type},L.parens=function(e,t,n){return"{"==e||"}"==e?d(e,t,n):")"==e?u(n):"("==e?l(n,t,"parens"):"interpolation"==e?l(n,t,"interpolation"):("word"==e&&p(t),"parens")},L.pseudo=function(e,t,n){return"word"==e?(m="variable-3",n.context.type):c(e,t,n)},L.documentTypes=function(e,t,n){return"word"==e&&y.hasOwnProperty(t.current())?(m="tag",n.context.type):L.atBlock(e,t,n)},L.atBlock=function(e,t,n){if("("==e)return l(n,t,"atBlock_parens");if("}"==e||";"==e)return d(e,t,n);if("{"==e)return u(n)&&l(n,t,A?"block":"top");if("interpolation"==e)return l(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();m="only"==r||"not"==r||"and"==r||"or"==r?"keyword":b.hasOwnProperty(r)?"attribute":x.hasOwnProperty(r)?"property":w.hasOwnProperty(r)?"keyword":k.hasOwnProperty(r)?"property":_.hasOwnProperty(r)?"string-2":T.hasOwnProperty(r)?"atom":S.hasOwnProperty(r)?"keyword":"error"}return n.context.type},L.atComponentBlock=function(e,t,n){return"}"==e?d(e,t,n):"{"==e?u(n)&&l(n,t,A?"block":"top",!1):("word"==e&&(m="error"),n.context.type)},L.atBlock_parens=function(e,t,n){return")"==e?u(n):"{"==e||"}"==e?d(e,t,n,2):L.atBlock(e,t,n)},L.restricted_atBlock_before=function(e,t,n){return"{"==e?l(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(m="variable","restricted_atBlock_before"):c(e,t,n)},L.restricted_atBlock=function(e,t,n){return"}"==e?(n.stateArg=null,u(n)):"word"==e?(m="@font-face"==n.stateArg&&!C.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!E.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},L.keyframes=function(e,t,n){return"word"==e?(m="variable","keyframes"):"{"==e?l(n,t,"top"):c(e,t,n)},L.at=function(e,t,n){return";"==e?u(n):"{"==e||"}"==e?d(e,t,n):("word"==e?m="tag":"hash"==e&&(m="builtin"),"at")},L.interpolation=function(e,t,n){return"}"==e?u(n):"{"==e||";"==e?d(e,t,n):("word"==e?m="variable":"variable"!=e&&"("!=e&&")"!=e&&(m="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:f?"block":"top",stateArg:null,context:new s(f?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||o)(e,t);return n&&"object"==typeof n&&(h=n[1],n=n[0]),m=n,t.state=L[t.state](h,e,t),m},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),o=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(o=Math.max(0,n.indent-g),n=n.prev):(n=n.prev,o=n.indent)),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});var r=["domain","regexp","url","url-prefix"],o=t(r),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(i),s=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],l=t(s),u=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],c=t(u),d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(d),f=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],h=t(f),m=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],g=t(m),v=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(v),b=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],x=t(b),w=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],k=t(w),_=r.concat(i).concat(s).concat(u).concat(d).concat(f).concat(b).concat(w); +e.registerHelper("hintWords","css",_),e.defineMIME("text/css",{documentTypes:o,mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:h,fontProperties:g,counterDescriptors:y,colorKeywords:x,valueKeywords:k,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=n,n(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:h,colorKeywords:x,valueKeywords:k,fontProperties:g,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/)&&[null,"{"]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:h,colorKeywords:x,valueKeywords:k,fontProperties:g,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:a,mediaFeatures:l,propertyKeywords:p,nonStandardPropertyKeywords:h,fontProperties:g,counterDescriptors:y,colorKeywords:x,valueKeywords:k,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=n,n(e,t))}},name:"css",helperType:"gss"})})},function(e,t,n){var r=n(3);r=r?r["default"]||r:r;var o=n(199);o=o?o["default"]||o:o,e.exports={options:{title:"Images",chapter:"Writing Code",layout_data:{description:"",examples:[{title:"An Accessible Inline Image",description:"This is an image with an alt text. Turn on VoiceOver if you are on a Mac, tab\nto the Editor Output section, and use Ctrl + Opt + Right Arrow\nto navigate to these images. VoiceOver will announce the alt text. For the second image below, VoiceOver\nwill not announce anything meaningful since there is no alt text.\n",code:'\n'},{title:"Inaccessible Inline Image exercise",description:'This is an image without alt text. Turn on VoiceOver and listen to how it is read. Add an `alt`\nattribute "Facebook logo" to this image to make it accessible and test it again with VoiceOver.\n',code:'\n',assertion:'var img = dom.querySelector(\'img\');\nassert(\n img.hasAttribute("alt"),\n "It doesn\'t look like you added an alt to your image."\n);\n'}]}},content:'Screen readers interact with text on the screen. So, to convey the meaning of \nan image to screen reader users,\nwe put an accessible text label in the HTML. If an image is decorative, we can hide it from screen\nreader users by giving it an empty label (`alt=""`). After the completing the \nexercise below, you can learn a lot more about writing good alt text for images \nby checking out [WebAIM\'s resource on the \ntopic](http://webaim.org/techniques/alttext/).\n',pathHash:"98c85cba9fc00ffd3ebfd95b418ce09e",contentConverter:r,layout:o}},function(e,t,n){e.exports=n.p+"inline-image-59KBw1H.png"},function(e,t,n){var r=n(3);r=r?r["default"]||r:r;var o=n(199);o=o?o["default"]||o:o,e.exports={options:{title:"Keyboard Navigation",chapter:"Writing Code",style:"img {\n width: 100px;\n height: 100px;\n}\n.customButton {\n border: 1px solid black;\n width: 65px;\n background-color: lightgray;\n text-align: center;\n}\n",layout_data:{examples:[{title:"Semantic Button",description:"The button below uses a semantic button tag and is correctly announced by\nscreen readers. If you are on a Mac, turn on VoiceOver and tab to the\nbutton. You will hear the name of the element and the element type announced\nby VoiceOver.\n",code:"\n"},{title:"Unsemantic Button exercise",description:"The button below is constructed using an unsemantic div. The easiest way to\nmake this semantic is to use a real button or input tag. Here is another way. In the\nexample below, add\n1. `role='button'`\n2. `tabindex='0'`\n\nVerify with VoiceOver that you can tab to the button and hear the button name and the fact\nthat it is a button element. Note that you would need to add an onkeypress or onkeydown handler to the button so you\ncan tab to the button and press enter to activate it using just the keyboard.\n",code:'
\n Submit\n
\n',assertion:"var btn = dom.querySelector('.customButton');\nassert(\n btn.hasAttribute('tabindex') && btn.getAttribute('tabindex') === \"0\",\n \"It doesn't look like you added a tabindex to your custom button.\"\n);\n\nassert(\n btn.getAttribute('role') === \"button\",\n \"It doesn't look like you added a role of button to your custom button.\"\n);\n"}]}},content:"Make all interactive elements work with a keyboard. For example, make sure a \nbutton that you activate\nwith a click is also in the keyboard tab sequence and that pressing enter or space\nactivates it. Set the `tabindex` attribute to `0` to include an element in the \nbrowser's keyboard tab sequence. If you want an element out of sequence, set \nits `tabindex` to `-1` and use JavaScript to control its focus and tab \nsequence, and related keyboard events. We do not recommend using `tabindex` \nvalues greater than `0` even though browsers support them. Note that HTML links \nand input elements have an implied `tabindex` of `0`.\n",pathHash:"98c85cba9fc00ffd3ebfd95b418ce09e",contentConverter:r,layout:o}},function(e,t,n){var r=n(3);r=r?r["default"]||r:r;var o=n(199);o=o?o["default"]||o:o,e.exports={options:{title:"Labeling Form Controls and Interactive Elements",toc:"Labels",chapter:"Writing Code",style:".searchBtn {\n background-image: url('"+n(236)+"');\n width: 30px;\n height: 30px;\n background-size: 100% 100%;\n}\n\n#composer {\n border: 1px solid #1466F2;\n}\n\n#description {\n font-size: 12px;\n}\n\n#dateFormat {\n font-size: 13px;\n}\n",layout_data:{examples:[{title:"Self-labeled",description:"Some elements, like links and buttons with display text, label themselves. In this case, screen reader\nusers and all other users can perceive the label.\n",code:"
\n \n
\n"},{title:"Using
\n'},{title:"Using 'aria-label'",description:"In rare cases, the purpose of the input is visually obvious in context, but it's not obvious to someone\nusing a screen reader. We can provide contextual detail with `aria-label`.\n",code:'
\n Telephone\n \n \n \n
\n'},{title:"Using 'aria-describedby'",description:"Occasionally, a label by itself is insufficient information. If help text is present in the UI,\nwe can identify it as an accessible description by using `aria-describedby`.\n",code:'
\n \n \n

Note: This date will be recorded.

\n
\n'},{title:"Inaccessible Button exercise",description:"Add an `aria-label` to the button below and label it 'search' to\nmake it accessible.\n",code:'\n\n',assertion:"var btn = dom.querySelector('button');\nassert(\n btn.hasAttribute('aria-label'),\n \"It doesn't look like you added an aria-label to the button\"\n);\n"},{title:"Inaccessible Interactive Elements exercise",description:"Add an `aria-labelledby` to the input field below and point it to the `id` of the prompt span.\nAlso, add an `aria-describedby` to the input field and point it to the description below to\nmake it accessible.\n",code:'\n\n Save Password\n\n

\n Your credentials will not be stored.\n

\n',assertion:"var btn = dom.querySelector('input');\nassert(\n btn.hasAttribute('aria-labelledby') &&\n btn.getAttribute('aria-labelledby') === 'prompt',\n \"It doesn't look like you added an aria-labelledby to the input field\"\n);\nassert(\n btn.hasAttribute('aria-describedby') &&\n btn.getAttribute('aria-describedby') === 'description',\n \"It doesn't look like you added an aria-describedby to the input field\"\n);\n"}]}},content:"Accessible labels are necessary to make several other types of elements \nunderstandable,\nsuch as inputs, widgets, and ARIA landmark regions.\nAccessible labels that create a delightful experience are:\n\n1. Concise -- 1 to 3 simple words. Only occasionally as many as 5 words.\n2. Meaningful -- accurately convey the purpose of the element.\n\nThere are many ways to label an interactive element such as a button or an input field, which you will see below. You can check the results of adding the various label types by testing in your screen reader too!\n\n",pathHash:"98c85cba9fc00ffd3ebfd95b418ce09e",contentConverter:r,layout:o}},function(e,t,n){e.exports=n.p+"search_icon-1GWmLaL.png"},function(e,t,n){var r=n(3);r=r?r["default"]||r:r;var o=n(199);o=o?o["default"]||o:o,e.exports={options:{title:"Lists",chapter:"Writing Code",style:"img {\n width: 100px;\n height: 100px;\n}\n",layout_data:{examples:[{title:"Semantic Lists Using HTML",description:"HTML provides tags that express lists. Most likely you are already familiar with the\n`ul` (unordered list) and `ol` (ordered list) tags.\n\nIn the example below, the list is correctly announced by screen readers as a list with three items.\n\n1. Turn on VoiceOver with Cmd + F5.\n\n2. Press Ctrl + Opt + Cmd + h repeatedly until you have jumped to the Editor Output heading.\n\n3. Press Ctrl + Opt + Right Arrow.\n\nVoiceOver will announce 'List 3 items'.\n",code:"
    \n
  • Eggs
  • \n
  • Milk
  • \n
  • Bread
  • \n
\n"},{title:"Semantic List Using ARIA Roles",description:"The list below uses ARIA roles to express the semantics of a list from a generic div structure.\nThis approach to expressing list structure can be used if it is not possible to use the native\nHTML list tags.\n\nNotice that the default list styling is not applied. That is because the browser's default\nstylesheet targets ```ul``` and ```ol``` tags.\n\nIn the example below, the list is correctly announced by screen readers as a list with three items.\n",code:'
\n
Sea
\n
Surf
\n
Sun
\n
\n'},{title:"Unsemantic List exercise",description:"Update the example below so that the items are expressed as a list. The easiest way to\nmake this semantic is to use a list tag. If that is not\npossible, wrap the elements in a container and give\nit a role of ```list```. The individual items will need to be identified with a role of ```listitem```.\n",code:"
\n A house of straw\n A house of sticks\n A house of bricks\n
\n",assertion:"assert(\n dom.querySelector('[role=\"list\"]') || dom.querySelector('ul') || dom.querySelector('ol'),\n \"You should create a wrapping element for the list. Either a 'ul', 'li' OR a 'div' with the role 'list'.\"\n);\nassert(\n dom.querySelectorAll('[role=\"listitem\"]').length ==3 || dom.querySelectorAll('li').length == 3,\n \"Wrap the items in an 'li' element or in a 'span' OR 'div' with the role 'listitem'.\"\n);\n"}]}},content:"Semantic lists help screen readers understand the type of the element and the \nnumber of items in the element, and provide\neasier navigation via list commands specific to screen readers.\n\n",pathHash:"98c85cba9fc00ffd3ebfd95b418ce09e",contentConverter:r,layout:o}},function(e,t,n){var r=n(3);r=r?r["default"]||r:r;var o=n(199);o=o?o["default"]||o:o,e.exports={options:{title:"Dialogs",chapter:"Writing Code",style:"#slide {\n position: initial;\n}\n#overlay, #overlay2 {\n display: none;\n position: absolute;\n left: 0px;\n top: 0px;\n width: 100vw;\n height: 100vh;\n text-align:center;\n z-index: 1000;\n background-color: rgba(0, 0, 0, .4);\n align-items: center;\n justify-content: center;\n}\n\n#container, #container2 {\n width:400px;\n background-color: #fff;\n border:1px solid #000;\n padding:15px;\n}\n\nlabel {\n float: left;\n width: 100px;\n clear: both;\n text-align: right;\n margin: 0 10px;\n}\n\n#content, #content2 {\n margin: 20px 0;\n}\n\n#closeButton:focus {\n outline: 2px solid #4A97F9;\n outline-offset: 1px;\n}\n\n#closeImg {\n float: right;\n margin-top: 9px;\n}\n\n#sourceLink, #sourceLink2 {\n margin: 10px;\n}\n\n#content2 > div {\n margin: 10px 0;\n}\n",layout_data:{examples:[{title:"Semantic Dialog",description:"Start VoiceOver if you are on your Mac and press enter on the Show Dialog button. You will notice that:\n1. VoiceOver announces that a dialog is opened and the name of the dialog because\nwe have a `role` of 'dialog' with a label associated using `aria-labelledby`.\n2. When the dialog opens, focus lands in the first focusable element in\nthe dialog.\n3. Tabbing keeps focus within the dialog. Note that you have to write code to restrict the tab sequence to the dialog.\n4. Closing the dialog places focus back on the source button.\n5. Pressing the esc key closes the dialog and places the focus back on the source button. Note that for widgets like\ntypeaheads, pressing esc should close the typeahead and not the dialog.\n\nNote that if you have textual content in the dialog besides labels, you should associate it\nwith an `aria-describedby` to the right input field so it gets announced when you tab to the input field.\n",code:'\n
\n \n

Shipping Address

\n
\n
\n \n \n
\n
\n
\n \n Submit\n \n \n Close\n \n
\n
\n
\n'},{title:"Unsemantic Dialog exercise",description:"The dialog below is unsemantic:\n\n1. The fact that a dialog opened up is not announced to VoiceOver.\n2. The heading that labels the dialog is not announced when the dialog is opened.\n\nTo fix these issues:\n1. Change the `` to a semantic `h2` tag.\n2. To the div with `id` container2, add a `role` of 'dialog'.\n3. To the div with `id` container2, add `aria-labelledby`='dialog-title'.\n\nVerify with VoiceOver.\n",code:'\n Show Dialog\n\n
\n
\n Shipping Address\n
\n
\n
\n \n \n
\n
\n \n Submit\n \n \n Close\n \n
\n
\n
\n
\n
\n',assertion:"var dialog = dom.querySelector('#container2');\nvar title = dom.querySelector('#dialog-title');\nvar heading = dom.querySelector('h2');\nassert(\n dialog.hasAttribute('role') && dialog.getAttribute('role')=== \"dialog\",\n \"It doesn't look like you added a role of 'dialog'.\"\n);\nassert(\n dialog.hasAttribute('aria-labelledby') && dialog.getAttribute('aria-labelledby')=== \"dialog-title\",\n \"It doesn't look like you associated the heading to the dialog with an aria-labelledby.\"\n);\nassert(\n heading && (heading.getAttribute('id') === 'dialog-title'),\n \"It doesn't look like you made the dialog heading semantic.\"\n);\n"}]}},content:"Dialogs are a little bit trickier to make accessible, but with a few key \nprinciples, they can be made keyboard navigable and usable with screen readers.\n",pathHash:"98c85cba9fc00ffd3ebfd95b418ce09e",contentConverter:r,layout:o}},function(e,t,n){var r=n(3);r=r?r["default"]||r:r;var o=n(199);o=o?o["default"]||o:o,e.exports={options:{title:"Tables",chapter:"Writing Code",style:"\n.editorWithPreview > .editor,\n.editorWithPreview > .preview {\n width: 50%;\n max-width: 50%;\n}\n\ntable, th, td {\n border: 1px solid black;\n text-align: center;\n font-size: 1em;\n}\n\nth {\n background-color: #ddd;\n}\n\n.table {\n display: table;\n}\n\n.tableRow {\n display: table-row;\n}\n\n.tableHeading {\n display: table-header-group;\n background-color: #ddd;\n}\n\n.tableCell, .tableHead {\n display: table-cell;\n padding: 3px 10px;\n border: 1px solid #999999;\n}\n\n.tableHeading {\n display: table-header-group;\n background-color: #ddd;\n font-weight: bold;\n}\n\n.tableBody {\n display: table-row-group;\n}\n",layout_data:{examples:[{title:"Semantic Table",description:"The following table uses semantic table markup. HTML provides many elements and attributes to create fully\naccessible tables. Note: ARIA 1.0 does not include HTML table equivalence; that is coming in ARIA 1.1. So\nit is best to stick to native HTML unless you are building an interactive grid that includes two-dimensional\narrow key navigation of the table content. To test the table below with VoiceOver:\n\n1. Press Ctrl + Opt + Cmd + h repeatedly until you reach the Editor Output region.\n2. Now press Ctrl + Opt + Right Arrow repeatedly to navigate the table cells.\n\nAt this time, VoiceOver does not read the column headers in Chrome. However, VoiceOver does read them in Safari. Windows screen readers typically read column and row headers as well.\n",code:"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Week1Week2
Clicks10090
Likes6055
\n"},{title:"Unsemantic Table exercise",description:"If the information is tabular, using CSS to create the appearance of a table makes the information\nalmost impossible for a screen reader user to understand and use. Convert the following tabular data\ninto an accessible HTML table.\n",code:'
\n
\n
\n Month\n
\n
\n Mood\n
\n
\n
\n
\n
\n January\n
\n
\n happy\n
\n
\n
\n
\n',assertion:"assert(\n dom.querySelector('table'),\n \"Use a semantic table element.\"\n);\nassert(\n dom.querySelectorAll('tr').length == 2,\n \"Are you using semantic tr tags?\"\n);\nassert(\n dom.querySelectorAll('th').length == 2,\n \"Are you using semantic th tags?\"\n);\nassert(\n dom.querySelectorAll('td').length == 2,\n \"Are you using semantic td tags?\"\n);\n"}]}},content:"Tables help screen readers process information presented in a tabular format.\nWhen information is presented using table markup, screen reader users can\nread down columns and across rows, and even hear column and row headings as they do so.\n\n",pathHash:"98c85cba9fc00ffd3ebfd95b418ce09e",contentConverter:r,layout:o}},function(e,t,n){var r=n(3);r=r?r["default"]||r:r;var o=n(199);o=o?o["default"]||o:o,e.exports={options:{title:"Menus",chapter:"Writing Code",style:'img {\n width: 100px;\n height: 100px;\n}\n\n.popupMenuWidget {\n padding: 1em;\n position: relative;\n}\n\n.popupMenuWidget [role="button"] {\n border: 1px solid black;\n border-radius: 3px;\n display: inline-block;\n padding: 1px 3px;\n position: relative;\n z-index: 2;\n}\n\n.popupMenuWidget [role="button"]:hover,\n.popupMenuWidget [role="button"]:focus {\n text-decoration: none;\n}\n\n.popupMenuWidget [role="menu"] {\n border: 1px solid black;\n display: none;\n position: relative;\n top: -1px;\n z-index: 1;\n list-style: none;\n margin: 0;\n}\n\n.popupMenuWidget [role="menu"] a {\n display: block;\n padding: 0px 5px;\n}\n\n.popupMenuWidget [role="menuitem"]:focus {\n background-color: #428bca;\n color: white;\n}\n',layout_data:{examples:[{title:"Accessible Menu",description:"The example below shows how to apply ARIA attributes to an unordered list\nelement to give it the semantics screen readers need to announce it as a menu.\nIt also demonstrates the JavaScript functionality you need to create the\nappropriate keyboard interaction.\n\n1. You can move focus to the button by pressing tab.\n2. Pressing enter with focus on the button opens the menu and moves focus to the first menu item.\n3. Up and down arrows navigate the menu.\n4. Escape closes the menu, returning focus to the button.\n5. If actions were implemented, pressing enter on a menu item would perform the action.\n",code:'\n\n Actions ▼\n